/* ============================================================
   The Academy of Languages — Modern stylesheet
   ============================================================ */

:root {
    --navy-900: #081227;
    --navy-800: #0d1c3d;
    --navy-700: #132a5e;
    --navy-600: #1b3a7a;
    --gold: #c8a24a;
    --gold-soft: #e4cb8d;
    --ink: #14213d;
    --muted: #5d6678;
    --surface: #ffffff;
    --bg: #f6f7fb;
    --line: rgba(15, 33, 69, 0.10);
    --radius: 1.1rem;
    --radius-sm: .7rem;
    --shadow-sm: 0 8px 22px -16px rgba(8, 18, 39, .45);
    --shadow: 0 30px 70px -34px rgba(8, 18, 39, .40);
    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-family: var(--font-display); letter-spacing: -.01em; }

a { text-decoration: none; }

::selection { background: rgba(200, 162, 74, .30); }

/* ---------------- Buttons ---------------- */
.btn {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .01em;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn:active { transform: translateY(1px); }

.btn-brand {
    background: var(--navy-700);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 12px 28px -16px rgba(19, 42, 94, .8);
}
.btn-brand:hover, .btn-brand:focus {
    background: var(--navy-800);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -16px rgba(19, 42, 94, .9);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: var(--navy-900);
    border: 1px solid transparent;
    box-shadow: 0 14px 30px -16px rgba(200, 162, 74, .9);
}
.btn-gold:hover, .btn-gold:focus {
    color: var(--navy-900);
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.btn-ghost {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.btn-outline-brand {
    color: var(--navy-700);
    border: 1px solid rgba(19, 42, 94, .30);
    background: transparent;
}
.btn-outline-brand:hover { background: var(--navy-700); color: #fff; }

/* ---------------- Navbar ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.navbar { --bs-navbar-padding-y: 0; }
.navbar-brand { color: var(--navy-800); }
.brand-mark { color: var(--navy-700); flex: none; }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-the {
    font-size: .62rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 2px;
}
.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--navy-800);
}
.navbar .nav-link {
    color: var(--navy-800);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .10em;
    text-transform: uppercase;
    padding: .6rem .85rem !important;
    position: relative;
    transition: color .2s ease;
}
.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: .85rem;
    right: .85rem;
    bottom: .3rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--navy-700); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler:focus { box-shadow: none; }

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--navy-900);
    isolation: isolate;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(120deg, rgba(8, 18, 39, .96) 0%, rgba(13, 28, 61, .90) 45%, rgba(19, 42, 94, .78) 100%),
        radial-gradient(1100px 600px at 85% 10%, rgba(200, 162, 74, .18), transparent 60%),
        url("https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 20% 30%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 20% 30%, #000 0%, transparent 70%);
    pointer-events: none;
}
.hero-content { padding-top: clamp(4.5rem, 10vw, 8rem); padding-bottom: clamp(4.5rem, 10vw, 8rem); position: relative; }
.kicker {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    font-size: .74rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gold-soft);
}
.kicker-line { width: 34px; height: 1px; background: currentColor; display: inline-block; }
.hero-title {
    font-size: clamp(2.6rem, 5.2vw, 4.5rem);
    line-height: 1.04;
    font-weight: 600;
    margin: 1.2rem 0 1.4rem;
}
.hero-title em, .section-title em, .page-title em, .cta-title em {
    font-style: italic;
    color: var(--gold-soft);
}
.hero-lead {
    font-size: clamp(1.02rem, 1.4vw, 1.2rem);
    color: rgba(255, 255, 255, .78);
    max-width: 44ch;
}
.hero-trust {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .85rem;
    color: rgba(255, 255, 255, .62);
}
.hero-trust strong { color: #fff; font-weight: 600; }
.hero-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

.hero-card {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius);
    padding: 1.75rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.hero-card-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--gold-soft);
    font-weight: 600;
    margin-bottom: 1rem;
}
.hero-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.hero-list li {
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: .92rem;
    color: rgba(255, 255, 255, .88);
}
.hero-list i {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(200, 162, 74, .16);
    color: var(--gold-soft);
    flex: none;
}

/* ---------------- Stats band ---------------- */
.stats-band {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 2.6rem 0;
}
.stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 600;
    color: var(--navy-800);
    line-height: 1;
}
.stat-value span { color: var(--gold); font-size: .6em; vertical-align: super; }
.stat-label {
    margin-top: .5rem;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    font-weight: 500;
}

/* ---------------- Generic sections ---------------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-muted { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 3rem; }
.section-kicker {
    display: inline-block;
    font-size: .73rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: .9rem;
}
.section-title {
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
    font-weight: 600;
    color: var(--navy-800);
    line-height: 1.12;
    margin-bottom: 1rem;
}
.section-title em { color: var(--navy-600); }
.section-text { color: var(--muted); font-size: 1.02rem; margin-bottom: 1rem; }
.link-arrow {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--navy-700); font-weight: 600; font-size: .95rem;
    border-bottom: 1px solid transparent;
    transition: gap .2s ease, border-color .2s ease;
}
.link-arrow:hover { color: var(--navy-800); gap: .8rem; border-color: var(--gold); }

/* ---------------- About panel ---------------- */
.about-panel {
    background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
    color: #fff;
    border-radius: var(--radius);
    padding: 2.4rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.about-panel::before {
    content: "";
    position: absolute;
    right: -60px; top: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 162, 74, .35), transparent 70%);
}
.about-quote {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    line-height: 1.4;
    font-style: italic;
    color: rgba(255, 255, 255, .95);
    position: relative;
}
.about-author { display: flex; align-items: center; gap: .9rem; margin: 1.6rem 0 1.8rem; }
.about-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(200, 162, 74, .2);
    color: var(--gold-soft);
    font-weight: 700; font-size: .9rem;
    border: 1px solid rgba(200, 162, 74, .4);
}
.about-name { font-weight: 600; }
.about-role { font-size: .82rem; color: rgba(255, 255, 255, .6); }
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding-top: 1.5rem;
}
.about-grid > div {
    display: flex; align-items: center; gap: .6rem;
    font-size: .86rem; color: rgba(255, 255, 255, .82);
}
.about-grid i { color: var(--gold-soft); }

/* ---------------- Service cards ---------------- */
.service-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    color: inherit;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(200, 162, 74, .55);
    box-shadow: var(--shadow);
    color: inherit;
}
.service-icon {
    width: 56px; height: 56px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: rgba(200, 162, 74, .12);
    color: var(--navy-700);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    flex: none;
}
.service-title { font-size: 1.3rem; font-weight: 600; color: var(--navy-800); margin-bottom: .6rem; }
.service-text { color: var(--muted); font-size: .95rem; flex-grow: 1; margin-bottom: 1.4rem; }
.service-more {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--navy-700);
}
.service-card:hover .service-more { color: var(--gold); }
.service-card-cta {
    background: linear-gradient(160deg, var(--navy-800), var(--navy-600));
    border-color: transparent;
    color: #fff;
}
.service-card-cta .service-icon { background: rgba(255, 255, 255, .12); color: var(--gold-soft); }
.service-card-cta .service-title { color: #fff; }
.service-card-cta .service-text { color: rgba(255, 255, 255, .72); }
.service-card-cta .service-more { color: var(--gold-soft); }

/* ---------------- Test cards ---------------- */
.test-card {
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 1.4rem 1.5rem;
    transition: transform .25s ease, box-shadow .25s ease;
}
.test-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.test-card i { color: var(--gold); font-size: 1.4rem; }
.test-card h4 { font-size: 1.1rem; color: var(--navy-800); margin: .6rem 0 .35rem; }
.test-card p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------------- Clients ---------------- */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.client-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1.6rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .35rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.client-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: rgba(200, 162, 74, .45); }
.client-logo {
    height: 56px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .6rem;
}
.client-logo img {
    max-height: 52px;
    max-width: min(140px, 100%);
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(1) opacity(.82) contrast(1.08);
    transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}
.client-card:hover .client-logo img { filter: grayscale(0) opacity(1) contrast(1.02); transform: scale(1.03); }
.client-initials {
    width: 46px; height: 46px;
    display: none; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--navy-800);
    color: var(--gold-soft);
    font-size: .78rem; font-weight: 700; letter-spacing: .06em;
}
.client-logo.is-fallback .client-initials { display: inline-flex; }
.client-name { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy-800); font-weight: 600; }
.client-segment { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* ---------------- CTA band ---------------- */
.cta-band {
    background:
        radial-gradient(800px 400px at 50% 0%, rgba(200, 162, 74, .16), transparent 65%),
        linear-gradient(160deg, var(--navy-900), var(--navy-700));
    color: #fff;
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    text-align: center;
}
.kicker-light { color: var(--gold-soft); }
.cta-title {
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    font-weight: 600;
    max-width: 22ch;
    margin: 0 auto 1rem;
    color: #fff;
}
.cta-text { color: rgba(255, 255, 255, .72); max-width: 52ch; margin: 0 auto 1.8rem; }

/* ---------------- Page hero (subpages) ---------------- */
.page-hero {
    background:
        radial-gradient(900px 500px at 80% -10%, rgba(200, 162, 74, .18), transparent 60%),
        linear-gradient(150deg, var(--navy-900), var(--navy-700));
    color: #fff;
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 70% 20%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000, transparent 75%);
    pointer-events: none;
}
.page-title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 600; line-height: 1.08; margin: 1rem 0 .9rem; position: relative; }
.page-title em { color: var(--gold-soft); }
.page-lead { color: rgba(255, 255, 255, .76); font-size: 1.08rem; max-width: 60ch; position: relative; }

/* ---------------- Timeline ---------------- */
.sticky-side { position: sticky; top: 110px; }
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before {
    content: ""; position: absolute; left: .55rem; top: .4rem; bottom: .4rem;
    width: 2px; background: linear-gradient(var(--gold), rgba(200, 162, 74, .15));
}
.timeline-item { position: relative; padding-bottom: 2.4rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: ""; position: absolute; left: -2.2rem; top: .35rem;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--gold); border: 3px solid var(--bg);
    box-shadow: 0 0 0 1px var(--gold);
}
.timeline-year {
    font-size: .76rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--gold);
}
.timeline-body h3 { font-size: 1.25rem; color: var(--navy-800); margin: .35rem 0 .5rem; }
.timeline-body p { color: var(--muted); margin: 0; }

/* ---------------- Value cards ---------------- */
.value-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.value-card h3 { font-size: 1.2rem; color: var(--navy-800); margin-bottom: .5rem; }
.value-card p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------------- Service navigation + details ---------------- */
.service-nav { display: flex; flex-wrap: wrap; gap: .6rem; }
.service-nav a {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .55rem 1.05rem; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line);
    color: var(--navy-700); font-size: .85rem; font-weight: 600;
    transition: all .2s ease;
}
.service-nav a:hover { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.service-nav i { font-size: 1rem; }

.service-detail { padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--line); }
.service-detail:last-child { border-bottom: none; }
.service-detail-index {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: .1em;
    display: block;
    margin-bottom: .4rem;
}
.detail-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.detail-panel-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.detail-panel-head .service-icon { margin-bottom: 0; }
.detail-panel-title { font-weight: 600; color: var(--navy-800); }
.detail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.detail-list li { display: flex; align-items: flex-start; gap: .7rem; color: var(--muted); font-size: .95rem; }
.detail-list i { color: var(--gold); font-size: 1.1rem; line-height: 1.5; }

/* ---------------- Test detail cards ---------------- */
.test-detail-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}
.test-detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.test-detail-head { display: flex; gap: 1rem; align-items: flex-start; }
.test-detail-head .service-icon { margin-bottom: 0; }
.test-detail-head h3 { font-size: 1.25rem; color: var(--navy-800); margin-bottom: .25rem; }
.test-detail-head p { color: var(--muted); font-size: .9rem; margin: 0; }
.tag-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list li {
    font-size: .76rem; font-weight: 600; letter-spacing: .04em;
    padding: .32rem .8rem; border-radius: 999px;
    background: rgba(19, 42, 94, .06); color: var(--navy-700);
}

/* ---------------- Benefits ---------------- */
.benefit {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1.4rem;
    height: 100%;
}
.benefit > i { font-size: 1.4rem; color: var(--gold); flex: none; }
.benefit h4 { font-size: 1.05rem; color: var(--navy-800); margin-bottom: .2rem; }
.benefit p { color: var(--muted); font-size: .86rem; margin: 0; }

/* ---------------- Contact ---------------- */
.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.6rem, 3vw, 2.6rem);
    box-shadow: var(--shadow-sm);
}
.form-label { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-800); margin-bottom: .45rem; }
.form-control {
    border-radius: .65rem;
    border: 1px solid rgba(15, 33, 69, .16);
    padding: .8rem 1rem;
    font-size: .95rem;
    background: #fbfcfe;
}
.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 .2rem rgba(200, 162, 74, .18);
    background: #fff;
}
.invalid-feedback { font-size: .8rem; }
.form-control.input-validation-error {
    border-color: #dc3545;
    background-image: none;
}
.form-control.input-validation-error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .15);
}
span.field-validation-error { display: block; margin-top: .3rem; }
.contact-side { display: grid; gap: 1rem; height: 100%; align-content: start; }
.contact-block {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1.4rem;
}
.contact-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(200, 162, 74, .12); color: var(--navy-700);
    font-size: 1.2rem; flex: none;
}
.contact-block h3 { font-size: 1rem; color: var(--navy-800); margin-bottom: .25rem; }
.contact-block p { color: var(--muted); font-size: .9rem; margin: 0; }
.contact-block a { color: var(--navy-700); }
.contact-block a:hover { color: var(--gold); }
.contact-note {
    display: flex; gap: .6rem; align-items: center;
    font-size: .85rem; color: var(--muted);
    padding: .2rem .4rem;
}
.contact-note i { color: var(--gold); }

/* ---------------- Footer ---------------- */
.site-footer {
    background: var(--navy-900);
    color: rgba(255, 255, 255, .72);
    padding-top: 1rem;
}
.footer-title {
    font-family: var(--font-body);
    font-size: .74rem; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 1.1rem;
}
.footer-muted { color: rgba(255, 255, 255, .5); font-size: .9rem; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-the { color: rgba(255, 255, 255, .55); }
.footer-links { display: grid; gap: .55rem; }
.footer-links a { color: rgba(255, 255, 255, .72); font-size: .9rem; transition: color .2s ease; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-links li { font-size: .9rem; line-height: 1.5; }
.text-gold { color: var(--gold-soft) !important; }
.social-link {
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .08);
    color: #fff; font-size: 1.1rem;
    transition: all .25s ease;
}
.social-link:hover { background: var(--gold); color: var(--navy-900); transform: translateY(-2px); }
.footer-divider { border-color: rgba(255, 255, 255, .1); margin: 2.5rem 0 1.5rem; }

/* ---------------- Anti-spam (honeypot) ---------------- */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ---------------- Misc ---------------- */
.btn:focus-visible, .nav-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: .75rem;
        padding: .25rem 0 1rem;
        border-top: 1px solid var(--line);
    }
    .navbar .nav-link {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: .7rem .2rem !important;
    }
    .navbar .nav-link::after { left: .2rem; right: auto; width: 22px; }
    .navbar-collapse .nav-item:last-child { margin-top: .75rem; }
    .navbar-collapse .nav-item:last-child .btn { width: 100%; }
    .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .form-control { font-size: 1rem; }
    .hero-content { padding-top: 4rem; padding-bottom: 4rem; }
    .sticky-side { position: static; }
    .service-card-cta { margin-top: 0; }
}

@media (min-width: 576px) and (max-width: 1199.98px) {
    .row.g-5 { --bs-gutter-x: 2rem; }
}

@media (max-width: 575.98px) {
    .row.g-5 { --bs-gutter-x: 1.5rem; }
    .hero-title { font-size: 2.15rem; }
    .hero-trust { font-size: .78rem; }
    .hero .btn, .cta-band .btn { max-width: 100%; white-space: normal; }
    .hero .btn-lg, .cta-band .btn-lg { font-size: 1.05rem; }
    .about-panel, .detail-panel, .test-detail-card { padding: 1.5rem; }
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
