/* ==========================================================
   رُزا — «شیدبوک»: the salon's shade book
   Porcelain ground, one aubergine ink, six polish shades.
   Every shade belongs to one service; the shade the visitor picks
   becomes the page accent (<html data-accent="…">, set by js/shade.js).
   ========================================================== */

:root {
  /* base */
  --porcelain: #F6F5F9;
  --porcelain-2: #EEEBF2;
  --paper: #FFFFFF;
  --ink: #2A1628;
  --ink-soft: #665366;
  --placeholder: #7A6B7B;
  --line: #E4DFE8;
  --line-strong: #CFC7D5;
  --error: #B3261E;

  /* the polish collection: fill / deep (text-safe on porcelain and under white text) */
  --plum: #58213F;   --plum-deep: #58213F;
  --cherry: #A21F3F; --cherry-deep: #A21F3F;
  --mauve: #B0849B;  --mauve-deep: #7A4964;
  --coral: #EA7769;  --coral-deep: #B03C3E;
  --blush: #F0B2B5;  --blush-deep: #A9415C;
  --nude: #E2C0AE;   --nude-deep: #8A5A47;

  /* page accent: ink until a shade is chosen */
  --accent: var(--ink);
  --accent-deep: var(--ink);
  --on-accent: #FFFFFF;
  --wash: var(--porcelain-2);

  --display: "Jomhuria", "Vazirmatn", serif;
  --text: "Vazirmatn", system-ui, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --header-h: 76px;
  --section-y: clamp(80px, 9vw, 132px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-open: cubic-bezier(.16, .84, .3, 1.04);
  --shadow-object: 0 1px 1px rgba(42, 22, 40, .05), 0 30px 60px -34px rgba(42, 22, 40, .38);
}

/* ---------- Shade ↔ service mapping (sticks, chips, booking tabs, quotes) ---------- */
[data-cat="hair"]   { --shade: var(--plum);   --shade-deep: var(--plum-deep);   --on-shade: #FFFFFF; }
[data-cat="nails"]  { --shade: var(--cherry); --shade-deep: var(--cherry-deep); --on-shade: #FFFFFF; }
[data-cat="brows"]  { --shade: var(--mauve);  --shade-deep: var(--mauve-deep);  --on-shade: var(--ink); }
[data-cat="makeup"] { --shade: var(--coral);  --shade-deep: var(--coral-deep);  --on-shade: var(--ink); }
[data-cat="bride"]  { --shade: var(--blush);  --shade-deep: var(--blush-deep);  --on-shade: var(--ink); }
[data-cat="skin"]   { --shade: var(--nude);   --shade-deep: var(--nude-deep);   --on-shade: var(--ink); }

:root[data-accent="hair"]   { --accent: var(--plum);   --accent-deep: var(--plum-deep);   --on-accent: #FFFFFF; }
:root[data-accent="nails"]  { --accent: var(--cherry); --accent-deep: var(--cherry-deep); --on-accent: #FFFFFF; }
:root[data-accent="brows"]  { --accent: var(--mauve);  --accent-deep: var(--mauve-deep);  --on-accent: var(--ink); }
:root[data-accent="makeup"] { --accent: var(--coral);  --accent-deep: var(--coral-deep);  --on-accent: var(--ink); }
:root[data-accent="bride"]  { --accent: var(--blush);  --accent-deep: var(--blush-deep);  --on-accent: var(--ink); }
:root[data-accent="skin"]   { --accent: var(--nude);   --accent-deep: var(--nude-deep);   --on-accent: var(--ink); }
:root[data-accent] { --wash: color-mix(in srgb, var(--accent) 16%, var(--porcelain)); }

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

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

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure, blockquote, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* main.js tags sections for scroll reveals; this page has no scroll motion, so keep them as they are. */
.reveal, .reveal.in { opacity: 1; transform: none; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  min-height: 52px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .45s var(--ease), color .45s var(--ease), box-shadow .25s var(--ease), transform .15s var(--ease);
}
.btn-accent {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 0 0 1px rgba(42, 22, 40, .1);
}
.btn-accent:hover { box-shadow: inset 0 0 0 1px rgba(42, 22, 40, .1), 0 12px 24px -14px var(--accent-deep); }
.btn-accent:active { transform: scale(.97); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: .9375rem; }
.btn-block { width: 100%; }

.link-quiet {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 7px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color .2s;
}
.link-quiet:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color .3s, box-shadow .3s;
}
.site-header.scrolled,
.site-header:has(.main-nav.open) {
  background: rgba(246, 245, 249, .9);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  backdrop-filter: saturate(1.3) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.logo-word { font-family: var(--display); font-size: 3.5rem; line-height: .6; padding-top: .12em; }
.logo-sub { font-size: .8125rem; font-weight: 500; color: var(--ink-soft); }

.main-nav { display: flex; gap: 24px; margin-inline: auto; }
.main-nav a {
  padding: 6px 0;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 8px;
}
.main-nav a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font-size: .9375rem; font-weight: 700; text-decoration: none; }
.header-phone:hover { text-decoration: underline; text-underline-offset: 6px; }

.menu-toggle { display: none; }

/* ==========================================================
   Hero: the shade fan
   ========================================================== */
.hero { position: relative; overflow: clip; }

/* Stacked by default (phones, tablets): title, lead, fan, readout, CTA. */
.hero-inner {
  --R: min(66vw, 380px);                 /* rivet → tip of each stick */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "lead" "fan" "readout" "cta";
  padding-block: 22px 44px;
}

.hero-title {
  grid-area: title;
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(6.5rem, 29vw, 11rem);
  line-height: .72;
  white-space: nowrap;
  color: var(--accent-deep);
  transition: color .5s var(--ease);
}
.hero-title span { display: block; }

.hero .lead {
  grid-area: lead;
  max-width: 30em;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

/* readout: the label of the chosen stick */
.readout {
  grid-area: readout;
  display: grid;
  align-content: center;
  max-width: 30em;
  min-height: 112px;
  margin: 22px 0;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}
.readout-hint { font-size: .9375rem; color: var(--ink-soft); }
.readout-shade {
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: .72;
  padding-top: .1em;
  color: var(--accent-deep);
  transition: color .45s var(--ease);
}
.readout-line { font-size: 1rem; }
.readout-line b { font-weight: 800; }
.readout-items { font-size: .875rem; line-height: 1.7; color: var(--ink-soft); }

.hero-cta {
  grid-area: cta;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

/* the fan */
.hero-fan {
  grid-area: fan;
  justify-self: center;
  position: relative;
  z-index: 2;
  margin-top: 18px;
  pointer-events: none;            /* only the sticks take the pointer, never the empty box */
}

.fan {
  --W: calc(var(--R) * .17);                    /* stick width */
  --L: calc(var(--R) + var(--W) / 2);           /* stick length */
  --m: 6px;
  --a-min: -38deg;                              /* sticks run +32° … −38°, 14° apart */
  --pivot-x: calc(var(--R) * .616 + var(--W) / 2 + var(--m));      /* R·sin 38° */
  position: relative;
  width: calc(var(--R) * 1.146 + var(--W) + var(--m) * 2);         /* R·(sin 32° + sin 38°) */
  height: calc(var(--L) + 34px);
}

/* Desktop: one poster. The fan grows with the headline and its plum stick lands on the «؟». */
@media (min-width: 1024px) {
  .hero-inner {
    --u: min(15vw, 14.5rem, 24svh);             /* headline size: the unit of the whole hero */
    --R: calc(var(--u) * 2.6 - 20px);
    --pad: clamp(28px, 4.5vh, 56px);
    --pivot-y: calc(var(--u) + var(--R) * .927);   /* «؟» centre ≈1u down; tip set back half a stick-width so it only clips the glyph */
    position: relative;
    grid-template-areas: "title" "lead" "readout" "cta";
    align-content: start;
    min-height: calc(var(--pad) + var(--pivot-y) + var(--R) * .085 + 56px);
    padding-block: var(--pad) 56px;
  }
  .hero-title { font-size: var(--u); margin-bottom: 26px; }
  .hero .lead { max-width: calc(var(--u) * 2.08); }
  .readout { max-width: min(27em, calc(var(--u) * 2.2)); margin: 26px 0 22px; }
  .hero-fan {
    position: absolute;
    top: calc(var(--pad) + var(--pivot-y) - var(--R) - 34px);
    right: calc(var(--gutter) + var(--u) * 2.126 - var(--R) * .036 - 6px);   /* «؟» centre is 2.126u from the right */
    margin: 0;
  }
}

.stick {
  --a: calc(32deg - var(--i) * 14deg);
  pointer-events: auto;
  position: absolute;
  bottom: 0;
  left: calc(var(--pivot-x) - var(--W) / 2);
  z-index: var(--i);
  width: var(--W);
  height: var(--L);
  padding: 0;
  border: 0;
  border-radius: calc(var(--W) / 2);
  background: none;
  rotate: var(--a);
  transform-origin: 50% calc(100% - var(--W) / 2);
  -webkit-tap-highlight-color: transparent;
  animation: fan-open 1.15s var(--ease-open) backwards;
  animation-delay: calc(.25s + var(--i) * .045s);
}
.stick:focus-visible { outline: none; }

@keyframes fan-open {
  from { rotate: var(--a-min); }
}

.stick-body {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(90deg, #FFFFFF 0%, #F7F5F9 55%, #E8E3EC 100%);
  box-shadow:
    0 1px 2px rgba(42, 22, 40, .14),
    0 16px 26px -16px rgba(42, 22, 40, .5),
    inset 0 0 0 1px rgba(42, 22, 40, .08);
  transform-origin: 50% calc(100% - var(--W) / 2);
  transition: scale .35s var(--ease), box-shadow .35s var(--ease);
}

/* the polish: a glossy coat on the top of the stick with a soft brushed edge */
.stick-paint {
  position: absolute;
  inset: 0 0 auto;
  height: 64%;
  background: var(--shade);
  border-radius: 0 0 50% 50% / 0 0 calc(var(--W) * .3) calc(var(--W) * .3);
  box-shadow: inset -9px 0 14px -10px rgba(0, 0, 0, .35), inset 0 -2px 0 rgba(0, 0, 0, .05);
}
.stick-paint::before {
  content: "";
  position: absolute;
  top: calc(var(--W) * .22);
  bottom: calc(var(--W) * .4);
  left: 13%;
  width: 11%;
  border-radius: 99px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .7), rgba(255, 255, 255, .06));
}

.stick-name {
  position: absolute;
  top: 30%;
  left: 54%;
  translate: -50% -50%;
  rotate: -90deg;
  font-family: var(--display);
  font-size: calc(var(--W) * .5);
  line-height: 1;
  white-space: nowrap;
  color: var(--on-shade);
}

.stick-label {
  position: absolute;
  top: 80%;
  left: 50%;
  translate: -50% -50%;
  rotate: -90deg;
  font-size: calc(var(--W) * .16);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink-soft);
  opacity: 0;
  transition: opacity .3s var(--ease);
}

/* sticks leaning left (−10° and beyond) print the other way up, so every label stays readable */
.stick:nth-child(n + 4) .stick-name,
.stick:nth-child(n + 4) .stick-label { rotate: 90deg; }
.stick:nth-child(n + 4) .stick-name { left: 46%; }

.stick.is-current { z-index: 10; }
.stick.is-current .stick-label { opacity: 1; }
.stick.is-current .stick-body {
  scale: 1.06;
  box-shadow:
    0 2px 4px rgba(42, 22, 40, .16),
    0 30px 44px -18px rgba(42, 22, 40, .6),
    inset 0 0 0 1px rgba(42, 22, 40, .08);
}
.stick:focus-visible .stick-body { outline: 3px solid var(--ink); outline-offset: 3px; }

.rivet {
  position: absolute;
  z-index: 20;
  left: calc(var(--pivot-x) - var(--W) * .21);
  bottom: calc(var(--W) * .29);
  width: calc(var(--W) * .42);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #FFFFFF 0 10%, #ECE8EF 28%, #B9AFBF 64%, #8A7F90 100%);
  box-shadow: 0 2px 5px rgba(42, 22, 40, .4), inset 0 0 0 1px rgba(255, 255, 255, .55);
  pointer-events: none;
}
.rivet::after {
  content: "";
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 62%, #8E8394, #4D4252);
}

/* ==========================================================
   Sections
   ========================================================== */
.section { padding-block: var(--section-y); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 27em);
  align-items: end;
  gap: 20px 64px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.9rem, 6.8vw, 6.4rem);
  line-height: .78;
  padding-top: .08em;
}
.section-head p { color: var(--ink-soft); }

/* ---------- Services: the shade chart ---------- */
.chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.chip {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.chip-head {
  padding: 10px 10px 18px;
  background: var(--shade);
  color: var(--on-shade);
}
.chip-photo {
  width: 100%;
  height: 128px;
  object-fit: cover;
  border-radius: 4px;
}
.chip-shade {
  margin: 18px 6px 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 3.5vw, 3.3rem);
  line-height: .72;
  padding-top: .08em;
}
.chip h3 {
  margin: 6px 6px 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.chip-tints { flex: 1; display: flex; flex-direction: column; }
.chip-tints li {
  --t: 0%;
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 16px;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.55;
  background: color-mix(in srgb, var(--shade) var(--t), var(--paper));
}
.chip-tints li:nth-child(1) { --t: 40%; }
.chip-tints li:nth-child(2) { --t: 29%; }
.chip-tints li:nth-child(3) { --t: 20%; }
.chip-tints li:nth-child(4) { --t: 12%; }
.chip-tints li:nth-child(5) { --t: 6%; }

.chip-foot {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
}
.chip-price { font-size: .875rem; color: var(--ink-soft); }
.chip-price b { font-size: 1.125rem; font-weight: 800; color: var(--ink); }
.chip-book {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--shade);
  color: var(--on-shade);
  font-size: .9375rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(42, 22, 40, .1);
  transition: transform .15s var(--ease), box-shadow .2s;
}
.chip-book:hover { box-shadow: inset 0 0 0 1px rgba(42, 22, 40, .1), 0 10px 18px -12px var(--shade-deep); }
.chip-book:active { transform: scale(.97); }

/* ==========================================================
   Booking: the printed appointment card
   ========================================================== */
.booking {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-object);
}

.booking-form { min-width: 0; padding: 34px 40px 40px; }

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}
.card-brand { font-family: var(--display); font-size: 3.2rem; line-height: .6; padding-top: .14em; }
.card-kind { font-size: 1rem; font-weight: 800; }
.card-addr { margin-inline-start: auto; font-size: .8125rem; color: var(--ink-soft); }

.step {
  min-inline-size: 0;
  margin: 0;
  padding: 26px 0 30px;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.step:last-of-type { padding-bottom: 0; border-bottom: 0; }
.step > legend {
  float: right;
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0;
  font-size: 1.125rem;
  font-weight: 800;
}
.step > legend + * { clear: both; }
.step-num {
  min-width: .55em;
  font-family: var(--display);
  font-size: 2.9rem;
  font-weight: 400;
  line-height: .5;
  color: var(--accent-deep);
  transition: color .45s var(--ease);
}

/* category tabs: each carries its own shade */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  font-size: .9375rem;
  font-weight: 500;
  transition: background-color .25s, border-color .25s, color .25s;
}
.cat-tab::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--shade);
  box-shadow: inset 0 0 0 1px rgba(42, 22, 40, .14);
}
.cat-tab:hover { border-color: var(--ink); }
.cat-tab[aria-selected="true"] {
  border-color: var(--shade);
  background: var(--shade);
  color: var(--on-shade);
  font-weight: 700;
}
.cat-tab[aria-selected="true"]::before { background: var(--on-shade); box-shadow: none; }
.cat-tab .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px var(--paper);
}
.cat-tab[aria-selected="true"] .dot { box-shadow: none; }

/* service options: a printed checklist with price */
.service-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px dotted var(--line-strong);
  cursor: pointer;
  transition: background-color .2s;
}
.opt:hover { background: color-mix(in srgb, var(--accent) 5%, var(--paper)); }
.opt input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.opt:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 1px; border-radius: 8px; }
.opt:has(input:checked) { background: color-mix(in srgb, var(--accent) 8%, var(--paper)); }

.check {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  background: var(--paper);
  transition: background-color .2s, border-color .2s;
}
.check svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.opt input:checked + .check { border-color: var(--accent-deep); background: var(--accent-deep); }
.opt input:checked + .check svg { opacity: 1; }

.opt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
.opt-main b { font-size: .9375rem; font-weight: 700; }
.opt-main small { font-size: .8125rem; color: var(--ink-soft); }
.opt-price { font-size: .875rem; font-weight: 700; white-space: nowrap; }

/* stylists */
.stylist-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr));
  gap: 10px;
}
.stylist-opt {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stylist-opt::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  transition: border-color .2s, box-shadow .2s;
}
.stylist-opt:has(input:checked) {
  border-color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px var(--accent-deep);
}
.stylist-opt:has(input:checked)::after {
  border-color: var(--accent-deep);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 9px var(--accent-deep);
}
.avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.avatar.any { display: grid; place-items: center; background: var(--porcelain-2); }
.avatar.any svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stylist-opt.is-disabled { cursor: not-allowed; opacity: .5; }
.stylist-opt.is-disabled:hover { background: transparent; }
.stylist-opt.is-disabled .avatar { filter: grayscale(1); }

/* dates: a strip of printed date stubs */
.date-strip-wrap {
  margin: 0 -6px;
  padding: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.date-strip { display: flex; gap: 8px; width: max-content; }
.date-btn {
  flex: none;
  display: grid;
  justify-items: center;
  width: 76px;
  padding: 8px 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  line-height: 1.4;
  transition: background-color .2s, border-color .2s, color .2s;
}
.date-btn small { font-size: .75rem; color: var(--ink-soft); }
.date-btn b {
  font-family: var(--display);
  font-size: 2.7rem;
  font-weight: 400;
  line-height: .7;
  padding-top: 8px;
}
.date-btn:hover:not([disabled]) { border-color: var(--ink); }
.date-btn[aria-pressed="true"] { border-color: var(--accent-deep); background: var(--accent-deep); color: #FFFFFF; }
.date-btn[aria-pressed="true"] small { color: #FFFFFF; }
.date-btn[disabled] {
  cursor: not-allowed;
  border-style: dashed;
  color: var(--ink-soft);
  background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(42, 22, 40, .06) 6px 7px), var(--porcelain);
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.time-btn {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  font-size: .9375rem;
  font-weight: 700;
  transition: background-color .2s, border-color .2s, color .2s;
}
.time-btn:hover:not([disabled]) { border-color: var(--ink); }
.time-btn[aria-pressed="true"] { border-color: var(--accent-deep); background: var(--accent-deep); color: #FFFFFF; }
.time-btn[disabled] {
  cursor: not-allowed;
  border-color: transparent;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: line-through;
}
.hint { margin-top: 12px; font-size: .875rem; color: var(--ink-soft); }

/* contact fields: printed fill-in rules */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.field { display: grid; align-content: start; gap: 2px; }
.field-wide { grid-column: 1 / -1; }
.field-label { font-size: .875rem; font-weight: 700; color: var(--ink-soft); }
.optional { font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: 10px 4px 8px;
  border: 0;
  border-bottom: 2px dotted var(--ink);
  border-radius: 0;
  background: transparent;
  font-size: 1.0625rem;
  transition: background-color .2s, border-color .2s;
}
.field textarea { min-height: 70px; resize: vertical; line-height: 1.8; }
.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); opacity: 1; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--accent-deep);
  box-shadow: 0 2px 0 var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 7%, var(--paper));
}
.error { min-height: 1.6em; font-size: .8125rem; font-weight: 700; line-height: 1.6; color: var(--error); }
.error:not(:empty)::before,
.sum-error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-inline-end: 6px;
  border-radius: 50%;
  background: var(--error);
  color: #FFFFFF;
  font-size: .6875rem;
  line-height: 1;
  vertical-align: 1px;
}
.field.invalid input { border-bottom: 2px solid var(--error); background: #FCF1F0; }

/* the tear-off stub: summary */
.booking-summary {
  --hole: radial-gradient(circle, #CEC6D4 0 1.6px, #E3DEE8 2.6px, #EEEAF1 3.6px, transparent 4.2px);
  position: relative;
  padding: 34px 32px 30px;
  border-radius: 18px 0 0 18px;
}
.booking-summary::before {           /* the perforation: a column of punched holes along the tear line */
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  right: -6px;
  width: 12px;
  background: var(--hole) center top / 12px 15px repeat-y;
}
.stub-inner { position: sticky; top: calc(var(--header-h) + 24px); }
.booking-summary h3 {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
  font-size: 1.125rem;
  font-weight: 800;
}
.booking-summary dl > div {
  display: grid;
  grid-template-columns: 6.2em minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dotted var(--line-strong);
  font-size: .9375rem;
  line-height: 1.7;
}
.booking-summary dt { color: var(--ink-soft); }
.booking-summary dd { font-weight: 700; overflow-wrap: anywhere; }
.booking-summary dd.empty { font-weight: 400; color: var(--ink-soft); }

.sum-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 20px 0 22px;
}
.sum-total span { font-weight: 700; color: var(--ink-soft); }
.sum-total strong {
  font-family: var(--display);
  font-size: 2.7rem;
  font-weight: 400;
  line-height: .7;
  padding-top: .1em;
  color: var(--accent-deep);
  transition: color .45s var(--ease);
}
.sum-error {
  margin-bottom: 14px;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--error);
}
.sum-note { margin-top: 14px; font-size: .8125rem; text-align: center; color: var(--ink-soft); }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.about-media img {
  width: 100%;
  height: clamp(360px, 44vw, 600px);
  object-fit: cover;
  border-radius: 10px;
}
.about-text h2 {
  margin-bottom: 26px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.9rem, 6.4vw, 6rem);
  line-height: .78;
  padding-top: .08em;
}
.about-text > p { max-width: 31em; }
.promises { margin-top: 34px; border-top: 1px solid var(--line-strong); }
.promises > div {
  display: grid;
  grid-template-columns: minmax(0, 12.5em) minmax(0, 1fr);
  gap: 6px 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.promises dt { font-weight: 800; }
.promises dd { color: var(--ink-soft); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.member:nth-child(1) { --shade: var(--plum); }
.member:nth-child(2) { --shade: var(--coral); }
.member:nth-child(3) { --shade: var(--nude); }
.member:nth-child(4) { --shade: var(--cherry); }
.member-photo {
  padding: 12px;
  border-radius: 10px;
  background: var(--shade, var(--porcelain-2));
}
.member-photo img {
  width: 100%;
  height: clamp(260px, 26vw, 340px);
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: 5px;
}
.member h3 { margin-top: 16px; font-size: 1.125rem; font-weight: 800; }
.member p { font-size: .9375rem; color: var(--ink-soft); }
.member small { display: block; margin-top: 2px; font-size: .8125rem; font-weight: 700; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 16vw, 220px);
  gap: 12px;
}
.gallery figure { overflow: hidden; border-radius: 8px; background: var(--porcelain-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.g-wash, .g-nails { grid-row: span 2; }
.g-salon, .g-spa { grid-column: span 2; }
.gallery-link { display: inline-block; margin-top: 28px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.quotes blockquote { position: relative; margin: 0; padding-top: 30px; }
.quotes blockquote::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 54px;
  height: 10px;
  border-radius: 99px;
  background: var(--shade);
}
.quotes p { font-size: 1.125rem; line-height: 2; }
.quotes footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 18px; }
.quotes footer strong { font-weight: 800; }
.quotes footer span { font-size: .875rem; font-weight: 700; color: var(--shade-deep); }

/* ---------- FAQ ---------- */
.faq-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  align-items: start;
  gap: clamp(36px, 6vw, 88px);
}
.faq-inner .section-head { display: block; margin: 0; position: sticky; top: calc(var(--header-h) + 28px); }
.faq-inner .section-head p { margin: 18px 0 20px; max-width: 22em; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq details:first-child { border-top: 1px solid var(--line-strong); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.7;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 7px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
  transition: rotate .25s var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { max-width: 40em; padding-bottom: 24px; color: var(--ink-soft); }

/* ---------- Closing CTA ---------- */
.closing {
  padding-block: var(--section-y);
  background: var(--wash);
  transition: background-color .5s var(--ease);
}
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24em);
  align-items: end;
  gap: 28px 64px;
}
.closing h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4.6rem, 9.4vw, 9rem);
  line-height: .74;
  padding-top: .08em;
  color: var(--accent-deep);
  transition: color .5s var(--ease);
}
.closing h2 span { display: block; }
.cta-side { display: grid; justify-items: start; gap: 22px; padding-bottom: .4em; }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--porcelain-2); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.25fr .9fr; gap: 40px; }
.footer-brand p { max-width: 22em; margin-top: 14px; font-size: .9375rem; color: var(--ink-soft); }
.foot-title { margin-bottom: 12px; font-size: 1rem; font-weight: 800; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.socials a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dotted var(--line-strong);
  font-size: .9375rem;
}
.hours .closed { font-weight: 700; color: var(--cherry-deep); }
.contact-list { display: grid; gap: 8px; font-size: .9375rem; font-style: normal; }
.contact-list a, .links a { text-decoration: none; }
.contact-list a:hover, .links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.links { display: grid; gap: 6px; font-size: .9375rem; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  font-size: .8125rem;
  color: var(--ink-soft);
}

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; }

/* ---------- Success modal: the stamped card ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(42, 22, 40, .45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100svh - 40px);
  overflow: auto;
  padding: 30px 30px 26px;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 40px 80px -30px rgba(42, 22, 40, .65);
}
.modal-card .card-head { margin-bottom: 22px; }
.modal-card h3 {
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 3.6rem;
  font-weight: 400;
  line-height: .72;
  padding-top: .1em;
}
#modalText { color: var(--ink-soft); }
.modal-code {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 22px;
  padding: 12px 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  font-weight: 700;
}
.modal-code b { font-family: var(--display); font-size: 2.3rem; font-weight: 400; line-height: .7; padding-top: .1em; }

.stamp {
  position: absolute;
  top: 16px;
  left: 22px;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 16px 9px;
  border: 3px solid var(--accent-deep);
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3.5px var(--accent-deep);
  color: var(--accent-deep);
  rotate: -9deg;
  opacity: .9;
  mix-blend-mode: multiply;
  pointer-events: none;
  /* rubber-stamp ink: mostly solid, with the small dry specks of a real impression */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='110'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.2 0 0 0 2.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='110'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.2 0 0 0 2.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  -webkit-mask-size: 160px 110px;
  mask-size: 160px 110px;
  animation: stamp-press .5s cubic-bezier(.3, 1.35, .5, 1) .28s both;
}
.stamp-word { font-family: var(--display); font-size: 2.7rem; line-height: .6; padding-top: .16em; }
.stamp-date { padding-top: 4px; border-top: 1.5px solid currentColor; font-size: .75rem; font-weight: 800; line-height: 1.2; }

@keyframes stamp-press {
  0%   { opacity: 0; scale: 2.3; }
  62%  { opacity: .95; scale: .93; }
  82%  { scale: 1.025; }
  100% { opacity: .9; scale: 1; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1180px) {
  .chart { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .chip-photo { height: 150px; }
}

@media (max-width: 1040px) {
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 6px var(--gutter) 22px;
    background: var(--porcelain);
    border-top: 1px solid var(--line);
    box-shadow: 0 24px 30px -24px rgba(42, 22, 40, .35);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .header-actions { margin-inline-start: auto; }
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--paper);
  }
  .menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

@media (max-width: 960px) {
  .booking { grid-template-columns: minmax(0, 1fr); }
  .booking-form { padding: 30px 28px 34px; }
  .booking-summary { border-radius: 0 0 18px 18px; padding: 34px 28px 28px; }
  .booking-summary::before {        /* perforation turns horizontal */
    top: -6px;
    bottom: auto;
    left: 16px;
    right: 16px;
    width: auto;
    height: 12px;
    background: var(--hole) left center / 15px 12px repeat-x;
  }
  .stub-inner { position: static; }
  .about-inner { grid-template-columns: minmax(0, 1fr); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-photo img { height: clamp(280px, 52vw, 420px); }
  .faq-inner { grid-template-columns: minmax(0, 1fr); }
  .faq-inner .section-head { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .section-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 40px; }
  .cta-inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; --gutter: 16px; }
  body { font-size: 1rem; }
  .logo-word { font-size: 2.7rem; }
  .logo-sub { display: none; }
  .header-actions { gap: 10px; }
  .header-phone { display: none; }

  .stick-label { display: none; }

  .chart { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .chip-head { padding: 8px 8px 14px; }
  .chip-photo { height: 104px; }
  .chip-shade { font-size: 2.5rem; margin-top: 14px; }
  .chip h3 { font-size: .9375rem; }
  .chip-tints li { padding: 9px 12px; min-height: 42px; font-size: .875rem; }
  .chip-foot { padding: 12px; gap: 10px; }

  .booking { border-radius: 14px; }
  .booking-form { padding: 24px 18px 30px; }
  .booking-summary { padding: 30px 18px 24px; border-radius: 0 0 14px 14px; }
  .card-addr { display: none; }
  .service-options { grid-template-columns: minmax(0, 1fr); }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .time-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }

  .promises > div { grid-template-columns: minmax(0, 1fr); }
  .team-grid { gap: 14px; }
  .member-photo { padding: 8px; }
  .member-photo img { height: clamp(190px, 52vw, 300px); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; }
  .g-salon, .g-spa { grid-column: span 2; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }

  .mobile-cta {
    position: fixed;
    z-index: 60;
    right: 16px;
    left: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 800;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(42, 22, 40, .1), 0 16px 30px -14px rgba(42, 22, 40, .6);
    transition: translate .35s var(--ease), opacity .35s var(--ease), background-color .45s var(--ease), color .45s var(--ease);
  }
  .mobile-cta.hide,
  .mobile-cta.is-tucked { translate: 0 150%; opacity: 0; pointer-events: none; }

  .modal-card { padding: 24px 20px 20px; }
  .modal-card h3 { font-size: 3.1rem; }
  .stamp { left: 14px; top: 12px; }
  .stamp-word { font-size: 2.3rem; }
}

@media (max-width: 380px) {
  .chip-tints li { padding-inline: 10px; }
}

/* ---------- Reduced motion: everything in its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
}
