/* =====================================================================
   CarlsbaDDS Pediatric Smiles — v2 "GOLDEN HOUR" DESIGN SYSTEM
   ---------------------------------------------------------------------
   Coastal luxury. Warm, minimal, editorial, story-driven.
   One stylesheet for every page. No build step.

   PALETTE        porcelain #FBF8F2 · sand #F3ECE1 · deep tide #173F4A
                  ink #32494F · seafoam #5E8C7F · terracotta #D97757
                  brushed gold #C2A05C
   TYPE           "Fraunces" (display serif, italics for accent words)
                  "Outfit"   (body / UI sans)
   SIGNATURES     arch photo frames (.arch-img) · ghost words (.ghost)
                  hairline rules · gold dot dividers · pill buttons
                  scroll reveals ([data-reveal] via app.js)

   COMPONENT CHEAT SHEET (compose pages from these)
   ----------------------------------------------------------------
   Layout      .container  .container-wide  .container-narrow
               .section  .section-sm  .bg-sand  .bg-deep  .text-center
   Headings    .eyebrow (small caps label) · h1/h2 use <em> for italic
               .sec-head (eyebrow+h2+.sec-intro block) · .ghost (bg word)
   Buttons     .btn / .cta-btn (deep pill) · .btn-coral (primary accent)
               .btn-ghost (hairline) · .btn-light / .btn-ghost-light
               (for .bg-deep) · .btn-lg · arrows: <i class="fa-solid
               fa-arrow-right">
   Media       .arch-img (arch frame, portrait) · .arch-img.landscape
               .arch-img.tall · .img-card (rounded rect photo)
   Cards       .reef-grid (auto grid) > .reef-card (+.is-link)
               .pillar-row > .pillar (numbered editorial pillars)
               .frame-card (plain white card)
   Lists       .menu-list > .menu-item (numbered luxury service menu)
               .post-list > .post-row (editorial article rows)
               .steps > .step (numbered) · .faq > .faq-item > .faq-q/.faq-a
               .chip-row > .chip
   Story       .quote-block (big serif testimonial) · .stat-strip > .stat
               .callout (+.coral/.gold/.seafoam) · .cta-banner (deep band)
   Practical   .hours-table · .contact-list · .map-frame · .pill-grid
               .pay-methods > .pay-item · .qr-code · .resource-list
               .emergency-banner + .big-phone · .em-strip
   People      .crew-grid > .crew-card (+.dentist) · .team-grid
   Gallery     .ba-slider (before/after) · .ba-grid · .gallery-grid
               .carousel (+.solo/.cols-2) > .carousel-track >
               .carousel-item + .carousel-nav > .carousel-btn
               .carousel-prev/.carousel-next
   Forms       .form-card  .form-grid  .form-field (+.full)  .form-hint
               .form-success · .multiselect (checkbox dropdown)
   Tour        .tour > .tour-stage > img#tourImage + .tour-bar (app.js)
   Reveal      add data-reveal (optionally data-delay="1..3")
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..650;1,9..144,300..650&family=Outfit:wght@300..700&display=swap');

/* ============================== TOKENS ============================== */
:root {
    /* color */
    --porcelain: #FBF8F2;
    --porcelain-90: rgba(251, 248, 242, 0.9);
    --sand: #F3ECE1;
    --sand-2: #EAE0CF;
    --deep: #173F4A;
    --deep-2: #0F2E38;
    --ink: #32494F;
    --muted: #62757C;
    --seafoam: #5E8C7F;
    --seafoam-soft: #E3EDE7;
    --coral: #D97757;
    --coral-dark: #C05F3E;
    --coral-soft: #F7E8E0;
    --gold: #C2A05C;
    --gold-soft: #EFE5CF;
    --line: rgba(23, 63, 74, 0.14);
    --line-soft: rgba(23, 63, 74, 0.08);

    /* legacy aliases (old inline styles on a few pages) */
    --deep-blue: var(--deep);
    --coral-pop: var(--coral);
    --coral-deep: var(--coral-dark);
    --sand-gold: var(--gold);
    --ocean-cyan: var(--seafoam);
    --bright-cyan: var(--seafoam);

    /* type */
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Outfit", "Helvetica Neue", Arial, sans-serif;

    /* rhythm */
    --nav-h: 80px;
    --radius: 22px;
    --radius-lg: 30px;
    --shadow-soft: 0 24px 60px -28px rgba(23, 63, 74, 0.25);
    --shadow-lift: 0 18px 40px -18px rgba(23, 63, 74, 0.28);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================== RESET =============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

body {
    font-family: var(--font-body);
    font-weight: 380;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--ink);
    background: var(--porcelain);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--deep); text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--gold-soft); color: var(--deep-2); }

:focus-visible { outline: 2px solid var(--seafoam); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 480;
    color: var(--deep);
    line-height: 1.14;
    letter-spacing: -0.012em;
}
h1 em, h2 em, h3 em, .em-accent {
    font-style: italic;
    font-weight: 420;
    letter-spacing: 0;
}

h1 { font-size: clamp(2.7rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.12rem; }

p strong, li strong { font-weight: 600; color: var(--deep); }

/* ============================ UTILITIES ============================= */
.container { width: min(1160px, 92vw); margin: 0 auto; }
.container-wide { width: min(1360px, 94vw); margin: 0 auto; }
.container-narrow { width: min(780px, 92vw); margin: 0 auto; }
.container .container-narrow { width: min(780px, 100%); }

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section-sm { padding: clamp(3rem, 6vw, 4.5rem) 0; position: relative; }

.bg-sand { background: var(--sand); }
.bg-glass { background: var(--sand); } /* legacy alias */
.bg-deep {
    position: relative;
    overflow: hidden;
    overflow: clip;
    background:
        radial-gradient(120% 90% at 85% -10%, rgba(94, 140, 127, 0.16), transparent 60%),
        var(--deep);
    color: rgba(251, 248, 242, 0.82);
}
/* Animated "waterline" — ONE simple smooth wave line drifting left to
   right through the surface's top padding. Transform-only on a
   pseudo-element: compositor-cheap, seamlessly looping (280px tile),
   clipped by the surface, never near content. */
.bg-deep::before,
.site-footer::before,
.cta-banner::before {
    content: "";
    position: absolute;
    left: 0;
    width: calc(100% + 280px);
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 24'%3E%3Cpath d='M0 12q35-8 70 0t70 0 70 0 70 0' fill='none' stroke='%23FBF8F2' stroke-opacity='.06' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") left top / 280px 24px repeat-x;
    pointer-events: none;
    animation: tide-drift 22s linear infinite;
}
.bg-deep::before, .site-footer::before { top: 30px; }
.cta-banner::before { top: 16px; }
@keyframes tide-drift {
    from { transform: translateX(-280px); }
    to { transform: translateX(0); }
}
.bg-deep h1, .bg-deep h2, .bg-deep h3, .bg-deep h4 { color: var(--porcelain); }

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }

/* Eyebrow — small-caps label with gold tick */
.eyebrow, .home-eyebrow {
    display: inline-flex;
    align-items: flex-start; /* tick stays on the first line if the text wraps */
    gap: 0.65rem;
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.1rem;
    line-height: 1.7;
}
.eyebrow::before, .home-eyebrow::before {
    content: "";
    width: 26px; height: 1.5px;
    background: var(--gold);
    flex: none;
    margin-top: 0.55em; /* optically centered on the first line */
}
.text-center .eyebrow, .text-center .home-eyebrow, .eyebrow.centered { justify-content: center; }
.text-center .eyebrow::after, .text-center .home-eyebrow::after, .eyebrow.centered::after {
    content: ""; width: 26px; height: 1.5px; background: var(--gold); flex: none;
}
.eyebrow::after, .home-eyebrow::after { margin-top: 0.55em; } /* keep the trailing tick level with the leading one */
.bg-deep .eyebrow, .bg-deep .home-eyebrow { color: rgba(251, 248, 242, 0.6); }

/* Section heading block */
.sec-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.sec-head.text-center, .text-center .sec-head, .sec-head.centered { margin-left: auto; margin-right: auto; }
.sec-intro, .section-intro {
    margin-top: 1.1rem;
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--muted);
    max-width: 64ch;
}
.text-center .sec-intro, .text-center .section-intro,
.sec-head.centered .sec-intro, .sec-head.centered .section-intro { margin-left: auto; margin-right: auto; }
.bg-deep .sec-intro, .bg-deep .section-intro { color: rgba(251, 248, 242, 0.68); }

/* Legacy big section title (new pages may also use it) */
.section-title { font-size: clamp(1.95rem, 3.6vw, 2.8rem); }
.section-title.ink { color: var(--deep); }
/* …but inside a narrow article column it's an in-article subhead */
.container-narrow .section-title { font-size: clamp(1.45rem, 2.4vw, 1.8rem); margin-top: 2.6rem; margin-bottom: 0.9rem; }

/* Article typography (blog posts & long-form pages) */
.container-narrow > p { margin-bottom: 1.3rem; font-size: 1.05rem; line-height: 1.85; }
.container-narrow ul, .container-narrow ol { margin: 0 0 1.3rem 1.3rem; line-height: 1.8; }
.container-narrow li { margin-bottom: 0.5rem; }
.container-narrow h2:not(.section-title), .container-narrow h3:not(.section-title) { margin-top: 2.4rem; margin-bottom: 0.9rem; }

/* Ghost word — huge italic serif background word.
   Sized so the FULL word stays visible at every width (no negative
   offsets in markup); app.js gives it a slow parallax drift. */
.ghost {
    position: absolute;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 320;
    font-size: clamp(4.5rem, 13vw, 12rem);
    line-height: 1;
    color: var(--deep);
    opacity: 0.05;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    will-change: transform;
}
/* Parallax is applied by app.js (setupGhostParallax): transform is set
   synchronously in the scroll handler, anchored to the word's own
   position. Deliberately NOT animation-timeline: view() — it breaks
   inside clipped/overflow ancestors and proved unreliable in the wild. */
.bg-deep .ghost { color: var(--porcelain); opacity: 0.05; }
.ghost-host { position: relative; overflow: hidden; overflow: clip; } /* clip (with hidden fallback): clip doesn't create a scroll container */
.ghost-host > .container, .ghost-host > .container-wide, .ghost-host > .container-narrow { position: relative; z-index: 1; }

/* Dividers — a quiet gold wave (the theme's one visible ripple) */
.tide-divider, .wave-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(1.2rem, 3vw, 2rem) 0;
}
.tide-divider::before, .wave-divider::before {
    content: "";
    width: 84px; height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 14'%3E%3Cpath d='M2 7q10-5 20 0t20 0 20 0 20 0' fill='none' stroke='%23C2A05C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wave-divider svg { display: none; }

/* Hide retired ocean decorations wherever legacy markup remains */
.hero-emoji, .callout-emoji, .wcw-emoji, .svc-cat-icon, .em-icon { display: none; }

/* ============================= BUTTONS ============================== */
.btn, .cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 1.02rem 1.9rem;
    border-radius: 999px;
    border: 1px solid var(--deep);
    background: var(--deep);
    color: var(--porcelain);
    cursor: pointer;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
                background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.btn:hover, .cta-btn:hover {
    background: var(--deep-2);
    border-color: var(--deep-2);
    color: var(--porcelain);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}
.btn i, .cta-btn i { font-size: 0.85em; transition: transform 0.35s var(--ease); }
.btn:hover i.fa-arrow-right, .cta-btn:hover i.fa-arrow-right { transform: translateX(4px); }

.btn-coral, .btn-gold { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn-coral:hover, .btn-gold:hover { background: var(--coral-dark); border-color: var(--coral-dark); color: #fff; }

.btn-cyan { background: var(--deep); border-color: var(--deep); } /* legacy alias */

.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--deep);
}
.btn-ghost:hover { background: #fff; border-color: var(--deep); color: var(--deep); box-shadow: var(--shadow-lift); }

.btn-light { background: var(--porcelain); border-color: var(--porcelain); color: var(--deep); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--deep-2); }
.btn-ghost-light, .bg-deep .btn-ghost, .cta-banner .btn-ghost {
    background: transparent;
    border-color: rgba(251, 248, 242, 0.35);
    color: var(--porcelain);
}
.btn-ghost-light:hover, .bg-deep .btn-ghost:hover, .cta-banner .btn-ghost:hover {
    background: rgba(251, 248, 242, 0.1);
    border-color: var(--porcelain);
    color: var(--porcelain);
}
.btn-lg { padding: 1.15rem 2.3rem; font-size: 1rem; }

.btn-row, .cta-row, .hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.text-center .btn-row, .text-center .cta-row, .text-center .hero-cta { justify-content: center; }

/* Inline text link with arrow */
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.86rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--coral);
}
.text-link i { font-size: 0.8em; transition: transform 0.3s var(--ease); }
.text-link:hover i { transform: translateX(4px); }

/* =============================== NAV ================================ */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(251, 248, 242, 0.88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
    transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.site-nav.scrolled { background: rgba(251, 248, 242, 0.96); box-shadow: 0 10px 40px -22px rgba(23, 63, 74, 0.35); }

.nav-inner {
    width: min(1360px, 94vw);
    margin: 0 auto;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-logo { display: flex; align-items: center; flex: none; }
.nav-logo-img { height: 46px; width: auto; }

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    margin-left: auto;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    padding: 0.6rem 0.15rem;
    position: relative;
    white-space: nowrap;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: 0.15rem;
    height: 1.5px;
    background: var(--gold);
    transition: right 0.35s var(--ease);
}
.nav-item:hover > .nav-link::after,
.nav-item.is-open > .nav-link::after,
.nav-link.active::after { right: 0; }
.nav-link.active { color: var(--deep); font-weight: 600; }
.nav-caret { font-size: 0.6rem; color: var(--muted); transition: transform 0.3s var(--ease); }
.nav-item.is-open > .nav-link .nav-caret { transform: rotate(180deg); }

.nav-item { position: relative; }
.nav-item.has-mega { position: static; }

/* shared panel behavior — JS hover-intent adds .is-open;
   delayed visibility keeps the close as a fade, not a snap */
.dropdown, .mega {
    position: absolute;
    top: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
                visibility 0s linear 0.3s;
    pointer-events: none;
    z-index: 1001;
}
.nav-item.is-open > .dropdown, .nav-item.is-open > .mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0s linear 0s;
    pointer-events: auto;
}
/* invisible bridge so the cursor never falls in a gap */
.dropdown::before, .mega::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -14px; height: 14px;
}

.dropdown {
    left: 50%;
    margin-left: -140px;
    width: 280px;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 0.6rem;
    margin-top: 10px;
}
.dropdown-link {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.7rem 0.95rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--deep);
    transition: background 0.25s var(--ease);
}
.dropdown-link small { font-size: 0.76rem; font-weight: 400; color: var(--muted); }
.dropdown-link:hover, .dropdown-link.active { background: var(--sand); }
.dropdown-link i { display: none; }

.mega {
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    margin-top: 10px;
    width: min(980px, 92vw);
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 0.95fr;
    gap: 1.8rem;
}
.nav-item.is-open > .mega { transform: translateX(-50%) translateY(0); }
.mega-col { display: flex; flex-direction: column; gap: 0.15rem; }
.mega-head {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 550;
    color: var(--deep);
    padding-bottom: 0.55rem;
    margin-bottom: 0.55rem;
    border-bottom: 1px solid var(--line-soft);
}
.mega-head:hover, .mega-head.active { color: var(--coral); }
.mega-head i { display: none; }
.mega-link {
    font-size: 0.88rem;
    color: var(--muted);
    padding: 0.34rem 0.5rem;
    margin-left: -0.5rem;
    border-radius: 8px;
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.mega-link:hover, .mega-link.active { background: var(--sand); color: var(--deep); }

.mega-emergency {
    grid-column: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    background: var(--coral-soft);
    border: 1px solid rgba(217, 119, 87, 0.25);
    border-radius: 18px;
    padding: 1.4rem;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.mega-emergency strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--coral-dark); }
.mega-emergency span { font-size: 0.84rem; color: var(--ink); line-height: 1.5; }
.mega-emergency .mega-em-link {
    margin-top: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral-dark);
}
.mega-emergency:hover { border-color: var(--coral); background: #fdf0ea; }

.nav-cta { margin-left: 0.5rem; padding: 0.85rem 1.5rem; font-size: 0.88rem; flex: none; }

.nav-toggle {
    display: none;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--deep);
    font-size: 1.05rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex: none;
    margin-left: auto;
}
.nav-item-mobile { display: none; }

/* ============================== FOOTER ============================== */
.site-footer {
    margin-top: clamp(3rem, 7vw, 5rem);
    overflow: hidden;
    overflow: clip;
    background:
        radial-gradient(120% 90% at 85% -10%, rgba(94, 140, 127, 0.14), transparent 60%),
        var(--deep);
    color: rgba(251, 248, 242, 0.75);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
    z-index: 2;
}
.footer-cta {
    width: min(1160px, 92vw);
    margin: 0 auto;
    padding: clamp(3.2rem, 7vw, 5rem) 0 clamp(2.4rem, 5vw, 3.4rem);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(251, 248, 242, 0.14);
}
.footer-cta h2 {
    color: var(--porcelain);
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    max-width: 14em;
}
.footer-grid {
    width: min(1160px, 92vw);
    margin: 0 auto;
    padding: clamp(2.4rem, 5vw, 3.6rem) 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
}
.footer-grid h3 { color: var(--porcelain); font-size: 1.25rem; margin-bottom: 0.8rem; }
.footer-grid h4 {
    color: var(--porcelain);
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.85;
}
.footer-grid p { font-size: 0.92rem; line-height: 1.7; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
    color: rgba(251, 248, 242, 0.72);
    font-size: 0.92rem;
    transition: color 0.25s var(--ease);
}
.footer-links a:hover { color: var(--gold); }
.footer-phone { color: var(--gold); font-weight: 600; font-size: 1.05rem; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.footer-social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(251, 248, 242, 0.25);
    display: flex; align-items: center; justify-content: center;
    color: rgba(251, 248, 242, 0.85);
    font-size: 0.95rem;
    transition: all 0.3s var(--ease);
}
.footer-social a:hover { background: var(--porcelain); color: var(--deep); border-color: var(--porcelain); }
.footer-bottom {
    border-top: 1px solid rgba(251, 248, 242, 0.14);
}
.footer-bottom-inner {
    width: min(1160px, 92vw);
    margin: 0 auto;
    padding: 1.4rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    opacity: 0.65;
}
.footer-bottom-inner a { color: inherit; }
.footer-bottom-inner a:hover { color: var(--gold); }

/* ============================ PAGE HERO ============================= */
.page-hero {
    padding: calc(var(--nav-h) + clamp(3.4rem, 8vw, 6rem)) 0 clamp(1.6rem, 4vw, 2.6rem);
    text-align: center;
    position: relative;
}
.page-hero .breadcrumb {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2rem;
}
.page-hero .breadcrumb a { color: var(--muted); transition: color 0.25s; }
.page-hero .breadcrumb a:hover { color: var(--coral); }
.page-hero .breadcrumb span { opacity: 0.5; }
.page-hero .breadcrumb .crumb-current { color: var(--deep); }
.page-hero h1 { max-width: 18em; margin: 0 auto; }
.page-hero .subtitle {
    margin: 1.4rem auto 0;
    max-width: 62ch;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--muted);
}
.page-hero .hero-cta { justify-content: center; margin-top: 2.2rem; }
.page-hero .eyebrow { justify-content: center; }
.page-hero .eyebrow::after { content: ""; width: 26px; height: 1.5px; background: var(--gold); flex: none; }

/* ========================= MEDIA / FRAMES =========================== */
.arch-img {
    position: relative;
    border-radius: 999px 999px var(--radius) var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--sand-2);
}
.arch-img img { width: 100%; height: 100%; object-fit: cover; }
.arch-img::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(251, 248, 242, 0.55);
    border-radius: inherit;
    pointer-events: none;
}
.arch-img.landscape { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; }
.arch-img.wide { border-radius: var(--radius-lg); aspect-ratio: 3 / 2; }
.arch-img.tall { aspect-ratio: 3 / 4; }
.arch-img.oval { border-radius: 999px; aspect-ratio: 4 / 5.4; }

.img-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--sand-2);
}
.img-card img { width: 100%; height: 100%; object-fit: cover; }

/* keep faces visible in tight crops */
.team-img img, .crew-img img { object-position: top; }

/* ========================= CARDS & GRIDS ============================ */
.reef-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 1.4rem;
}
.reef-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); }
.reef-grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }

.reef-card, .frame-card {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 1.9rem;
    transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.reef-card h3, .reef-card h4 { margin-bottom: 0.55rem; }
.reef-card p { font-size: 0.95rem; color: var(--muted); line-height: 1.7; }
.reef-card.is-link:hover, a.reef-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}
.reef-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--seafoam-soft);
    color: var(--seafoam);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
}
.reef-icon.emoji { font-size: 1.5rem; background: var(--sand); }
.reef-icon.coral { background: var(--coral-soft); color: var(--coral); }
.reef-icon.gold { background: var(--gold-soft); color: var(--gold); }
.bg-deep .reef-card { background: rgba(251, 248, 242, 0.04); border-color: rgba(251, 248, 242, 0.14); }
.bg-deep .reef-card p { color: rgba(251, 248, 242, 0.65); }

/* Numbered editorial pillars */
.pillar-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
    gap: clamp(1.6rem, 3.5vw, 2.6rem);
}
.pillar { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.pillar-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--gold);
    display: block;
    margin-bottom: 0.9rem;
}
.pillar h4 { margin-bottom: 0.5rem; font-size: 1.18rem; }
.pillar p { font-size: 0.94rem; color: var(--muted); line-height: 1.7; }
.bg-deep .pillar { border-color: rgba(251, 248, 242, 0.18); }
.bg-deep .pillar p { color: rgba(251, 248, 242, 0.65); }

/* Feature rows (split media + text) */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(2.4rem, 6vw, 5rem);
    align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(3.5rem, 8vw, 6rem); }
.feature-row.reverse .feature-media { order: 2; }
.feature-media { position: relative; }
.feature-body h2, .feature-body h3 { margin-bottom: 1rem; }
.feature-body p { margin-bottom: 1rem; }
.feature-body p:last-of-type { margin-bottom: 0; }
.feature-body .btn-row { margin-top: 1.8rem; }

/* Emoji-placeholder panels (legacy) — quiet sand panels now */
.illus {
    border-radius: var(--radius-lg);
    background: var(--sand);
    border: 1px solid var(--line-soft);
    aspect-ratio: 4 / 3;
    display: flex; align-items: center; justify-content: center;
}
.illus-emoji { font-size: 3.4rem; opacity: 0.85; }
.illus.gold { background: var(--gold-soft); }
.illus.coral { background: var(--coral-soft); }
.illus.deep { background: #E2E9EA; }
.illus.green { background: var(--seafoam-soft); }

/* ====================== LUXURY SERVICE MENU ========================= */
.menu-list { list-style: none; }
.menu-item { border-bottom: 1px solid var(--line); }
.menu-item:first-child { border-top: 1px solid var(--line); }
.menu-item > a {
    display: grid;
    grid-template-columns: 3.2rem 1fr auto;
    align-items: center;
    gap: 1.4rem;
    padding: 1.7rem 0.4rem;
    transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}
.menu-item .menu-num {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--gold);
    font-size: 1.02rem;
}
.menu-item .menu-name {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    font-weight: 500;
    color: var(--deep);
    line-height: 1.2;
}
.menu-item .menu-sub {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.3rem;
}
.menu-item .menu-arrow {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--deep);
    font-size: 0.85rem;
    transition: all 0.3s var(--ease);
}
.menu-item > a:hover { background: rgba(243, 236, 225, 0.55); padding-left: 1rem; padding-right: 1rem; }
.menu-item > a:hover .menu-arrow { background: var(--coral); border-color: var(--coral); color: #fff; }
.bg-deep .menu-item, .bg-deep .menu-item:first-child { border-color: rgba(251, 248, 242, 0.16); }
.bg-deep .menu-item .menu-name { color: var(--porcelain); }
.bg-deep .menu-item .menu-sub { color: rgba(251, 248, 242, 0.6); }
.bg-deep .menu-item .menu-arrow { border-color: rgba(251, 248, 242, 0.3); color: var(--porcelain); }
.bg-deep .menu-item > a:hover { background: rgba(251, 248, 242, 0.05); }

/* Editorial post rows (blog teasers/indexes) */
.post-list { list-style: none; }
.post-row { border-bottom: 1px solid var(--line); }
.post-row:first-child { border-top: 1px solid var(--line); }
.post-row > a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 0.4rem;
    transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}
.post-row .post-meta {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 0.45rem;
}
.post-row .post-meta .sep { color: var(--muted); opacity: 0.6; margin: 0 0.4rem; }
.post-row h3 {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    transition: color 0.3s var(--ease);
}
.post-row p { font-size: 0.93rem; color: var(--muted); margin-top: 0.4rem; max-width: 60ch; }
.post-row > a:hover { background: rgba(243, 236, 225, 0.55); padding-left: 1rem; padding-right: 1rem; }
.post-row > a:hover h3 { color: var(--coral-dark); }
.post-arrow {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--deep);
    font-size: 0.8rem;
    flex: none;
    transition: all 0.3s var(--ease);
}
.post-row > a:hover .post-arrow { background: var(--coral); border-color: var(--coral); color: #fff; }

/* ============================== STEPS =============================== */
.steps { list-style: none; counter-reset: step; max-width: 720px; }
.step {
    counter-increment: step;
    position: relative;
    padding: 0 0 2rem 4.2rem;
}
.step::before {
    content: "0" counter(step);
    position: absolute;
    left: 0; top: 0.1rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--gold);
}
.step::after {
    content: "";
    position: absolute;
    left: 0.9rem; top: 2.2rem; bottom: 0.6rem;
    width: 1px;
    background: var(--line);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step h4 { margin-bottom: 0.4rem; }
.step p { font-size: 0.96rem; color: var(--muted); }

/* =============================== FAQ ================================ */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.4rem 0.2rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 550;
    color: var(--deep);
    transition: color 0.3s var(--ease);
}
.faq-q:hover { color: var(--coral-dark); }
.faq-q::after {
    content: "+";
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    flex: none;
    transition: transform 0.35s var(--ease);
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s var(--ease);
}
.faq-a > * { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p, .faq-a div {
    font-size: 0.98rem;
    color: var(--muted);
    line-height: 1.75;
}
.faq-item.open .faq-a p, .faq-item.open .faq-a div { padding-bottom: 1.5rem; }

/* ============================ CALLOUTS ============================== */
.callout {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    background: var(--sand);
    border-left: 2px solid var(--gold);
    border-radius: 14px;
    padding: 1.5rem 1.7rem;
    margin: 1.6rem 0;
}
.callout h4 { margin-bottom: 0.35rem; }
.callout p { font-size: 0.94rem; color: var(--ink); margin: 0; }
.callout.coral { background: var(--coral-soft); border-left-color: var(--coral); }
.callout.gold { background: var(--gold-soft); }
.callout.seafoam { background: var(--seafoam-soft); border-left-color: var(--seafoam); }

/* =========================== STAT STRIP ============================= */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stat {
    padding: 2.2rem 1.5rem;
    text-align: center;
    border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat b, .stat .stat-num {
    display: block;
    font-family: var(--font-display);
    font-weight: 480;
    font-size: clamp(2rem, 3.4vw, 2.7rem);
    color: var(--deep);
    line-height: 1.1;
    margin-bottom: 0.45rem;
}
.stat .stat-num em, .stat b em { color: var(--gold); font-style: italic; }
.stat span, .stat .stat-label {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}
.bg-deep .stat b, .bg-deep .stat .stat-num { color: var(--porcelain); }
.bg-deep .stat, .bg-deep .stat-strip { border-color: rgba(251, 248, 242, 0.16); }
.bg-deep .stat span { color: rgba(251, 248, 242, 0.6); }

/* ============================== CHIPS =============================== */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--deep);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.5rem 1.05rem;
}
.chip i { color: var(--gold); font-size: 0.75rem; }
.bg-sand .chip { background: var(--porcelain); }

/* =========================== QUOTE BLOCK ============================ */
.quote-block { max-width: 880px; margin: 0 auto; text-align: center; }
.quote-block .quote-mark {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 4rem;
    line-height: 0.5;
    color: var(--gold);
    display: block;
    margin-bottom: 1.6rem;
}
.quote-block blockquote, .quote-block .quote-text {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.7vw, 1.9rem);
    font-weight: 420;
    font-style: italic;
    line-height: 1.5;
    color: var(--deep);
}
.quote-block cite, .quote-block .quote-by {
    display: block;
    margin-top: 1.8rem;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}
.bg-deep .quote-block blockquote, .bg-deep .quote-block .quote-text { color: var(--porcelain); }

/* =========================== CTA BANNER ============================= */
.cta-banner {
    position: relative;
    overflow: hidden;
    overflow: clip;
    background:
        radial-gradient(110% 130% at 90% -20%, rgba(194, 160, 92, 0.18), transparent 55%),
        var(--deep);
    color: rgba(251, 248, 242, 0.8);
    border-radius: var(--radius-lg);
    padding: clamp(2.6rem, 6vw, 4.2rem);
    text-align: center;
}
.cta-banner h2 {
    color: var(--porcelain);
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    max-width: 22em;
    margin: 0 auto 1rem;
}
.cta-banner p { max-width: 56ch; margin: 0 auto 1.8rem; font-size: 1rem; line-height: 1.75; }
.cta-banner .cta-row { justify-content: center; }
.cta-banner .cta-btn:not(.btn-ghost):not(.btn-gold):not(.btn-coral),
.cta-banner .btn:not(.btn-ghost):not(.btn-gold):not(.btn-coral) {
    background: var(--porcelain); border-color: var(--porcelain); color: var(--deep);
}

/* ======================= EMERGENCY ELEMENTS ========================= */
.emergency-banner {
    background: var(--coral-soft);
    border: 1px solid rgba(217, 119, 87, 0.3);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 3.2rem);
    text-align: center;
}
.emergency-banner h2, .emergency-banner h3 { color: var(--coral-dark); margin-bottom: 0.6rem; }
.emergency-banner p { color: var(--ink); max-width: 56ch; margin: 0 auto; }
.big-phone {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 550;
    color: var(--deep);
    margin: 1.2rem 0;
    transition: color 0.3s var(--ease);
}
.big-phone:hover { color: var(--coral-dark); }

/* Slim emergency strip (inline on light/deep sections) */
.em-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    border: 1px solid rgba(217, 119, 87, 0.35);
    background: rgba(217, 119, 87, 0.07);
    border-radius: 18px;
    padding: 1.3rem 1.8rem;
}
.em-strip .em-text strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--coral-dark); display: block; }
.em-strip .em-text span { font-size: 0.9rem; color: var(--ink); }
.bg-deep .em-strip { background: rgba(217, 119, 87, 0.12); border-color: rgba(217, 119, 87, 0.45); }
.bg-deep .em-strip .em-text span { color: rgba(251, 248, 242, 0.75); }
.em-strip .em-phone {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 550;
    color: var(--coral-dark);
    white-space: nowrap;
}
.bg-deep .em-strip .em-phone { color: #EDA98C; }

/* ========================= PEOPLE / CREW ============================ */
.crew-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(255px, 100%), 1fr));
    gap: 1.6rem;
}
.crew-card {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.crew-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.crew-img { aspect-ratio: 1 / 1.05; overflow: hidden; background: var(--sand); }
.crew-img img { width: 100%; height: 100%; object-fit: cover; }
.crew-body { padding: 1.5rem 1.6rem 1.8rem; }
.crew-body h3 { font-size: 1.3rem; margin-bottom: 0.15rem; }
.crew-role {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.85rem;
}
.crew-body p { font-size: 0.92rem; line-height: 1.7; color: var(--muted); }
.crew-card.dentist { grid-column: 1 / -1; flex-direction: row; }
.crew-card.dentist .crew-img { flex: 0 0 min(340px, 38%); aspect-ratio: auto; }
.crew-card.dentist .crew-body { padding: clamp(1.8rem, 4vw, 2.8rem); align-self: center; }
.crew-card.dentist .crew-body h3 { font-size: 1.7rem; }

/* simple legacy team grid */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.team-member { width: 200px; text-align: center; }
.team-img { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; margin: 0 auto 0.8rem; background: var(--sand); }
.team-img img { width: 100%; height: 100%; object-fit: cover; }

/* doctor spotlight (legacy class, restyled) */
.doctor-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: clamp(1.8rem, 4.5vw, 3rem);
}
.doctor-stats { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.stat-bubble {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--deep);
    background: var(--sand);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    padding: 0.5rem 1rem;
}

/* ====================== REVIEWS & PLATFORMS ========================= */
.review-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr));
    gap: 1.5rem;
}
.review-brick {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 1.9rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}
.review-brick p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.04rem;
    line-height: 1.65;
    color: var(--deep);
    flex: 1;
}
.review-brick .reviewer {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}
.review-brick .stars { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.15em; }

.platform-row { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.platform-card {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 2.4rem 2.2rem;
    text-align: center;
    flex: 1 1 280px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.platform-card:hover { border-color: var(--gold); box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.platform-card .p-score {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 480;
    color: var(--deep);
    line-height: 1;
}
.platform-card .p-sub { font-size: 0.85rem; color: var(--muted); }
.platform-card .p-stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 0.2em; }
.platform-card .p-name {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    display: flex; align-items: center; gap: 0.5rem;
}
.platform-card .text-link { margin-top: 1rem; }

/* ======================== GALLERY / BA SLIDER ======================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
}
.gallery-card {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
}
.ga-img { aspect-ratio: 4 / 3; background: var(--sand); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.ga-caption { padding: 1.1rem 1.4rem; font-size: 0.92rem; color: var(--muted); text-align: center; }

.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.ba-slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line-soft);
    background: var(--sand);
}
.ba-layer {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
}
.ba-layer span { font-size: 4.5rem; }
.ba-layer img { width: 100%; height: 100%; object-fit: cover; }
.ba-before { background: linear-gradient(135deg, #E7DFD2, #D9CFBC); }
.ba-after { background: linear-gradient(135deg, #DFEAE3, #C9DCD2); }
.ba-label {
    position: absolute;
    bottom: 14px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: rgba(23, 63, 74, 0.82);
    color: var(--porcelain);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    pointer-events: none;
    z-index: 2;
}
.ba-label.left { left: 14px; }
.ba-label.right { right: 14px; }
.ba-handle {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(251, 248, 242, 0.9);
    pointer-events: none;
    z-index: 2;
}
.ba-handle::after {
    content: "\2194";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    background: var(--porcelain);
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--deep);
    font-size: 1rem;
    box-shadow: var(--shadow-lift);
}
.ba-slider input[type=range] {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 3;
}

/* ============================ CAROUSEL ============================== */
.carousel { position: relative; overflow: hidden; }
.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.65s var(--ease);
}
.carousel-item { flex: 0 0 calc((100% - 3rem) / 3); min-width: 0; }
.carousel.cols-2 .carousel-item { flex: 0 0 calc((100% - 1.5rem) / 2); }
.carousel.solo .carousel-item { flex: 0 0 100%; }
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2.2rem;
}
.carousel-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--deep);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s var(--ease);
}
.carousel-btn i { pointer-events: none; }
.carousel-btn:hover { background: var(--deep); border-color: var(--deep); color: var(--porcelain); }
.bg-deep .carousel-btn { border-color: rgba(251, 248, 242, 0.3); color: var(--porcelain); }
.bg-deep .carousel-btn:hover { background: var(--porcelain); color: var(--deep); }

/* ========================== OFFICE TOUR ============================= */
.tour { max-width: 880px; margin: 0 auto; }
.tour-stage {
    border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3.4;
    position: relative;
    background: var(--sand-2);
}
.tour-stage img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}
.tour-stage img.fading { opacity: 0; }
.tour-stage::after {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(251, 248, 242, 0.5);
    border-radius: inherit;
    pointer-events: none;
}
.tour-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    margin-top: 1.8rem;
}
.tour-count {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--muted);
    min-width: 84px;
    text-align: center;
}
.tour-count b { color: var(--deep); font-weight: 550; }

/* =========================== BLOG CARDS ============================= */
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 1.9rem;
    transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.blog-card:hover { border-color: var(--gold); box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.blog-card .blog-img { display: none; }
.blog-body { display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.blog-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}
.blog-meta { font-size: 0.8rem; color: var(--muted); }
.blog-card h3 { font-size: 1.25rem; line-height: 1.3; }
.blog-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.65; flex: 1; }
.blog-more {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--coral);
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.blog-more i { font-size: 0.75em; transition: transform 0.3s var(--ease); }
.blog-card:hover .blog-more i { transform: translateX(4px); }

/* ====================== PRACTICAL COMPONENTS ======================== */
.contact-list { list-style: none; }
.contact-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.98rem;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list i { color: var(--gold); margin-top: 0.3rem; width: 18px; text-align: center; }
.contact-list a { font-weight: 600; }
.contact-list a:hover { color: var(--coral-dark); }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.95rem;
}
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:first-child { font-weight: 600; color: var(--deep); }
.hours-table td:last-child { text-align: right; color: var(--muted); }
.hours-table tr.sat td, .hours-table tr.sat td:first-child { color: var(--gold); font-weight: 600; }
.sat-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-soft);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    margin-top: 0.4rem;
}

.map-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line-soft);
    aspect-ratio: 4 / 3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.pill-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill-grid span, .pay-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
}
.pay-methods { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pay-item i { color: var(--seafoam); }

.qr-code {
    width: 120px; height: 120px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    color: var(--deep);
    margin: 0 auto 1.2rem;
}

.resource-list { list-style: none; }
.resource-list li { border-bottom: 1px solid var(--line-soft); }
.resource-list li:first-child { border-top: 1px solid var(--line-soft); }
.resource-list a, .resource-list .res-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.1rem 0.3rem;
    font-weight: 500;
    transition: background 0.25s var(--ease), padding 0.25s var(--ease);
}
.resource-list a:hover { background: rgba(243, 236, 225, 0.55); padding-left: 0.8rem; padding-right: 0.8rem; color: var(--coral-dark); }
.resource-list i { color: var(--gold); }

/* ============================== FORMS =============================== */
.form-card {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: clamp(1.8rem, 5vw, 3.2rem);
    box-shadow: var(--shadow-soft);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem 2rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}
.form-field input,
.form-field select,
.form-field textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--deep);
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--line);
    border-radius: 0;
    padding: 0.7rem 0.1rem;
    transition: border-color 0.3s var(--ease);
    width: 100%;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #A4B0B4; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none;
    border-bottom-color: var(--deep);
}
.form-field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.form-field select { cursor: pointer; }
.form-hint { font-size: 0.82rem; color: var(--muted); }
.form-success {
    display: none;
    background: var(--seafoam-soft);
    border-left: 2px solid var(--seafoam);
    border-radius: 14px;
    padding: 1.4rem 1.6rem;
    margin-top: 1.6rem;
    color: var(--deep);
}
.form-success.show { display: block; }

/* checkbox-dropdown multiselect */
.multiselect { position: relative; }
.multiselect-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--line);
    padding: 0.7rem 0.1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--deep);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.3s var(--ease);
}
.multiselect-trigger i { font-size: 0.75rem; color: var(--muted); transition: transform 0.3s var(--ease); }
.multiselect.is-open .multiselect-trigger { border-bottom-color: var(--deep); }
.multiselect.is-open .multiselect-trigger i { transform: rotate(180deg); }
.multiselect-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    max-height: 330px;
    overflow-y: auto;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
    z-index: 40;
}
.multiselect.is-open .multiselect-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0s;
}
.multiselect-group { padding: 0.4rem 0; }
.multiselect-group + .multiselect-group { border-top: 1px solid var(--line-soft); }
.multiselect-group-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 0.5rem 0.6rem 0.3rem;
}
.multiselect-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.2s var(--ease);
}
.multiselect-option:hover { background: var(--sand); }
.multiselect-option input[type=checkbox] { accent-color: var(--deep); width: 16px; height: 16px; flex: none; }

/* ============================ HOME HERO ============================= */
.hero {
    position: relative;
    padding: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(3.5rem, 7vw, 6rem);
    overflow: hidden;
}
.hero-layout {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}
.hero-text h1 { margin-bottom: 1.4rem; }
.hero-sub {
    font-size: 1.12rem;
    line-height: 1.8;
    color: var(--muted);
    max-width: 54ch;
    margin-bottom: 2.2rem;
}
/* Two deliberate stacked lines — never an awkward mid-phrase wrap */
.hero-proof {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-top: 2.4rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.hero-proof .proof-line { display: flex; align-items: center; gap: 0.6rem; }
.hero-proof .stars { color: var(--gold); letter-spacing: 0.12em; font-size: 0.78rem; }
.hero-proof b { color: var(--deep); font-weight: 600; }
.hero-proof .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex: none; }
.hero-media { position: relative; }
.hero-media .arch-img { max-width: 460px; margin-left: auto; }
.hero-badge {
    position: absolute;
    left: clamp(-1rem, -2vw, -2rem);
    bottom: 2.2rem;
    background: var(--porcelain-90);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    box-shadow: var(--shadow-lift);
    padding: 0.9rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    max-width: 270px;
}
.hero-badge img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.hero-badge .hb-title { font-family: var(--font-display); font-weight: 550; font-size: 0.98rem; color: var(--deep); line-height: 1.25; display: block; }
.hero-badge .hb-sub { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ====================== SCROLL REVEAL (app.js) ======================
   Gated behind html.js (set by the tiny inline script in each page's
   <head>) so content is never hidden for no-JS visitors or crawlers. */
html.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
html.js [data-reveal].in-view { opacity: 1; transform: none; }
html.js [data-reveal][data-delay="1"] { transition-delay: 0.1s; }
html.js [data-reveal][data-delay="2"] { transition-delay: 0.2s; }
html.js [data-reveal][data-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .carousel-track { transition: none; }
    .ghost,
    .bg-deep::before, .site-footer::before, .cta-banner::before { animation: none !important; }
}
/* ?noanim test hook (set by app.js) — used for previews/screenshots */
html.no-anim { scroll-behavior: auto; }
.no-anim [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
.no-anim *, .no-anim *::before, .no-anim *::after { transition: none !important; animation: none !important; }

/* ========================== INSTAGRAM CARD ========================== */
.insta-card {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    max-width: 720px;
    margin: 0 auto;
}
.insta-card .instagram-media { margin: 0 auto !important; }

/* =========================== RESPONSIVE ============================ */
@media (max-width: 1080px) {
    /* Drawer is ABSOLUTE (not fixed): the nav bar's backdrop-filter makes
       it the containing block for fixed descendants, which collapsed the
       drawer to a sliver. Anchored under the bar with an explicit
       viewport height instead. */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        height: calc(100vh - var(--nav-h));
        height: calc(100dvh - var(--nav-h));
        background: var(--porcelain);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1.4rem 6vw 3rem;
        overflow-y: auto;
        display: none;
        z-index: 999;
    }
    .site-nav.open .nav-menu { display: flex; }
    .nav-item { border-bottom: 1px solid var(--line-soft); position: relative; }
    .nav-item.has-mega { position: relative; }
    .nav-link {
        width: 100%;
        justify-content: space-between;
        font-family: var(--font-display);
        font-size: 1.35rem;
        font-weight: 500;
        color: var(--deep);
        padding: 1.1rem 0.2rem;
    }
    .nav-link::after { display: none; }
    .nav-caret { font-size: 0.85rem; }
    .nav-item.open > .nav-link .nav-caret { transform: rotate(180deg); }

    .dropdown, .mega {
        position: static;
        opacity: 1;
        visibility: hidden;
        transform: none;
        transition: none;
        pointer-events: auto;
        display: none;
        width: 100%;
        margin: 0 0 1rem;
        padding: 0 0 0 1rem;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .dropdown::before, .mega::before { display: none; }
    .nav-item.open > .dropdown { display: block; visibility: visible; }
    .nav-item.open > .mega { display: grid; visibility: visible; }
    .dropdown-link { padding: 0.55rem 0.4rem; }
    .mega-emergency { grid-column: auto; }
    .nav-cta { display: none; }
    .nav-item-mobile { display: block; padding: 1.6rem 0 0.4rem; border-bottom: none; }
    .nav-item-mobile .btn, .nav-item-mobile .cta-btn { width: 100%; }
    .nav-toggle { display: flex; }

    .hero-layout { grid-template-columns: 1fr; }
    .hero-media .arch-img { margin: 0 auto; }
    .hero-badge { left: 0; }
    .crew-card.dentist { flex-direction: column; }
    .crew-card.dentist .crew-img { flex: none; aspect-ratio: 16 / 10; }
    .carousel-item { flex: 0 0 calc((100% - 1.5rem) / 2); }
}

@media (max-width: 900px) {
    /* banner padding shrinks here — drop its waterline so it never crowds */
    .cta-banner::before { display: none; }
    .feature-row { grid-template-columns: 1fr; gap: 2.2rem; }
    .feature-row.reverse .feature-media { order: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-cta { flex-direction: column; align-items: flex-start; }
    .doctor-card { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .menu-item > a { grid-template-columns: 2.4rem 1fr auto; gap: 1rem; }
    .stat { padding: 1.7rem 1rem; }
}

@media (max-width: 700px) {
    .ba-grid { grid-template-columns: 1fr; }
    .carousel-item, .carousel.cols-2 .carousel-item { flex: 0 0 100%; }
    .post-row > a { grid-template-columns: 1fr; }
    .post-arrow { display: none; }
    .stat-strip { grid-template-columns: 1fr 1fr; }
    .stat { border-left: none; border-top: 1px solid var(--line); }
    .stat:nth-child(-n+2) { border-top: none; }
    .stat:nth-child(even) { border-left: 1px solid var(--line); }
}

@media (max-width: 600px) {
    h1 { font-size: clamp(2.2rem, 9.5vw, 2.7rem); }
    .eyebrow, .home-eyebrow { font-size: 0.66rem; letter-spacing: 0.14em; }
    /* meta lines (blog hero eyebrows, post-row metas): stack the parts
       on their own lines instead of wrapping mid-phrase */
    .page-hero .eyebrow { flex-wrap: wrap; row-gap: 0.15rem; }
    .page-hero .eyebrow .sep { display: block; flex-basis: 100%; height: 0; overflow: hidden; }
    .page-hero .eyebrow::before,
    .page-hero .eyebrow::after { display: none; } /* ticks sit awkwardly beside stacked meta lines */
    .post-row .post-meta { line-height: 1.9; }
    .post-row .post-meta .sep { display: block; height: 0; overflow: hidden; }
    /* waterlines sit a touch higher where top padding is smallest */
    .bg-deep::before, .site-footer::before { top: 16px; }
    .section-title { font-size: clamp(1.7rem, 7vw, 2rem); }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .menu-item .menu-name { font-size: 1.2rem; }
    .menu-item .menu-arrow { display: none; }
    .menu-item > a { grid-template-columns: 2.2rem 1fr; }
    .hero-badge { position: static; margin-top: 1.2rem; max-width: 100%; }
    .hero-media { display: flex; flex-direction: column; }
    .btn, .cta-btn { width: 100%; }
    .nav-logo-img { height: 40px; }
}
