/* ==========================================================================
   חמצן בזמן — Design System
   Tokens generated from ui-ux-pro-max (Medical Clinic 58 + Beauty/Spa 32)
   See design-system/hamtzan-bazman/MASTER.md
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */
:root {
  /* Brand — colors.csv row 58 (Medical Clinic) */
  --brand-950: #052e33;
  --brand-900: #083344;
  --brand-800: #134e4a;
  --brand-700: #0e7490;
  --brand-600: #0891b2;
  --brand-500: #06b6d4;
  --brand-400: #22d3ee;
  --brand-100: #ccfbf1;
  --brand-50:  #f0fdfa;

  /* Warm accent — carries the spa half of the brand */
  --gold-700: #92400e;
  --gold-600: #b45309;
  --gold-500: #d97706;
  --gold-100: #fef3c7;

  /* Neutrals */
  --ink: #0f172a;
  --ink-soft: #334155;
  --ink-muted: #475569;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --danger: #b91c1c;
  --success: #15803d;

  /* Spacing scale (density 4) */
  --s-1: 8px;   --s-2: 12px;  --s-3: 16px;  --s-4: 24px;
  --s-5: 32px;  --s-6: 48px;  --s-7: 64px;  --s-8: 96px;

  /* Radii & elevation */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .07), 0 10px 24px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 24px 60px -20px rgba(8, 51, 68, .30);

  /* Type */
  --font-head: "Frank Ruhl Libre", "David Libre", Georgia, serif;
  --font-body: "Heebo", "Assistant", "Noto Sans Hebrew", Arial, sans-serif;

  /* Motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 180ms;
  --t-base: 240ms;

  --container: 1180px;
  --header-h: 76px;
}

/* --------------------------------------------------------------- 2. Reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--surface);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--brand-900);
  line-height: 1.25;
  margin: 0 0 var(--s-3);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); line-height: 1.14; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 var(--s-3); }

a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-800); }

/* Focus: 3px ring, never removed (styles.csv row 8) */
:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; right: 16px; top: -100px;
  background: var(--brand-900); color: #fff;
  padding: 12px 20px; border-radius: 0 0 var(--r-sm) var(--r-sm);
  z-index: 200; transition: top var(--t-base) var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.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;
}

/* --------------------------------------------------------------- 3. Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding-block: clamp(56px, 9vw, 104px); }
.section--tint { background: var(--brand-50); }
.section--alt  { background: var(--surface-alt); }

.section-head { max-width: 720px; margin-bottom: var(--s-6); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .06em;
  color: var(--brand-700); text-transform: uppercase;
  margin-bottom: var(--s-2);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--gold-500); border-radius: 2px;
}
.section-head--center .eyebrow::before { display: none; }
.eyebrow.no-dash::before { display: none; }

.lede { font-size: clamp(1.02rem, 1.6vw, 1.17rem); color: var(--ink-muted); }

/* --------------------------------------------------------------- 4. Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-weight: 700; font-size: 1.02rem; text-decoration: none; cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--primary { background: var(--brand-700); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--brand-800); color: #fff; }

/* #128c7e is the WhatsApp brand green but gives only 4.14:1 with white text.
   Darkened to clear 4.5:1 while staying recognisably WhatsApp. */
.btn--wa { background: #0f7568; color: #fff; box-shadow: var(--shadow-md); }
.btn--wa:hover { background: #0b6357; color: #fff; }

.btn--ghost { background: transparent; color: var(--brand-800); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--brand-50); border-color: var(--brand-600); color: var(--brand-800); }

.btn--light { background: #fff; color: var(--brand-900); }
.btn--light:hover { background: var(--brand-50); color: var(--brand-900); }

.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .94rem; }

/* --------------------------------------------------------------- 5. Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.header.is-stuck { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.scroll-progress {
  position: absolute; inset-inline-start: 0; bottom: -1px;
  height: 3px; width: 0%; background: var(--brand-600);
}

.header__inner {
  display: flex; align-items: center; gap: var(--s-4);
  min-height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo__mark { width: 42px; height: 42px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-family: var(--font-head); font-weight: 700; font-size: 1.28rem; color: var(--brand-900); }
.logo__tag { font-size: .74rem; color: var(--ink-muted); letter-spacing: .02em; }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block; padding: 10px 14px; border-radius: var(--r-pill);
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .97rem;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav__link:hover { background: var(--brand-50); color: var(--brand-800); }
.nav__link.is-active { color: var(--brand-800); background: var(--brand-50); font-weight: 700; }

/* Same look as .nav__link, deliberately a different class: used on the
   standalone accessibility/privacy pages, which link to index.html#id
   instead of #id. The homepage scrollspy in main.js queries .nav__link and
   calls document.querySelector() on every href - a cross-page "page.html#id"
   href would throw there, so these links opt out of that class on purpose. */
.subnav__link {
  display: block; padding: 10px 14px; border-radius: var(--r-pill);
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .97rem;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.subnav__link:hover { background: var(--brand-50); color: var(--brand-800); }
.subnav__link.is-current { color: var(--brand-800); background: var(--brand-50); font-weight: 700; }

.header__cta { display: flex; align-items: center; gap: 10px; flex: none; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--brand-800); text-decoration: none;
  direction: ltr; unicode-bidi: isolate;
  padding: 10px 12px; border-radius: var(--r-pill);
}
.header__phone:hover { background: var(--brand-50); }

.burger {
  display: none; width: 48px; height: 48px; flex: none;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); border-radius: var(--r-sm);
  cursor: pointer; margin-inline-start: auto;
}
.burger__bars { position: relative; width: 20px; height: 2px; background: var(--brand-900); border-radius: 2px; transition: background-color var(--t-fast); }
.burger__bars::before, .burger__bars::after {
  content: ""; position: absolute; inset-inline: 0; height: 2px; background: var(--brand-900); border-radius: 2px;
  transition: transform var(--t-base) var(--ease);
}
.burger__bars::before { top: -6px; }
.burger__bars::after { top: 6px; }
.burger[aria-expanded="true"] .burger__bars { background: transparent; }
.burger[aria-expanded="true"] .burger__bars::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none; border-top: 1px solid var(--border); background: #fff;
  padding: var(--s-3) 0 var(--s-4);
}
.mobile-nav.is-open { display: block; }
.mobile-nav__list { list-style: none; margin: 0 0 var(--s-3); padding: 0; }
.mobile-nav__list a {
  display: block; padding: 14px 4px; min-height: 48px;
  color: var(--ink); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--border);
}

/* --------------------------------------------------------------- 6. Hero */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 620px at 88% -10%, rgba(34, 211, 238, .20), transparent 62%),
    radial-gradient(760px 520px at 4% 8%, rgba(217, 119, 6, .09), transparent 60%),
    linear-gradient(180deg, var(--brand-50) 0%, #ffffff 78%);
  overflow: hidden;
  padding-block: clamp(48px, 8vw, 92px) clamp(56px, 8vw, 96px);
}

.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--brand-100);
  color: var(--brand-800); font-weight: 600; font-size: .9rem;
  padding: 8px 16px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm); margin-bottom: var(--s-4);
}
.hero__badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex: none;
}

.hero h1 { color: var(--brand-950); margin-bottom: var(--s-3); }
.hero h1 .accent {
  background: linear-gradient(180deg, transparent 62%, var(--gold-100) 62%);
  padding-inline: 4px;
}
.hero__lede { font-size: clamp(1.05rem, 1.9vw, 1.24rem); color: var(--ink-muted); max-width: 56ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: var(--s-5) var(--s-4); }

.hero__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hero__points li { display: flex; align-items: flex-start; gap: 10px; font-size: .99rem; color: var(--ink-soft); }
.hero__points svg { flex: none; margin-top: 5px; color: var(--brand-600); }

/* Hero visual: animated oxygen field */
.hero__visual { position: relative; }
.hero__card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(155deg, var(--brand-900), var(--brand-950) 65%);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--s-5);
  isolation: isolate;
}
.hero__card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(closest-side at 50% 40%, rgba(34, 211, 238, .32), transparent 72%);
}
.bubbles { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.bubble {
  position: absolute; bottom: -14%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.7), rgba(34,211,238,.14) 46%, rgba(34,211,238,0) 70%);
  border: 1px solid rgba(190, 250, 255, .22);
  animation: rise linear infinite;
}
/* Paused via IntersectionObserver in main.js once the hero scrolls out of view,
   so Low Power Mode (which prefers-reduced-motion does not catch) doesn't keep
   16 layers animating indefinitely on a page most session time is spent past. */
.bubbles-paused .bubble { animation-play-state: paused; }

@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(.85); opacity: 0; }
  12%  { opacity: .9; }
  85%  { opacity: .55; }
  100% { transform: translateY(-125%) translateX(var(--drift, 14px)) scale(1.12); opacity: 0; }
}

.hero__stat {
  position: relative; color: #eafcff;
}
.hero__stat strong {
  display: block; font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.4vw, 3.1rem); line-height: 1.05; color: #fff;
}
.hero__stat span { color: rgba(234, 252, 255, .82); font-size: .98rem; }

.hero__chip {
  /* Anchored near the top of the card, clear of .hero__stat which sits at
     the bottom (the card is justify-content:flex-end) - previously bottom
     positioned, which landed the chip on top of the stat text. */
  position: absolute; inset-inline-start: -18px; top: 24px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: var(--r-md); padding: 14px 18px;
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
  max-width: 260px;
}
.hero__chip svg { flex: none; color: var(--gold-500); }
.hero__chip p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }
.hero__chip b {
  display: block; color: var(--brand-900); font-family: var(--font-head);
  font-size: 1.15rem; letter-spacing: .01em; margin-bottom: 2px;
}

/* --------------------------------------------------------------- 7. Stats bar */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border-block: 1px solid var(--border);
}
.stats__item { background: #fff; padding: var(--s-5) var(--s-3); text-align: center; }
.stats__num {
  font-family: var(--font-head); font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 800; color: var(--brand-700); line-height: 1.1;
  direction: ltr; unicode-bidi: isolate;
}
.stats__label { font-size: .92rem; color: var(--ink-muted); margin: 6px 0 0; }

/* --------------------------------------------------------------- 8. Cards */
.grid { display: grid; gap: var(--s-4); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--s-4); height: 100%;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.card--link:hover, .card--link:focus-within {
  transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-100);
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .97rem; color: var(--ink-muted); }

.icon-badge {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: var(--s-3);
  background: var(--brand-50); color: var(--brand-700);
  border: 1px solid var(--brand-100);
}
.icon-badge--gold { background: var(--gold-100); color: var(--gold-700); border-color: #fde68a; }

/* Pain point cards */
.pain { display: flex; gap: 14px; align-items: flex-start; }
.pain svg { flex: none; color: var(--gold-600); margin-top: 3px; }
.pain h3 { font-size: 1.08rem; margin-bottom: 4px; }

/* --------------------------------------------------------------- 9. Wizard */
.wizard {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
  max-width: 860px; margin-inline: auto;
}
.wizard__bar { height: 6px; background: var(--brand-50); }
.wizard__fill {
  height: 100%; width: 33%; background: linear-gradient(90deg, var(--brand-600), var(--brand-400));
  transition: width var(--t-base) var(--ease);
}
.wizard__body { padding: clamp(24px, 4vw, 40px); }
.wizard__step { display: none; }
.wizard__step.is-active { display: block; animation: fade-up 320ms var(--ease) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.wizard__count { font-size: .85rem; font-weight: 700; color: var(--brand-700); letter-spacing: .04em; }
.wizard__q { font-family: var(--font-head); font-size: clamp(1.35rem, 2.6vw, 1.85rem); color: var(--brand-900); margin: 6px 0 var(--s-4); }

.opts { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.opt {
  display: flex; align-items: center; gap: 12px; text-align: start;
  min-height: 60px; padding: 14px 18px; width: 100%;
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--r-md);
  cursor: pointer; font-weight: 500; color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.opt:hover { border-color: var(--brand-600); background: var(--brand-50); transform: translateY(-2px); }
.opt:active { transform: scale(.97); background: var(--brand-50); }
.opt[aria-pressed="true"] { border-color: var(--brand-600); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-600); }
.opt svg { flex: none; color: var(--brand-600); }

.wizard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: var(--s-4); }

.result { display: none; }
.result.is-active { display: block; animation: fade-up 320ms var(--ease) both; }
.result__head { display: flex; align-items: center; gap: 14px; margin-bottom: var(--s-3); }
.result__title { font-family: var(--font-head); font-size: 1.5rem; color: var(--brand-900); margin: 0; }
.result__why {
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--r-md); padding: var(--s-3); margin-block: var(--s-3);
}
.result__why p { margin: 0; font-size: .97rem; }
.result__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-4); }

/* --------------------------------------------------------------- 10. Chamber */
.chamber {
  background: linear-gradient(160deg, var(--brand-900) 0%, var(--brand-950) 70%);
  color: #d8f6fb; position: relative; overflow: hidden;
}
.chamber::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(760px 460px at 82% 6%, rgba(34,211,238,.20), transparent 62%);
  pointer-events: none;
}
.chamber .container { position: relative; }
.chamber h2, .chamber h3 { color: #fff; }
.chamber .eyebrow { color: var(--brand-400); }
.chamber .eyebrow::before { background: var(--brand-400); }
.chamber .lede { color: rgba(216, 246, 251, .88); }

.chamber__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }

.spec {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(255,255,255,.12); border-radius: var(--r-md); overflow: hidden;
  margin-top: var(--s-4);
}
.spec__item { background: rgba(255,255,255,.05); padding: var(--s-3) var(--s-4); }
.spec__k { display: block; font-size: .84rem; color: rgba(216,246,251,.7); }
.spec__v {
  font-family: var(--font-head); font-size: 1.5rem; color: #fff; font-weight: 700;
  direction: ltr; unicode-bidi: isolate; display: block;
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); counter-reset: step; }
.steps li {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-md); padding: var(--s-3) var(--s-4);
}
.steps li::before {
  counter-increment: step; content: counter(step);
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-400); color: #04252b; font-weight: 800; font-size: .95rem;
}
.steps h3 { font-size: 1.05rem; margin: 0 0 2px; }
.steps p { margin: 0; font-size: .94rem; color: rgba(216,246,251,.82); }

.note {
  margin-top: var(--s-4); font-size: .88rem; color: rgba(216,246,251,.72);
  border-inline-start: 3px solid var(--gold-500); padding-inline-start: 14px;
}

/* --------------------------------------------------------------- 11. Treatments */
.treat {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--s-4); height: 100%;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.treat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.treat:active { transform: scale(.98); }

.treat__expand {
  align-self: flex-start; margin-top: -4px;
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font-size: .88rem; font-weight: 700; color: var(--brand-700);
  display: inline-flex; align-items: center; gap: 4px; min-height: 32px;
}
.treat__expand:hover { color: var(--brand-800); text-decoration: underline; }
.treat__expand svg { transition: transform var(--t-base) var(--ease); }
.treat__expand[aria-expanded="true"] svg { transform: rotate(45deg); }
.treat__more { display: none; margin: 0; font-size: .93rem; color: var(--ink-muted); }
.treat__more.is-open { display: block; }
.treat__top { display: flex; align-items: center; gap: 12px; }
.treat__ico {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100);
}
.treat h3 { margin: 0; font-size: 1.06rem; }
.treat p { margin: 0; font-size: .95rem; color: var(--ink-muted); }
.treat__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tag {
  font-size: .78rem; font-weight: 600; color: var(--brand-800);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: 4px 10px; border-radius: var(--r-pill);
}
.tag--gold { color: var(--gold-700); background: var(--gold-100); border-color: #fde68a; }

/* --------------------------------------------------------------- 12. About */
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about__portrait {
  border-radius: var(--r-lg); overflow: hidden; position: relative;
  background: linear-gradient(160deg, var(--brand-100), var(--brand-50));
  aspect-ratio: 4 / 5; display: grid; place-items: center;
  border: 1px solid var(--brand-100);
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__placeholder { text-align: center; color: var(--brand-700); padding: var(--s-4); }
.about__placeholder svg { margin: 0 auto 12px; }
.about__placeholder span { font-size: .88rem; }

.timeline { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.timeline li { display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: baseline; }
.timeline b {
  font-family: var(--font-head); color: var(--gold-700); font-size: 1.05rem;
  direction: ltr; unicode-bidi: isolate; text-align: start;
}
.timeline span { color: var(--ink-soft); font-size: .98rem; }

.quote {
  background: #fff; border: 1px solid var(--border); border-inline-start: 4px solid var(--gold-500);
  border-radius: var(--r-md); padding: var(--s-4); margin-top: var(--s-4);
}
.quote p { font-family: var(--font-head); font-size: 1.1rem; color: var(--brand-900); margin: 0 0 8px; }
.quote cite { font-style: normal; font-size: .88rem; color: var(--ink-muted); }

/* --------------------------------------------------------------- 13. Testimonials */
.tsm {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--s-4); height: 100%; display: flex; flex-direction: column; gap: 12px;
}
.stars { display: flex; gap: 3px; color: var(--gold-500); }
.tsm p { margin: 0; font-size: 1rem; color: var(--ink-soft); }
.tsm footer { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 8px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700;
  background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100);
  overflow: hidden;
}
/* Swap <span class="avatar">?</span> for <img class="avatar" src="..." alt="..."> once real photos exist */
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.tsm cite { font-style: normal; font-weight: 600; color: var(--brand-900); display: block; font-size: .95rem; }
.tsm small { color: var(--ink-muted); font-size: .84rem; }

/* 13a. Testimonials carousel, added by main.js when 2+ cards exist.
   Markup stays a plain static grid without JS, so nothing breaks if the script fails;
   the class below is only ever applied by JS on top of the existing .grid--3/.tsm markup. */
.grid--3.tsm-carousel { position: relative; display: block; perspective: 1400px; }
.tsm-carousel > .tsm {
  /* Centered with inset + margin-inline:auto, not left:50%/translateX(-50%): that classic
     trick assumes translateX(-50%) always means "toward the start edge", but transforms
     ignore dir="rtl" and always shift along the physical x-axis, so on this RTL page it
     doubled the offset instead of centering the card. The left/right slot transforms below
     are deliberately physical (translateX, not inline-aware): this is a spatial wheel, not
     text flow, so "left seat" and "right seat" mean the same screen side in either direction. */
  position: absolute; inset-inline: 0; margin-inline: auto; top: 0; width: 100%; max-width: 560px; height: auto;
  backface-visibility: hidden; will-change: transform, opacity;
  /* Two different curves on purpose: an ease-in-out (slow, fast through the middle, slow
     into place) for the move itself, so it reads as a sweep rather than a snap between two
     spots, and a plain ease that finishes sooner for opacity/blur, so the fade settles just
     before the motion does instead of both landing in the same instant. */
  transition: transform 640ms cubic-bezier(.65, 0, .35, 1), opacity 420ms ease-out, filter 420ms ease-out;
}
/* Three seats on the wheel: center (read), and two smaller angled seats either side.
   Advancing a step re-assigns which card sits in which seat; because there are exactly
   three cards every seat is always filled, so the ring rotates forever with no gaps. */
.tsm-carousel > .tsm.is-center {
  transform: translateY(0) scale(1) rotateY(0deg); opacity: 1; filter: blur(0); z-index: 3; pointer-events: auto;
}
.tsm-carousel > .tsm.is-left {
  transform: translateX(-56%) translateY(16px) scale(.78) rotateY(20deg); opacity: .5; filter: blur(.5px);
  z-index: 2; pointer-events: auto; cursor: pointer;
}
.tsm-carousel > .tsm.is-right {
  transform: translateX(56%) translateY(16px) scale(.78) rotateY(-20deg); opacity: .5; filter: blur(.5px);
  z-index: 2; pointer-events: auto; cursor: pointer;
}
.tsm-carousel > .tsm.is-hidden { transform: scale(.6); opacity: 0; z-index: 1; pointer-events: none; }
@media (max-width: 720px) {
  /* Three seats fanned out this wide don't fit a phone screen; fall back to one
     centered card, same as the reduced-motion case below. */
  .tsm-carousel > .tsm.is-left, .tsm-carousel > .tsm.is-right { transform: scale(.6); opacity: 0; pointer-events: none; }
}
.tsm-controls { display: flex; align-items: center; justify-content: center; gap: var(--s-3); margin-top: var(--s-6); }
.tsm-nav {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: #fff;
  color: var(--brand-700); display: grid; place-items: center; cursor: pointer;
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.tsm-nav:hover { background: var(--brand-50); border-color: var(--brand-100); }
.tsm-nav:disabled { opacity: .35; cursor: not-allowed; }
.tsm-dots { display: flex; gap: 8px; }
.tsm-dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--brand-100);
  cursor: pointer; transition: width var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.tsm-dot.is-active { width: 22px; border-radius: 5px; background: var(--brand-600); }
@media (prefers-reduced-motion: reduce) {
  /* No ring motion: switch the visible card instantly instead of animating the sweep. */
  .tsm-carousel > .tsm { transition: opacity 0ms; filter: none; transform: none; }
  .tsm-carousel > .tsm.is-left, .tsm-carousel > .tsm.is-right { opacity: 0; pointer-events: none; }
}

/* -------------------------------------------------- 13b. CTA band (post-proof) */
.cta-band { background: var(--brand-800); padding-block: var(--s-6); }
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-4);
}
.cta-band h2 { color: #fff; margin-bottom: 4px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { margin: 0; color: var(--brand-100); }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --------------------------------------------------------------- 14. FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.faq__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 60px; padding: 18px var(--s-4);
  background: none; border: 0; cursor: pointer; text-align: start;
  font-weight: 600; font-size: 1.04rem; color: var(--brand-900);
  font-family: var(--font-head);
}
.faq__btn:hover { background: var(--brand-50); }
.faq__ico { flex: none; color: var(--brand-600); transition: transform var(--t-base) var(--ease); }
.faq__btn[aria-expanded="true"] .faq__ico { transform: rotate(45deg); }
.faq__panel { display: none; padding: 0 var(--s-4) var(--s-4); }
.faq__panel.is-open { display: block; }
.faq__panel p { margin: 0; color: var(--ink-muted); }

/* --------------------------------------------------------------- 15. Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 56px); align-items: start; }

.form { display: grid; gap: var(--s-3); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .94rem; color: var(--brand-900); }
.field .hint { font-size: .84rem; color: var(--ink-muted); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 13px 16px;
  background: #fff; border: 1.5px solid var(--border-strong); border-radius: var(--r-sm);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(8, 145, 178, .15);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field .err { display: none; font-size: .88rem; color: var(--danger); font-weight: 600; }
.field .err.is-shown { display: flex; align-items: center; gap: 6px; }
.field input[type="tel"], .field input[type="email"] { direction: ltr; text-align: start; }

.error-summary {
  background: #fef2f2; border: 1.5px solid #fecaca; border-radius: var(--r-sm);
  padding: var(--s-3); margin-bottom: var(--s-1);
}
.error-summary h3 { margin: 0 0 8px; font-size: 1rem; color: var(--danger); font-family: var(--font-body); }
.error-summary ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; }
.error-summary a { color: var(--danger); font-weight: 600; }

.form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-muted); }
.form__consent input { width: 24px; height: 24px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--brand-600); }

.form__status {
  display: none; gap: 10px; align-items: center;
  padding: 14px 16px; border-radius: var(--r-sm); font-weight: 600;
}
.form__status.is-shown { display: flex; }
.form__status--ok { background: #ecfdf5; color: var(--success); border: 1px solid #a7f3d0; }

.info { display: grid; gap: var(--s-3); }
.info__row {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-3) var(--s-4);
}
.info__row svg { flex: none; color: var(--brand-700); margin-top: 3px; }
.info__row b { display: block; color: var(--brand-900); font-size: .95rem; }
.info__row a, .info__row span { color: var(--ink-muted); font-size: .97rem; text-decoration: none; }
.info__row a { display: inline-block; padding-block: 8px; min-height: 24px; }
.info__row a:hover { color: var(--brand-700); text-decoration: underline; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.map-card {
  margin-top: var(--s-3); border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--brand-50);
  padding: var(--s-4); text-align: center;
  display: grid; justify-items: center; gap: 6px;
}
.map-card svg { color: var(--brand-700); }
.map-card__body b { display: block; color: var(--brand-900); font-size: 1.02rem; }
.map-card__body span { color: var(--ink-muted); font-size: .9rem; }
.map-card__actions { display: flex; gap: 10px; margin-top: var(--s-2); }

/* --------------------------------------------------------------- 16. Footer */
.footer { background: var(--brand-950); color: rgba(216, 246, 251, .78); padding-block: var(--s-7) var(--s-4); }
.footer a { color: rgba(216, 246, 251, .78); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: var(--s-5); }
.footer h4 { color: #fff; font-size: 1rem; margin: 0 0 var(--s-2); font-family: var(--font-head); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: .95rem; }
.footer ul a { display: inline-block; padding-block: 7px; min-height: 24px; }
.footer .logo__name { color: #fff; }
.footer .logo__tag { color: rgba(216,246,251,.6); }
.footer__about { font-size: .94rem; margin-top: var(--s-3); max-width: 34ch; }

.social { display: flex; gap: 10px; margin-top: var(--s-3); }
.social a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.social a:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

.footer__bottom {
  margin-top: var(--s-6); padding-top: var(--s-4);
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .87rem; color: rgba(216,246,251,.6);
}
.footer__bottom a { display: inline-block; padding-block: 6px; min-height: 24px; }
.disclaimer {
  margin-top: var(--s-4); font-size: .84rem; line-height: 1.7;
  color: rgba(216,246,251,.6); max-width: 90ch;
}

/* --------------------------------------------------------------- 17. Floating contact icons */
/* Desktop: single WhatsApp icon, bottom corner. */
.wa-float {
  position: fixed; inset-inline-start: 24px; bottom: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  /* Official WhatsApp brand green - icon-only button, see .fab--wa note. */
  background: #25d366; color: #fff; box-shadow: var(--shadow-lg);
  transition: transform var(--t-fast) var(--ease), bottom var(--t-base) var(--ease);
}
.wa-float:hover { transform: scale(1.06); color: #fff; }

/* Mobile: small stacked icon buttons instead of a full-width text bar,
   so they stay out of the way and are still comfortable to tap (52px, well
   over the 44px minimum). Hidden on desktop, .wa-float takes over there. */
.fab-stack {
  position: fixed; z-index: 90; display: none; flex-direction: column; gap: 10px;
  inset-inline-start: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  transition: bottom var(--t-base) var(--ease);
}
.fab {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-lg);
  transition: transform var(--t-fast) var(--ease);
}
.fab:active { transform: scale(.94); }
/* Official WhatsApp brand green (#25D366). Safe here because these are
   icon-only buttons (no text label), so WCAG 1.4.11 non-text contrast
   (3:1) applies, not the stricter 4.5:1 text contrast that made .btn--wa
   below use a darkened green instead. */
.fab--wa { background: #25d366; }
.fab--call { background: var(--brand-700); }

/* --------------------------------------------------------- 17b. Accessibility widget */
.a11y-fab {
  position: fixed; z-index: 91; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: var(--brand-800);
  box-shadow: var(--shadow-lg); transition: transform var(--t-fast) var(--ease), bottom var(--t-base) var(--ease);
}
.a11y-fab:hover { transform: scale(1.06); }
.a11y-fab:active { transform: scale(.94); }

.a11y-panel {
  position: fixed; z-index: 92; inset-inline-end: 16px; bottom: calc(76px + env(safe-area-inset-bottom));
  width: min(300px, calc(100vw - 32px)); background: var(--surface); color: var(--ink-soft);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  padding: var(--s-3); display: none;
}
.a11y-panel.is-open { display: block; }
.a11y-panel__head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-2);
}
.a11y-panel__head h2 { font-size: 1.05rem; margin: 0; }
.a11y-panel__close {
  border: none; background: var(--surface-alt); border-radius: 50%; width: 32px; height: 32px;
  cursor: pointer; color: var(--ink-soft); display: grid; place-items: center; flex: none;
}
.a11y-panel__row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  padding-block: 8px; border-top: 1px solid var(--border); font-size: .92rem;
}
.a11y-panel__row:first-of-type { border-top: none; }
.a11y-panel__btns { display: flex; gap: 6px; }
.a11y-panel button.a11y-toggle, .a11y-panel__btns button {
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink-soft);
  border-radius: var(--r-sm); min-height: 34px; padding: 4px 10px; cursor: pointer; font-size: .92rem;
}
.a11y-panel button.a11y-toggle[aria-pressed="true"] {
  background: var(--brand-700); border-color: var(--brand-700); color: #fff;
}
.a11y-panel__reset {
  width: 100%; margin-top: var(--s-2); background: transparent; border: 1px dashed var(--border-strong);
  border-radius: var(--r-sm); min-height: 36px; color: var(--ink-muted); cursor: pointer; font-size: .88rem;
}

/* Preference states, toggled on <html>/<body> and persisted in localStorage */
html.a11y-fs-1 { font-size: 112%; }
html.a11y-fs-2 { font-size: 125%; }
html.a11y-fs-3 { font-size: 140%; }
body.a11y-contrast { background: #000; color: #fff; filter: grayscale(1) contrast(1.15); }
body.a11y-contrast img, body.a11y-contrast svg { filter: grayscale(1) contrast(1.1); }
body.a11y-underline a { text-decoration: underline !important; text-underline-offset: 3px; }
body.a11y-stop-motion, body.a11y-stop-motion * , body.a11y-stop-motion *::before, body.a11y-stop-motion *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important;
}
body.a11y-stop-motion .bubble { display: none; }

@media (max-width: 720px) {
  .a11y-fab { inset-inline-end: 16px; }
  .a11y-panel { inset-inline-end: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* --------------------------------------------------------- 17c. Cookie consent banner */
.cookie-banner {
  position: fixed; z-index: 95; inset-inline: 0; bottom: 0;
  background: var(--brand-900); color: #fff; padding: var(--s-3) var(--s-4);
  box-shadow: 0 -8px 24px rgba(8,51,68,.25);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3);
}
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: .92rem; color: #d8f6fb; }
.cookie-banner__actions { display: flex; gap: 10px; flex: none; }
.cookie-banner__actions button {
  min-height: 40px; padding: 8px 18px; border-radius: var(--r-pill); font-weight: 700;
  font-size: .9rem; cursor: pointer; border: 1px solid transparent;
}
.cookie-banner__accept { background: var(--brand-400); color: var(--brand-950); }
.cookie-banner__essential { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }

/* While the cookie banner is visible, lift the floating buttons above it so
   nothing overlaps or becomes unreachable. --cookie-banner-h is set by JS to
   the banner's real rendered height (it wraps to more lines on narrow
   screens, so a fixed guess isn't reliable) - the px fallback only matters
   before that JS runs. */
body.has-cookie-banner .fab-stack,
body.has-cookie-banner .a11y-fab {
  bottom: calc(var(--cookie-banner-h, 96px) + 16px + env(safe-area-inset-bottom));
}
body.has-cookie-banner .a11y-panel {
  bottom: calc(var(--cookie-banner-h, 96px) + 76px + env(safe-area-inset-bottom));
}
@media (min-width: 721px) {
  body.has-cookie-banner .wa-float { bottom: calc(var(--cookie-banner-h, 96px) + 24px + env(safe-area-inset-bottom)); transition: bottom var(--t-base) var(--ease); }
}

/* --------------------------------------------------------------- 18. Reveal */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}
.reveal:nth-child(2) { transition-delay: 70ms; }
.reveal:nth-child(3) { transition-delay: 140ms; }
.reveal:nth-child(4) { transition-delay: 210ms; }

/* --------------------------------------------------------------- 19. Responsive */
@media (max-width: 1024px) {
  .hero__grid, .chamber__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; margin-inline: auto; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav, .header__phone { display: none; }
  .burger { display: flex; }
  .header__cta .btn { display: none; }
}

/* Cards need room to breathe before the single-column jump */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .opts { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  /* Was a negative overlap margin pulling the chip up onto the card below it,
     which clipped its text depending on card height. Normal flow, no overlap. */
  .hero__chip { position: static; margin-top: 16px; margin-inline: auto; max-width: none; }
  .fab-stack { display: flex; }
  .wa-float { display: none; }
  /* Clears the fab stack's own footprint (2 x 52px + gap + bottom offset) so it
     never sits on top of the footer's policy-links row, which lands in the same
     bottom-left corner in RTL. Grows with safe-area for notched iPhones too. */
  body { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  .timeline li { grid-template-columns: 62px 1fr; gap: 12px; }
}

/* --------------------------------------------------------------- 20. Motion pref */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .bubble { display: none; }
}

/* --------------------------------------------------------------- 21. Print */
@media print {
  .header, .dock, .wa-float, .wizard, .footer__bottom,
  .fab-stack, .a11y-fab, .a11y-panel, .cookie-banner { display: none !important; }
  body { color: #000; }
  .chamber { background: #fff; color: #000; }
}
