/* ===================================================================
   E&C Esthetic Med Spa — Houston, TX
   Brand: deep black + warm gold, elegant serif. Bilingual EN/ES.
   =================================================================== */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  --text-3xl: clamp(2.6rem, 1.2rem + 4.6vw, 4.75rem);
  --text-hero: clamp(3rem, 0.6rem + 7vw, 7rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem;  --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem;  --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;    --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem; --radius-md: 0.625rem; --radius-lg: 1rem;
  --radius-xl: 1.5rem;   --radius-full: 9999px;

  /* Content widths */
  --content-narrow: 680px;
  --content-default: 1040px;
  --content-wide: 1280px;

  /* Motion */
  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --font-body: 'Jost', 'Work Sans', -apple-system, sans-serif;
}

/* ---------- Theme: default DARK (brand) ---------- */
:root, [data-theme='dark'] {
  --color-bg:        #0c0b09;
  --color-surface:   #141210;
  --color-surface-2: #1b1815;
  --color-surface-3: #221e19;
  --color-border:    #322c24;
  --color-divider:   #262019;

  --color-text:        #efeae1;
  --color-text-muted:  #a89f92;
  --color-text-faint:  #6f675b;
  --color-text-inverse:#0c0b09;

  --color-gold:        #cba14e;
  --color-gold-soft:   #e2c886;
  --color-gold-deep:   #a67f34;
  --color-gold-glow:   rgba(203,161,78,0.16);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 28px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.6);
  --hero-overlay: linear-gradient(180deg, rgba(6,5,4,0.55) 0%, rgba(6,5,4,0.35) 40%, rgba(6,5,4,0.85) 100%);
}

/* ---------- Theme: LIGHT ---------- */
[data-theme='light'] {
  --color-bg:        #faf7f1;
  --color-surface:   #ffffff;
  --color-surface-2: #f4efe6;
  --color-surface-3: #efe8db;
  --color-border:    #e3d9c8;
  --color-divider:   #ece4d6;

  --color-text:        #2a251d;
  --color-text-muted:  #6f6656;
  --color-text-faint:  #a99e8b;
  --color-text-inverse:#faf7f1;

  --color-gold:        #a67f34;
  --color-gold-soft:   #c19a4c;
  --color-gold-deep:   #86642a;
  --color-gold-glow:   rgba(166,127,52,0.12);

  --shadow-sm: 0 1px 2px rgba(60,45,20,0.06);
  --shadow-md: 0 8px 28px rgba(60,45,20,0.10);
  --shadow-lg: 0 24px 60px rgba(60,45,20,0.16);
  --hero-overlay: linear-gradient(180deg, rgba(20,15,8,0.42) 0%, rgba(20,15,8,0.28) 40%, rgba(20,15,8,0.72) 100%);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  transition: background 400ms ease, color 400ms ease;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--color-gold); color: var(--color-text-inverse); }

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: var(--space-6); }
.wrap--default { max-width: var(--content-default); }
.wrap--narrow { max-width: var(--content-narrow); }
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.section--tight { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--color-gold);
  display: inline-block;
  opacity: 0.7;
}
.section-head { max-width: 620px; margin-bottom: var(--space-12); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { font-size: var(--text-2xl); margin-top: var(--space-4); }
.section-head p { color: var(--color-text-muted); margin-top: var(--space-5); font-size: var(--text-lg); font-weight: 300; }

.gold { color: var(--color-gold); }
.serif-accent { font-family: var(--font-display); font-style: italic; }

/* Reveal on scroll (opacity only — no CLS) */
.reveal { opacity: 1; }
@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    animation: fade-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 42%;
  }
}
@keyframes fade-in { to { opacity: 1; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: transform var(--transition-interactive), background var(--transition-interactive),
              color var(--transition-interactive), box-shadow var(--transition-interactive),
              border-color var(--transition-interactive);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--gold {
  background: linear-gradient(135deg, var(--color-gold-soft), var(--color-gold-deep));
  color: #1a1305;
  box-shadow: 0 6px 22px var(--color-gold-glow);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 34px var(--color-gold-glow); }
.btn--gold:active { transform: translateY(0); }
.btn--outline {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: transparent;
}
.btn--outline:hover { background: var(--color-gold); color: #1a1305; transform: translateY(-2px); }
.btn--ghost { color: var(--color-text); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-gold); color: var(--color-gold); }
.btn--sm { padding: var(--space-3) var(--space-5); font-size: var(--text-xs); }

/* ============================ HEADER ============================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: transform 400ms var(--ease-out), background 300ms ease, box-shadow 300ms ease, backdrop-filter 300ms ease;
  padding-block: var(--space-4);
}
.header--scrolled {
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--color-divider);
  padding-block: var(--space-3);
}
.header--hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }

.brand { display: inline-flex; align-items: center; }
.brand__logo { display: block; height: 52px; width: auto; }
.brand--footer .brand__logo { height: 72px; }
/* Theme-aware logo swap: dark logo (cream wordmark) on dark theme, gold-on-dark original on light theme */
.brand__logo--light { display: none; }
[data-theme="light"] .brand__logo--dark { display: none; }
[data-theme="light"] .brand__logo--light { display: block; }

.nav { display: flex; align-items: center; gap: var(--space-8); }
.nav__links { display: flex; gap: var(--space-6); list-style: none; }
.nav__links a {
  font-size: var(--text-sm); font-weight: 400; letter-spacing: 0.06em;
  color: var(--color-text-muted); position: relative; padding-block: var(--space-1);
  transition: color var(--transition-interactive);
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--color-gold); transition: width var(--transition-interactive);
}
.nav__links a:hover { color: var(--color-text); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: var(--space-3); }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--color-border); border-radius: var(--radius-full);
  padding: 3px; font-size: var(--text-xs); font-weight: 500;
}
.lang-toggle button {
  padding: 5px 11px; border-radius: var(--radius-full); color: var(--color-text-muted);
  letter-spacing: 0.05em; transition: all var(--transition-interactive);
}
.lang-toggle button.active { background: var(--color-gold); color: #1a1305; }

.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border); border-radius: var(--radius-full);
  color: var(--color-text-muted); transition: all var(--transition-interactive);
}
.icon-btn:hover { color: var(--color-gold); border-color: var(--color-gold); }

.menu-btn { display: none; }

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99; background: var(--color-bg);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: var(--space-6);
  opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 300ms ease;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav a { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-text); }
.mobile-nav a:hover { color: var(--color-gold); }
.mobile-nav .btn { margin-top: var(--space-4); }

/* ============================ HERO ============================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: 120px; padding-bottom: var(--space-20); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero__glow {
  position: absolute; z-index: -1; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  right: -10%; top: 10%; border-radius: 50%;
  background: radial-gradient(circle, var(--color-gold-glow) 0%, transparent 68%);
  pointer-events: none;
}
.hero__inner { max-width: 760px; }
.hero h1 {
  font-size: var(--text-hero); font-weight: 500; color: #fff; line-height: 1.02;
  margin-top: var(--space-6); text-shadow: 0 2px 40px rgba(0,0,0,0.4);
}
.hero h1 em { font-style: italic; color: var(--color-gold-soft); }
.hero__lead { color: rgba(255,255,255,0.9); font-size: var(--text-lg); font-weight: 300; margin-top: var(--space-6); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-10); }
.hero .eyebrow { color: var(--color-gold-soft); }
.hero .eyebrow::before { background: var(--color-gold-soft); }

.hero__stats { display: flex; gap: var(--space-10); margin-top: var(--space-16); flex-wrap: wrap; }
.hero__stat b { display: block; font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-gold-soft); line-height: 1; }
.hero__stat span { font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.7); }

/* ============================ MARQUEE ============================ */
.marquee {
  border-block: 1px solid var(--color-divider); background: var(--color-surface);
  overflow: hidden; padding-block: var(--space-5);
}
.marquee__track { display: flex; gap: var(--space-12); width: max-content; animation: scroll-x 32s linear infinite; }
.marquee__track span {
  font-family: var(--font-display); font-style: italic; font-size: var(--text-lg);
  color: var(--color-text-muted); display: inline-flex; align-items: center; gap: var(--space-12);
  white-space: nowrap;
}
.marquee__track span::after { content: '✦'; color: var(--color-gold); font-style: normal; font-size: 0.7em; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================ INTRO / ABOUT-SNIP ============================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-10), 6vw, var(--space-24)); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.split__media .badge-float {
  position: absolute; bottom: -22px; left: -22px; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-md); max-width: 240px;
}
.split__media .badge-float b { font-family: var(--font-display); color: var(--color-gold); font-size: var(--text-lg); }
.split__media .badge-float p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 2px; }
.split__body h2 { font-size: var(--text-2xl); }
.split__body p { color: var(--color-text-muted); margin-top: var(--space-5); font-weight: 300; }
.split__body .btn { margin-top: var(--space-8); }
.signature { font-family: var(--font-display); font-style: italic; font-size: var(--text-xl); color: var(--color-gold); margin-top: var(--space-6); }

/* ============================ SERVICES ============================ */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.cat-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 460px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-8);
  border: 1px solid var(--color-border); isolation: isolate;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card__img { position: absolute; inset: 0; z-index: -2; }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.cat-card:hover .cat-card__img img { transform: scale(1.06); }
.cat-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,5,4,0.05) 0%, rgba(6,5,4,0.5) 55%, rgba(6,5,4,0.92) 100%);
}
.cat-card__num { font-family: var(--font-display); font-size: var(--text-sm); color: var(--color-gold-soft); letter-spacing: 0.2em; }
.cat-card h3 { font-size: var(--text-xl); color: #fff; margin-top: var(--space-2); }
.cat-card p { color: rgba(255,255,255,0.82); font-size: var(--text-sm); margin-top: var(--space-3); font-weight: 300; }
.cat-card ul { list-style: none; margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cat-card li {
  font-size: var(--text-xs); letter-spacing: 0.04em; color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.28); border-radius: var(--radius-full);
  padding: 4px 11px; backdrop-filter: blur(4px);
}
.cat-card__link { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-5); color: var(--color-gold-soft); font-size: var(--text-sm); letter-spacing: 0.08em; text-transform: uppercase; }
.cat-card__link svg { transition: transform var(--transition-interactive); }
.cat-card:hover .cat-card__link svg { transform: translateX(4px); }

/* Detailed treatment list per category */
.treatments { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5) var(--space-10); margin-top: var(--space-10); }
.treatment {
  border-top: 1px solid var(--color-divider); padding-top: var(--space-5);
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: start;
}
.treatment__no { font-family: var(--font-display); font-style: italic; color: var(--color-gold); font-size: var(--text-lg); }
.treatment h4 { font-family: var(--font-body); font-weight: 500; font-size: var(--text-base); letter-spacing: 0.01em; color: var(--color-text); }
.treatment p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-2); font-weight: 300; }

.cat-detail { margin-top: var(--space-24); }
.cat-detail:first-of-type { margin-top: 0; }
.cat-detail__head { display: flex; align-items: baseline; gap: var(--space-5); flex-wrap: wrap; }
.cat-detail__head h3 { font-size: var(--text-2xl); }
.cat-detail__head .tag { font-size: var(--text-xs); letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-gold); }
.cat-detail__lead { color: var(--color-text-muted); font-size: var(--text-lg); font-weight: 300; margin-top: var(--space-4); max-width: 60ch; }

/* ============================ RESULTS / GALLERY ============================ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.gallery figure { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--color-border); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-4);
  background: linear-gradient(180deg, transparent, rgba(6,5,4,0.85));
  color: #fff; font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase;
}
.gallery-note { text-align: center; margin-top: var(--space-6); font-size: var(--text-sm); color: var(--color-text-faint); }

/* ============================ WHY / VALUES ============================ */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.value { padding: var(--space-8) var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.value__icon { width: 42px; height: 42px; color: var(--color-gold); margin-bottom: var(--space-5); }
.value h3 { font-family: var(--font-body); font-weight: 500; font-size: var(--text-lg); }
.value p { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: var(--space-3); font-weight: 300; }

/* ============================ TESTIMONIALS ============================ */
.testi-wrap { background: var(--color-surface); border-block: 1px solid var(--color-divider); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.testi {
  padding: var(--space-8); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  background: var(--color-bg); display: flex; flex-direction: column; gap: var(--space-4);
}
.testi__stars { color: var(--color-gold); letter-spacing: 3px; font-size: var(--text-sm); }
.testi__quote { font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); line-height: 1.4; color: var(--color-text); }
.testi__author { margin-top: auto; display: flex; align-items: center; gap: var(--space-3); }
.testi__avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--color-gold-soft), var(--color-gold-deep)); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; color: #1a1305; font-size: var(--text-base); flex-shrink: 0; }
.testi__author b { font-weight: 500; font-size: var(--text-sm); }
.testi__author span { display: block; font-size: var(--text-xs); color: var(--color-text-faint); letter-spacing: 0.04em; }
.testi-cta { text-align: center; margin-top: var(--space-10); }

/* ============================ BOOKING / POLICY ============================ */
.booking { position: relative; overflow: hidden; }
.booking__glow { position: absolute; left: -10%; bottom: -30%; width: 50vw; height: 50vw; max-width: 640px; max-height: 640px; border-radius: 50%; background: radial-gradient(circle, var(--color-gold-glow), transparent 70%); z-index: 0; }
.booking .wrap { position: relative; z-index: 1; }
.booking__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(var(--space-10), 5vw, var(--space-20)); align-items: start; }
.policy-card {
  border: 1px solid var(--color-gold); border-radius: var(--radius-lg); padding: var(--space-10);
  background: color-mix(in oklab, var(--color-surface) 92%, var(--color-gold) 8%);
}
.policy-card .fee { font-family: var(--font-display); font-size: var(--text-3xl); color: var(--color-gold); line-height: 1; }
.policy-card .fee small { font-size: var(--text-sm); font-family: var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text-muted); display: block; margin-bottom: var(--space-2); }
.policy-card p { color: var(--color-text-muted); margin-top: var(--space-5); font-weight: 300; }
.policy-card .credit { margin-top: var(--space-6); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--color-gold-glow); border: 1px solid var(--color-border); font-size: var(--text-sm); color: var(--color-text); display: flex; gap: var(--space-3); align-items: flex-start; }
.policy-card .credit svg { color: var(--color-gold); flex-shrink: 0; margin-top: 2px; }

/* Form */
.form { display: grid; gap: var(--space-5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); }
.field input, .field select, .field textarea {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-4); font-size: var(--text-base); color: var(--color-text); font-weight: 300;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-gold); box-shadow: 0 0 0 3px var(--color-gold-glow); }
.field textarea { resize: vertical; min-height: 96px; }
.form__note { font-size: var(--text-xs); color: var(--color-text-faint); }
.form-success { display: none; padding: var(--space-6); border: 1px solid var(--color-gold); border-radius: var(--radius-md); background: var(--color-gold-glow); color: var(--color-text); text-align: center; }
.form-success.show { display: block; }

/* Booking widget panel (Vagaro embed) */
.widget-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.6);
}
.widget-panel__head {
  background: linear-gradient(120deg, var(--color-gold-deep), var(--color-gold));
  color: #1a1408;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: var(--space-4) var(--space-6);
  text-align: center;
}
.widget-panel__body { padding: var(--space-4); background: #ffffff; }
/* Vagaro injects an iframe into .vagaro — make it fill the panel */
.widget-panel .vagaro { width: 100% !important; }
.widget-panel .vagaro iframe {
  width: 100% !important;
  min-height: 640px;
  border: 0;
  display: block;
}
/* hide the small "Powered by / Salon Software" credit line that ships with the embed */
.widget-panel .vagaro > a,
.widget-panel .vagaro > style,
.widget-panel .vagaro-footer { display: none !important; }

/* ============================ FAQ ============================ */
.faq-grid { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--color-divider); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--space-6);
  padding: var(--space-6) 0; text-align: left; font-family: var(--font-display); font-size: var(--text-lg);
  color: var(--color-text); transition: color var(--transition-interactive);
}
.faq-q:hover { color: var(--color-gold); }
.faq-q .plus { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq-q .plus::before, .faq-q .plus::after { content: ''; position: absolute; background: var(--color-gold); transition: transform var(--transition-interactive); }
.faq-q .plus::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-q .plus::after { left: 9px; top: 0; width: 2px; height: 20px; }
.faq-item.open .plus::after { transform: rotate(90deg) scaleX(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 380ms var(--ease-out); }
.faq-a p { padding-bottom: var(--space-6); color: var(--color-text-muted); font-weight: 300; }

/* ============================ MAP / LOCATION ============================ */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: stretch; }
.location-info { display: flex; flex-direction: column; gap: var(--space-6); }
.info-row { display: flex; gap: var(--space-4); align-items: flex-start; }
.info-row svg { color: var(--color-gold); flex-shrink: 0; margin-top: 3px; }
.info-row b { display: block; font-weight: 500; letter-spacing: 0.02em; }
.info-row span, .info-row a { color: var(--color-text-muted); font-weight: 300; }
.info-row a:hover { color: var(--color-gold); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); min-height: 380px; box-shadow: var(--shadow-md); }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(0.2); }

/* ============================ CTA BANNER ============================ */
.cta-banner { position: relative; overflow: hidden; text-align: center; }
.cta-banner__bg { position: absolute; inset: 0; z-index: -2; }
.cta-banner__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.cta-banner__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,5,4,0.78), rgba(6,5,4,0.9)); }
.cta-banner h2 { font-size: var(--text-3xl); color: #fff; }
.cta-banner h2 em { font-style: italic; color: var(--color-gold-soft); }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: var(--text-lg); font-weight: 300; margin-top: var(--space-5); max-width: 52ch; margin-inline: auto; }
.cta-banner .hero__cta { justify-content: center; }

/* ============================ FOOTER ============================ */
.footer { background: var(--color-surface); border-top: 1px solid var(--color-divider); padding-block: var(--space-20) var(--space-10); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-10); }
.footer__brand p { color: var(--color-text-muted); font-weight: 300; margin-top: var(--space-5); max-width: 34ch; font-size: var(--text-sm); }
.footer__col h4 { font-family: var(--font-body); font-weight: 500; font-size: var(--text-sm); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-gold); margin-bottom: var(--space-5); }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer__col a, .footer__col span { color: var(--color-text-muted); font-size: var(--text-sm); font-weight: 300; }
.footer__col a:hover { color: var(--color-gold); }
.socials { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.socials a { width: 38px; height: 38px; border: 1px solid var(--color-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); transition: all var(--transition-interactive); }
.socials a:hover { color: var(--color-gold); border-color: var(--color-gold); transform: translateY(-2px); }
.footer__bottom { margin-top: var(--space-16); padding-top: var(--space-8); border-top: 1px solid var(--color-divider); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: var(--text-xs); color: var(--color-text-faint); }

/* Floating book button (mobile) */
.book-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; display: none;
  box-shadow: var(--shadow-lg);
}

/* Bilingual visibility */
[data-lang-en], [data-lang-es] { display: none; }
[data-active-lang='en'] [data-lang-en] { display: revert; }
[data-active-lang='es'] [data-lang-es] { display: revert; }
/* keep inline elements inline */
span[data-lang-en], span[data-lang-es], em[data-lang-en], em[data-lang-es], b[data-lang-en], b[data-lang-es] { display: none; }
[data-active-lang='en'] span[data-lang-en], [data-active-lang='en'] em[data-lang-en], [data-active-lang='en'] b[data-lang-en] { display: inline; }
[data-active-lang='es'] span[data-lang-es], [data-active-lang='es'] em[data-lang-es], [data-active-lang='es'] b[data-lang-es] { display: inline; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-10); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .menu-btn { display: inline-flex; }
  .desktop-book { display: none; }
  .split { grid-template-columns: 1fr; gap: var(--space-10); }
  .split--reverse .split__media { order: 0; }
  .booking__grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .book-fab { display: inline-flex; }
  .split__media .badge-float { left: var(--space-4); bottom: var(--space-4); }
}
@media (max-width: 560px) {
  .wrap { padding-inline: var(--space-5); }
  .cat-grid { grid-template-columns: 1fr; }
  .treatments { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__stats { gap: var(--space-8); }
  .footer__grid { grid-template-columns: 1fr; }
  .brand__logo { height: 40px; }
  .brand--footer .brand__logo { height: 60px; }
}
