/* ============================================================
   VD Tweaks — Mood / Display / Rhythm variants
   ============================================================ */

/* ── Mood picker UI inside the tweaks panel ─────────────────── */
.vd-twk-row { display: flex; flex-direction: column; gap: 10px; padding: 10px 0; }
.vd-twk-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.vd-mood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vd-mood {
  display: flex; flex-direction: column; gap: 8px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.vd-mood:hover { background: rgba(255,255,255,0.06); }
.vd-mood.is-active { border-color: rgba(217, 184, 138, 0.7); background: rgba(217, 184, 138, 0.08); }
.vd-mood-swatch {
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.vd-mood-swatch span { display: block; height: 100%; }
.vd-mood-name { font-size: 11px; color: rgba(255,255,255,0.85); text-align: center; letter-spacing: 0.04em; }

/* ────────────────────────────────────────────────────────────
   MOOD: Porcelain — cool ivory, dusty rose, slate ink
   Clinical-Scandinavian; lighter, cooler, more refined
   ──────────────────────────────────────────────────────────── */
:root[data-mood="porcelain"] {
  --cream:        oklch(0.975 0.005 250);
  --cream-2:      oklch(0.955 0.008 245);
  --bone:         oklch(0.92 0.012 240);
  --nude:         oklch(0.88 0.025 18);
  --nude-deep:    oklch(0.78 0.045 12);
  --champagne:    oklch(0.78 0.04 235);
  --gold:         oklch(0.66 0.06 240);
  --gold-ink:     oklch(0.42 0.06 250);
  --espresso:     oklch(0.26 0.025 250);
  --ink:          oklch(0.17 0.02 250);
  --muted:        oklch(0.48 0.022 250);
  --hair:         color-mix(in oklab, oklch(0.20 0.025 250) 12%, transparent);
  --hair-strong:  color-mix(in oklab, oklch(0.20 0.025 250) 22%, transparent);
}

/* ────────────────────────────────────────────────────────────
   MOOD: Noir — deep espresso, champagne accents, cream text
   Editorial-night, fashion-mag drama
   ──────────────────────────────────────────────────────────── */
:root[data-mood="noir"] {
  --cream:        oklch(0.22 0.018 55);
  --cream-2:      oklch(0.26 0.020 55);
  --bone:         oklch(0.30 0.022 55);
  --nude:         oklch(0.38 0.035 30);
  --nude-deep:    oklch(0.42 0.04 25);
  --champagne:    oklch(0.86 0.07 80);
  --gold:         oklch(0.80 0.085 78);
  --gold-ink:     oklch(0.84 0.075 78);
  --espresso:     oklch(0.96 0.018 70);
  --ink:          oklch(0.97 0.012 70);
  --muted:        oklch(0.72 0.02 60);
  --surface:      oklch(0.25 0.018 55);
  --surface-2:    oklch(0.27 0.020 55);
  --hair:         color-mix(in oklab, oklch(0.96 0.02 70) 14%, transparent);
  --hair-strong:  color-mix(in oklab, oklch(0.96 0.02 70) 24%, transparent);
  --shadow-1: 0 1px 2px rgba(0,0,0,0.3), 0 6px 18px -8px rgba(0,0,0,0.55);
  --shadow-2: 0 4px 14px -6px rgba(0,0,0,0.5), 0 24px 48px -20px rgba(0,0,0,0.7);
  --shadow-3: 0 30px 80px -30px rgba(0,0,0,0.85);
}

/* In Noir, the .doctor and .contact-wrap sections naturally invert because
   they use var(--espresso) bg + var(--cream) text — and those tokens have
   swapped values. They become the LIGHT interludes against the dark page. */
:root[data-mood="noir"] .doctor,
:root[data-mood="noir"] .contact-wrap {
  background: oklch(0.92 0.02 70);
  color: oklch(0.22 0.02 55);
}
:root[data-mood="noir"] .doctor h2,
:root[data-mood="noir"] .contact-wrap h2 { color: oklch(0.22 0.02 55) !important; }
:root[data-mood="noir"] .doctor .lead,
:root[data-mood="noir"] .contact-wrap .lead { color: oklch(0.40 0.02 55) !important; }
:root[data-mood="noir"] .doctor .doctor-stat-num,
:root[data-mood="noir"] .contact-wrap .contact-info-val { color: oklch(0.45 0.07 50) !important; }
:root[data-mood="noir"] .doctor-stat-label,
:root[data-mood="noir"] .contact-info-label { color: oklch(0.50 0.02 55) !important; }
:root[data-mood="noir"] .doctor-cred { color: oklch(0.42 0.02 55); }
:root[data-mood="noir"] .doctor-cred::before { background: oklch(0.50 0.07 60); }
:root[data-mood="noir"] .contact-info-ico { background: rgba(0,0,0,0.06); color: oklch(0.45 0.07 50); }
:root[data-mood="noir"] .footer { background: oklch(0.16 0.015 55); }

/* Hero gets a darker glow in Noir */
:root[data-mood="noir"] .hero {
  background:
    radial-gradient(60% 50% at 88% 18%, oklch(0.40 0.04 30 / 0.55), transparent 60%),
    radial-gradient(50% 40% at 10% 90%, oklch(0.32 0.04 50 / 0.55), transparent 60%),
    var(--bg);
}
:root[data-mood="noir"] .nav.is-scrolled {
  background: oklch(0.20 0.018 55 / 0.78);
  border-bottom-color: var(--hair);
}
:root[data-mood="noir"] .brand-mark { color: oklch(0.94 0.02 70); }

/* Service cards in noir get warmer interior glow */
:root[data-mood="noir"] .svc,
:root[data-mood="noir"] .booking,
:root[data-mood="noir"] .tst-stage {
  background: oklch(0.28 0.022 55);
}
:root[data-mood="noir"] .booking { color: oklch(0.95 0.02 70); }
:root[data-mood="noir"] .booking-title { color: oklch(0.95 0.02 70); }
:root[data-mood="noir"] .booking-help { color: oklch(0.70 0.02 60); }
:root[data-mood="noir"] .field input,
:root[data-mood="noir"] .field textarea,
:root[data-mood="noir"] .field select,
:root[data-mood="noir"] .pill,
:root[data-mood="noir"] .slot {
  background: oklch(0.22 0.018 55);
  color: oklch(0.94 0.02 70);
  border-color: var(--hair-strong);
}
:root[data-mood="noir"] .pill.is-selected,
:root[data-mood="noir"] .slot.is-selected {
  background: oklch(0.86 0.07 78);
  color: oklch(0.22 0.02 55);
  border-color: oklch(0.86 0.07 78);
}

/* In Porcelain, soften the doctor/contact dark to a slate */
:root[data-mood="porcelain"] .doctor,
:root[data-mood="porcelain"] .contact-wrap {
  background: oklch(0.20 0.025 250);
}

/* ────────────────────────────────────────────────────────────
   DISPLAY typeface variants
   ──────────────────────────────────────────────────────────── */
:root[data-display="italiana"] { --f-display: "Italiana", "Cormorant Garamond", serif; }
:root[data-display="dm"]       { --f-display: "DM Serif Display", "Cormorant Garamond", serif; }
:root[data-display="tenor"]    { --f-display: "Tenor Sans", "Jost", sans-serif; }

/* Italiana is extremely thin so it benefits from looser tracking. DM Serif
   is heavy and needs tighter tracking. Tenor sans wants normal tracking. */
:root[data-display="italiana"] .hero-headline,
:root[data-display="italiana"] .section-title,
:root[data-display="italiana"] .philo-quote { letter-spacing: 0.005em; }
:root[data-display="dm"] .hero-headline,
:root[data-display="dm"] .section-title,
:root[data-display="dm"] .philo-quote { letter-spacing: -0.02em; line-height: 1; }
:root[data-display="tenor"] .hero-headline,
:root[data-display="tenor"] .section-title,
:root[data-display="tenor"] .philo-quote { letter-spacing: 0.01em; font-weight: 400; }

/* Brand mark uses display font too */
:root[data-display="dm"] .brand-mark { font-size: 17px; }
:root[data-display="tenor"] .brand-mark { font-size: 15px; letter-spacing: 0.12em; }

/* ────────────────────────────────────────────────────────────
   RHYTHM variants — reshape the pacing of the entire page
   ──────────────────────────────────────────────────────────── */

/* CINEMATIC: bigger, breathier, more screen real-estate */
:root[data-rhythm="cinematic"] {
  --max-w: 1440px;
  --gutter: clamp(28px, 5vw, 88px);
}
:root[data-rhythm="cinematic"] .section-pad { padding: clamp(100px, 13vw, 200px) 0; }
:root[data-rhythm="cinematic"] .section-pad-sm { padding: clamp(72px, 8vw, 130px) 0; }
:root[data-rhythm="cinematic"] .hero-headline { font-size: clamp(68px, 11.5vw, 180px); line-height: 0.88; }
:root[data-rhythm="cinematic"] .section-title { font-size: clamp(54px, 6.5vw, 110px); }
:root[data-rhythm="cinematic"] .philo-quote   { font-size: clamp(42px, 5.5vw, 88px); }
:root[data-rhythm="cinematic"] .hero { padding-bottom: clamp(100px, 11vw, 180px); }
:root[data-rhythm="cinematic"] .hero-utility { margin-bottom: 130px; }
:root[data-rhythm="cinematic"] .svc-feature-title { font-size: clamp(44px, 4.2vw, 64px); }
:root[data-rhythm="cinematic"] .booking-title { font-size: clamp(34px, 3.2vw, 50px); }

/* BOUTIQUE: tighter, denser, more content per viewport */
:root[data-rhythm="boutique"] {
  --max-w: 1160px;
  --gutter: clamp(18px, 3vw, 40px);
}
:root[data-rhythm="boutique"] .section-pad { padding: clamp(48px, 6vw, 88px) 0; }
:root[data-rhythm="boutique"] .section-pad-sm { padding: clamp(36px, 4vw, 64px) 0; }
:root[data-rhythm="boutique"] .hero-headline { font-size: clamp(40px, 6.5vw, 96px); line-height: 0.96; }
:root[data-rhythm="boutique"] .section-title { font-size: clamp(28px, 3.4vw, 56px); }
:root[data-rhythm="boutique"] .philo-quote   { font-size: clamp(26px, 3.2vw, 48px); }
:root[data-rhythm="boutique"] .hero { padding-top: 110px; padding-bottom: clamp(56px, 6vw, 96px); }
:root[data-rhythm="boutique"] .hero-utility { margin-bottom: 56px; }
:root[data-rhythm="boutique"] .svc-grid { gap: 10px; }
:root[data-rhythm="boutique"] .svc { padding: 16px; }
:root[data-rhythm="boutique"] .svc-img { margin-bottom: 14px; aspect-ratio: 16/10; }
:root[data-rhythm="boutique"] .svc-title { font-size: 22px; }
:root[data-rhythm="boutique"] .svc-desc { min-height: 0; font-size: 13px; }
:root[data-rhythm="boutique"] .svc-foot { margin-top: 14px; padding-top: 12px; }
:root[data-rhythm="boutique"] .svc-feature-title { font-size: clamp(26px, 2.5vw, 36px); }
:root[data-rhythm="boutique"] .hero-badge { width: 110px; height: 110px; font-size: 11px; }
:root[data-rhythm="boutique"] .hero-badge .num { font-size: 26px; }
:root[data-rhythm="boutique"] .trust-num { font-size: 30px; }
:root[data-rhythm="boutique"] .tst-stage { padding: clamp(28px, 3vw, 48px); min-height: 280px; }
:root[data-rhythm="boutique"] .tst-quote { font-size: clamp(20px, 1.9vw, 28px); }
:root[data-rhythm="boutique"] .booking { padding: clamp(20px, 3vw, 32px); }
:root[data-rhythm="boutique"] .booking-title { font-size: clamp(22px, 2vw, 30px); }
:root[data-rhythm="boutique"] .ba-stage { aspect-ratio: 5/4; }
:root[data-rhythm="boutique"] .doctor-portrait { aspect-ratio: 3/4; }
:root[data-rhythm="boutique"] .footer { padding: 56px 0 32px; }

/* Smooth the transitions between modes so toggling feels intentional */
html, body,
.hero, .trust, .doctor, .contact-wrap, .tst-wrap, .booking,
.svc, .nav, .footer, .field input, .field textarea, .pill, .slot {
  transition: background-color .5s cubic-bezier(.2,.7,.2,1), color .5s cubic-bezier(.2,.7,.2,1), border-color .5s;
}
.hero-headline, .section-title, .philo-quote, .display, .brand-name,
.svc-title, .svc-feature-title, .doctor h2, .tst-quote, .booking-title {
  transition: font-family .3s, font-size .5s cubic-bezier(.2,.7,.2,1), letter-spacing .35s;
}

/* ============================================================
   Diario — editorial cards (link affordance) + article subpage
   ============================================================ */
.edu-card { text-decoration: none; color: inherit; }
.edu-card .edu-img { overflow: hidden; }
.edu-card .edu-img img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.edu-card:hover .edu-img img { transform: scale(1.04); }
.edu-readmore {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-ink);
}
.edu-card:hover .edu-readmore .arrow { transform: translateX(4px); }
.edu-readmore .arrow { transition: transform .35s cubic-bezier(.2,.7,.2,1); }

/* ---- Before/After slider: smooth intro glide ----
   Register --ba-x as an animatable percentage so it can be transitioned
   (an unregistered custom property won't interpolate). The transition is
   only active during the auto-animation (.ba-animating); dragging stays
   instant because the class is removed on pointer-down. */
@property --ba-x {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}
.ba-animating { transition: --ba-x 0.62s cubic-bezier(.45, 0, .25, 1); }
/* Fallback for browsers without @property: smooth the dependent properties. */
@supports not (background: paint(x)) {
  .ba-animating .ba-after { transition: clip-path 0.62s cubic-bezier(.45, 0, .25, 1); }
  .ba-animating .ba-handle,
  .ba-animating .ba-knob { transition: left 0.62s cubic-bezier(.45, 0, .25, 1); }
}

/* ---- Instagram gallery band ----
   A soft, slightly warmer panel with a hairline top edge reads as an
   intentional "feed" section and removes the dead space above it. */
.ig-section {
  background: var(--surface-2);
  border-top: 1px solid var(--hair);
  padding-top: clamp(48px, 6vw, 80px);
}
.ig-tile { display: block; text-decoration: none; }
.ig-cap {
  position: absolute; left: 12px; bottom: 12px; z-index: 3;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff;
  background: rgba(28, 18, 12, 0.42);
  backdrop-filter: blur(6px);
  padding: 5px 10px; border-radius: 99px;
  pointer-events: none;
}
@media (max-width: 760px) {
  .ig-cap { left: 8px; bottom: 8px; font-size: 8px; letter-spacing: 0.06em; padding: 4px 7px; }
}

/* ---- Article page ----
   The header text, hero image and body all share one column width
   so the copy lines up exactly with the photo on every screen. */
.art { --art-w: 860px; padding: clamp(96px, 12vw, 150px) 0 clamp(60px, 8vw, 110px); }
.art-shell { max-width: var(--art-w); }

.art-back {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 38px;
  transition: color .25s, gap .25s;
}
.art-back:hover { color: var(--gold-ink); gap: 13px; }

.art-title {
  font-family: var(--f-display);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04; letter-spacing: -0.01em;
  color: var(--espresso);
  margin-top: 20px;
}
.art-dek {
  font-family: var(--f-serif);
  font-size: clamp(19px, 1.5vw, 24px);
  font-style: italic; font-weight: 300;
  color: var(--muted); line-height: 1.5;
  margin-top: 26px; max-width: 62ch;
}
.art-byline {
  display: flex; align-items: center; gap: 14px;
  margin-top: 38px; padding-top: 28px;
  border-top: 1px solid var(--hair);
}
.art-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; flex: none;
  box-shadow: 0 0 0 1px var(--hair-strong);
}
.art-byline-text { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.art-byline-text strong { color: var(--espresso); font-weight: 500; }
.art-byline-meta { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

.art-hero-wrap { margin-top: 48px; margin-bottom: 8px; max-width: var(--art-w); }
.art-hero-fig { margin: 0; }
.art-hero-fig img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-2);
}

.art-body { max-width: var(--art-w); margin-top: clamp(40px, 5vw, 64px); }
.art-h2 {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.6vw, 34px);
  color: var(--espresso); line-height: 1.12;
  margin: 52px 0 18px;
}
.art-h2:first-child { margin-top: 0; }
.art-p {
  font-size: clamp(17px, 1.1vw, 19px);
  line-height: 1.75; color: var(--ink);
  margin-bottom: 22px;
}
.art-list { margin: 6px 0 26px; padding-left: 0; list-style: none; }
.art-list li {
  position: relative; padding-left: 28px; margin-bottom: 13px;
  font-size: clamp(16px, 1.05vw, 18px); line-height: 1.6; color: var(--ink);
}
.art-list li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
}
.art-quote {
  margin: 40px 0; padding: 4px 0 4px 28px;
  border-left: 3px solid var(--gold);
  font-family: var(--f-serif); font-style: italic; font-weight: 300;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.35; color: var(--espresso);
}
.art-figure { margin: 0; }
.art-figure-inline { margin: 40px 0; }
.art-figure-inline img {
  width: 100%; border-radius: var(--r-md);
  aspect-ratio: 3/2; object-fit: cover;
  box-shadow: var(--shadow-1);
}
.art-figure figcaption {
  margin-top: 12px; font-size: 13px; color: var(--muted);
  font-style: italic; text-align: center; letter-spacing: 0.01em;
}

.art-cta {
  margin-top: 64px; padding: clamp(32px, 4vw, 48px);
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  text-align: center;
}
.art-cta-title {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.4vw, 32px); color: var(--espresso);
}
.art-cta-sub {
  margin: 14px auto 28px; max-width: 46ch;
  color: var(--muted); font-size: 16px; line-height: 1.6;
}
.art-cta-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
@media (max-width: 520px) {
  .art-cta-actions .btn { width: 100%; justify-content: center; }
}
