/* =========================================================
   Optima Diagnostics – Master Stylesheet
   Brand: Accuracy... Excellence...
   ========================================================= */

:root {
    /* Brand palette */
    --od-green: #10b981;
    --od-green-600: #059669;
    --od-green-700: #047857;
    --od-green-50: #ecfdf5;
    --od-green-100: #d1fae5;
    --od-orange: #f97316;
    --od-orange-600: #ea580c;
    --od-ink: #0b1320;
    --od-ink-2: #111827;
    --od-slate: #334155;
    --od-muted: #64748b;
    --od-line: #e2e8f0;
    --od-line-2: #eef2f7;
    --od-bg: #ffffff;
    --od-bg-soft: #f8fafc;
    --od-bg-mint: #f0fdf4;

    /* Effects */
    --od-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
    --od-shadow-md: 0 6px 16px rgba(15, 23, 42, .07), 0 2px 6px rgba(15, 23, 42, .05);
    --od-shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, .18);
    --od-shadow-glow: 0 10px 40px -10px rgba(16, 185, 129, .35);
    --od-radius: 14px;
    --od-radius-lg: 22px;
    --od-radius-xl: 28px;

    /* Typography */
    --od-font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --od-font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

    /* Layout */
    --od-container: 1200px;
    --od-nav-h: 92px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--od-font-sans);
    color: var(--od-ink);
    background: var(--od-bg);
    line-height: 1.65;
    font-size: 16px;
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    width: 100%;
    /* max-width: 100% is safer than 100vw — the latter includes the scrollbar
       width on desktops with classic scrollbars, which can cause a 1-2 px
       horizontal jiggle. overflow-x: hidden already prevents page-level scroll. */
    max-width: 100%;
    /* Use the actual visual viewport on mobile for accurate min-height calcs
       (matters when the URL bar appears/disappears) */
    min-height: 100vh;
    min-height: 100dvh;
}

body.nav-open { overflow: hidden; touch-action: none; }

img, svg { max-width: 100%; display: block; }

/* Discourage image drag-to-save / drag-to-tab. The JS handler in main.js also
   intercepts dragstart on <img> as a fallback for older browsers.
   user-select kept to text on body so phone numbers / addresses stay copyable. */
img, picture, video {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
}

a { color: var(--od-green-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--od-green-600); }

p { margin-bottom: 1rem; color: var(--od-slate); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--od-font-display);
    color: var(--od-ink);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: .75rem; }
h4 { font-size: 1.125rem; margin-bottom: .5rem; }

ul, ol { padding-left: 1.25rem; margin-bottom: 1rem; color: var(--od-slate); }
li { margin-bottom: .35rem; }

::selection { background: var(--od-green-100); color: var(--od-ink); }

/* ----------- Layout helpers ----------- */
.container { max-width: var(--od-container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-sm { padding: 56px 0; }
.center { text-align: center; }
.muted { color: var(--od-muted); }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .8rem; font-weight: 700; letter-spacing: .12em;
    color: var(--od-green-700); text-transform: uppercase;
    background: var(--od-green-50); padding: .45rem .85rem; border-radius: 999px;
    border: 1px solid var(--od-green-100);
    margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--od-green); box-shadow: 0 0 0 4px rgba(16,185,129,.18); }

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.05rem; }

/* ----------- Buttons ----------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .9rem 1.55rem;
    font-family: inherit; font-size: .98rem; font-weight: 600;
    border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: all .25s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--od-green); color: #fff; box-shadow: var(--od-shadow-glow); }
.btn-primary:hover { background: var(--od-green-600); transform: translateY(-2px); color: #fff; box-shadow: 0 16px 40px -12px rgba(16,185,129,.55); }
.btn-secondary { background: var(--od-ink); color: #fff; }
.btn-secondary:hover { background: var(--od-ink-2); transform: translateY(-2px); color: #fff; }
.btn-outline { background: transparent; color: var(--od-ink); border-color: var(--od-line); }
.btn-outline:hover { border-color: var(--od-ink); color: var(--od-ink); }
.btn-light { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(8px); border-color: rgba(255,255,255,.35); }
.btn-light:hover { background: rgba(255,255,255,.28); color: #fff; }

/* ----------- Top bar ----------- */
.topbar {
    background: var(--od-ink);
    color: #cbd5e1;
    font-size: .85rem;
    padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #e2e8f0; }
.topbar a:hover { color: #fff; }
.topbar-info { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-cta a { color: var(--od-green); font-weight: 600; }

/* ----------- Header / Nav ----------- */
.site-header {
    position: sticky; top: 0; z-index: 110;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(226,232,240,.7);
}
.nav-wrap {
    display: flex; align-items: center; justify-content: space-between;
    min-height: var(--od-nav-h);
    gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 74px; width: auto; transition: transform .25s ease; }
.brand:hover img { transform: scale(1.04); }
.brand-text { display: none; }

.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav a {
    color: var(--od-ink);
    font-weight: 600; font-size: .96rem;
    padding: .65rem .95rem; border-radius: 10px;
    position: relative; transition: all .2s ease;
}
.primary-nav a:hover, .primary-nav a.active { background: var(--od-green-50); color: var(--od-green-700); }
.has-dropdown { position: relative; }
.has-dropdown > a::after {
    content: "▾"; font-size: .7rem; margin-left: 4px; color: var(--od-muted);
}
.dropdown {
    position: absolute; top: calc(100% + 8px); left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--od-shadow-lg);
    padding: 8px;
    border: 1px solid var(--od-line-2);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all .22s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
    display: flex; align-items: center; gap: 10px;
    padding: .7rem .9rem; border-radius: 10px; font-size: .92rem;
}
.dropdown a:hover { background: var(--od-bg-soft); }
.dropdown a .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--od-green-50); color: var(--od-green-700); display: grid; place-items: center; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
    display: none;
    background: var(--od-bg-soft);
    border: 1px solid var(--od-line);
    width: 46px; height: 46px; border-radius: 12px;
    cursor: pointer; align-items: center; justify-content: center;
    position: relative; z-index: 110;
    transition: background .2s ease, border-color .2s ease;
}
.nav-toggle:hover { background: var(--od-green-50); border-color: var(--od-green-100); }
.nav-toggle span {
    display: block; width: 20px; height: 2px; background: var(--od-ink); position: relative;
    transition: background-color .2s ease;
    border-radius: 2px;
}
.nav-toggle span::before, .nav-toggle span::after {
    content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--od-ink);
    transition: transform .25s ease, top .25s ease;
    border-radius: 2px;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* ----------- Hero (full-banner) ----------- */
.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    background: var(--od-ink);
}
.hero-banner .banner-bg {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
    background:
      radial-gradient(1100px 620px at 76% 32%, #0e2f2a 0%, transparent 62%),
      radial-gradient(900px 560px at 12% 88%, #0a2435 0%, transparent 58%),
      linear-gradient(135deg, #0b1320 0%, #0c1a26 52%, #07221e 100%);
}
/* Drifting aurora glow */
.hero-banner .hero-aurora {
    position: absolute; inset: -25%; pointer-events: none;
    background:
      radial-gradient(420px 420px at 70% 34%, rgba(16,185,129,.42), transparent 60%),
      radial-gradient(360px 360px at 86% 62%, rgba(52,211,153,.28), transparent 65%),
      radial-gradient(520px 520px at 58% 82%, rgba(4,120,87,.32), transparent 62%);
    filter: blur(14px);
    animation: heroAurora 18s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes heroAurora {
    0%   { transform: translate3d(0,0,0) scale(1); }
    50%  { transform: translate3d(-3%, 2.5%, 0) scale(1.09); }
    100% { transform: translate3d(2.5%, -2%, 0) scale(1.04); }
}
/* Faint tech / diagnostics grid, masked toward the wordmark */
.hero-banner .hero-grid {
    position: absolute; inset: 0; pointer-events: none; opacity: .55;
    background-image:
      linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(72% 78% at 74% 46%, #000 0%, transparent 76%);
            mask-image: radial-gradient(72% 78% at 74% 46%, #000 0%, transparent 76%);
    animation: heroGridPan 24s linear infinite;
}
@keyframes heroGridPan {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 48px 48px, 48px 48px; }
}

/* ---- Animated brand wordmark ---- */
.hero-banner .hero-wordmark {
    z-index: 2; pointer-events: none;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; line-height: .9; min-width: 0;
}
.hero-banner .hero-ecg {
    width: clamp(200px, 30vw, 460px); height: clamp(34px, 5vw, 56px);
    display: block; margin-bottom: 10px; overflow: visible;
}
.hero-banner .ecg-track { fill: none; stroke: rgba(110,231,183,.5); stroke-width: 2.2; filter: drop-shadow(0 0 3px rgba(52,211,153,.35)); }
.hero-banner .ecg-pulse {
    fill: none; stroke: #6ee7b7; stroke-width: 2.6;
    stroke-linecap: round; stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(52,211,153,.95));
    stroke-dasharray: 78 600; stroke-dashoffset: 78;
    animation: ecgRun 2.8s linear infinite;
}
@keyframes ecgRun { from { stroke-dashoffset: 78; } to { stroke-dashoffset: -600; } }

.hero-banner .wm-line {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    font-weight: 800; letter-spacing: -.025em; white-space: nowrap;
}
.hero-banner .wm-top {
    font-size: clamp(2.6rem, 7vw, 7rem);
    background: linear-gradient(100deg, #10b981 0%, #34d399 28%, #ffffff 50%, #6ee7b7 72%, #10b981 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    animation:
        wmReveal .9s cubic-bezier(.2,.75,.2,1) both,
        wmSheen 6.5s linear 1s infinite,
        wmGlow 4.5s ease-in-out 1s infinite;
}
.hero-banner .wm-bot {
    font-size: clamp(1.3rem, 3.4vw, 3rem);
    letter-spacing: clamp(.08em, .45vw, .26em);
    color: transparent;
    -webkit-text-stroke: 1.4px rgba(255,255,255,.55);
    margin-top: .14em; padding-right: .04em;
    animation: wmReveal 1s cubic-bezier(.2,.75,.2,1) .12s both;
}
@keyframes wmReveal {
    from { opacity: 0; transform: translateY(.42em); filter: blur(16px); }
    to   { opacity: 1; transform: translateY(0);     filter: blur(0); }
}
@keyframes wmSheen {
    from { background-position: 0% 50%; }
    to   { background-position: -220% 50%; }
}
@keyframes wmGlow {
    0%, 100% { filter: drop-shadow(0 10px 30px rgba(16,185,129,.28)); }
    50%      { filter: drop-shadow(0 12px 54px rgba(52,211,153,.58)); }
}
.hero-banner .banner-overlay {
    position: absolute; inset: 0;
    background:
      linear-gradient(115deg, rgba(11,19,32,.88) 0%, rgba(4,120,87,.62) 45%, rgba(11,19,32,.30) 75%, rgba(11,19,32,.05) 100%),
      linear-gradient(0deg, rgba(11,19,32,.55) 0%, rgba(11,19,32,0) 60%);
    z-index: 1;
}
.hero-banner .banner-grain {
    position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .25;
    background:
      radial-gradient(900px 500px at 85% 110%, rgba(16,185,129,.45), transparent 60%),
      radial-gradient(800px 500px at 5% -10%, rgba(255,255,255,.10), transparent 60%);
}
.hero-banner .container {
    position: relative; z-index: 3;
    padding-top: clamp(80px, 12vw, 150px);
    padding-bottom: clamp(70px, 10vw, 120px);
}
/* Hero is a 2-column layout: copy on the left, animated wordmark on the
   right. Below 900px it stacks (wordmark on top via order) so the two never
   overlap. Because the wordmark now lives inside the z-index:3 container, it
   also paints above the overlay without needing its own stacking context. */
.hero-banner .container.hero-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(20px, 4vw, 40px);
}
.hero-banner .container.hero-layout .hero-wordmark { order: -1; }
@media (min-width: 900px) {
    .hero-banner .container.hero-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
        align-items: center;
        gap: clamp(28px, 3vw, 48px);
    }
    .hero-banner .container.hero-layout .hero-wordmark {
        order: 0; align-items: flex-end; text-align: right;
    }
}
.hero-banner .eyebrow {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
}
.hero-banner .eyebrow::before { background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.3); }
.hero-banner h1 {
    color: #fff;
    max-width: 18ch;
    text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.hero-banner h1 .accent {
    background: linear-gradient(120deg, #34d399 0%, #6ee7b7 60%, #fff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-banner .lede {
    color: rgba(255,255,255,.92);
    font-size: 1.14rem;
    max-width: 64ch;
    margin-top: 14px;
}
.hero-banner .lede strong { color: #fff; }
.hero-banner .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
/* Keep the three hero CTAs on a single row on desktop */
@media (min-width: 1024px) {
    .hero-banner .hero-cta { flex-wrap: nowrap; gap: 10px; }
    .hero-banner .hero-cta .btn { flex: 0 0 auto; white-space: nowrap; }
}
.hero-banner .btn-outline { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.hero-banner .btn-outline:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }

.hero-banner .trust-row {
    display: flex; gap: 26px; flex-wrap: wrap;
    margin-top: 36px; padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.18);
    max-width: 720px;
}
.hero-banner .trust-row .t {
    display: flex; flex-direction: column; gap: 4px;
}
.hero-banner .trust-row strong {
    color: #fff; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1;
}
.hero-banner .trust-row span { color: rgba(255,255,255,.78); font-size: .82rem; }

.hero-banner .float-pill {
    position: absolute; right: 28px; top: 28px; z-index: 4;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: var(--od-ink); font-size: .85rem; font-weight: 600;
    box-shadow: var(--od-shadow-md);
    backdrop-filter: blur(8px);
}
.hero-banner .float-pill .dot {
    width: 10px; height: 10px; border-radius: 50%; background: var(--od-green);
    box-shadow: 0 0 0 4px rgba(16,185,129,.25);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 50% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } }

.hero-banner .scroll-cue {
    position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.65); font-size: .78rem; letter-spacing: .15em;
    text-transform: uppercase; z-index: 4;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero-banner .scroll-cue::after {
    content: ""; width: 1px; height: 26px; background: rgba(255,255,255,.4);
    animation: scrollline 1.6s ease-in-out infinite;
}
@keyframes scrollline { 0%, 100% { transform: scaleY(.6); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ----------- Page header (interior) ----------- */
.page-hero {
    background:
      radial-gradient(900px 400px at 80% -20%, rgba(16,185,129,.18), transparent 60%),
      linear-gradient(180deg, #fdfffe 0%, #f4faf6 100%);
    padding: 80px 0 64px; border-bottom: 1px solid var(--od-line-2);
}
.page-hero .crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--od-muted); margin-bottom: 14px; flex-wrap: wrap; }
.page-hero .crumbs a { color: var(--od-muted); }
.page-hero .crumbs a:hover { color: var(--od-ink); }
.page-hero h1 { max-width: 22ch; }
.page-hero .lede { max-width: 66ch; font-size: 1.05rem; margin-top: .5rem; }

/* ----------- Cards & service grids ----------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--od-line-2);
    border-radius: var(--od-radius-lg);
    padding: 28px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex; flex-direction: column; gap: .35rem;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--od-shadow-md); border-color: var(--od-green-100); }
.card .ic {
    width: 54px; height: 54px; border-radius: 14px;
    background: linear-gradient(135deg, var(--od-green-50), #fff);
    border: 1px solid var(--od-green-100);
    display: grid; place-items: center; color: var(--od-green-700);
    margin-bottom: 14px; font-size: 1.4rem;
}
.card h3 { margin-bottom: .35rem; }
.card p { margin-bottom: 0; font-size: .96rem; }
.card .read { margin-top: 14px; font-weight: 600; color: var(--od-green-700); display: inline-flex; align-items: center; gap: 6px; }
.card .read::after { content: "→"; transition: transform .2s ease; }
.card:hover .read::after { transform: translateX(4px); }

.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.bento .b {
    background: #fff; border: 1px solid var(--od-line-2);
    border-radius: var(--od-radius-lg); padding: 26px;
    grid-column: span 2;
    display: flex; flex-direction: column;
}
.bento .b.big { grid-column: span 3; }
.bento .b.dark { background: var(--od-ink); color: #e2e8f0; border-color: var(--od-ink); }
.bento .b.dark h3 { color: #fff; }
.bento .b.dark p { color: #94a3b8; }
.bento .b.green { background: linear-gradient(140deg, #10b981 0%, #047857 100%); color: #fff; border: none; }
.bento .b.green h3, .bento .b.green p { color: #fff; }

/* ----------- Stats ----------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: var(--od-radius-xl); overflow: hidden; background: #fff; border: 1px solid var(--od-line-2); }
.stats .stat { padding: 36px 28px; border-right: 1px solid var(--od-line-2); }
.stats .stat:last-child { border-right: none; }
.stats .stat strong { font-size: 2.2rem; color: var(--od-ink); display: block; font-weight: 800; letter-spacing: -.03em; }
.stats .stat span { color: var(--od-muted); font-size: .92rem; }

/* ----------- Process / steps ----------- */
.steps { counter-reset: step; }
.steps .step { display: grid; grid-template-columns: 80px 1fr; gap: 20px; align-items: start; padding: 22px 0; border-top: 1px solid var(--od-line-2); }
.steps .step:first-child { border-top: none; }
.steps .step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    font-family: var(--od-font-display); font-weight: 800; color: var(--od-green);
    font-size: 1.6rem; line-height: 1;
}
.steps .step h3 { margin-bottom: .25rem; }
.steps .step p { margin-bottom: 0; }

/* ----------- Feature list ----------- */
.feat-list { list-style: none; padding: 0; margin: 0; }
.feat-list li {
    position: relative; padding-left: 32px; margin-bottom: .65rem; color: var(--od-slate);
}
.feat-list li::before {
    content: ""; position: absolute; left: 0; top: 8px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--od-green-50);
    border: 2px solid var(--od-green);
}
.feat-list li::after {
    content: ""; position: absolute; left: 5px; top: 12px;
    width: 8px; height: 4px;
    border-left: 2px solid var(--od-green-700);
    border-bottom: 2px solid var(--od-green-700);
    transform: rotate(-45deg);
}

/* ----------- Two column content ----------- */
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.two-col.reverse { grid-template-columns: 1fr 1.1fr; }
.two-col img { border-radius: var(--od-radius-xl); box-shadow: var(--od-shadow-md); }
.two-col .badge-strip { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.badge-strip .b {
    background: var(--od-green-50); color: var(--od-green-700);
    border: 1px solid var(--od-green-100);
    padding: .35rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
}

/* ----------- CTA banner ----------- */
.cta-banner {
    border-radius: var(--od-radius-xl);
    background:
      radial-gradient(700px 400px at 100% 0%, rgba(255,255,255,.15), transparent 60%),
      linear-gradient(135deg, #047857 0%, #10b981 100%);
    color: #fff; padding: 56px;
    display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 32px;
    position: relative; overflow: hidden;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #d1fae5; }
.cta-banner .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ----------- FAQ ----------- */
.faq-wrap { max-width: 880px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border: 1px solid var(--od-line-2);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: var(--od-green-100); box-shadow: var(--od-shadow-sm); }
.faq-item summary {
    list-style: none;
    padding: 20px 24px;
    font-weight: 600; color: var(--od-ink); cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; font-size: 1.4rem; color: var(--od-green-700); transition: transform .25s ease;
    line-height: 1; font-weight: 400;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 24px 22px; color: var(--od-slate); }
.faq-item .faq-a p { margin-bottom: .75rem; }
.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* ----------- Article / Blog ----------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
    background: #fff;
    border: 1px solid var(--od-line-2);
    border-radius: var(--od-radius-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--od-shadow-md); }
.post-card .thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--od-green-50), #ffffff); position: relative; overflow: hidden; }
.post-card .thumb svg { position: absolute; inset: 0; margin: auto; width: 60%; height: 60%; opacity: .5; }
.post-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .tag { font-size: .75rem; font-weight: 700; color: var(--od-green-700); text-transform: uppercase; letter-spacing: .1em; }
.post-card h3 { font-size: 1.18rem; margin: 0; }
.post-card h3 a { color: var(--od-ink); }
.post-card h3 a:hover { color: var(--od-green-700); }
.post-card p { font-size: .92rem; margin: 0; }
.post-card .meta { font-size: .8rem; color: var(--od-muted); margin-top: auto; padding-top: 14px; }
.post-card .read-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--od-green-700); margin-top: 4px; }
.post-card .read-more::after { content: "→"; transition: transform .2s ease; }
.post-card .read-more:hover::after { transform: translateX(4px); }

.article { max-width: 860px; margin: 0 auto; }
.article p, .article ul, .article ol { font-size: 1.05rem; line-height: 1.8; }
.article h2, .article h3 { margin-top: 2rem; }
.article h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.article h3 { font-size: clamp(1.18rem, 2vw, 1.35rem); }
.article a { color: var(--od-green-700); font-weight: 500; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.article a:hover { border-bottom-color: var(--od-green); }
.article strong { color: var(--od-ink); font-weight: 600; }
.article blockquote { border-left: 4px solid var(--od-green); padding: 4px 22px; margin: 26px 0; color: var(--od-slate); font-size: 1.1rem; font-style: italic; }

/* ----- Blog post pages ----- */
.post-byline {
    display: flex; flex-wrap: wrap; gap: 10px 22px;
    margin-top: 18px; font-size: .9rem; color: var(--od-muted);
    align-items: center;
}
.post-byline strong { color: var(--od-ink); font-weight: 600; }
.post-byline .dot { color: var(--od-line); }

.post-hero-img {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--od-radius-lg);
    object-fit: cover;
    background: linear-gradient(135deg, var(--od-green-50), var(--od-bg-soft));
    margin-bottom: 36px;
    box-shadow: var(--od-shadow-md);
}

.post-figure {
    margin: 36px 0;
}
.post-figure img, .post-figure svg {
    width: 100%;
    border-radius: var(--od-radius);
    background: linear-gradient(135deg, var(--od-green-50), var(--od-bg-soft));
    box-shadow: var(--od-shadow-sm);
}
.post-figure img { aspect-ratio: 16/9; object-fit: cover; }
.post-figure figcaption {
    font-size: .85rem; color: var(--od-muted);
    text-align: center; margin-top: 12px; font-style: italic;
}

.post-toc {
    background: var(--od-bg-soft);
    border-radius: var(--od-radius);
    padding: 22px 26px;
    margin: 28px 0;
    border-left: 4px solid var(--od-green);
}
.post-toc h3 { font-size: 1rem; margin: 0 0 12px; color: var(--od-ink); text-transform: uppercase; letter-spacing: .08em; }
.post-toc ol { margin-bottom: 0; padding-left: 1.2rem; }
.post-toc li { font-size: .95rem; margin-bottom: 6px; }
.post-toc li a { color: var(--od-slate); border-bottom: none; }
.post-toc li a:hover { color: var(--od-green-700); }

.post-faq { margin-top: 28px; }
.post-faq details {
    border: 1px solid var(--od-line-2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: var(--od-bg-soft);
    transition: background .2s ease;
}
.post-faq details[open] { background: #fff; box-shadow: var(--od-shadow-sm); }
.post-faq summary {
    cursor: pointer; font-weight: 600; color: var(--od-ink);
    list-style: none; position: relative; padding-right: 32px;
    font-size: 1rem;
}
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after {
    content: "+"; position: absolute; right: 0; top: -2px;
    font-size: 1.4rem; color: var(--od-green-700); line-height: 1;
    transition: transform .2s ease;
}
.post-faq details[open] summary::after { content: "−"; }
.post-faq details p { margin-top: 12px; margin-bottom: 0; font-size: .98rem; }

.author-box {
    display: flex; gap: 18px; align-items: flex-start;
    background: var(--od-bg-mint);
    border-radius: var(--od-radius);
    padding: 22px;
    margin-top: 40px;
    border: 1px solid var(--od-green-100);
}
.author-box .avatar {
    width: 56px; height: 56px; flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--od-green) 0%, var(--od-green-700) 100%);
    color: #fff; display: grid; place-items: center;
    font-size: 1.1rem; font-weight: 700;
}
.author-box .info p { margin-bottom: 4px; font-size: .94rem; }
.author-box .info p:last-child { margin-bottom: 0; }
.author-box .info strong { color: var(--od-ink); }

/* ----------- Doctor feature (About page) ----------- */
.dr-feature {
    background:
      radial-gradient(900px 480px at 88% -10%, rgba(16,185,129,.10), transparent 60%),
      radial-gradient(700px 400px at -8% 110%, rgba(16,185,129,.08), transparent 60%),
      var(--od-bg-mint);
    position: relative;
}
.dr-feature .section-head { margin-bottom: 40px; }
.dr-feature-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: start;
}
.dr-photo {
    margin: 0;
    position: sticky;
    top: 110px;
    border-radius: var(--od-radius-xl);
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(4, 120, 87, .35), 0 16px 32px -16px rgba(15,23,42,.15);
    background: #fff;
    border: 1px solid rgba(255,255,255,.6);
    transform: translateZ(0);
}
.dr-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--od-radius-xl);
}
.dr-content { display: flex; flex-direction: column; }
.dr-content > p { font-size: 1.04rem; line-height: 1.8; }
.dr-name {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 4px;
    color: var(--od-ink);
    letter-spacing: -0.02em;
}
.dr-creds {
    color: var(--od-green-700);
    font-weight: 600;
    font-size: 1.02rem;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--od-green-100);
}
.dr-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 28px 0 12px;
}
.dr-stat {
    background: #fff;
    border: 1px solid var(--od-green-100);
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: var(--od-shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
.dr-stat:hover { transform: translateY(-3px); box-shadow: var(--od-shadow-md); }
.dr-stat .num {
    display: block;
    font-family: var(--od-font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--od-green-700);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.dr-stat .lbl {
    display: block;
    font-size: .78rem;
    color: var(--od-muted);
    margin-top: 6px;
    font-weight: 500;
}
.dr-subhead {
    font-size: 1.05rem;
    margin: 24px 0 10px;
    color: var(--od-ink);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
}
.dr-quote {
    margin: 28px 0 0;
    padding: 22px 26px;
    background: #fff;
    border: 1px solid var(--od-green-100);
    border-left: 4px solid var(--od-green);
    border-radius: 14px;
    box-shadow: var(--od-shadow-sm);
    position: relative;
}
.dr-quote p {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.7;
    color: var(--od-ink);
    font-style: italic;
}
.dr-quote cite {
    display: block;
    margin-top: 12px;
    font-size: .88rem;
    color: var(--od-muted);
    font-style: normal;
    font-weight: 600;
}
.dr-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

@media (max-width: 1024px) {
    .dr-feature-grid { grid-template-columns: 1fr; gap: 36px; }
    .dr-photo { position: static; max-width: 520px; margin: 0 auto; }
    .dr-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .dr-feature-grid { gap: 28px; }
    .dr-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .dr-stat { padding: 14px 10px; }
    .dr-stat .num { font-size: 1.3rem; }
    .dr-stat .lbl { font-size: .72rem; }
    .dr-quote { padding: 18px 20px; }
    .dr-actions { flex-direction: column; align-items: stretch; }
    .dr-actions .btn { width: 100%; text-align: center; }
}

.post-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 32px 0 0;
}

.share-row {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 18px 0; margin: 36px 0;
    border-top: 1px solid var(--od-line-2);
    border-bottom: 1px solid var(--od-line-2);
    font-size: .9rem; color: var(--od-muted);
}
.share-row .share-links { display: flex; gap: 8px; }
.share-row a {
    width: 34px; height: 34px; border-radius: 8px;
    background: var(--od-bg-soft); color: var(--od-slate);
    display: grid; place-items: center;
    border: 1px solid var(--od-line-2); border-bottom: 1px solid var(--od-line-2);
    transition: background .2s ease, color .2s ease;
}
.share-row a:hover { background: var(--od-green); color: #fff; border-color: var(--od-green); }
.share-row a svg { width: 16px; height: 16px; }

/* ----------- Team grid ----------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
    background: #fff;
    border: 1px solid var(--od-line-2);
    border-radius: var(--od-radius-lg);
    padding: 28px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--od-shadow-md); }
.team-card .avatar {
    width: 96px; height: 96px; border-radius: 50%;
    background: linear-gradient(135deg, var(--od-green) 0%, var(--od-green-700) 100%);
    color: #fff; display: grid; place-items: center; margin: 0 auto 18px;
    font-size: 2rem; font-weight: 700;
    box-shadow: var(--od-shadow-sm);
}
.team-card h3 { margin-bottom: 4px; }
.team-card .role { color: var(--od-green-700); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.team-card p { font-size: .9rem; }

/* ----------- Contact ----------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.contact-info-card {
    background:
      radial-gradient(800px 400px at 100% 0%, rgba(255,255,255,.18), transparent 60%),
      linear-gradient(140deg, #047857 0%, #10b981 65%, #34d399 100%);
    color: rgba(255,255,255,.92);
    border-radius: var(--od-radius-xl); padding: 36px;
    position: relative; overflow: hidden;
    box-shadow: 0 24px 48px -16px rgba(4, 120, 87, .35);
}
.contact-info-card::before {
    content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px;
    border-radius: 50%; background: rgba(255,255,255,.06); pointer-events: none;
}
.contact-info-card::after {
    content: ""; position: absolute; left: -60px; bottom: -60px; width: 240px; height: 240px;
    border-radius: 50%; background: rgba(255,255,255,.05); pointer-events: none;
}
.contact-info-card > * { position: relative; z-index: 1; }
.contact-info-card h3 { color: #fff; }
.contact-info-card p { color: rgba(255,255,255,.85); }
.contact-info-card a { color: #fff; }
.contact-info-card a:hover { color: #ecfdf5; text-decoration: underline; }
.contact-info-card .row { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.18); }
.contact-info-card .row:first-of-type { border-top: none; }
.contact-info-card .row .ic {
    width: 48px; height: 48px; border-radius: 14px;
    background: rgba(255,255,255,.18);
    color: #fff;
    display: grid; place-items: center; flex: 0 0 auto;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.22);
}
.form-card {
    background: #fff;
    border: 1px solid var(--od-line-2);
    border-radius: var(--od-radius-xl);
    padding: 36px;
    box-shadow: var(--od-shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--od-ink); }
.form-control {
    width: 100%; padding: .85rem 1rem;
    border: 1px solid var(--od-line);
    border-radius: 12px;
    font-family: inherit; font-size: .96rem;
    background: var(--od-bg-soft);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-control:focus { outline: none; border-color: var(--od-green); background: #fff; box-shadow: 0 0 0 4px rgba(16,185,129,.12); }
textarea.form-control { resize: vertical; min-height: 130px; }

/* ----------- Footer ----------- */
.site-footer {
    background: var(--od-ink);
    color: #94a3b8;
    padding: 72px 0 24px;
    margin-top: 80px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: .02em; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-brand img { background: #fff; padding: 14px 20px; border-radius: 16px; height: 84px; width: auto; margin-bottom: 18px; box-shadow: 0 8px 28px -8px rgba(16,185,129,.3); }
.foot-brand p { color: #94a3b8; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #cbd5e1; font-size: .94rem; }
.site-footer a:hover { color: var(--od-green); }
.foot-info p, .foot-info a { font-size: .92rem; line-height: 1.7; }
.foot-bottom {
    padding-top: 22px;
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: .85rem;
}
.foot-bottom > span { display: inline-flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.foot-bottom a { color: #94a3b8; }
.foot-bottom a:hover { color: var(--od-green); }

.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255,255,255,.06); color: #fff;
    display: grid; place-items: center; transition: background .2s ease, color .2s ease;
}
.socials a:hover { background: var(--od-green); color: #fff; }

/* ----------- WhatsApp float ----------- */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 90;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 16px 30px -10px rgba(37,211,102,.55);
    transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }

/* ----------- Back-to-top (injected by main.js) ----------- */
.back-to-top {
    position: fixed;
    /* Stacked above the WA float (24px from bottom + 56px tall + 12px gap),
       with iPhone safe-area inset so we never sit under the home indicator. */
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    right: calc(24px + env(safe-area-inset-right, 0px));
    z-index: 89;

    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #fff;

    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    box-shadow: 0 16px 30px -10px rgba(16,185,129,.55),
                inset 0 1px 0 rgba(255,255,255,.18);

    /* Hidden initial state — JS adds .is-visible after the user scrolls */
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(.85);
    transition:
        opacity .28s ease,
        transform .35s cubic-bezier(.34, 1.56, .64, 1),
        background .25s ease,
        box-shadow .25s ease,
        visibility 0s linear .28s;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
}
.back-to-top:hover {
    transform: translateY(-3px) scale(1.04);
    background: linear-gradient(135deg, #059669 0%, #065f46 100%);
    box-shadow: 0 22px 40px -12px rgba(16,185,129,.7),
                inset 0 1px 0 rgba(255,255,255,.22);
    color: #fff;
}
.back-to-top:active { transform: translateY(-1px) scale(.97); }
.back-to-top:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(16,185,129,.35),
                0 22px 40px -12px rgba(16,185,129,.7);
}
.back-to-top svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.back-to-top .btt-label {
    font-family: var(--od-font-display);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1;
    color: rgba(255,255,255,.95);
}

/* Hide while the mobile nav is open — keeps the chrome uncluttered */
body.nav-open .back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, visibility 0s linear .15s;
}

/* Tablet */
@media (max-width: 1024px) {
    .back-to-top {
        bottom: calc(86px + env(safe-area-inset-bottom, 0px));
        right: calc(22px + env(safe-area-inset-right, 0px));
        width: 52px;
        height: 52px;
    }
    .back-to-top svg { width: 17px; height: 17px; }
}

/* Phone */
@media (max-width: 720px) {
    .back-to-top {
        bottom: calc(80px + env(safe-area-inset-bottom, 0px));
        right: calc(18px + env(safe-area-inset-right, 0px));
        width: 48px;
        height: 48px;
    }
    .back-to-top svg { width: 16px; height: 16px; }
    .back-to-top .btt-label { font-size: 8px; letter-spacing: .1em; }
}

/* Narrow phone — drop the label so the icon stays prominent */
@media (max-width: 380px) {
    .back-to-top {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        right: calc(14px + env(safe-area-inset-right, 0px));
        width: 44px;
        height: 44px;
        gap: 0;
    }
    .back-to-top .btt-label { display: none; }
    .back-to-top svg { width: 18px; height: 18px; }
}

/* Respect prefers-reduced-motion — fade only, no transform/scale */
@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: opacity .2s ease, visibility 0s linear .2s, background .2s ease;
        transform: none !important;
    }
    .back-to-top.is-visible { transform: none !important; }
    .back-to-top:hover { transform: none !important; }
}

/* ----------- Utility ----------- */
.tag-pill { display: inline-flex; align-items: center; gap: 6px; padding: .35rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--od-green-50); color: var(--od-green-700); border: 1px solid var(--od-green-100); }
.callout {
    background: var(--od-bg-mint);
    border-left: 4px solid var(--od-green);
    padding: 18px 22px;
    border-radius: 14px;
    margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ----------- Responsive ----------- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stats .stat:nth-child(2) { border-right: none; }
    .stats .stat:nth-child(1), .stats .stat:nth-child(2) { border-bottom: 1px solid var(--od-line-2); }
    .two-col, .two-col.reverse { grid-template-columns: 1fr; gap: 32px; }
    .cta-banner { grid-template-columns: 1fr; padding: 40px; }
    .contact-grid { grid-template-columns: 1fr; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento .b, .bento .b.big { grid-column: span 1; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    :root { --od-nav-h: 68px; }

    .container { padding: 0 18px; }

    /* CRITICAL: backdrop-filter on the header creates a containing block for
       its fixed-positioned descendants — that traps .primary-nav inside the
       76px header and collapses the mobile menu to a tiny scroll box.
       Disable backdrop-filter on mobile so the menu can position relative to
       the viewport as intended. */
    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: #fff;
    }

    /* Slim, single-line topbar that keeps the phone CTA accessible */
    .topbar { padding: 6px 0; font-size: .78rem; }
    .topbar .container { gap: 8px; justify-content: center; }
    .topbar-info { display: none; }
    .topbar-cta { gap: 10px; flex-wrap: nowrap; justify-content: center; }
    .topbar-cta a { white-space: nowrap; }
    .topbar-cta a[href^="mailto"], .topbar-cta .sep { display: none; }

    /* Compact header on mobile */
    .brand img { height: 48px; }
    .nav-wrap { gap: 12px; }

    .nav-toggle { display: flex; }

    /* Mobile menu — slides down from the header, fills remaining viewport */
    .primary-nav {
        position: fixed;
        /* JS sets `top` to the live header bottom so the menu sits right under it */
        top: var(--od-nav-h);
        left: 0; right: 0; bottom: 0;
        display: block; /* override desktop flex so overflow-y scroll works reliably */
        background: #fff;
        gap: 0;
        padding: 12px 18px max(20px, env(safe-area-inset-bottom));
        transform: translateX(100%);
        transition: transform .32s cubic-bezier(.4, 0, .2, 1);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        z-index: 100;
        box-shadow: -8px 0 32px rgba(0,0,0,.08);
        border-top: 1px solid var(--od-line-2);
        pointer-events: none;
    }
    .primary-nav.open { transform: translateX(0); pointer-events: auto; }
    .primary-nav a {
        display: block;
        padding: 10px 14px; font-size: 1rem; border-radius: 10px;
        border-bottom: 1px solid var(--od-line-2);
        line-height: 1.4;
    }
    .primary-nav > a:last-of-type { border-bottom: none; }
    .has-dropdown { display: block; position: static; }
    .has-dropdown > a { border-bottom: 1px solid var(--od-line-2); }
    .has-dropdown > a::after { content: "▾"; opacity: .55; margin-left: 6px; }
    .dropdown {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; padding: 2px 0 4px 12px; min-width: auto; border: none;
        margin-bottom: 0; background: transparent;
    }
    .dropdown a { font-size: .92rem; padding: 8px 12px; border-bottom: none; }

    /* Hide the desktop "Book Appointment" CTA in the header */
    .nav-cta .btn-primary { display: none; }

    /* Grids collapse to single column */
    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr; gap: 16px; }
    .bento .b, .bento .b.big { grid-column: span 1; padding: 24px 22px; }
    .stats { grid-template-columns: 1fr; }
    .stats .stat { border-right: none; border-bottom: 1px solid var(--od-line-2); padding: 28px 22px; text-align: center; }
    .stats .stat:last-child { border-bottom: none; }
    .foot-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .foot-brand { display: flex; flex-direction: column; align-items: center; }
    .foot-brand img { height: 74px; padding: 12px 16px; margin-left: auto; margin-right: auto; }
    .foot-brand p { text-align: center; }
    .site-footer ul { padding: 0; }
    .foot-info { text-align: center; }
    .foot-info p, .foot-info p.addr { justify-content: center; text-align: center; }
    .foot-info p.addr .ico { margin-top: 4px; }
    .socials { justify-content: center; }
    .form-row { grid-template-columns: 1fr; }
    .cta-banner { padding: 32px 22px; text-align: center; grid-template-columns: 1fr; }
    .cta-banner .actions { justify-content: center; }
    .contact-info-card, .form-card { padding: 24px; }

    /* All major content sections center on mobile */
    .section-head { margin-bottom: 36px; }
    .page-hero { padding: 60px 0 48px; text-align: center; }
    .page-hero .crumbs { justify-content: center; }
    .page-hero h1, .page-hero .lede { margin-left: auto; margin-right: auto; }

    /* Hero banner — center everything */
    .hero-banner .container {
        text-align: center;
        padding-top: 60px; padding-bottom: 56px;
    }
    .hero-banner .eyebrow { margin-left: auto; margin-right: auto; }
    .hero-banner h1 { max-width: none; margin-left: auto; margin-right: auto; }
    .hero-banner .lede { margin-left: auto; margin-right: auto; }
    .hero-banner .hero-cta { justify-content: center; flex-direction: column; align-items: stretch; gap: 10px; }
    .hero-banner .trust-row {
        justify-content: center; gap: 18px;
        margin-left: auto; margin-right: auto;
        text-align: center;
    }
    .hero-banner .trust-row .t { align-items: center; }
    .hero-banner .trust-row strong { font-size: 1.3rem; }
    .hero-banner .float-pill { right: 14px; top: 14px; padding: 7px 11px; font-size: .74rem; }
    .hero-banner .scroll-cue { display: none; }

    /* Equal-sized, full-width buttons on mobile (hero + CTA banner) */
    .hero-banner .hero-cta .btn,
    .cta-banner .actions .btn {
        width: 100%;
        max-width: 360px;
        margin-left: auto; margin-right: auto;
        padding: .95rem 1.2rem;
        justify-content: center;
        white-space: normal;
    }
    .cta-banner .actions { flex-direction: column; align-items: stretch; }

    /* Tables — wrap with horizontal scroll on mobile */
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px -18px; padding: 0 18px; }
    .table-wrap .compare { min-width: 560px; margin: 0; }

    /* Map iframe responsive height */
    .section-sm iframe, iframe[src*="google.com/maps"] { height: 340px; max-width: 100%; }

    /* Footer bottom: stack neatly, centered */
    .foot-bottom { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
    .foot-bottom > span { justify-content: center; }

    /* Reviews section — small tweaks */
    .reviews-head { padding: 0 18px; gap: 16px; text-align: center; }
    .reviews-head .h-left { max-width: none; }
    .reviews-head .h-right { justify-content: center; align-items: center; }
    .reviews-head .h-right .rating-pill { padding: 12px 16px; }

    /* Article — keep readable on small screens */
    .article p, .article ul, .article ol { font-size: 1rem; line-height: 1.75; }
    .article ul:not([class]), .article ol:not([class]) { padding-left: 1rem; }
}

@media (max-width: 460px) {
    :root { --od-nav-h: 58px; }
    .container { padding: 0 16px; }
    h1 { font-size: 1.85rem; }
    .section { padding: 48px 0; }
    .section-sm { padding: 40px 0; }
    .hero-banner .container { padding-top: 50px; padding-bottom: 48px; }
    .hero-banner .trust-row { gap: 14px; padding-top: 18px; margin-top: 24px; }
    .hero-banner .trust-row strong { font-size: 1.15rem; }
    .hero-banner .lede { font-size: 1rem; }
    .brand img { height: 42px; }
    .foot-brand img { height: 64px; padding: 10px 14px; }
    .section-sm iframe, iframe[src*="google.com/maps"] { height: 300px; }
    .contact-info-card, .form-card { padding: 20px; border-radius: 18px; }
    .cta-banner { padding: 26px 18px; }
    .form-card { padding: 22px 18px; }
    .reviews-head { padding: 0 16px; }
    /* Match the tighter 16px container padding so the table doesn't overflow viewport */
    .table-wrap { margin: 20px -16px; padding: 0 16px; }
    .table-wrap .compare { min-width: 520px; }
}

/* ===== Mobile / tablet defensive: prevent any horizontal scroll =====
   Every element MUST stay within its parent's logical width. Combined with
   the html/body overflow-x:hidden above, this is a belt-and-braces guard
   against rogue images, embeds, code blocks or pre-formatted text. */
@media (max-width: 1024px) {
    img, video, iframe, embed, object, canvas, svg, picture {
        max-width: 100%;
        height: auto;
    }
    pre, code, kbd, samp, table {
        max-width: 100%;
    }
    pre { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    /* iframes have intrinsic ratios; keep their height auto-scaling proportionally */
    iframe { width: 100%; }
    /* Long unbroken strings (URLs, emails) wrap instead of overflowing */
    p, li, td, th, dd, blockquote, figcaption, .lede, .meta {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

/* ----------- AI-snippet & content components ----------- */

/* Quick-answer block — designed to be picked up by AI snippets */
.quick-answer {
    background: linear-gradient(135deg, var(--od-green-50) 0%, #fff 100%);
    border: 1px solid var(--od-green-100);
    border-left: 4px solid var(--od-green);
    border-radius: var(--od-radius-lg);
    padding: 24px 28px;
    margin: 22px 0;
}
.quick-answer .qa-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .72rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--od-green-700);
    margin-bottom: 8px;
}
.quick-answer .qa-label::before {
    content: ""; width: 16px; height: 16px; border-radius: 50%;
    background: var(--od-green); display: inline-block;
    box-shadow: 0 0 0 4px rgba(16,185,129,.18);
}
.quick-answer p {
    font-size: 1.05rem; color: var(--od-ink-2); margin: 0;
    line-height: 1.65; font-weight: 500;
}
.quick-answer p strong { color: var(--od-ink); }

/* Key facts grid — short, AI-quotable cards */
.key-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 24px 0;
}
.key-facts .kf {
    background: #fff;
    border: 1px solid var(--od-line-2);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex; flex-direction: column; gap: 4px;
}
.key-facts .kf strong {
    color: var(--od-green-700); font-size: 1.5rem; font-weight: 800;
    letter-spacing: -.02em; line-height: 1.1;
}
.key-facts .kf span { font-size: .88rem; color: var(--od-slate); }

/* Stylish bullet list — for AEO content */
.bullets {
    list-style: none; padding: 0; margin: 1rem 0 1.5rem;
}
.bullets > li {
    position: relative;
    padding: 12px 14px 12px 48px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid var(--od-line-2);
    border-radius: 12px;
    color: var(--od-ink-2);
    font-size: .98rem;
    line-height: 1.55;
    transition: border-color .2s ease, transform .2s ease;
}
.bullets > li:hover { border-color: var(--od-green-100); transform: translateX(2px); }
.bullets > li::before {
    content: "";
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--od-green-50);
    border: 2px solid var(--od-green);
}
.bullets > li::after {
    content: "";
    position: absolute; left: 21px; top: 50%; transform: translateY(-65%) rotate(-45deg);
    width: 9px; height: 5px;
    border-left: 2px solid var(--od-green-700);
    border-bottom: 2px solid var(--od-green-700);
}
.bullets > li strong { color: var(--od-ink); font-weight: 700; }

/* Pill bullets — compact, scannable */
.pill-bullets {
    list-style: none; padding: 0; margin: 1rem 0 1.5rem;
    display: flex; flex-wrap: wrap; gap: 10px;
}
.pill-bullets li {
    background: var(--od-bg-soft);
    border: 1px solid var(--od-line);
    border-radius: 999px;
    padding: .55rem 1rem;
    font-size: .88rem; color: var(--od-ink-2);
    font-weight: 500; line-height: 1;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all .2s ease;
}
.pill-bullets li:hover { background: var(--od-green-50); border-color: var(--od-green-100); color: var(--od-green-700); }
.pill-bullets li::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--od-green);
}

/* Numbered icon list — for processes / steps */
.icon-list {
    list-style: none; padding: 0; margin: 1.25rem 0;
    counter-reset: ic;
}
.icon-list > li {
    counter-increment: ic;
    display: grid; grid-template-columns: 44px 1fr; gap: 14px;
    align-items: start;
    padding: 14px 0;
    border-top: 1px solid var(--od-line-2);
}
.icon-list > li:first-child { border-top: none; }
.icon-list > li::before {
    content: counter(ic, decimal-leading-zero);
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, var(--od-green-50), #fff);
    border: 1px solid var(--od-green-100);
    color: var(--od-green-700);
    display: grid; place-items: center;
    font-weight: 800; font-size: .92rem;
    font-family: var(--od-font-display);
}
.icon-list > li strong { grid-column: 2; display: block; color: var(--od-ink); margin-bottom: 2px; font-size: 1rem; }
.icon-list > li span { grid-column: 2; display: block; color: var(--od-slate); font-size: .94rem; line-height: 1.6; }

/* Comparison table */
.compare {
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: #fff;
    border: 1px solid var(--od-line-2);
    border-radius: var(--od-radius-lg);
    overflow: hidden;
    margin: 24px 0;
    font-size: .95rem;
}
.compare th, .compare td { padding: 14px 18px; text-align: left; vertical-align: top; }
.compare thead th {
    background: var(--od-bg-soft);
    font-weight: 700; color: var(--od-ink); font-size: .9rem;
    border-bottom: 1px solid var(--od-line-2);
}
.compare tbody td { border-top: 1px solid var(--od-line-2); color: var(--od-slate); }
.compare tbody tr:hover td { background: var(--od-bg-soft); }
.compare td:first-child { font-weight: 600; color: var(--od-ink); }
.compare .yes { color: var(--od-green-700); font-weight: 700; }
.compare .no { color: #b91c1c; font-weight: 700; }

/* Definition box - for "What is X" AEO blocks */
.definition {
    background: var(--od-ink);
    color: #e2e8f0;
    border-radius: var(--od-radius-lg);
    padding: 26px 28px;
    margin: 24px 0;
    position: relative;
    overflow: hidden;
}
.definition::before {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0;
    width: 5px; background: linear-gradient(180deg, var(--od-green) 0%, var(--od-green-700) 100%);
}
.definition .term {
    color: #34d399; font-size: .78rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; display: block;
}
.definition h3 { color: #fff; margin-bottom: 8px; }
.definition p { color: #cbd5e1; margin: 0; line-height: 1.65; }

/* ----------- Footer credit (Smart Web Labs chip) ----------- */
.foot-credit {
    text-align: center;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: .82rem;
    color: #64748b;
}
.swl-credit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px 9px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(16,185,129,.10), rgba(16,185,129,.02) 55%);
    border: 1px solid rgba(16,185,129,.22);
    color: #cbd5e1 !important;
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none !important;
    box-shadow: 0 8px 22px -12px rgba(16,185,129,.35), inset 0 1px 0 rgba(255,255,255,.04);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background .28s ease, color .28s ease;
    position: relative;
    overflow: hidden;
    line-height: 1;
}
/* Subtle gradient shimmer on the border (revealed on hover) */
.swl-credit::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 999px;
    background: conic-gradient(from 0deg, transparent 0%, rgba(16,185,129,.6) 25%, transparent 50%, rgba(110,231,183,.5) 75%, transparent 100%);
    opacity: 0;
    transition: opacity .45s ease;
    z-index: -1;
    filter: blur(8px);
}
.swl-credit:hover {
    transform: translateY(-2px);
    border-color: rgba(16,185,129,.5);
    background: linear-gradient(135deg, rgba(16,185,129,.18), rgba(16,185,129,.05) 60%);
    box-shadow: 0 18px 38px -14px rgba(16,185,129,.5), inset 0 1px 0 rgba(255,255,255,.08);
    color: #e2e8f0 !important;
}
.swl-credit:hover::before { opacity: .7; }

.swl-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--od-green);
    box-shadow: 0 0 0 4px rgba(16,185,129,.18);
    flex-shrink: 0;
    animation: swl-pulse 2.6s ease-in-out infinite;
}
@keyframes swl-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.55); }
    50%      { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

.swl-prefix {
    color: rgba(203,213,225,.65);
    letter-spacing: .015em;
    white-space: nowrap;
}

.swl-name {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.swl-spark {
    width: 13px; height: 13px;
    fill: var(--od-green);
    stroke: none;
    filter: drop-shadow(0 0 4px rgba(16,185,129,.55));
    transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), filter .35s ease;
    flex-shrink: 0;
}
.swl-credit:hover .swl-spark {
    transform: rotate(180deg) scale(1.18);
    filter: drop-shadow(0 0 8px rgba(110,231,183,.85));
}
.swl-text {
    font-weight: 700;
    background: linear-gradient(110deg, #ffffff 0%, #a7f3d0 45%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -.01em;
}
.swl-arrow {
    width: 11px; height: 11px;
    fill: none;
    stroke: rgba(203,213,225,.55);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .28s ease, stroke .28s ease;
    margin-left: 1px;
    flex-shrink: 0;
}
.swl-credit:hover .swl-arrow {
    stroke: var(--od-green);
    transform: translate(2px, -2px);
}

@media (max-width: 460px) {
    .swl-credit {
        padding: 8px 14px 8px 12px;
        font-size: .76rem;
        gap: 8px;
    }
    .swl-spark { width: 12px; height: 12px; }
}

/* ----------- Responsive (banner-specific) ----------- */
@media (max-width: 720px) {
    .hero-banner .container { padding-top: 60px; padding-bottom: 60px; }
    .hero-banner h1 { max-width: none; }
    .hero-banner .float-pill { right: 16px; top: 16px; padding: 8px 12px; font-size: .78rem; }
    .hero-banner .trust-row { gap: 18px; }
    .hero-banner .trust-row strong { font-size: 1.3rem; }
    .hero-banner .scroll-cue { display: none; }
    /* Wordmark stacks on top as its own row (grid order:-1), centered */
    .hero-banner .hero-ecg { width: 78%; max-width: 320px; height: 46px; margin: 0 auto 10px; }
    .hero-banner .wm-top { font-size: 15.5vw; }
    .hero-banner .wm-bot { font-size: 5.4vw; letter-spacing: .12em; -webkit-text-stroke-width: 1px; padding-right: 0; }
    .key-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
    .key-facts { grid-template-columns: 1fr; }
}

/* ----------- Inline icon system (SVG mask) ----------- */

.ico {
    display: inline-block;
    width: 16px; height: 16px;
    background-color: currentColor;
    vertical-align: -3px;
    margin-right: 8px;
    flex-shrink: 0;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.ico-phone { -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }

.ico-mail { -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E"); }

.ico-pin { -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 7-8 13-8 13s-8-6-8-13a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 7-8 13-8 13s-8-6-8-13a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }

.ico-clock { -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"); }

/* ----------- Inline SVG icon (used inside .ic boxes) ----------- */
.svg-ic {
    width: 24px; height: 24px;
    stroke: currentColor; fill: none; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
}
/* Brand / filled icons (Facebook, Instagram, WhatsApp) */
.svg-ic[stroke="none"] { fill: currentColor; stroke: none; }
.card .ic .svg-ic { width: 28px; height: 28px; }
.bento .b .svg-ic { width: 28px; height: 28px; color: var(--od-green-700); margin-bottom: 12px; }
.bento .b.green .svg-ic, .bento .b.dark .svg-ic { color: #fff; }
.dropdown a .ic .svg-ic { width: 18px; height: 18px; }
.contact-info-card .row .ic .svg-ic { width: 22px; height: 22px; }
.team-card .avatar .svg-ic { width: 24px; height: 24px; }

/* Social brand icons (footer) */
.socials a .svg-ic { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.socials a { color: #cbd5e1; }
.socials a:hover { color: #fff; }
.socials a:hover .svg-ic { color: #fff; }

/* Topbar inline icons */
.topbar-info span, .topbar-cta a, .topbar-cta span {
    display: inline-flex; align-items: center;
    gap: 0;
}
.topbar-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.topbar-cta .sep { color: rgba(255,255,255,.25); }

.foot-info a { display: inline-flex; align-items: center; }
.foot-info p.addr { display: flex; align-items: flex-start; gap: 0; color: #cbd5e1; }
.foot-info p.addr .ico { margin-top: 5px; flex-shrink: 0; }
.foot-info p { margin-bottom: 12px; }
.foot-info p:last-child { margin-bottom: 0; }

/* ----------- Google Reviews Marquee ----------- */
.reviews-section {
    padding: clamp(64px, 9vw, 110px) 0;
    background:
      radial-gradient(700px 300px at 50% 0%, rgba(16,185,129,.08), transparent 60%),
      linear-gradient(180deg, #fff 0%, var(--od-bg-soft) 100%);
    overflow: hidden;
    position: relative;
}

.reviews-head {
    max-width: var(--od-container);
    margin: 0 auto 44px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: center;
}
.reviews-head .h-left { max-width: 640px; }
.reviews-head .h-left .eyebrow { margin-bottom: 12px; }
.reviews-head .h-left h2 { margin-bottom: 10px; }
.reviews-head .h-left p { margin: 0; }
.reviews-head .h-right {
    display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}

.rating-pill {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid var(--od-line-2);
    border-radius: 16px;
    box-shadow: var(--od-shadow-sm);
}
.rating-pill .g-mark {
    width: 36px; height: 36px;
    background: #fff;
    border-radius: 50%;
    display: grid; place-items: center;
    flex-shrink: 0;
    border: 1px solid var(--od-line-2);
}
.rating-pill .g-mark svg { width: 22px; height: 22px; }
.rating-pill .meta strong {
    display: block; font-size: 1.15rem; line-height: 1.1;
    color: var(--od-ink); font-weight: 800;
    letter-spacing: -.02em;
}
.rating-pill .meta .stars {
    color: #fbbc04; letter-spacing: 1px; font-size: .92rem;
    line-height: 1; margin: 4px 0 2px;
}
.rating-pill .meta span.cnt {
    font-size: .78rem; color: var(--od-muted);
}

.h-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: .75rem 1.2rem;
    background: var(--od-ink);
    color: #fff;
    border-radius: 999px;
    font-size: .9rem; font-weight: 600;
    transition: all .25s ease;
    box-shadow: var(--od-shadow-sm);
}
.h-cta:hover {
    background: var(--od-ink-2); color: #fff;
    transform: translateY(-2px); box-shadow: var(--od-shadow-md);
}
.h-cta svg { width: 16px; height: 16px; }

.reviews-marquee {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
    padding: 18px 0;
}
.reviews-track {
    display: flex;
    gap: 22px;
    width: max-content;
    animation: scroll-rtl 80s linear infinite;
    will-change: transform;
}
.reviews-marquee:hover .reviews-track,
.reviews-track:focus-within { animation-play-state: paused; }

@keyframes scroll-rtl {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.review-card {
    flex: 0 0 380px;
    background: #fff;
    border: 1px solid var(--od-line-2);
    border-radius: 20px;
    padding: 26px 28px;
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, .07);
    display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px -8px rgba(15, 23, 42, .15);
    border-color: var(--od-green-100);
}
.review-card .head {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 14px;
}
.review-card .avatar {
    width: 48px; height: 48px; border-radius: 50%;
    color: #fff; font-weight: 700;
    display: grid; place-items: center;
    flex-shrink: 0;
    font-size: 1rem; letter-spacing: .02em;
}
.review-card .who { flex: 1; min-width: 0; }
.review-card .who strong {
    display: block;
    font-size: .98rem;
    color: var(--od-ink);
    margin: 0;
    font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.review-card .who span {
    font-size: .8rem;
    color: var(--od-muted);
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 2px;
}
.review-card .head .g-badge {
    width: 28px; height: 28px; border-radius: 50%;
    background: #fff;
    display: grid; place-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    flex-shrink: 0;
    border: 1px solid var(--od-line-2);
}
.review-card .head .g-badge svg { width: 16px; height: 16px; }

.review-card .stars {
    color: #fbbc04;
    font-size: 1.05rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.review-card p {
    font-size: .95rem;
    line-height: 1.6;
    color: var(--od-ink-2);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-card .ftr {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--od-line);
    font-size: .78rem;
    color: var(--od-muted);
}
.review-card .ftr .verified {
    color: var(--od-green-700);
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 4px;
}
.review-card .ftr .verified::before {
    content: ""; width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--od-green-50);
    border: 2px solid var(--od-green);
    position: relative;
}

/* Avatar gradient color variants (Google-style colorful) */
.review-card .avatar.c1 { background: linear-gradient(135deg, #f97316, #ea580c); }
.review-card .avatar.c2 { background: linear-gradient(135deg, #10b981, #047857); }
.review-card .avatar.c3 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.review-card .avatar.c4 { background: linear-gradient(135deg, #ec4899, #be185d); }
.review-card .avatar.c5 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.review-card .avatar.c6 { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.review-card .avatar.c7 { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.review-card .avatar.c8 { background: linear-gradient(135deg, #f59e0b, #b45309); }

/* Reviews invite panel (replaces marquee) */
.reviews-invite {
    max-width: var(--od-container);
    margin: 0 auto;
    padding: 0 24px;
}
.review-invite-card {
    background: #fff;
    border: 1px solid var(--od-line-2);
    border-radius: 20px;
    padding: 56px 48px;
    text-align: center;
    box-shadow: var(--od-shadow-sm);
}
.ri-logo {
    width: 72px; height: 72px;
    background: #fff;
    border: 1px solid var(--od-line-2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.ri-logo svg { width: 40px; height: 40px; }
.ri-label {
    font-size: .8rem; font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase; color: var(--od-muted);
    margin: 0 0 8px;
}
.ri-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800; color: var(--od-ink);
    margin: 0 0 14px; letter-spacing: -.02em;
}
.ri-desc {
    font-size: 1rem; color: var(--od-slate);
    max-width: 560px; margin: 0 auto 32px;
    line-height: 1.65;
}
.ri-actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .reviews-head { grid-template-columns: 1fr; gap: 20px; }
    .reviews-head .h-right { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 720px) {
    .reviews-invite { padding: 0 18px; }
    .review-invite-card { padding: 36px 22px; }
    .ri-actions .btn { width: 100%; max-width: 360px; justify-content: center; }
    .rating-pill .meta strong { font-size: 1rem; }
}

/* ============================================================
   Decorative SVG textures & accents — soften the bright white
   ============================================================ */

/* Soft-background sections: subtle medical cross + dot pattern */
.section[style*="bg-soft"] {
    background-color: var(--od-bg-soft) !important;
    background-image: url("../images/pattern-medical.svg") !important;
    background-size: 80px 80px !important;
    background-repeat: repeat !important;
    background-position: 0 0 !important;
    position: relative;
}
.section[style*="bg-soft"] > .container {
    position: relative;
    z-index: 1;
}

/* Plain white sections: ultra-subtle dot grid (skip legal pages with .legal-doc) */
.section:not([style]):not(.reviews-section) {
    background-image: url("../images/pattern-dots.svg");
    background-size: 36px 36px;
    background-repeat: repeat;
    background-position: 0 0;
}
.legal-doc .section,
.section.no-pattern {
    background-image: none;
}

/* Inner page-hero: pulse SVG accent on the right */
.page-hero {
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    width: 460px;
    height: 260px;
    background: url("../images/accent-pulse.svg") no-repeat center/contain;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}
.page-hero .container {
    position: relative;
    z-index: 1;
}
@media (max-width: 900px) {
    .page-hero::after {
        width: 320px;
        height: 180px;
        right: -60px;
        opacity: 0.35;
    }
}

/* Inline animated pulse — injected by main.js into every .page-hero.
   Required because the original ::after uses the SVG as a CSS background-image,
   which sandboxes the SVG so neither SMIL nor CSS animations inside it ever
   run. When JS adds the .has-anim-pulse class, the static CSS fallback above
   is suppressed so we don't render both layers. */
.page-hero.has-anim-pulse::after { display: none; }
.page-hero-pulse {
    position: absolute;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    width: 460px;
    height: 260px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}
@media (max-width: 900px) {
    .page-hero-pulse {
        width: 320px;
        height: 180px;
        right: -60px;
        opacity: 0.35;
    }
}

/* "About snapshot" / two-col illustrative SVG: drop the heavy box-shadow,
   keep rounded corners, sit nicely against the dotted white */
.two-col img[src$=".svg"] {
    box-shadow: none;
    background: transparent;
    border-radius: var(--od-radius-xl);
}

/* Reviews section keeps the existing visual treatment — patterns off */
.reviews-section {
    background-image: none;
}

/* ----------- Reduced-motion: pause/disable non-essential animations,
   but keep transitions short rather than eliminated, and let users
   scroll the reviews carousel manually instead of animating it ----- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .15s !important;
        scroll-behavior: auto !important;
    }
    .reviews-marquee {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
        -webkit-overflow-scrolling: touch;
    }
    .reviews-track {
        animation: none !important;
    }
    .hero-banner .float-pill .dot { animation: none !important; }
    .hero-banner .scroll-cue { display: none; }
}



/* =========================================================
   Ultra-premium 3D gradient cards
   Soft diagonal gradient + brand-tinted corner sheen,
   inset top-bevel highlight, layered depth shadows.
   ========================================================= */
.card,
.bento .b,
.post-card,
.team-card,
.dr-stat,
.review-card,
.review-invite-card,
.key-facts .kf,
.form-card,
.stats,
.rating-pill {
    background:
        radial-gradient(135% 95% at 0% 0%, rgba(16,185,129,.055) 0%, transparent 46%),
        linear-gradient(157deg, #ffffff 0%, #f2f8f5 100%);
    border-color: rgba(16,185,129,.13);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.9),
        0 1px 2px rgba(15,23,42,.04),
        0 12px 22px -12px rgba(15,23,42,.13),
        0 30px 48px -30px rgba(4,120,87,.20);
    transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.card:hover,
.bento .b:hover,
.post-card:hover,
.team-card:hover,
.dr-stat:hover,
.review-card:hover,
.review-invite-card:hover,
.key-facts .kf:hover {
    transform: translateY(-6px);
    border-color: rgba(16,185,129,.30);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,1),
        0 2px 4px rgba(15,23,42,.05),
        0 22px 40px -14px rgba(15,23,42,.18),
        0 46px 72px -34px rgba(4,120,87,.34);
}

/* Raised 3D icon chips inside cards & numbered lists */
.card .ic,
.icon-list > li::before {
    background: linear-gradient(145deg, #ffffff 0%, var(--od-green-50) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.95),
        inset 0 -2px 4px rgba(4,120,87,.10),
        0 8px 16px -8px rgba(4,120,87,.38);
}
.card { transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s ease; }
.card .ic { transition: transform .3s ease; }
.card:hover .ic { transform: translateY(-2px) scale(1.04); }

/* Dark bento — deep glass with a brand glow */
.bento .b.dark {
    background:
        radial-gradient(120% 95% at 100% 0%, rgba(16,185,129,.20), transparent 55%),
        linear-gradient(160deg, #10203a 0%, #0b1320 60%, #081019 100%);
    border-color: rgba(255,255,255,.06);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.07),
        0 24px 50px -24px rgba(0,0,0,.55);
}
/* Green bento — luminous emerald gradient */
.bento .b.green {
    background:
        radial-gradient(120% 95% at 0% 0%, rgba(255,255,255,.25), transparent 55%),
        linear-gradient(140deg, #10b981 0%, #047857 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.28),
        0 24px 50px -22px rgba(4,120,87,.55);
}

/* Contact info card (green) — add bevel + depth, keep its gradient */
.contact-info-card {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.25),
        0 28px 60px -22px rgba(4,120,87,.5);
}

/* Doctor quote — premium surface, keep the green left accent */
.dr-quote {
    background:
        radial-gradient(130% 90% at 0% 0%, rgba(16,185,129,.06), transparent 50%),
        linear-gradient(157deg, #ffffff 0%, #f2f8f5 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.9),
        0 14px 30px -16px rgba(4,120,87,.22);
}

/* FAQ items — gentle premium lift (lighter so the stack stays clean) */
.faq-item {
    background: linear-gradient(157deg, #ffffff 0%, #f5faf7 100%);
    box-shadow: 0 1px 2px rgba(15,23,42,.03), 0 10px 22px -16px rgba(15,23,42,.16);
}
.faq-item[open] {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 14px 30px -16px rgba(4,120,87,.2);
}

@media (prefers-reduced-motion: reduce) {
    .card:hover, .bento .b:hover, .post-card:hover, .team-card:hover,
    .dr-stat:hover, .review-card:hover, .review-invite-card:hover,
    .key-facts .kf:hover { transform: none; }
}


/* =========================================================
   Premium, ultra-modern mobile navigation
   Glass drawer + emerald pill links + animated hamburger
   ========================================================= */
@media (max-width: 720px) {

    /* ---- Hamburger button: glassy chip that morphs to a glowing X ---- */
    .nav-toggle {
        width: 48px; height: 48px; border-radius: 14px;
        background: linear-gradient(145deg, #ffffff 0%, var(--od-green-50) 100%);
        border: 1px solid rgba(16,185,129,.20);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 6px 16px -8px rgba(4,120,87,.35);
        transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .2s ease;
    }
    .nav-toggle:hover, .nav-toggle:active {
        background: linear-gradient(145deg, var(--od-green-50), #d1fae5);
        border-color: var(--od-green);
        transform: translateY(-1px);
    }
    .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
        background: var(--od-green-700);
        height: 2.5px; border-radius: 3px;
    }
    .nav-toggle[aria-expanded="true"] {
        background: linear-gradient(145deg, #10b981 0%, #047857 100%);
        border-color: #047857;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 22px -8px rgba(16,185,129,.6);
    }
    .nav-toggle[aria-expanded="true"] span::before,
    .nav-toggle[aria-expanded="true"] span::after { background: #ffffff; }

    /* ---- Drawer panel: frosted glass with an emerald glow ---- */
    .primary-nav {
        top: var(--od-nav-h);
        padding: 18px 16px max(24px, env(safe-area-inset-bottom));
        background:
            radial-gradient(130% 60% at 100% 0%, rgba(16,185,129,.12), transparent 62%),
            linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(241,249,245,.94) 100%);
        -webkit-backdrop-filter: saturate(170%) blur(14px);
        backdrop-filter: saturate(170%) blur(14px);
        border-top: 1px solid rgba(16,185,129,.14);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.8), -20px 0 60px -22px rgba(4,120,87,.30);
    }

    /* ---- Nav links as premium pills ---- */
    .primary-nav a {
        position: relative;
        display: block;
        padding: 14px 18px 14px 16px;
        margin-bottom: 4px;
        font-size: 1.05rem; font-weight: 600;
        color: var(--od-ink);
        border-bottom: none;
        border-radius: 14px;
        transition: color .2s ease, background .25s ease, box-shadow .25s ease, padding-left .25s ease;
    }
    .has-dropdown > a, .primary-nav > a:last-of-type { border-bottom: none; }

    /* left accent bar — grows in on hover/active */
    .primary-nav a::before {
        content: ""; position: absolute; left: 6px; top: 50%;
        transform: translateY(-50%) scaleY(0);
        width: 3px; height: 56%; border-radius: 3px;
        background: linear-gradient(180deg, #34d399, #047857);
        transition: transform .25s ease;
    }
    /* chevron on top-level links — slides on hover */
    .primary-nav > a::after {
        content: "\203A"; position: absolute; right: 16px; top: 50%;
        transform: translateY(-50%);
        font-size: 1.3rem; line-height: 1; color: var(--od-muted);
        transition: transform .25s ease, color .2s ease;
    }
    .primary-nav a:hover, .primary-nav a.active {
        color: var(--od-green-700);
        padding-left: 20px;
        background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(16,185,129,.03));
        box-shadow: inset 0 0 0 1px rgba(16,185,129,.20);
    }
    .primary-nav a:hover::before, .primary-nav a.active::before { transform: translateY(-50%) scaleY(1); }
    .primary-nav > a:hover::after, .primary-nav > a.active::after {
        transform: translateY(-50%) translateX(4px); color: var(--od-green-700);
    }

    /* ---- Radiology submenu (always expanded on mobile) ---- */
    .has-dropdown > a::after {
        content: "\25BE"; right: 16px; left: auto;
        font-size: .8rem; color: var(--od-muted);
    }
    .dropdown {
        padding: 4px 0 6px 14px;
        margin: 2px 0 6px 16px;
        border-left: 2px solid rgba(16,185,129,.25);
        background: transparent;
    }
    .dropdown a {
        font-size: .98rem; font-weight: 500;
        padding: 11px 14px; margin-bottom: 2px;
        color: var(--od-slate); border-radius: 12px;
    }
    .dropdown a .ic {
        width: 32px; height: 32px; border-radius: 9px;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 4px 10px -6px rgba(4,120,87,.4);
    }
    .dropdown a:hover { color: var(--od-green-700); background: rgba(16,185,129,.08); }

    /* ---- Staggered entrance when the drawer opens ---- */
    .primary-nav.open > a,
    .primary-nav.open > .has-dropdown {
        animation: navItemIn .42s cubic-bezier(.22,.61,.36,1) both;
    }
    .primary-nav.open > *:nth-child(1) { animation-delay: .05s; }
    .primary-nav.open > *:nth-child(2) { animation-delay: .10s; }
    .primary-nav.open > *:nth-child(3) { animation-delay: .15s; }
    .primary-nav.open > *:nth-child(4) { animation-delay: .20s; }
    .primary-nav.open > *:nth-child(5) { animation-delay: .25s; }
    .primary-nav.open > *:nth-child(6) { animation-delay: .30s; }
}
@keyframes navItemIn {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
    .primary-nav.open > a, .primary-nav.open > .has-dropdown { animation: none; }
}
