/* ================================================
   SKINBEAT MEDI-AESTHETIC CLINIC
   Design System — style.css
   ================================================ */

/* ================================================
   DESIGN TOKENS
   ================================================ */
/* ════════════════════════════════════════════════════════════════
   VOICE & TONE GUIDE — Skinbeat / Dr. RAF / facial-architecture
   Established 2026-05-20. Do not drift back to generic clinic copy.
   ────────────────────────────────────────────────────────────────
   1. Restoration. NEVER transformation. The brand line.
      Banned words: transform, unlock, reveal-the-new-you, journey
      (unless in a labelled "Patient Journey" section), deserve, glow.
   2. Third-person editorial. "The practice / The discipline / We."
      Avoid first-person singular ("I treat") — those words belong
      to Dr. RAF himself and need his explicit sign-off.
   3. Less is more. Declarative sentences over hype.
      One strong line beats three repeated ideas.
   4. Structural metaphors, not surface ones. "Architecture, system,
      framework, restraint, balance" — not "magic, radiance, dreams."
   5. Microcopy ruthlessly consistent: every CTA reads
      "Book a Consultation". Not "Book Your Consultation", not
      "Book Consultation", not "Get Started".
   Section order (the page narrative):
      Hero → Philosophy → Zones → Concerns → Safety → About →
      Treatments → Results → Testimonials → Contact → CTA → Footer
   ════════════════════════════════════════════════════════════════ */

:root {
    /* Primary Surfaces */
    --bg-primary: #2d2c30;
    --bg-secondary: #242327;
    --bg-elevated: #353438;
    --bg-subtle: #3a393e;

    /* Brand Accents — from Skinbeat logo */
    --accent-mint: #3dcfa5;
    --accent-mint-hover: #2fb88e;
    --accent-mint-glow: rgba(61, 207, 165, 0.12);
    --accent-mint-border: rgba(61, 207, 165, 0.18);
    --accent-sand: #c9956b;
    --accent-sand-soft: #b8845e;
    --accent-sand-glow: rgba(201, 149, 107, 0.12);

    /* Text */
    --text-primary: #f0f0f5;
    --text-secondary: #a8abb2;
    --text-muted: #6f737b;
    --text-on-accent: #2d2c30;

    /* Surfaces (light sections) */
    --surface-cream: #F5F0E8;
    --surface-warm: #EDE8DD;

    /* Layout */
    --max-width: 1200px;
    --section-padding: 100px 0;
    --section-padding-sm: 60px 0;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
}

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

html {
    /* `scroll-behavior: smooth` removed deliberately.
       It corrupted ScrollTrigger.refresh() — ScrollTrigger
       internally scrolls the page to measure trigger
       positions, and smooth-behavior turned those instant
       measurement-scrolls into asynchronous animations, so
       trigger zones were computed from a partially-scrolled
       state (positions came back offset by exactly -scrollY).
       Anchor-link clicks stay smooth via main.js's explicit
       `scrollIntoView({behavior: 'smooth'})` call, which
       overrides CSS. */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    /* `clip` (not `hidden`) — prevents horizontal overflow visually
       without making body a scroll container. `overflow-x: hidden`
       silently promotes overflow-y from `visible` to `auto`, which
       turns body into a candidate scroll container. ScrollTrigger
       then reads body.scrollTop (always 0) instead of window.scrollY
       on .refresh(), producing trigger positions offset by -scrollY
       and corrupting every animation on resize. This was the root
       cause of the philosophy-quote-breaks-on-resize bug. */
    overflow-x: clip;
}

h1,
h2,
h3,
h4 {
    font-family: 'Instrument Serif', Georgia, serif;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

a {
    color: var(--accent-mint);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-mint-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background: rgba(61, 207, 165, 0.3);
    color: var(--text-primary);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* ================================================
   NAVIGATION
   ================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(45, 44, 48, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0;
    transition: background 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.navbar.scrolled {
    background: rgba(36, 35, 39, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0;
}

.navbar-logo img,
.navbar-logo svg.skinbeat-logo {
    height: 44px;
    width: auto;
}

.navbar-logo svg.skinbeat-logo .logo-mint {
    fill: var(--accent-mint);
    transition: fill 0.3s var(--ease-out);
}

.navbar-logo svg.skinbeat-logo .logo-sand {
    fill: var(--accent-sand);
    transition: fill 0.3s var(--ease-out);
}

.navbar-logo:hover svg.skinbeat-logo .logo-mint {
    fill: var(--accent-mint-hover);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-mint);
    transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--accent-mint);
    color: var(--text-on-accent) !important;
    border-radius: 6px;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase;
    transition: background 0.2s, box-shadow 0.2s;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--accent-mint-hover);
    box-shadow: 0 4px 20px rgba(61, 207, 165, 0.3);
    color: var(--text-on-accent) !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================================
   HERO
   ================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

/* Background Video */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

/* Suppress native iOS video controls / play button */
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-play-button,
.hero-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
    opacity: 0;
    pointer-events: none;
}

/* Dark overlay for text readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(45, 44, 48, 0.5) 0%,
            rgba(45, 44, 48, 0.35) 40%,
            rgba(45, 44, 48, 0.6) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content--centered {
    max-width: 680px;
    text-align: center;
    margin: 0 auto;
}

.hero-content--centered .hero-eyebrow {
    justify-content: center;
}

.hero-content--centered .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.hero-content--centered .hero-actions {
    justify-content: center;
}

.hero-content--centered .hero-credentials {
    justify-content: center;
}

.hero-eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-sand);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-eyebrow::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--accent-sand);
}

.hero h1 {
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 em {
    font-style: italic;
    color: var(--accent-mint);
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    color: rgba(240, 240, 245, 0.85);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 520px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-credentials {
    display: flex;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.credential {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.credential-value {
    font-family: 'Instrument Serif', serif;
    font-size: 32px;
    color: var(--accent-mint);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.credential-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: var(--accent-mint);
    color: var(--text-on-accent);
    border: none;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s var(--ease-smooth);
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--accent-mint-hover);
    box-shadow: 0 6px 24px rgba(61, 207, 165, 0.3);
    color: var(--text-on-accent);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s var(--ease-smooth);
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--accent-mint-border);
    color: var(--accent-mint);
    background: var(--accent-mint-glow);
}

/* ================================================
   SECTIONS
   ================================================ */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section--dark {
    background: var(--bg-secondary);
}

.section--elevated {
    background: var(--bg-elevated);
}

.section--cream {
    background: var(--surface-cream);
    color: #222;
}

.section--cream .section-label {
    color: var(--accent-sand-soft);
}

.section--cream .text-secondary {
    color: #475467;
}

.section-header {
    max-width: 700px;
    margin-bottom: 64px;
}

.section-header.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-sand);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.15;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
}

.section-header.centered .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ================================================
   ABOUT SECTION
   ================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.about-photo {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.about-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-quote {
    position: relative;
    padding: 32px 0 32px 28px;
    margin: 32px 0;
    border-left: 2px solid var(--accent-sand);
}

.about-quote p {
    font-family: 'Instrument Serif', serif;
    font-size: 22px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 12px !important;
}

.about-quote cite {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-sand);
}

/* Credentials grid — now lives below the photo+text 2-column
   layout as a full-container-width row. Same "clean layouts,
   no orphan card" pattern used in the Treatments section:
   1 column on mobile, 2 × 2 on tablet, 4-up at wide, the
   forbidden 3+1 layout is skipped entirely. */
.about-credentials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 64px;
}

@media (min-width: 600px) {
    .about-credentials {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .about-credentials {
        grid-template-columns: repeat(4, 1fr);
    }
}

.about-credential {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}

.about-credential-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
}

.about-credential-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-credential-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.about-credential-text strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.about-credential-text span {
    font-size: 13px;
    color: var(--text-muted);
}

/* ================================================
   PHILOSOPHY / FULL-FACE APPROACH  (M1)
   ================================================ */
.philosophy-lead {
    max-width: 760px;
    margin: 0 auto 64px;
    text-align: center;
}

.philosophy-lead p {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.5;
    color: var(--text-primary);
}

.philosophy-lead p em {
    color: var(--accent-sand);
    font-style: italic;
}

/* ── Variable-weight quote reveal (GSAP + SplitText + ScrollTrigger) ──
   The 5 layer titles gain weight + brighten as you scroll and reverse
   when you scroll back (scrub). Outfit is the site's variable font
   (free, wght 100–900) — used in place of the unlicensed trial display
   font. No section background. No-JS / reduced-motion → readable
   full-weight static text. */
#philosophy #quote {
    --quote-dim: #46444a;             /* start colour (low contrast on dark) */
    --quote-ink: var(--text-primary); /* settled colour */
    font-family: 'Outfit', sans-serif;
    font-weight: 400;                 /* fallback if the wght axis is unsupported */
    font-size: clamp(1.6rem, 6vw, 3.5rem);
    line-height: 0.95;
    text-align: center;
    max-width: 18ch;
    margin: 24px auto 64px;
    color: var(--quote-ink);          /* readable when JS/SplitText absent */
}

/* SplitText word wrappers (direct children) carry the animatable axis;
   chars inherit font-variation-settings + colour from them. */
#philosophy #quote > * {
    font-variation-settings: 'wght' var(--weight, 400);
}

/* Allow long words to break at any point on extremely narrow viewports
   (< ~280px). SplitText word spans are inline-block, which would otherwise
   force horizontal overflow when a single word can't fit the column. */
#philosophy #quote .q-word {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (prefers-reduced-motion: reduce) {
    #philosophy #quote { color: var(--quote-ink); }
}

.philosophy-close {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-close p {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.5;
    color: var(--text-primary);
}

.philosophy-close p strong {
    color: var(--accent-mint);
    font-weight: 400;
}

/* ================================================
   EXPRESSION ZONES  (M3 — preview)
   Two-column: zone cards on the left, portrait on the
   right (subject gazes left, leading the eye into the
   text). Stacks on mobile, image first.
   ================================================ */
.zones-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-top: 24px;
}

.zone-card {
    padding: 28px 0;
    border-top: 1px solid var(--border-subtle);
}

.zone-card:last-child {
    border-bottom: 1px solid var(--border-subtle);
}

.zone-card h3 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.zone-card p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 46ch;
}

.zones-image {
    margin: 0;
}

.zones-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

@media (max-width: 860px) {
    .zones-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .zones-image { order: -1; }   /* image first on mobile */

    /* On mobile, centre each zone card to match the section's
       already-centred header. Paragraph has max-width: 46ch —
       margin-inline: auto centres that constrained block. */
    .zone-card {
        text-align: center;
    }
    .zone-card p {
        margin-inline: auto;
    }
}

/* ================================================
   CONCERNS  (M4 — preview)
   Image left + content right; stacks on mobile, image
   first. The image is currently B&W (Tri-X cue) —
   reads as deliberate editorial; revisit before commit.
   ================================================ */
.concerns-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-top: 24px;
}

.concerns-image { margin: 0; }

.concerns-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.concerns-anchor h3 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(28px, 2.8vw, 36px);
    font-weight: 400;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.concerns-anchor p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 44ch;
    margin-bottom: 36px;
}

.concerns-chips {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
}

.concerns-chips .chip-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-sand);
    margin-bottom: 14px;
}

.concerns-chips ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.concerns-chips li {
    padding: 8px 14px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-elevated);
}

@media (max-width: 860px) {
    .concerns-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .concerns-image { order: -1; }

    /* On mobile, centre the "Dark Circles & Under-Eye" anchor
       (heading + paragraph) to match the section's centred
       header. Paragraph already has max-width: 44ch — the
       margin-inline: auto centres that constrained block. */
    .concerns-anchor {
        text-align: center;
    }
    .concerns-anchor p {
        margin-inline: auto;
    }

    /* On mobile, centre the "We also commonly treat" label and
       the chip cloud below it — matches the centred section
       header above. The ul is already display: flex, so
       justify-content: center handles the chips. */
    .concerns-chips .chip-label {
        text-align: center;
    }
    .concerns-chips ul {
        justify-content: center;
    }
}

/* ================================================
   SAFETY  (M5 — preview)
   Spare 3-column trust band. No cards, no borders —
   typography on an elevated surface; restraint reads
   as restraint. Stacks on mobile.
   ================================================ */
.safety-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 16px;
}

.safety-tenet h3 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(26px, 2.4vw, 32px);
    font-weight: 400;
    color: var(--accent-sand);
    margin-bottom: 12px;
}

.safety-tenet p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 32ch;
}

@media (max-width: 860px) {
    .safety-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* On mobile, centre each tenet to match the section's
       already-centred header (label, title, subtitle). The
       paragraph has max-width: 32ch — margin-inline: auto
       centres that constrained block within the full-width
       column. */
    .safety-tenet {
        text-align: center;
    }

    .safety-tenet p {
        margin-inline: auto;
    }
}

/* ================================================
   TREATMENTS SECTION — monoline cyan watermark backdrop
   The face profile SVG sits as a mask on a coloured ::before
   layer, anchored to the right edge of the section, scaled to
   the section's height. Colour + opacity are both CSS-driven
   so we can tune in browser without re-exporting the asset.
   ================================================ */
#treatments {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

#treatments::before {
    content: '';
    position: absolute;
    /* Constrained to the same 1200px-max content column the
       cards live in, centred — otherwise on a maximised
       viewport the section spans full width and the mask
       drifts to the screen's left edge while content stays
       centred, leaving a big visual gap. With left:0; right:0;
       max-width; margin-inline:auto, the ::before tracks the
       container column on every viewport. */
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: var(--max-width);
    margin-inline: auto;
    z-index: 0;
    background-color: #5BC0C7;
    /* Anchor mask to the right edge AND flip the ::before
       horizontally. The two operations compose so the face
       lands back on the LEFT side, mirrored — looking left
       instead of right. */
    -webkit-mask: url('../images/treatment-bg-monoline.svg') no-repeat right top / auto 100%;
            mask: url('../images/treatment-bg-monoline.svg') no-repeat right top / auto 100%;
    transform: scaleX(-1);
    opacity: 0.03;
    pointer-events: none;
}

#treatments > .container {
    position: relative;
    z-index: 1;
}

/* ================================================
   TREATMENT CATEGORIES & CARDS
   Four categories (Injectables, Skin Quality, Devices, Body)
   each render as a labelled subsection with its own grid.
   ================================================ */
.treatment-category {
    margin-bottom: 64px;
}

.treatment-category:last-child {
    margin-bottom: 0;
}

.treatment-category-label {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-sand);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

/* Explicit breakpoints (not auto-fill) so the grid only ever has
   "clean" layouts that produce no orphan card:
     <600px         → 1 column (mobile, stacked)
     600 – 1199px   → 2 × 2 grid (symmetric, no row-2 orphan)
     ≥1200px        → 4 cards in one row (full reveal)
   The forbidden 3+1 layout is skipped entirely. */
.treatment-category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 600px) {
    .treatment-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .treatment-category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Single-card categories (Skin Quality, Devices) — compound
   selector wins specificity over the .treatment-category-grid
   media-queried rules above, so the override holds at every
   viewport: one wide card, capped at 720px, centred. */
.treatment-category-grid.treatment-category-grid--single {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
}

.treatment-card {
    /* Glass tile — heavy transparency over the section's cyan
       monoline backdrop, with 16px backdrop-blur to keep the
       illustration soft enough that text stays readable.
       rgba is the same hue as --bg-elevated (#353438) at 22%
       alpha — the card becomes a faint tint rather than a
       panel, letting the drawing read through clearly. */
    background: rgba(53, 52, 56, 0.15);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
    cursor: default;
}

.treatment-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-mint-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.treatment-card-body {
    padding: 24px;
}

.treatment-card-body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.treatment-card-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ================================================
   BEFORE & AFTER GALLERY
   ================================================ */
/* Explicit breakpoints — 1 column below 1024px, 3 columns above.
   The 2-column layout that produced an orphan card in row 2 is
   skipped entirely. Mobile/tablet stack at full width; desktop
   reveals all three side by side. */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.gallery-item:hover {
    border-color: var(--accent-mint-border);
}

.gallery-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    cursor: col-resize;
    user-select: none;
}

.gallery-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-slider .gallery-after {
    clip-path: inset(0 0 0 50%);
    transition: clip-path 0s;
}

.gallery-slider .gallery-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--accent-mint);
    z-index: 2;
    transform: translateX(-50%);
    pointer-events: none;
}

.gallery-slider .gallery-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: var(--accent-mint);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.gallery-slider .gallery-handle::before {
    content: '◂ ▸';
    font-size: 10px;
    color: var(--text-on-accent);
    letter-spacing: 2px;
}

.gallery-label-before,
.gallery-label-after {
    position: absolute;
    bottom: 12px;
    padding: 4px 12px;
    background: rgba(45, 44, 48, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    z-index: 4;
}

.gallery-label-before {
    left: 12px;
}

.gallery-label-after {
    right: 12px;
}

.gallery-item-info {
    padding: 20px 24px;
}

.gallery-item-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.gallery-item-info span {
    font-size: 13px;
    color: var(--text-muted);
}

/* The "Notice…" directive — italic editorial voice, slightly more
   present than the muted treatment label above it. Stage-direction
   tone — tells the viewer what to look at in the photos. */
.gallery-item-info .gallery-item-notice {
    margin-top: 10px;
    font-size: 13px;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Gallery closer — bridges into the testimonials section. Matches
   the M1 .philosophy-close type system (Instrument Serif), slightly
   tighter because this is a bridge, not a thesis. */
.gallery-closer {
    max-width: 640px;
    margin: 56px auto 0;
    text-align: center;
    font-family: 'Instrument Serif', serif;
    font-size: clamp(18px, 2.2vw, 22px);
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ================================================
   TESTIMONIALS
   ================================================ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 36px;
}

.testimonial-stars {
    color: var(--accent-sand);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.testimonial-card blockquote {
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-mint-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-mint);
}

.testimonial-author-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-author-info span {
    font-size: 13px;
    color: var(--text-muted);
}

/* IG cards stack full-width in their own column when used */
.testimonial-grid:has(.testimonial-card--ig) {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 760px;
    margin: 0 auto;
}

/* ── Option C — IG-attributed testimonial card (preview) ──
   Horizontal: 9:16 IG-story thumbnail on the left, quote +
   handle on the right. Stacks on mobile, image first.
   Placeholder thumbs use the section bg + IG glyph until
   real screenshots are sourced. */
.testimonial-card--ig {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 28px;
    align-items: stretch;
    padding: 0;
    background: transparent;
    border: none;
}

.testimonial-card--ig .ig-thumb {
    position: relative;
    aspect-ratio: 9 / 16;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.testimonial-card--ig .ig-thumb:hover {
    transform: translateY(-3px);
    border-color: var(--accent-sand);
}

.testimonial-card--ig .ig-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-card--ig .ig-thumb-placeholder {
    text-align: center;
    padding: 20px 12px;
    line-height: 1.4;
}

.testimonial-card--ig .ig-thumb-placeholder svg {
    width: 28px;
    height: 28px;
    margin-bottom: 14px;
    opacity: 0.55;
    color: var(--text-secondary);
}

.testimonial-card--ig .ig-thumb-placeholder strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    margin-bottom: 4px;
    word-break: break-all;
}

.testimonial-card--ig .ig-thumb-placeholder em {
    font-style: normal;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.testimonial-card--ig .testimonial-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 4px 0;
}

.testimonial-card--ig blockquote {
    font-family: 'Instrument Serif', serif;
    font-style: normal;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.35;
    color: var(--text-primary);
    margin: 0;
}

.testimonial-card--ig .testimonial-source {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: var(--text-secondary);
}

.testimonial-card--ig .testimonial-source svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #E1306C;                    /* IG brand pink — drives currentColor stroke */
}

/* Handle text — same gold as the "Testimonials" section label. */
.testimonial-card--ig .testimonial-source .ig-handle {
    color: var(--accent-sand);
}

.testimonial-card--ig .testimonial-source .dot {
    color: var(--text-muted);
    margin: 0 2px;
}

@media (max-width: 720px) {
    .testimonial-card--ig {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .testimonial-card--ig .ig-thumb {
        max-width: 160px;
        margin: 0 auto;
    }

    /* Centre the quote and the handle/source row to match
       the centred IG-story thumbnail above on mobile. */
    .testimonial-card--ig .testimonial-body {
        text-align: center;
    }
    .testimonial-card--ig .testimonial-source {
        justify-content: center;
    }
}

/* ================================================
   CONTACT SECTION
   ================================================ */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.contact-info-item:hover .contact-info-icon {
    transform: translateY(-4px);
    border-color: var(--accent-sand);
    color: var(--accent-sand);
}

.contact-info-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-info-text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-info-text p,
.contact-info-text a {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.2s;
}

.contact-info-text a:hover {
    color: var(--accent-sand);
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    height: 360px;
    width: 100%;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.6) brightness(0.8) contrast(1.1);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand img,
.footer-brand svg.skinbeat-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand svg.skinbeat-logo .logo-mint {
    fill: var(--accent-mint);
}

.footer-brand svg.skinbeat-logo .logo-sand {
    fill: var(--accent-sand);
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 260px;
}

.footer-col h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: var(--accent-mint);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.agency-credit {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.agency-credit:hover {
    opacity: 1;
}

.agency-credit span {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

/* INGENIDEV GOLD on dark charcoal footer (per
   ~/.claude/rules/ingenidev-agency-credit.md §4).
   The source logo file is grayscale on transparent in the
   #1B–#4B range; this filter chain converts those dark-gray
   pixels to #d4a843. brightness(0) → invert(75%) → sepia +
   saturate + contrast gives the final gold. */
.agency-credit img {
    height: 16px;
    width: auto;
    object-fit: contain;
    filter:
        brightness(0)
        saturate(100%)
        invert(75%)
        sepia(54%)
        saturate(540%)
        hue-rotate(0deg)
        brightness(92%)
        contrast(86%);
    transition: filter 0.3s ease;
}

/* Hover: same gold chain, brightness 92% → 100% so the logo
   lifts slightly. Crucially does NOT revert to grayscale(0) —
   that would expose the source dark-gray pixels and make the
   logo near-invisible against the charcoal footer. */
.agency-credit:hover img {
    filter:
        brightness(0)
        saturate(100%)
        invert(75%)
        sepia(54%)
        saturate(540%)
        hue-rotate(0deg)
        brightness(100%)
        contrast(86%);
}

/* ================================================
   SCROLL REVEAL
   ================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ================================================
   CTA BAND
   ================================================ */
.cta-band {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #1a191d 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(61, 207, 165, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(201, 149, 107, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

#vanta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.55;
    pointer-events: none;
}

.cta-band .container {
    position: relative;
    z-index: 2;
}

/* .cta-band h2 / p rules removed — the merged section now uses
   the standard .section-header pattern (.section-label /
   .section-title / .section-subtitle) for consistency with
   every other section on the page. */

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 48px;
    }

    .about-grid {
        gap: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 64px 0;
    }

    .container {
        padding: 0 24px;
    }

    /* Nav mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: var(--bg-secondary);
        padding: 100px 32px 40px;
        gap: 24px;
        transition: right 0.3s var(--ease-out);
        border-left: 1px solid var(--border-subtle);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 120px 0 64px;
    }

    .hero-video {
        object-position: left center;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-image-accent {
        display: none;
    }

    .hero-credentials {
        flex-wrap: wrap;
        gap: 24px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-photo {
        max-width: 360px;
        margin-inline: auto;
    }

    /* Footer — single-column stack on mobile, content centred
       to match the rest of the mobile-centred sections. */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-brand p {
        margin-inline: auto;
    }

    .footer-brand img,
    .footer-brand svg.skinbeat-logo {
        display: block;
        margin-inline: auto;
    }

    /* .footer-col ul is a vertical flex column — set
       align-items: center so list items shrink to their
       content width and centre horizontally. */
    .footer-col ul {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    /* Flex-based .treatment-category-grid already wraps to one
       column below ~328px (min-width: 280px + container padding).
       No grid-template-columns override needed. */

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }
}

/* ================================================
   PRINT
   ================================================ */
@media print {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .navbar {
        position: relative;
    }

    .hero {
        min-height: auto;
        padding-top: 40px;
    }
}

/* ================================================
   TREATMENT DETAIL PAGES + homepage links to them.
   Additive only — existing tokens & classes reused,
   nothing above this block is modified.
   ================================================ */
a.treatment-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.treatment-card-more {
    display: inline-block;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-mint);
    transition: color 0.2s;
}

a.treatment-card:hover .treatment-card-more {
    color: var(--accent-mint-hover);
}

.zone-link,
.concern-link {
    display: inline-block;
    margin-top: 14px;
    margin-right: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-mint);
    text-decoration: none;
    transition: color 0.2s;
}

.zone-link:hover,
.concern-link:hover {
    color: var(--accent-mint-hover);
}

.concerns-chips ul li a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.concerns-chips ul li a:hover {
    color: var(--accent-mint);
}

.treatment-hero {
    padding: 170px 0 40px;
}

.treatment-hero .section-header {
    margin-bottom: 0;
}

.t-article {
    max-width: 760px;
    margin: 0 auto;
}

.t-lead {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: 25px;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.t-article p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 18px;
}

.t-article h2 {
    font-size: 28px;
    line-height: 1.25;
    margin: 56px 0 18px;
}

.t-article h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 30px 0 10px;
}

.t-article ul {
    margin: 0 0 18px 22px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.t-article li {
    margin-bottom: 6px;
}

.t-article li::marker {
    color: var(--accent-mint);
}

.t-article a {
    color: var(--accent-mint);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-mint-border);
    transition: color 0.2s, border-color 0.2s;
}

.t-article a:hover {
    color: var(--accent-mint-hover);
    border-color: var(--accent-mint);
}

.t-cta .btn-primary {
    margin-top: 8px;
}

/* ================================================
   DOCTORS SIDE-BY-SIDE — two equal partner columns.
   Additive only; falls back to vertical stacking on
   narrow screens (the pre-existing mobile behavior).
   ================================================ */
.doctors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 96px;
}

@media (min-width: 1024px) {
    .doctors-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }

    /* inside a half-width column: photo stacks above the bio */
    .doctors-grid .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .doctors-grid .about-photo {
        max-width: 340px;
        width: 100%;
        margin: 0 auto;
    }

    /* credentials cap at 2-up inside a column (4-up needs full width) */
    .doctors-grid .about-credentials {
        grid-template-columns: repeat(2, 1fr);
    }
}

.doctors-grid .section-header {
    margin-bottom: 48px;
}

.doctor-block {
    min-width: 0;
}

/* ================================================
   CENTERED PARTIAL ROWS — Injectables / Approaches.
   Flex mirror of the 1 / 2 / 4-column grid above
   (same 24px gap, same card widths); an incomplete
   last row centres instead of left-aligning.
   ================================================ */
.treatment-category-grid.treatment-category-grid--center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.treatment-category-grid--center > .treatment-card {
    flex: 0 0 100%;
}

@media (min-width: 600px) {
    .treatment-category-grid--center > .treatment-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

@media (min-width: 1200px) {
    .treatment-category-grid--center > .treatment-card {
        flex: 0 0 calc((100% - 3 * 24px) / 4);
    }
}


/* ================================================
   TREATMENT FIGURE — optional editorial image above
   the article (md front matter `image:`). Additive.
   ================================================ */
.t-figure {
    max-width: 960px;
    margin: 0 auto 56px;
}

.t-figure img {
    width: 100%;
    height: auto;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.t-figure figcaption {
    margin-top: 12px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 720px) {
    .t-figure img { aspect-ratio: 16 / 10; border-radius: 12px; }
    .t-figure { margin-bottom: 40px; }
}

/* ================================================
   SKINBEAT V2 — MASTER BRIEF ADDITIONS (2026-09).
   Additive only: mega-menu, disciplines grid, surgeon
   block, quick-summary aside, booking widget, persistent
   mobile CTA. Tokens reused, nothing above is modified.
   ================================================ */
.nav-links { gap: 26px; }
.nav-links > li { position: relative; }
.nav-links .menu-toggle { display: none; }
.mega {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 520px;
    padding: 28px 32px;
    background: rgba(36, 35, 39, 0.98);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
    z-index: 120;
}
.mega--narrow { min-width: 320px; }
.mega::before { content: ''; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.has-menu:hover > .mega,
.has-menu:focus-within > .mega,
.has-menu.open > .mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.mega-hub {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: 'Instrument Serif', serif !important;
    font-size: 22px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--text-primary) !important;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}
.mega-hub span { font-family: 'Outfit', sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-mint); }
.mega-hub::after { display: none !important; }
.mega-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 28px;
}
.mega--narrow .mega-list { grid-template-columns: 1fr; }
.mega-list a {
    display: block;
    font-size: 13px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--text-secondary) !important;
    padding: 2px 0;
}
.mega-list a::after { display: none !important; }
.mega-list a:hover { color: var(--accent-mint) !important; }

/* hamburger below 1100px — six items + CTA no longer fit one row */
@media (max-width: 1100px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(340px, 100%);
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        background: var(--bg-secondary);
        padding: 96px 28px 120px;
        gap: 6px;
        overflow-y: auto;
        transition: right 0.3s var(--ease-out);
        border-left: 1px solid var(--border-subtle);
    }
    .nav-links.open { right: 0; }
    .nav-toggle { display: flex; }
    .nav-links > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
    .nav-links > li > a { padding: 12px 0; font-size: 14px; }
    .nav-links .nav-cta { justify-content: center; width: 100%; margin-top: 12px; padding: 14px 24px; }
    .nav-links .menu-toggle {
        display: inline-flex;
        width: 40px;
        height: 40px;
        border: 1px solid var(--border-subtle);
        border-radius: 6px;
        background: none;
        cursor: pointer;
        position: relative;
    }
    .nav-links .menu-toggle::before,
    .nav-links .menu-toggle::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        width: 12px;
        height: 1.5px;
        background: var(--text-secondary);
        transform: translate(-50%, -50%);
        transition: transform 0.25s;
    }
    .nav-links .menu-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
    .has-menu.open .menu-toggle::after { transform: translate(-50%, -50%) rotate(0); }
    .nav-links .mega,
    .has-menu.open > .mega,
    .has-menu:hover > .mega,
    .has-menu:focus-within > .mega {
        position: static;
        left: auto;
        transform: none;
        min-width: 0;
        width: 100%;
        padding: 8px 0 16px 12px;
        background: none;
        border: 0;
        border-left: 1px solid var(--border-subtle);
        border-radius: 0;
        box-shadow: none;
        display: none;
        opacity: 1;
        visibility: visible;
    }
    .nav-links .has-menu:hover > .mega, .nav-links .has-menu:focus-within > .mega { display: none; }
    .nav-links .has-menu.open > .mega { display: block; }
    .mega-hub { font-size: 16px !important; padding-bottom: 8px; margin-bottom: 8px; }
    .mega-list { grid-template-columns: 1fr; gap: 6px; }
}

/* Disciplines — 6 cards, 1 / 2 / 3 columns */
.disciplines-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 16px;
}
@media (min-width: 640px) { .disciplines-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .disciplines-grid { grid-template-columns: repeat(3, 1fr); } }
.disciplines-grid .zone-card { height: 100%; }

.approach-note {
    margin-top: 56px;
    text-align: center;
    font-family: 'Instrument Serif', serif;
    font-size: clamp(22px, 2.4vw, 30px);
    color: var(--text-primary);
}

/* Doctors: group intro + surgeon block */
.doctors-intro { margin-bottom: 72px; }
.about-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; }
.btn-doctor { padding: 12px 24px; font-size: 12px; }
.doctor-block--surgeon {
    margin-top: 96px;
    padding: 56px clamp(24px, 5vw, 72px);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
}
.doctor-block--surgeon .section-header { margin-bottom: 32px; }
.surgeon-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px 48px;
    max-width: 980px;
    margin: 0 auto 32px;
}
@media (min-width: 900px) { .surgeon-grid { grid-template-columns: 1fr 1fr; } }
.surgeon-grid p { color: var(--text-secondary); line-height: 1.75; }

/* CTA band actions */
.cta-actions { justify-content: center; margin-top: 28px; }

/* Quick-summary aside on treatment pages */
.t-summary {
    max-width: 860px;
    margin: 0 auto 48px;
    padding: 28px 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
}
.t-summary-title {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-mint);
    margin-bottom: 18px;
}
.t-summary-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px 40px;
    margin: 0;
}
@media (min-width: 720px) { .t-summary-list { grid-template-columns: 1fr 1fr; } }
.t-summary-row dt { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.t-summary-row dd { margin: 0; color: var(--text-primary); font-size: 15px; line-height: 1.55; }

/* Booking widget (book.php) */
.book-flow { max-width: 860px; margin: 0 auto; }
.book-step { margin: 40px 0; }
.book-step h2 { margin-bottom: 18px; }
.book-options { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .book-options { grid-template-columns: repeat(2, 1fr); } }
.book-options label {
    display: block;
    padding: 18px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: var(--bg-elevated);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.book-options label:hover { border-color: var(--accent-mint-border); }
.book-options input { margin-right: 10px; accent-color: var(--accent-mint); }
.book-options label.selected { border-color: var(--accent-mint); background: var(--accent-mint-glow); }
.book-options small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 13px; }
.book-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.book-hint { color: var(--text-muted); font-size: 14px; margin-top: 16px; }
.book-summary { padding: 18px 22px; border-left: 2px solid var(--accent-mint); color: var(--text-secondary); background: var(--bg-elevated); border-radius: 0 10px 10px 0; }

/* Persistent mobile booking bar */
.mobile-cta { display: none; }
@media (max-width: 860px) {
    .mobile-cta {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 95;
        display: flex;
        gap: 10px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(36, 35, 39, 0.96);
        backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-subtle);
    }
    .mobile-cta a {
        flex: 1 1 auto;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        padding: 14px 16px;
        border-radius: 6px;
        font-family: 'Outfit', sans-serif;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        text-decoration: none;
    }
    .mobile-cta-book { background: var(--accent-mint); color: var(--text-on-accent); }
    .mobile-cta-wa { flex: 0 0 auto; border: 1px solid var(--accent-mint-border); color: var(--text-primary); }
    body { padding-bottom: 72px; }
}
/* booking widget lives inside .t-article — keep button text readable on the mint fill */
.t-article .btn-primary, .t-article .btn-primary:hover { color: var(--text-on-accent); text-decoration: none; }
.t-article .btn-outline, .t-article .btn-outline:hover { text-decoration: none; }
/* Doctors grid: keep both columns row-aligned (header / photo+bio / credentials / links)
   so a longer headline or subtitle on one side can never push its photo below the other's. */
@media (min-width: 1024px) {
    .doctors-grid { grid-template-rows: auto auto auto auto; }
    .doctors-grid > .doctor-block {
        display: grid;
        grid-row: span 4;
        grid-template-rows: subgrid;
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
    }
    .doctors-grid .section-header .section-title { white-space: nowrap; }
}
