/* Techmagnate-style theme — modern classic */
:root {
    --tm-blue: #0570AE;
    --tm-blue-dark: #023B5E;
    --tm-blue-light: #ffffff;
    --tm-orange: #0570AE;
    --tm-green: #0570AE;
    --tm-lime: #0570AE;
    --tm-gold: #0570AE;
    --tm-dark: #023B5E;
    --tm-text: #023B5E;
    --tm-muted: #767B79;
    --tm-border: #C3C3C3;
    --tm-white: #ffffff;
    --tm-bg: #ffffff;
    --header-h: 78px;
    --topbar-h: 0px;
    --alert-h: 32px;
    --site-max: 1600px;
}

body { color: var(--tm-text); }
body.has-tm-header { padding-top: calc(var(--header-h) + var(--topbar-h) + var(--alert-h)); }

@media (max-width: 767px) {
    body.has-tm-header { padding-top: calc(var(--header-h) + var(--alert-h) + 8px); }
    :root { --topbar-h: 0px; }
}

/* Alert strip */
.tm-alert-bar {
    background: #023B5E;
    color: rgba(255, 255, 255, .88);
    font-size: .78rem;
    padding: .45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1042;
}
.tm-alert-bar a { color: #0570AE; font-weight: 600; text-decoration: none; }
.tm-alert-bar a:hover { color: #0570AE; text-decoration: none; }
.tm-alert-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.tm-alert-msg { flex: 1; min-width: 200px; text-align: left; }
.tm-alert-contact {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
    white-space: nowrap;
}
.tm-alert-contact a { color: #0570AE; font-weight: 700; }
.tm-alert-contact a:hover { color: #0570AE; }
.tm-alert-msg strong { color: #fff; }

@media (max-width: 767px) {
  :root { --alert-h: 36px; }

  .tm-alert-inner {
    justify-content: center;
    flex-wrap: nowrap;
  }

  .tm-alert-contact--mobile {
    width: 100%;
    justify-content: center;
    gap: 0.65rem;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tm-alert-contact--mobile a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 46%;
  }

  .tm-alert-contact--mobile .tm-alert-sep {
    color: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
  }
}

/* Utility top bar */
.tm-topbar {
    background: var(--tm-blue-dark);
    color: #fff;
    font-size: .82rem;
    padding: .45rem 0;
    position: fixed;
    top: var(--alert-h);
    left: 0; right: 0;
    z-index: 1041;
}
.tm-topbar a { color: #fff; text-decoration: none; }
.tm-topbar a:hover { color: #C3C3C3; }
.tm-topbar .btn-top-cta {
    background: var(--tm-lime);
    color: #fff;
    padding: .3rem .9rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: .78rem;
}

/* Main navbar */
.navbar-tm {
    background: #fff !important;
    border-bottom: 1px solid var(--tm-border);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    padding: .65rem 0;
    position: fixed;
    top: var(--alert-h);
    left: 0; right: 0;
    z-index: 1040;
}
.navbar-tm .navbar-brand img {
    width: auto !important;
    max-width: 180px !important;
    height: 48px !important;
    max-height: 48px !important;
    object-fit: contain;
}
.navbar-tm .nav-link {
    color: var(--tm-text) !important;
    font-weight: 600;
    font-size: .88rem;
    padding: .5rem .75rem !important;
}
.navbar-tm .nav-link:hover { color: var(--tm-blue) !important; }
.navbar-tm .btn-nav-cta {
    background: var(--tm-lime);
    color: #fff !important;
    border-radius: 4px;
    padding: .5rem 1rem !important;
    font-weight: 700;
    margin-left: .5rem;
}
.navbar-tm .btn-nav-cta:hover { background: #0570AE; color: #fff !important; }
.navbar-tm .menu-icon, .navbar-tm .close-icon { color: var(--tm-text); }

@media (max-width: 991px) {
    body.has-tm-header { padding-top: calc(var(--header-h) + var(--topbar-h) + var(--alert-h) + 20px); }
    .navbar-tm .navbar-collapse {
        background: #fff;
        border-top: 1px solid var(--tm-border);
        padding: 1rem;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,.1);
    }
}

/* Homepage sections */
.tm-hero {
    background: linear-gradient(135deg, #ffffff 0%, #fff 50%, #ffffff 100%);
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.tm-hero-tag { color: var(--tm-blue); font-weight: 700; font-size: .95rem; margin-bottom: .5rem; }
.tm-hero h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; color: #023B5E; line-height: 1.15; margin-bottom: 1.25rem; }
.tm-hero-lead { font-size: 1.05rem; color: var(--tm-muted); max-width: 620px; line-height: 1.7; margin-bottom: 1.75rem; }
.tm-hero-btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-tm-primary { background: var(--tm-blue); color: #fff; padding: .75rem 1.5rem; border-radius: 4px; font-weight: 700; text-decoration: none; border: none; }
.btn-tm-primary:hover { background: var(--tm-blue-dark); color: #fff; }
.btn-tm-outline { background: #fff; color: var(--tm-blue); border: 2px solid var(--tm-blue); padding: .7rem 1.5rem; border-radius: 4px; font-weight: 700; text-decoration: none; }
.btn-tm-outline:hover { background: var(--tm-blue-light); color: var(--tm-blue); }
.tm-hero-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.tm-hero-pill { background: #fff; border: 1px solid var(--tm-border); padding: .4rem .9rem; border-radius: 50px; font-size: .8rem; font-weight: 600; color: var(--tm-text); text-decoration: none; }
.tm-hero-pill:hover { border-color: var(--tm-blue); color: var(--tm-blue); }

.tm-section { padding: 4rem 0; }
.tm-section-alt { background: #ffffff; }
.tm-section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #023B5E; margin-bottom: 1rem; text-align: center; }
.tm-section-sub { text-align: center; color: var(--tm-muted); max-width: 800px; margin: 0 auto 2.5rem; line-height: 1.7; }

.tm-clients-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; align-items: center; opacity: .7; }
.tm-clients-logos span { font-weight: 700; font-size: 1.1rem; color: #C3C3C3; }

.tm-service-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.tm-service-tab { border: 1px solid var(--tm-border); background: #fff; padding: .5rem 1rem; border-radius: 4px; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--tm-muted); }
.tm-service-tab.active { background: var(--tm-blue); color: #fff; border-color: var(--tm-blue); }

.tm-svc-card { background: #fff; border: 1px solid var(--tm-border); border-radius: 12px; padding: 2rem; height: 100%; transition: box-shadow .2s; }
.tm-svc-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.tm-svc-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .75rem; }
.tm-svc-card p { color: var(--tm-muted); font-size: .95rem; margin-bottom: 1rem; }
.tm-svc-card .sub-links a { display: inline-block; margin-right: .75rem; font-size: .82rem; color: var(--tm-blue); text-decoration: none; font-weight: 600; }
.tm-svc-card .discover { color: var(--tm-orange); font-weight: 700; text-decoration: none; font-size: .9rem; }

.tm-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; margin: 2rem 0; }
.tm-stat-box { background: #fff; border: 1px solid var(--tm-border); border-radius: 12px; padding: 2rem 1rem; }
.tm-stat-box .verb { font-size: 1.5rem; font-weight: 800; color: var(--tm-blue); }
.tm-stat-box .label { font-size: .95rem; color: var(--tm-muted); margin-top: .25rem; }

.tm-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.tm-feature-item { background: #fff; border: 1px solid var(--tm-border); border-radius: 10px; padding: 1.5rem; }
.tm-feature-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; color: #023B5E; }
.tm-feature-item p { font-size: .88rem; color: var(--tm-muted); margin: 0; line-height: 1.6; }

.tm-award-card { background: #fff; border-left: 4px solid var(--tm-blue); padding: 1.25rem; border-radius: 0 8px 8px 0; box-shadow: 0 2px 12px rgba(0,0,0,.05); margin-bottom: 1rem; }
.tm-award-card strong { display: block; color: var(--tm-blue); font-size: .85rem; margin-bottom: .35rem; }

.tm-case-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.08); height: 100%; }
.tm-case-card .case-img { height: 180px; background: linear-gradient(135deg, var(--tm-blue-light), #C3C3C3); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--tm-blue); }
.tm-case-card .case-body { padding: 1.5rem; }
.tm-case-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .75rem; }
.tm-case-card p { font-size: .88rem; color: var(--tm-muted); }

.tm-testimonial-card { background: #fff; border: 1px solid var(--tm-border); border-radius: 12px; padding: 1.75rem; height: 100%; }
.tm-testimonial-card blockquote { font-size: .92rem; color: var(--tm-muted); font-style: italic; margin-bottom: 1rem; }
.tm-testimonial-card .author { font-weight: 700; font-size: .9rem; }
.tm-testimonial-card .role { font-size: .8rem; color: var(--tm-muted); }

.tm-report-banner { background: linear-gradient(135deg, var(--tm-blue-dark), var(--tm-blue)); color: #fff; border-radius: 16px; padding: 2.5rem; text-align: center; margin: 2rem 0; }
.tm-report-banner h3 { font-weight: 800; margin-bottom: 1rem; }
.btn-tm-orange { background: var(--tm-orange); color: #fff; padding: .75rem 1.5rem; border-radius: 4px; font-weight: 700; text-decoration: none; display: inline-block; }
.btn-tm-orange:hover { background: #0570AE; color: #fff; }

.tm-video-section { background: var(--tm-dark); color: #fff; padding: 4rem 0; text-align: center; }
.tm-video-section h2 { font-weight: 800; margin-bottom: 1rem; }
.tm-video-section p { opacity: .85; max-width: 700px; margin: 0 auto 1.5rem; }

/* Static page hero */
.tm-page-hero { background: linear-gradient(135deg, var(--tm-blue-dark), var(--tm-blue)); color: #fff; padding: 3rem 0; text-align: center; }
.tm-page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; }
.tm-page-content { padding: 3rem 0; }
.tm-page-content .content-card { background: #fff; border: 1px solid var(--tm-border); border-radius: 12px; padding: 2rem; }

@media (max-width: 768px) {
    .tm-stats-row { grid-template-columns: 1fr; }
}
