/* ═══════════════════════════════════════════════════════════════
   QueueSystem.my — Global Stylesheet 2026 (redesign)
   Type : Poppins (headings) + DM Sans (body)
   Base : Navy #0B1437 · Sky #0EA5E9
   Pillar accents : sky · whatsapp · violet · amber
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Base */
    --navy:       #0B1437;
    --navy-mid:   #0F1E4A;
    --navy-light: #162356;
    --sky:        #0EA5E9;
    --sky-dark:   #0284C7;
    --sky-glow:   #38BDF8;
    --sky-soft:   #E0F2FE;

    /* Pillar accents — one per product */
    --acc-sky:         #0EA5E9;  --acc-sky-soft:    #E0F2FE;  --acc-sky-dark:    #0369A1;
    --acc-wa:          #25D366;  --acc-wa-soft:     #E7FBF0;  --acc-wa-dark:     #128C7E;
    --acc-violet:      #7C3AED;  --acc-violet-soft: #F3EEFF;  --acc-violet-dark: #5B21B6;
    --acc-amber:       #F59E0B;  --acc-amber-soft:  #FEF6E7;  --acc-amber-dark:  #B45309;

    /* Semantic */
    --green:   #22C55E;
    --red:     #EF4444;
    --white:   #FFFFFF;
    --off:     #F8FAFC;
    --off2:    #F1F5F9;
    --muted:   #64748B;
    --text:    #1E293B;
    --border:  #E2E8F0;

    /* Elevation */
    --shadow-sm: 0 1px 3px rgba(11,20,55,.06), 0 1px 2px rgba(11,20,55,.04);
    --shadow:    0 4px 16px rgba(11,20,55,.07), 0 2px 4px rgba(11,20,55,.04);
    --shadow-lg: 0 12px 32px rgba(11,20,55,.10), 0 4px 8px rgba(11,20,55,.05);
    --shadow-xl: 0 24px 56px rgba(11,20,55,.16);

    --radius-sm:   8px;
    --radius:      14px;
    --radius-lg:   20px;
    --radius-xl:   28px;
    --radius-full: 999px;

    --ease: .25s cubic-bezier(.4,0,.2,1);

    /* Default accent — overridden by .acc-* */
    --acc:      var(--acc-sky);
    --acc-soft: var(--acc-sky-soft);
    --acc-dark: var(--acc-sky-dark);
}

/* Accent scopes — put on any section/card/body */
.acc-sky    { --acc: var(--acc-sky);    --acc-soft: var(--acc-sky-soft);    --acc-dark: var(--acc-sky-dark); }
.acc-wa     { --acc: var(--acc-wa);     --acc-soft: var(--acc-wa-soft);     --acc-dark: var(--acc-wa-dark); }
.acc-violet { --acc: var(--acc-violet); --acc-soft: var(--acc-violet-soft); --acc-dark: var(--acc-violet-dark); }
.acc-amber  { --acc: var(--acc-amber);  --acc-soft: var(--acc-amber-soft);  --acc-dark: var(--acc-amber-dark); }

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--white);
    color: var(--text);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; }

h1,h2,h3,h4,h5,h6 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    letter-spacing: -.01em;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; }
section { padding: 84px 0; }
.sec-tight { padding: 56px 0; }

.text-center { text-align: center; }
.bg-off  { background: var(--off); }
.bg-off2 { background: var(--off2); }
.bg-navy { background: var(--navy); color: var(--white); }

/* ── Section headers ────────────────────────────────────────── */
.sec-head { margin-bottom: 48px; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-sub { max-width: 640px; margin-left: auto; margin-right: auto; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--acc-soft); color: var(--acc-dark);
    padding: 5px 14px; border-radius: var(--radius-full);
    font-size: .74rem; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase;
    margin-bottom: 14px;
}
.eyebrow-dark {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.92);
}

.sec-title { font-size: clamp(1.65rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
.sec-sub   { font-size: 1.02rem; color: var(--muted); line-height: 1.75; }
.on-dark .sec-title { color: var(--white); }
.on-dark .sec-sub   { color: rgba(255,255,255,.72); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: .92rem;
    padding: 12px 26px; border-radius: var(--radius-full);
    border: none; cursor: pointer; white-space: nowrap; line-height: 1.1;
    transition: transform var(--ease), background var(--ease), box-shadow var(--ease), color var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary  { background: var(--acc); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--acc) 35%, transparent); }
.btn-primary:hover  { background: var(--acc-dark); box-shadow: 0 8px 22px color-mix(in srgb, var(--acc) 45%, transparent); }
.btn-navy     { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); }
.btn-wa       { background: var(--acc-wa); color: #fff; box-shadow: 0 4px 14px rgba(37,211,102,.32); }
.btn-wa:hover { background: var(--acc-wa-dark); }
.btn-outline  { background: transparent; color: var(--acc); border: 1.5px solid var(--acc); }
.btn-outline:hover { background: var(--acc); color: #fff; }
.btn-ghost-white { background: rgba(255,255,255,.10); color: #fff; border: 1.5px solid rgba(255,255,255,.30); }
.btn-ghost-white:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.6); }
.btn-lg { padding: 15px 34px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: .82rem; }

/* ── Tags ───────────────────────────────────────────────────── */
.tag {
    display: inline-block; padding: 3px 11px; border-radius: var(--radius-full);
    font-size: .7rem; font-weight: 700; letter-spacing: .04em;
    background: var(--acc-soft); color: var(--acc-dark);
}
.tag-solid { background: var(--acc); color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   HEADER  —  2-tier navigation
   ═══════════════════════════════════════════════════════════════ */
#site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }

.top-bar {
    background: var(--navy); color: rgba(255,255,255,.72);
    font-size: .76rem; padding: 6px 0;
}
.top-bar-inner { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.top-bar a { color: rgba(255,255,255,.85); transition: color var(--ease); }
.top-bar a:hover { color: var(--sky-glow); }
.top-bar i { color: var(--sky); font-size: .74rem; }
.top-bar .sep { opacity: .28; margin: 0 5px; }
.top-bar-spacer { margin-left: auto; }

.nav-wrapper {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s ease;
}
#site-header.scrolled .nav-wrapper { box-shadow: 0 4px 24px rgba(11,20,55,.09); }

.navbar { display: flex; align-items: center; gap: 14px; padding: 12px 0; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--sky) 0%, #0369A1 100%);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(14,165,233,.35);
}
.logo-text {
    font-family: 'Poppins', sans-serif; font-size: 1.22rem; font-weight: 800;
    color: var(--navy); letter-spacing: -.03em; line-height: 1;
}
.logo-text span { color: var(--sky); }
.logo-tag {
    display: block; font-family: 'DM Sans', sans-serif;
    font-size: .62rem; font-weight: 600; color: var(--muted);
    letter-spacing: .1em; text-transform: uppercase; margin-top: 3px;
}

/* Tier 1 */
.nav-links { display: flex; align-items: center; gap: 1px; margin-left: auto; }
.nav-links > li { position: relative; }
.nav-links > li > a {
    display: flex; align-items: center; gap: 5px;
    padding: 9px 9px; border-radius: var(--radius-sm);
    font-size: .845rem; font-weight: 600; color: var(--navy);
    white-space: nowrap; transition: color var(--ease), background var(--ease);
}
.nav-links > li > a:hover,
.nav-links > li.is-active > a { color: var(--acc); background: var(--acc-soft); }

/* Active underline */
.nav-links > li.is-active > a::after {
    content: ''; position: absolute; left: 9px; right: 9px; bottom: -13px;
    height: 3px; background: var(--acc); border-radius: 3px 3px 0 0;
}

.caret { font-size: .55rem; opacity: .55; transition: transform var(--ease); }
.nav-links > li:hover .caret { transform: rotate(180deg); opacity: 1; }

/* Hover bridge so the gap doesn't kill the dropdown */
.has-drop::before {
    content: ''; position: absolute; top: 100%; left: -16px; right: -16px;
    height: 14px; display: none;
}
.has-drop:hover::before { display: block; }

/* Tier 2 — dropdown panel */
.drop {
    position: absolute; top: calc(100% + 10px); left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-xl);
    padding: 0; min-width: 268px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    z-index: 1200; overflow: hidden;
}
.has-drop:hover > .drop,
.has-drop:focus-within > .drop {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
/* Keep wide panels on screen */
.drop.wide { min-width: 560px; }
.nav-links > li:nth-last-child(-n+3) .drop { left: auto; right: 0; transform: translateX(0) translateY(-6px); }
.nav-links > li:nth-last-child(-n+3):hover > .drop,
.nav-links > li:nth-last-child(-n+3):focus-within > .drop { transform: translateX(0) translateY(0); }

/* Product banner at top of pillar dropdowns */
.drop-banner {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    background: var(--acc-soft);
    border-bottom: 1px solid var(--border);
}
.drop-banner-icon {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    background: var(--acc); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.drop-banner-title {
    font-family: 'Poppins', sans-serif; font-size: .84rem; font-weight: 700;
    color: var(--navy); line-height: 1.3;
}
.drop-banner-sub { font-size: .72rem; color: var(--acc-dark); font-weight: 600; }
.drop-banner-go {
    margin-left: auto; flex-shrink: 0; font-size: .72rem; font-weight: 700;
    color: var(--acc-dark); display: flex; align-items: center; gap: 5px;
    white-space: nowrap;
}
.drop-banner:hover .drop-banner-go { gap: 9px; }

.drop-body { padding: 10px; }
.drop-body.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }

.drop-group + .drop-group { margin-top: 6px; }
.drop-head {
    padding: 9px 12px 5px; font-size: .66rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.drop-body li > a {
    display: flex; align-items: center; gap: 11px;
    padding: 8px 12px; border-radius: var(--radius-sm);
    font-size: .855rem; font-weight: 500; color: var(--text);
    transition: background var(--ease), color var(--ease);
}
.drop-body li > a:hover { background: var(--acc-soft); color: var(--acc-dark); }
.drop-body li > a.is-current { background: var(--acc-soft); color: var(--acc-dark); font-weight: 600; }
.drop-body li > a i { width: 17px; text-align: center; color: var(--acc); font-size: .82rem; flex-shrink: 0; }
.drop-badge {
    margin-left: auto; font-size: .58rem; font-weight: 700; letter-spacing: .04em;
    background: var(--acc); color: #fff; padding: 2px 7px; border-radius: var(--radius-full);
    text-transform: uppercase;
}

/* Header CTA */
.nav-cta {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--acc-wa); color: #fff;
    padding: 10px 18px; border-radius: var(--radius-full);
    font-size: .82rem; font-weight: 700; flex-shrink: 0;
    transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.nav-cta:hover { background: var(--acc-wa-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37,211,102,.35); }
.nav-cta .cta-short { display: none; }

.burger {
    display: none; background: none; border: none; cursor: pointer;
    color: var(--navy); font-size: 1.35rem; padding: 6px 8px; margin-left: auto;
}

/* First-paint fallback only — main.js measures the real header and
   overwrites this inline, so it can never sit under the content. */
.header-spacer { height: 108px; }

/* Anchor targets must clear the fixed header when jumped to,
   whether via a #hash in the URL or an in-page link. */
[id] { scroll-margin-top: calc(var(--header-h, 104px) + 20px); }

/* ── Mobile drawer ──────────────────────────────────────────── */
.m-drawer {
    position: fixed; inset: 0 0 0 auto; width: min(390px, 88vw);
    background: #fff; z-index: 1400;
    transform: translateX(102%); transition: transform .3s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(11,20,55,.18);
}
.m-drawer.open { transform: translateX(0); }
.m-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.m-close { background: none; border: none; font-size: 1.4rem; color: var(--navy); cursor: pointer; }
.m-drawer-body { overflow-y: auto; flex: 1; padding: 8px 0 24px; -webkit-overflow-scrolling: touch; }

.m-item { border-bottom: 1px solid var(--off2); }
.m-link {
    display: flex; align-items: center; gap: 11px; width: 100%;
    padding: 15px 20px; background: none; border: none; text-align: left;
    font-size: .95rem; font-weight: 600; color: var(--navy); cursor: pointer;
}
.m-link > i:first-child { width: 20px; color: var(--acc); font-size: .95rem; }
.m-link .m-caret { margin-left: auto; font-size: .75rem; color: var(--muted); transition: transform var(--ease); }
.m-item.open .m-link { color: var(--acc); }
.m-item.open .m-caret { transform: rotate(180deg); }
.m-sub { display: none; background: var(--off); padding: 6px 0 12px; }
.m-item.open .m-sub { display: block; }
.m-sub-head {
    padding: 10px 20px 4px; font-size: .66rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.m-sub a {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 20px 9px 24px; font-size: .875rem; color: var(--text);
}
.m-sub a i { width: 17px; text-align: center; color: var(--acc); font-size: .8rem; }
.m-sub a.is-current { color: var(--acc-dark); font-weight: 600; }
.m-overview {
    display: flex; align-items: center; gap: 8px; margin: 4px 20px 8px;
    padding: 9px 12px; border-radius: var(--radius-sm);
    background: var(--acc-soft); color: var(--acc-dark);
    font-size: .8rem; font-weight: 700;
}
.m-drawer-foot { padding: 18px 20px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.m-scrim {
    position: fixed; inset: 0; background: rgba(11,20,55,.45);
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; z-index: 1300;
}
.m-scrim.open { opacity: 1; visibility: visible; }

/* ═══════════════════════════════════════════════════════════════
   COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

/* Icon chip */
.icon-chip {
    width: 52px; height: 52px; border-radius: var(--radius);
    background: var(--acc-soft); color: var(--acc);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; flex-shrink: 0;
}
.icon-chip-solid { background: var(--acc); color: #fff; }
.icon-chip-sm { width: 40px; height: 40px; font-size: 1rem; border-radius: 11px; }

/* Generic card */
.card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px;
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--acc) 45%, var(--border)); }

/* Checklist */
.checklist { display: flex; flex-direction: column; gap: 9px; }
.checklist li { display: flex; align-items: flex-start; gap: 9px; font-size: .89rem; line-height: 1.55; }
.checklist li i { color: var(--acc); font-size: .78rem; margin-top: .38em; flex-shrink: 0; }
.on-dark .checklist li { color: rgba(255,255,255,.82); }

/* Stats */
.stats-bar { background: var(--navy); padding: 52px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { text-align: center; }
.stat-num {
    font-family: 'Poppins', sans-serif; font-size: clamp(1.9rem,3.4vw,2.5rem);
    font-weight: 800; color: var(--sky-glow); line-height: 1; margin-bottom: 6px;
}
.stat-label { font-size: .86rem; color: rgba(255,255,255,.62); font-weight: 500; }

/* CTA band */
.cta-band {
    background: linear-gradient(135deg, var(--navy) 0%, #0D2151 58%, #0B3068 100%);
    color: #fff; padding: 76px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(14,165,233,.16) 0%, transparent 70%);
}
.cta-band > .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem,3vw,2.3rem); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 600px; margin: 0 auto 32px; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* WhatsApp float */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 900;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--acc-wa); color: #fff; font-size: 1.55rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 22px rgba(37,211,102,.45);
    animation: wa-pulse 2.6s ease-in-out infinite;
    transition: transform var(--ease), background var(--ease);
}
.wa-float:hover { background: var(--acc-wa-dark); transform: scale(1.08); animation: none; }
@keyframes wa-pulse {
    0%,100% { box-shadow: 0 6px 22px rgba(37,211,102,.45); }
    50%     { box-shadow: 0 6px 34px rgba(37,211,102,.72); }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 68px 0 0; font-size: .9rem; }
.footer-top {
    display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.09);
}
.footer-mid {
    display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr; gap: 36px;
    padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,.09);
}
.footer-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-logo .logo-text { color: #fff; }
.footer-brand-logo .logo-text span { color: var(--sky-glow); }
.footer-tagline { font-size: .87rem; line-height: 1.7; color: rgba(255,255,255,.58); margin-bottom: 22px; }
.footer-social { display: flex; gap: 9px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.16);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.62); font-size: .85rem; transition: all var(--ease);
}
.footer-social a:hover { background: var(--sky); border-color: var(--sky); color: #fff; transform: translateY(-2px); }

.footer-col h4 {
    font-family: 'Poppins', sans-serif; font-size: .78rem; font-weight: 700;
    color: #fff; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-col h4 i { color: var(--acc); margin-right: 6px; font-size: .82rem; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255,255,255,.58); font-size: .855rem; transition: color var(--ease); }
.footer-links a:hover { color: var(--sky-glow); }

.footer-contact { display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; font-size: .855rem; color: rgba(255,255,255,.58); }
.footer-contact i { color: var(--sky); font-size: .82rem; margin-top: .32em; width: 14px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,.58); }
.footer-contact a:hover { color: var(--sky-glow); }

.footer-bottom {
    padding: 20px 0; display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; font-size: .8rem; color: rgba(255,255,255,.4);
}
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,.4); transition: color var(--ease); }
.footer-bottom-links a:hover { color: rgba(255,255,255,.72); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
/* ── Reveal on scroll ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.4,0,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .wa-float { animation: none; }
    html { scroll-behavior: auto; }
}

/* Tighten the bar before it runs out of room */
@media (max-width: 1320px) {
    .nav-links > li > a { padding: 9px 7px; font-size: .815rem; }
    .nav-links > li.is-active > a::after { left: 7px; right: 7px; }
    .nav-cta { padding: 10px 15px; }
    .nav-cta .cta-long  { display: none; }
    .nav-cta .cta-short { display: inline; }
    .logo-tag { display: none; }
}

@media (max-width: 1240px) {
    .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-mid { grid-template-columns: 1fr 1fr; }
}

/* Below this the 8-item bar no longer fits — switch to the drawer */
@media (max-width: 1150px) {
    .nav-links, .nav-cta { display: none; }
    .burger { display: block; }
    .header-spacer { height: 108px; }
    .top-bar-hide-sm { display: none; }
}

@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-brand { grid-column: 1 / -1; }
    .stats-grid { grid-template-columns: repeat(2,1fr); row-gap: 32px; }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .top-bar-inner { justify-content: center; gap: 4px; font-size: .72rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
    .container { padding: 0 18px; }
    /* Guard: a long nowrap button must never widen the layout viewport */
    .btn { white-space: normal; }
    .footer-top, .footer-mid { grid-template-columns: 1fr; }
    .logo-tag { display: none; }
    .cta-actions .btn { width: 100%; }
}
