/* ============================================================
   TSO KYLE — styles.css
   ------------------------------------------------------------
   TABLE OF CONTENTS (sections appear in this order)
     1. CSS variables (tokens)             — :root
     2. Base type, links, headings
     3. Header, nav, logo, urgent bar
     4. Split hero (+ mobile stack)
     5. Main layout & section rhythm
     6. Buttons & shared CTA
     7. Grid system & cards
        (base card → page-specific sections → variants:
         imaged / featured / kids → refresh → link-pinning
         → stretched-link click area, in cascade order)
     8. Interior page sections (insurance, neurolens,
        myopia, sclerals, FAQ, doctors page)
     9. Page rhythm (homepage + interior bands), gallery, proof strip,
        doctor duo, reviews + featured + CTA, insurance strip
    10. CTA band, footer
    11. Consolidated responsive breakpoints (≤930px, ≤560px)

   ORDER-SENSITIVE RULES — do not reorder casually:
   - `.card:not(.card-featured)` flex rule must stay AFTER
     `.card-featured` (grid) and card variant blocks.
   - `main .hero` overrides generic `section` sizing by
     specificity; mobile hero stack uses matching
     `main .hero ...` selectors for the same reason.
   - `main h2` (interior override) follows base `h2`.
   - Appended blocks at end of file intentionally win
     same-specificity conflicts; consolidate with care.
   ============================================================ */

/* styles.css — TSO Kyle
   Cleaned & organized: March 2026
   =============================== */

/* === CSS VARIABLES === */
:root {
    /* Brand colors — aligned with TSO corporate palette */
    --primary: #16324c;
    --accent: #1d5fae;
    --accent-hover: #16497f;
    --cta: #c13a2e;
    --urgent: #b22d2d;

    /* Photo-derived palette (office limestone, pendant glass) */
    --stone: #f0e9db;
    --stone-deep: #e2d6bd;
    --teal: #1f6b74;

    /* Neutrals */
    --white: #ffffff;
    --text: #2f3742;
    --text-muted: #55606c;
    --light-bg: #f9f9f9;
    --alt-bg: #f4f6f7;
    --border: #eeeeee;
    --border-dark: #dddddd;

    /* Footer palette */
    --footer-bg: #1a3a5c;
    --footer-text: #ecf0f1;
    --footer-muted: #bdc3c7;
    --footer-dim: #a9b6c1;
    --footer-rule: #253d52;
    --footer-heading: #6aaddb;

    /* Layout */
    --content-width: 1100px;
    --narrow-width: 900px;
    --radius: 8px;
    --radius-sm: 4px;
    --radius-btn: 12px;   /* shared button radius (matches hero CTAs) */
    --radius-pill: 20px;
}


/* === GLOBAL RESETS & BASE === */
*  { box-sizing: border-box; }

/* Skip link — visible only when focused via keyboard */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 0 0 var(--radius-sm) 0;
    z-index: 2000;
    font-weight: 600;
}
.skip-link:focus {
    left: 0;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: color 0.3s;
}
a:hover { color: var(--accent-hover); }
main p a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 18px;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}


/* === URGENT BAR === */
.urgent-bar {
    background: var(--urgent);
    color: var(--white);
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
}
.urgent-bar a {
    color: var(--white);
    text-decoration: underline;
    margin-left: 5px;
}


/* === HEADER & NAVIGATION === */
/* Sticky wrapper for header + widget */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 70px;
    min-height: 70px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1001;
}
.logo img { display: block; height: 38px; width: auto; }
.nav-list > li > a { white-space: nowrap; }
@media (max-width: 1099px) {
    .logo img { height: 32px; }
}
@media (max-width: 599px) {
    .logo img { height: 30px; }
}
@media (min-width: 901px) and (max-width: 1199px) {
    .nav-list { gap: 12px; }
    .nav-list > li > a { font-size: 0.92rem; }
}

.nav-list {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.nav-list a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
}
.nav-list a:hover { color: var(--accent); }
.nav-list a[aria-current="page"] {
    color: var(--accent);
    font-weight: 700;
}

.nav-cta {
    background-color: var(--cta);
    color: var(--white) !important;
    padding: 10px 16px;
    border-radius: var(--radius-btn);
    font-weight: bold;
    white-space: nowrap;
}
.nav-cta:hover { background-color: var(--urgent); }

/* Dropdowns */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    list-style: none;
    padding: 10px 0;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover {
    background-color: var(--light-bg);
    color: var(--accent);
}

/* Mobile hamburger */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    flex-shrink: 0;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: 0.4s;
}

/* In-drawer close button — hidden on desktop, shown in mobile drawer */
.nav-close-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-size: 2.2rem;
    line-height: 1;
}

/* Home link — mobile drawer only, hidden on desktop */
.nav-home-item { display: none; }

/* Mobile book button (visible only on mobile, between logo and hamburger) */
.mobile-book-btn {
    display: none;
    background-color: var(--cta);
    color: var(--white) !important;
    padding: 10px 16px;
    border-radius: var(--radius-btn);
    font-weight: bold;
    font-size: 0.85rem;
    margin-left: auto;
    margin-right: 12px;
    z-index: 1001;
    white-space: nowrap;
    flex-shrink: 0;
}


/* === SPLIT HERO === */
main .hero {
    background: var(--stone);
    color: var(--primary);
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: stretch;
    overflow: hidden;
    /* escape main's 20px padding and section max-width for full-bleed */
    max-width: none;
    margin: -20px -20px 0;
    padding: 0;
}
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 18px;
    padding: clamp(40px, 7vw, 88px) clamp(24px, 5vw, 72px);
    max-width: 620px;
    justify-self: end;
    width: 100%;
}
.hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    margin: 0;
}
.hero h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
    color: var(--primary);
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
    max-width: none;
}
.hero p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    margin: 0;
    max-width: 46ch;
}
.hero-cta {
    background: var(--cta);
    color: var(--white);
    padding: 15px 30px;
    font-size: 1.05rem;
    border-radius: var(--radius-btn);
    font-weight: 700;
    display: inline-block;
    margin-top: 6px;
}
.hero-cta:hover { background: #a92f24; color: var(--white); }
.hero-secondary {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}
.hero-secondary a { font-weight: 700; color: var(--accent); }
.hero-media { position: relative; min-height: 320px; }
.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% 30%;
    border-radius: 260px 0 0 0;
}
@media (max-width: 899px) {
    main .hero { grid-template-columns: 1fr; }
    main .hero .hero-media { order: -1; min-height: 0; aspect-ratio: 3 / 2; }
    main .hero .hero-media img { position: static; height: auto; border-radius: 0 0 0 120px; }
    main .hero .hero-content { justify-self: stretch; max-width: none; }
}

/* === PAGE HERO (interior page header image) === */
.page-hero {
    max-width: var(--narrow-width);
    margin: 24px auto 0;
    padding: 0 20px;
}
.page-hero img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}

/* === MAIN CONTENT LAYOUT === */
main {
    padding: 20px;
}

/* Default section sizing (homepage cards, etc.) */
section {
    padding: 44px 20px;
    max-width: var(--content-width);
    margin: 0 auto;
}

/* Narrower constraint for text-heavy service pages */
main section,
main > header {
    max-width: var(--narrow-width);
    margin-left: auto;
    margin-right: auto;
}

main h1 {
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    max-width: var(--narrow-width);
    margin-left: auto;
    margin-right: auto;
}
main h2 {
    color: var(--primary);
    margin-top: 24px;
}
main h3 {
    color: var(--primary);
    margin-top: 20px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

.full-bleed-bg {
    background-color: var(--alt-bg);
    margin: 0 -20px; /* escape main's 20px side padding, like .hero */
}


/* === SHARED CTA BUTTON === */
.cta-button {
    background-color: var(--cta);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: var(--radius-btn);
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
    transition: background-color 0.3s;
}
.cta-button:hover {
    background-color: var(--urgent);
    color: var(--white);
}


/* === GRID SYSTEM === */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tech-grid,
.lens-grid,
.service-grid,
.treatment-grid,
.symptom-grid,
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    text-align: center;
    margin-top: 20px;
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}


/* === CARDS (shared base) === */
.card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.2s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.card h3 {
    color: var(--accent);
    margin-top: 0;
}
.card-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
}

/* Service-page card variants (shared pattern) */
.tech-card,
.lens-card,
.service-card,
.symptom-card,
.treatment-card,
.compare-col,
.info-card {
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--radius);
    background: #fafafa;
}

.info-card {
    background: var(--light-bg);
    padding: 30px;
}
.info-card h3 {
    color: var(--accent);
    border-bottom: 2px solid var(--border-dark);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Comparison columns (scleral / surgery pages) */
.compare-col h3 {
    color: #e67e22;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 10px;
    display: inline-block;
}
.compare-col.blue h3 {
    color: var(--accent);
    border-color: var(--accent);
}


/* === CALLOUT / HIGHLIGHT BOXES === */
.highlight-box {
    background-color: #eaf2f8;
    border-left: 5px solid var(--accent);
    padding: 15px;
    margin: 20px 0;
}

.alert-box {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}


/* === TECH / BADGE / BOX ELEMENTS === */
.tech-highlight {
    background: var(--light-bg);
    border: 1px solid var(--border-dark);
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 20px;
}

.tech-section {
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 30px;
}

.tech-badge {
    background: #005596;
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8em;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.tech-box {
    background: var(--alt-bg);
    border: 1px solid #b0c4de;
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 15px;
}
.tech-box strong { color: var(--accent); }

.tech-label {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
    margin-bottom: 5px;
    display: block;
}


/* === ABOUT / BIO PAGE === */
.bio-section {
    padding: 80px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}
.bio-section header {
    text-align: center;
    margin-bottom: 40px;
}
.bio-section h1 {
    /* auto side margins restore the centring that `main h1` sets;
       a bare `margin: 0 0 0.5em 0` here was overriding it */
    margin: 0 auto 0.5em;
    font-size: clamp(2.2rem, 5vw, 3rem);
}
.bio-section .subtitle {
    margin: 0;
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 500;
}

.bio-container {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    max-width: var(--content-width);
    margin: 40px auto 0;
}
.bio-image {
    flex: 0 0 300px;
    max-width: 300px;
    min-width: 240px;
}
.bio-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.bio-text {
    flex: 2;
}

.meet-doctor-section {
    padding: 44px 20px;
}



/* === INSURANCE PAGE === */
.insurance-hero {
    background: var(--alt-bg);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 40px;
    max-width: var(--content-width);
}

.plan-card.vision {
    border-top: 5px solid #1abc9c;
    background: var(--white);
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.plan-card.vision h3 { color: #16a085; }

.plan-card.medical {
    border-top: 5px solid var(--accent);
    background: var(--white);
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.plan-card.medical h3 { color: var(--accent); }

.financing-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.financing-icon { font-size: 2em; }

.plan-name {
    background: #eee;
    padding: 8px 15px;
    border-radius: var(--radius-pill);
    font-size: 0.9em;
    font-weight: bold;
    color: var(--text-muted);
    display: inline-block;
}

.brand-item {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    color: var(--text-muted);
}


/* === OPTICAL GALLERY: SAFETY EYEWEAR === */
.safety-highlight {
    background: var(--primary);
    color: var(--footer-text);
    padding: 30px;
    border-radius: var(--radius);
    margin-top: 30px;
}
.safety-highlight h2 {
    color: #f1c40f;
    border-bottom: 1px solid var(--text-muted);
    padding-bottom: 10px;
}
.safety-highlight ul {
    list-style-type: square;
    color: var(--border-dark);
}


/* === NEUROLENS PAGE === */
.symptom-list {
    list-style: none;
    padding: 0;
}
.symptom-list li {
    margin-bottom: 10px;
    font-weight: bold;
}
.symptom-item {
    padding: 10px 0;
}
.check-icon {
    color: var(--cta);
    margin-right: 10px;
    font-size: 1.2em;
}


/* === MYOPIA PAGE === */
.keyword-sub {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    display: block;
    margin-bottom: 10px;
}


/* === LOCATION / CONTACT PAGES === */
.info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.icon {
    font-size: 1.5em;
    margin-right: 15px;
    color: var(--primary);
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.btn-book {
    background: var(--cta);
    color: var(--white);
    padding: 12px 25px;
    border-radius: var(--radius-btn);
    font-weight: bold;
    flex: 1;
    text-align: center;
}
.btn-call {
    background: var(--primary);
    color: var(--white);
    padding: 12px 25px;
    border-radius: var(--radius-btn);
    font-weight: bold;
    flex: 1;
    text-align: center;
}

.map-container {
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-dark);
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* === SCLERAL LENSES === */
.lens-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 10px;
}


/* === FAQ === */
.faq-item {
    margin-bottom: 25px;
}
.faq-item h3 {
    margin-bottom: 5px;
}


/* === FOOTER === */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 20px 40px;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px 60px;
}

.footer-col,
.footer-nav {
    flex: 1;
    min-width: 240px;
}

.footer-col h3,
.footer-nav h3 {
    color: var(--footer-heading);
    font-size: 1.25rem;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--footer-rule);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-col ul,
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li,
.footer-nav li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-col a,
.footer-nav a {
    color: var(--footer-muted);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col a:hover,
.footer-nav a:hover {
    color: var(--white);
    text-decoration: underline;
}

.nap-address {
    font-style: normal;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.call-btn {
    display: inline-block;
    background: var(--cta);
    color: var(--white) !important;
    padding: 10px 18px;
    border-radius: var(--radius-btn);
    font-weight: bold;
    margin: 15px 0 20px;
    transition: background 0.3s;
}
.call-btn:hover {
    background: var(--urgent);
}

.hours-info,
.payment-info,
.insurance-info {
    margin: 20px 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--footer-muted);
}
.hours-info strong,
.payment-info strong,
.insurance-info strong {
    color: var(--footer-text);
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.payment-section {
    border-top: 1px solid var(--footer-rule);
    padding-top: 20px;
    margin-top: 15px;
}

.verify-note {
    display: block;
    margin-top: 12px;
    font-size: 0.88rem;
    color: var(--footer-dim);
    line-height: 1.45;
}
.verify-note a { color: var(--footer-muted); text-decoration: underline; }
.verify-note a:hover { color: var(--white); }

.footer-col:last-child > p:first-of-type {
    margin-top: 0;
}

.footer-bottom {
    border-top: 1px solid var(--footer-rule);
    padding-top: 25px;
    margin-top: 50px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--footer-dim);
}
.footer-bottom a {
    color: var(--footer-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.footer-bottom a:hover { color: var(--footer-text); }


/* ===================================================
   RESPONSIVE — consolidated into two breakpoints
   =================================================== */

/* Tablet / small desktop (≤ 930px) */
@media (max-width: 930px) {

    /* Mobile nav drawer */
    .mobile-menu-btn { display: block; }
    .mobile-book-btn { display: block; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: 0.3s;
        display: block;
        padding-top: 80px;
        overflow-y: auto;
        z-index: 1002;
    }
    .main-nav.active { right: 0; }

    .nav-home-item { display: block; }

    .nav-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 14px;
        right: 16px;
        width: 44px;
        height: 44px;
        z-index: 1003;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
    }
    .nav-overlay.active { display: block; }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .nav-list li { width: 100%; }
    .nav-list a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1.1rem;
    }

    .dropdown { display: block; height: auto; }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: var(--light-bg);
        padding-left: 20px;
    }
    .dropdown.active .dropdown-menu { display: block; }

    .nav-cta {
        text-align: center;
        margin: 20px;
        width: auto;
        display: inline-block;
    }

    /* Hamburger → X animation */
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .mobile-menu-btn.active .bar:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Footer stacking */
    .footer-container {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }
    .footer-col h3,
    .footer-nav h3 {
        display: block;
        margin: 0 auto 15px;
    }
    .call-btn {
        margin: 20px auto;
    }
    .payment-section {
        padding-top: 25px;
        margin-top: 20px;
    }
    .hours-info,
    .payment-info,
    .insurance-info {
        max-width: 380px;
        margin: 20px auto;
    }
    .verify-note {
        font-size: 0.85rem;
    }
}

/* Phone (≤ 768px) */
@media (max-width: 768px) {

    /* Stack all two-column grids */
    .tech-grid,
    .comparison-grid,
    .symptom-grid,
    .treatment-grid,
    .split-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Bio layout */
    .bio-container {
        flex-direction: column;
    }
}

/* === DOCTORS PAGE === */
.doctor-name {
    text-align: left;
    border-bottom: 2px solid var(--stone-deep);
    padding-bottom: 10px;
    margin-bottom: 24px;
}
.doctor-creds {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-muted);
    margin-top: 6px;
}

/* === REVIEWS === */
.full-bleed-stone { background: var(--stone); margin: 0 -20px; /* escape main's 20px side padding */ }
.reviews-section h2 { margin-bottom: 12px; }
.rating-line {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0 0 36px;
}
.rating-line strong { color: var(--primary); font-size: 1.15rem; }
.stars { color: #e8a413; letter-spacing: 2px; }
.review-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 760px) {
    .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.review-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin: 0;
    box-shadow: 0 2px 8px rgba(22, 50, 76, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.review-card p { margin: 0 0 14px; color: var(--text); font-size: 0.98rem; }
.review-card footer { color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.hero-rating { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.hero-rating strong { color: var(--primary); }

/* === CTA BAND === */
.cta-band { background: var(--primary); color: var(--white); }
.cta-band-areas {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 18px 0 0;
}
.cta-band-inner {
    max-width: var(--narrow-width);
    margin: 0 auto;
    padding: 48px 20px;
    text-align: center;
}
.cta-band-heading {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--white);
}
.cta-band-sub { color: #c9d6e2; margin: 0 0 24px; }
.cta-band-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.cta-band-phone { color: var(--white); font-weight: 700; text-decoration: underline; }
.cta-band-phone:hover { color: var(--stone); }

/* === INSURANCE STRIP === */
#insurance-strip { text-align: center; padding-top: 30px; padding-bottom: 50px; }
.insurance-strip-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    margin: 0 0 8px;
}
.insurance-strip-plans { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* === CARD REFRESH === */
.card {
    border: 1px solid var(--border-dark);
    transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 6px 18px rgba(22, 50, 76, 0.10); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
    .card, .card:hover { transition: none; transform: none; }
}

/* === PAGE RHYTHM (homepage + interior banding) === */
/* Interior pages: wrap a <section> in .full-bleed-stone or
   .full-bleed-bg (same pattern as homepage reviews band) to
   create an alternating band. Wrapper escapes main's side
   padding; the inner section keeps its own width constraint. */
#welcome { padding-bottom: 0; }
#meet-doctor { padding-top: 20px; }

/* Comprehensive exams: flagship service gets full-width emphasis at top of grid */
#services .card:first-child {
    grid-column: 1 / -1;
    border-left: 4px solid var(--accent);
}

/* === FEATURED SERVICE CARD (photo split) === */
.card-featured {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
}
.card-featured .card-featured-text { padding: 24px 28px; }
.card-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (min-width: 760px) {
    .card-featured { grid-template-columns: 1fr 400px; }
}
@media (max-width: 759px) {
    .card-featured img { aspect-ratio: 3 / 2; height: auto; }
}

/* === OPTICAL GALLERY SHOWCASE === */
.gallery-feature {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.gallery-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}
.gallery-feature-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (min-width: 760px) {
    .gallery-feature { grid-template-columns: 2fr 1fr; }
    .gallery-feature-side { grid-template-columns: 1fr; }
}
.gallery-cta { text-align: center; margin: 28px 0 0; }

/* === TOP-IMAGE SERVICE CARDS === */
.card-imaged { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-imaged .card-img {
    width: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    display: block;
}
.card-imaged .card-body { padding: 20px 24px 24px; }

/* === PEDIATRIC DESIGNED CARD === */
.card-kids {
    background: var(--stone);
    border-color: var(--stone-deep);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}
.card-kids .card-img { background: var(--stone); }
.card-kids .card-body { padding: 18px 24px 24px; }
.card-kids h3 { font-size: 1.45rem; }


/* === DOCTOR DUO === */
.doctor-duo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 680px;
    margin: 0 auto;
}
@media (min-width: 700px) {
    .doctor-duo { grid-template-columns: 1fr 1fr; }
}
.doctor-profile {
    text-align: left;
    max-width: 300px;
    margin-inline: auto;
}
.doctor-profile img {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: 50% 20%;
    border-radius: var(--radius);
    margin: 0 0 14px;
    display: block;
}
.doctor-profile h3 { margin: 0 0 2px; color: var(--primary); }
.doctor-profile-creds {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-muted);
    margin: 0 0 10px;
    text-wrap: balance;
}
.doctor-profile p { font-size: 0.97rem; color: var(--text); margin: 0; }
.doctor-duo-cta { text-align: center; margin: 30px 0 0; }

/* === PROOF STRIP === */
.proof-strip {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px 28px;
}
@media (min-width: 560px) { .proof-strip { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .proof-strip { grid-template-columns: repeat(4, 1fr); } }
.proof-strip li {
    position: relative;
    padding-left: 30px;
}
.proof-strip li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 800;
    color: var(--teal);
    font-size: 1.1rem;
}
.proof-title {
    display: block;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.01em;
}
.proof-sub {
    display: block;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* === FEATURED REVIEW === */
.review-featured {
    position: relative;
    max-width: 720px;
    margin: 0 auto 36px;
    padding: 8px 20px 0;
    text-align: left;
}
.review-featured::before {
    content: "\201C";
    position: absolute;
    top: -46px;
    left: 0;
    font-size: 9rem;
    line-height: 1;
    color: var(--stone-deep);
    font-family: Georgia, serif;
    z-index: -1;
}
.review-featured p {
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 600;
    color: var(--primary);
    line-height: 1.45;
    margin: 0 0 12px;
}
.review-featured footer { color: var(--text-muted); font-weight: 600; }
.review-meta {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.02em;
}
.review-card .review-meta { margin-top: 6px; }
.review-featured .review-meta { display: inline; margin-left: 8px; }

/* 3-card review row on desktop */
@media (min-width: 860px) {
    .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Book Appointment: first in source (mobile drawer top), last visually on desktop row */
@media (min-width: 931px) {
    .nav-cta-item { order: 99; }
}

/* === PIN CARD LINKS TO BOTTOM === */
.card:not(.card-featured) { display: flex; flex-direction: column; }
.card-imaged .card-body,
.card-featured .card-featured-text,
.card-kids .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card .card-link {
    margin-top: auto;
    align-self: flex-start;
    padding-top: 14px;
}

/* === WHOLE-CARD CLICK AREA (stretched link pattern) === */
.card { position: relative; }
.card .card-link::after {
    content: "";
    position: absolute;
    inset: 0;
}
.card:focus-within {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}
.card:focus-within .card-link { outline: none; }

/* === POST-REVIEWS CTA === */
.reviews-cta {
    text-align: center;
    margin: 34px 0 0;
}

/* ============================================================
   HERO + NAV REFRESH — July 2026
   Appended intentionally: wins same-specificity conflicts
   with the original hero block (section 4).
   ============================================================ */

/* --- Nav call button (desktop inline + mobile icon) --- */
.nav-call {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary) !important;
    font-weight: 700 !important;
    white-space: nowrap;
}
.nav-call:hover { color: var(--accent) !important; }
.nav-call svg { flex-shrink: 0; color: var(--accent); }

@media (min-width: 931px) {
    .nav-call-item { order: 98; }   /* sits just left of Book Appointment */
}
/* Tight desktop widths: icon only, drop the digits */
@media (min-width: 931px) and (max-width: 1149px) {
    .nav-call span { display: none; }
}

.mobile-call-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 38px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-btn);
    color: var(--primary);
    margin-left: auto;
    margin-right: 8px;
    flex-shrink: 0;
    z-index: 1001;
}
.mobile-call-btn:hover { border-color: var(--accent); color: var(--accent); }
.mobile-call-btn + .mobile-book-btn { margin-left: 0; }
@media (max-width: 930px) {
    .mobile-call-btn { display: inline-flex; }
}

/* --- Accent word in the H1 --- */
.hero h1 .h1-accent { color: var(--accent); }

/* --- Dual CTA row (mockup metrics: rounded-xl / px-6 py-3.5 / text-sm semibold) --- */
.hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;          /* + 18px flex gap = 32px, matches mt-8 */
    width: 100%;
    max-width: 480px;
}
.hero-actions .hero-cta,
.hero-actions .hero-cta-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0;
    padding: 14px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.43;
    border-radius: var(--radius-btn);
    border: 1px solid transparent;
    text-align: center;
    white-space: nowrap;
}
.hero-cta-alt {
    background: var(--white);
    color: var(--primary);
    border-color: var(--stone-deep);
}
.hero-cta-alt:hover { border-color: var(--accent); color: var(--accent); }
.hero-cta-alt svg { flex-shrink: 0; color: var(--accent); }

/* --- Hero tags (under the CTAs, inside the text column) --- */
.hero-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    margin: 14px 0 0;
    padding: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.hero-trust li { display: flex; align-items: center; gap: 6px; }

/* --- Social proof stat band (gap-px divider technique, rounded-2xl) --- */
.stat-bar {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: var(--content-width);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border-dark);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    overflow: hidden;
}
.stat-bar li {
    background: var(--white);
    text-align: center;
    padding: 28px 24px;
}
.stat-num {
    display: block;
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--cta);
    line-height: 1.15;
}
.stat-star { color: #e8a413; font-size: 0.8em; margin-left: 3px; }
.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.35;
}
.stat-label a { color: inherit; text-decoration: underline; }
.stat-label a:hover { color: var(--accent); }

@media (min-width: 1024px) {
    .stat-bar { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
    .stat-bar li { padding: 22px 14px; }
    .stat-label { font-size: 0.8rem; }
    .hero-actions { grid-template-columns: 1fr; max-width: none; }
}

/* --- Nav CTA + call link shaped to match hero buttons --- */
.nav-cta {
    border-radius: var(--radius-btn);
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
}
.nav-call {
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600 !important;
}
.nav-call svg { color: currentColor; }
.mobile-book-btn { font-weight: 600; }


/* 4-cell banner: wider than the 900px section cap, pulled up to meet the hero */
.stat-band {
    max-width: 1280px;
    padding: 0 20px;
    margin: -36px auto 0;
    position: relative;
    z-index: 2;
}
.stat-bar {
    max-width: none;
    box-shadow: 0 6px 22px rgba(22, 50, 76, 0.09);
}
@media (max-width: 899px) {
    .stat-band { margin-top: -24px; }
}

/* Mobile drawer: .nav-list a { display:block } was killing the flex gap
   between the phone icon and the number. Higher specificity restores it. */
@media (max-width: 930px) {
    .nav-list a.nav-call {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .nav-list a.nav-call svg { width: 17px; height: 17px; }
}

/* --- Footer logo (white container: the lockup is dark artwork and would
       vanish against --footer-bg) --- */
.footer-logo {
    display: inline-block;
    background: var(--white);
    border-radius: var(--radius-btn);
    padding: 10px 14px;
    margin: 0 0 20px;
    line-height: 0;
}
.footer-logo img {
    display: block;
    width: 240px;
    max-width: 100%;
    height: auto;
}
@media (max-width: 930px) {
    .footer-logo { margin-bottom: 18px; }
}
@media (max-width: 560px) {
    .footer-logo { padding: 9px 12px; }
    .footer-logo img { width: 200px; }
}

/* --- Meet Your Doctors: quieter link underlines ---
   Underlines stay (accent #1d5fae against body #2f3742 is only 1.89:1, well
   under the 3:1 needed for colour alone to signal a link), but they're thinned
   and lightened so three links per card stop reading as stripes. */
.doctor-profile p {
    text-wrap: pretty;
    margin-inline: 0;
}
/* outranks `.doctor-profile p { color: var(--text) }` */
.doctor-profile p.doctor-profile-creds { color: var(--text-muted); }
.doctor-profile p a {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(29, 95, 174, 0.38);
}
.doctor-profile p a:hover {
    text-decoration-color: currentColor;
}

/* Post-testimonials CTA reuses the hero's paired-button treatment, centred */
.reviews-cta .hero-actions {
    margin-inline: auto;
    margin-top: 0;
}

/* --- CTA band: matched button pair. Secondary is outlined rather than solid
       white, so the terracotta stays the obvious primary on the navy band. --- */
.cta-band-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 480px;
    margin-inline: auto;
}
.cta-band-actions .hero-cta,
.cta-band-actions .cta-band-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0;
    padding: 14px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.43;
    border-radius: var(--radius-btn);
    border: 1px solid transparent;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
}
.cta-band-actions .cta-band-phone {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
}
.cta-band-actions .cta-band-phone:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}
.cta-band-actions .cta-band-phone svg { flex-shrink: 0; }

@media (max-width: 560px) {
    .cta-band-actions { grid-template-columns: 1fr; max-width: none; }
}
