/* ═══════════════════════════════════════════════════
   Studio B Hair Design — "Céleste" homepage skin
   Ivory ground, ink type, a single gold accent.
   Scoped to index.html. Interior pages stay on
   styles.css until this direction is approved.
   ═══════════════════════════════════════════════════ */

:root {
  --ivory: #f5efe3;
  --ivory-deep: #ece4d4;
  --paper: #fbf8f2;
  --ink: #14110c;
  --ink-soft: #23201a;
  --ink-faint: #5a5446;
  --gold: #c9a35f;
  --gold-pale: #d8bc85;
  --gold-text: #845e1a;   /* gold, dark enough to read as small text on ivory */
  --rule: rgba(20, 17, 12, 0.12);

  --display: 'Cormorant Garamond', Georgia, serif;
  --ui: 'Jost', 'Work Sans', system-ui, sans-serif;

  --page: 1320px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  font-size: 17.5px;   /* base scale — every rem below keys off this */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--ui);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.container { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 32px; }

/* Paper grain, fixed above the ground and below the content. */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(2%, -4%); }
  60% { transform: translate(-3%, 3%); }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
}

.site-header, main, .site-footer, .mobile-drawer, .bella-trigger, .bella-panel { position: relative; z-index: 1; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--ivory);
  padding: 14px 22px; z-index: 300;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ── Type scale ── */
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.08; letter-spacing: -0.005em; }

h1 { font-size: clamp(2.3rem, 5.2vw, 4.6rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.eyebrow {
  display: block;
  font-family: var(--ui);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1.6rem;
}

.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 54ch; }
.subtext { color: var(--ink-soft); }

/* A hairline that draws itself in */
.gold-line {
  width: 0; height: 1px;
  background: var(--gold);
  margin-bottom: 2rem;
  transition: width 1.1s var(--ease);
}
.gold-line.visible { width: 72px; }

.reveal { opacity: 0; }
.reveal.visible { opacity: 1; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-transform: uppercase;
  padding: 18px 38px;
  border: 1px solid var(--ink);
  background: none;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--ivory); }
.btn:hover::after { transform: scaleX(1); transform-origin: left; }

.btn-gold { border-color: var(--gold); }
.btn-gold::after { background: var(--gold); }
.btn-gold:hover { color: var(--ink); }

.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 30px 0;
  transition: padding 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header.scrolled {
  padding: 16px 0;
  background: rgba(245, 239, 227, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--rule);
}
.nav-inner {
  max-width: var(--page); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
  font-family: var(--display);
  font-size: 1.3rem; font-weight: 400;
  letter-spacing: 0.42em; text-indent: 0.42em;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 2.4rem; list-style: none; }
.nav-links a {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft); position: relative; padding: 4px 0;
  transition: color 0.4s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links .nav-book { color: var(--ink); border: 1px solid var(--gold); padding: 11px 22px; }
.nav-links .nav-book::after { display: none; }
.nav-links .nav-book:hover { background: var(--gold); }

.nav-toggle {
  display: none; background: none; border: 0;
  font-size: 1.3rem; color: var(--ink); cursor: pointer; padding: 6px;
}

/* ── Mobile drawer ── */
.drawer-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(20, 17, 12, 0.45); z-index: 110;
  opacity: 0; transition: opacity 0.3s;
}
.drawer-overlay.visible { opacity: 1; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(84vw, 340px);
  background: var(--paper);
  z-index: 120;
  padding: 92px 36px 36px;
  display: flex; flex-direction: column; gap: 2px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  border-left: 1px solid var(--rule);
}
.mobile-drawer.open { transform: none; }
.mobile-drawer a {
  font-family: var(--display); font-size: 1.5rem;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.mobile-drawer .btn {
  margin-top: 26px; text-align: center;
  font-family: var(--ui); font-size: 0.78rem;
}
.drawer-close {
  position: absolute; top: 26px; right: 30px;
  background: none; border: 0; font-size: 1.8rem;
  color: var(--ink); cursor: pointer; line-height: 1;
}

/* ── Hero ── */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  max-width: var(--page);
  margin: 0 auto;
  padding: 150px 32px 90px;
}
.hero-content { max-width: 100%; }
#hero-heading { opacity: 0; text-wrap: balance; }
/* A word may not be broken apart; only the spaces between words may wrap. */
.hero-word { display: inline-block; white-space: nowrap; }
.hero-char { display: inline-block; }
#hero-heading.revealed { opacity: 1; }
.hero .subtext {
  margin-top: 2.2rem;
  font-size: 0.76rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0; transform: translateY(12px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.hero .subtext.revealed { opacity: 1; transform: none; }
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 3rem;
  opacity: 0; transform: translateY(12px);
  transition: opacity 1s var(--ease) 0.1s, transform 1s var(--ease) 0.1s;
}
.hero-ctas.revealed { opacity: 1; transform: none; }

.hero-bg {
  position: relative;
  height: min(74vh, 620px);
  overflow: hidden;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); }
.hero-bg::after {
  content: ''; position: absolute; inset: 14px;
  border: 1px solid rgba(245, 239, 227, 0.35);
  pointer-events: none;
}

/* ── Sections ── */
main section { padding: clamp(90px, 12vw, 160px) 0; }
main section.hero { padding: 150px 32px 90px; }
.section-alt { background: var(--ivory-deep); }
.section-header { margin-bottom: clamp(48px, 6vw, 78px); max-width: 56ch; }
.section-header .subtext { margin-top: 1rem; }

/* An interlude: one line, a lot of air */
.interlude { text-align: center; }
.interlude p {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 26ch;
  margin: 0 auto;
}

/* ── About ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px); align-items: center;
}
.about-image img { filter: saturate(0.92); }

/* ── Services: an editorial list that reveals its work on hover ──
   The list stays quiet until you engage with it. On a pointer device the
   thumbnail lifts out of the row and follows the cursor; on touch, where there
   is no hover, it sits inline as a real thumbnail instead. */
.services-list { border-top: 1px solid var(--rule); }

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr auto 130px;
  align-items: center;
  gap: 28px;
  padding: 34px 8px;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 0.55s var(--ease);
}

/* The gold wash sweeps in from the left rather than just switching on. */
.service-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(201, 163, 95, 0.13), rgba(201, 163, 95, 0.02));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
  pointer-events: none;
}
.service-row:hover::before,
.service-row:focus-visible::before { transform: scaleX(1); }
.service-row:hover { padding-left: 26px; }

.service-row > * { position: relative; }

.service-num {
  font-family: var(--ui); font-size: 0.76rem;
  letter-spacing: 0.16em; color: var(--gold-text);
  transition: transform 0.55s var(--ease);
}
.service-row:hover .service-num { transform: translateX(-6px); }

.service-row h3 { margin-bottom: 6px; transition: transform 0.55s var(--ease); }
.service-row:hover h3 { transform: translateX(6px); }
.service-desc { font-size: 1rem; color: var(--ink-soft); }

.service-price {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint); white-space: nowrap;
}
.service-row .card-link {
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  text-align: right; transition: color 0.4s var(--ease), transform 0.55s var(--ease);
}
.service-row:hover .card-link { color: var(--gold-text); transform: translateX(6px); }

/* The floating preview. Sized here, positioned by main.js from the pointer. */
/* Absolute, not fixed. GSAP leaves a transform on .service-row, and a
   transformed ancestor becomes the containing block for fixed children — so
   `fixed` anchored this to the row instead of the viewport and threw it
   hundreds of pixels off. --tx/--ty are therefore row-relative. */
.service-thumb {
  position: absolute;
  top: 0; left: 0;
  z-index: 60;
  width: 250px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  /* Position comes from --tx/--ty, set by main.js from the pointer. Keeping it
     in the transform (not left/top) keeps the follow on the compositor, and the
     transition gives it a slight trail rather than snapping to the cursor. */
  transform: translate3d(calc(var(--tx, 50%) - 50%), calc(var(--ty, 50%) - 50%), 0) scale(0.92) rotate(-2deg);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  box-shadow: 0 26px 60px rgba(20, 17, 12, 0.26);
  will-change: transform, opacity;
}
.service-thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-row:hover .service-thumb,
.service-row:focus-visible .service-thumb {
  opacity: 1;
  transform: translate3d(calc(var(--tx, 50%) - 50%), calc(var(--ty, 50%) - 50%), 0) scale(1) rotate(0deg);
}

/* No pointer, no hover: show the photograph inline instead of hiding it. */
@media (hover: none), (max-width: 980px) {
  .service-thumb {
    position: static;
    width: auto;
    aspect-ratio: 1 / 1;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--rule);
  }
  .service-row:hover .service-thumb { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .service-row, .service-row::before, .service-num,
  .service-row h3, .service-row .card-link, .service-thumb { transition: none; }
  .service-row:hover { padding-left: 8px; }
}

/* ── Team ── */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
.stylist-photo {
  aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: 18px;
  background: var(--ivory-deep);
}
.stylist-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85);
  transition: transform 1.1s var(--ease), filter 0.7s var(--ease);
}
.stylist-card:hover .stylist-photo img { transform: scale(1.05); filter: saturate(1); }
.stylist-card h3 { font-size: 1.22rem; }
.stylist-role {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 7px;
}

/* ── Products: a quiet wordmark row ── */
.products-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px clamp(28px, 5vw, 64px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 46px 0;
}
.product-mark {
  font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: var(--ink-faint);
  transition: color 0.5s var(--ease);
}
.product-mark:hover { color: var(--gold-text); }

/* ── Reviews ── */
.reviews-carousel {
  display: flex; gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  scrollbar-width: thin;
}
.review-card {
  flex: 0 0 min(430px, 82vw);
  scroll-snap-align: start;
  border-left: 1px solid var(--gold);
  padding: 8px 0 8px 30px;
}
.review-stars { color: var(--gold-text); letter-spacing: 0.28em; margin-bottom: 14px; font-size: 0.8rem; }
.review-text {
  font-family: var(--display);
  font-size: 1.42rem; font-style: italic; line-height: 1.55;
}
.review-source {
  margin-top: 16px;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── Closing CTA ── */
.cta-section { text-align: center; background: var(--ink); color: var(--ivory); }
.cta-section h2 { color: var(--ivory); }
.cta-section .subtext { color: rgba(245, 239, 227, 0.82); margin-top: 1.1rem; }
.cta-section .btn { border-color: var(--gold-pale); color: var(--ivory); margin-top: 2.6rem; }
.cta-section .btn::after { background: var(--gold); }
.cta-section .btn:hover { color: var(--ink); }
.cta-phone {
  display: block; margin-top: 1.6rem;
  font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(245, 239, 227, 0.72);
}

/* ── Contact form ── */
.contact-section { background: var(--paper); }
.contact-form { max-width: 720px; }
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-form .field { margin-bottom: 26px; }
.contact-form label {
  display: block; margin-bottom: 10px;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint);
}
.contact-form label span { color: var(--gold-text); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 2px;
  background: none;
  border: 0; border-bottom: 1px solid var(--rule);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--ui); font-size: 1.05rem; font-weight: 400;
  transition: border-color 0.45s var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-bottom-color: var(--gold); }
.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] { border-bottom-color: #a8382f; }
.contact-form select { appearance: none; cursor: pointer; }
.contact-form .btn { margin-top: 12px; }

.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-status { margin-top: 20px; font-size: 0.94rem; min-height: 22px; }
.cf-status.is-error { color: #a8382f; }
.cf-status.is-success { color: var(--ink); }
.cf-fineprint { margin-top: 10px; font-size: 0.9rem; color: var(--ink-faint); }
.cf-fineprint a { border-bottom: 1px solid var(--gold); }

/* ── Footer ── */
.site-footer {
  background: var(--ink); color: rgba(245, 239, 227, 0.88);
  padding: clamp(64px, 8vw, 100px) 0 36px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 44px;
}
.site-footer h3 {
  font-family: var(--ui);
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 20px;
}
.site-footer a { transition: color 0.4s var(--ease); }
.site-footer a:hover { color: var(--gold-pale); }
.site-footer p { margin-bottom: 8px; }
.footer-hours { width: 100%; border-collapse: collapse; }
.footer-hours th, .footer-hours td { text-align: left; padding: 3px 0; font-weight: 400; }
.footer-hours td { text-align: right; color: rgba(245, 239, 227, 0.72); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { display: inline-flex; }
.footer-bottom {
  margin-top: 56px; padding-top: 26px;
  border-top: 1px solid rgba(245, 239, 227, 0.12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 0.82rem; color: rgba(245, 239, 227, 0.62);
}

/* ── Bella chat widget ── */
.bella-trigger {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: var(--gold-pale);
  border: 1px solid var(--gold); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.45s var(--ease);
}
.bella-trigger:hover { transform: translateY(-3px); }
.bella-trigger svg { width: 22px; height: 22px; fill: currentColor; }
.bella-panel {
  position: fixed; right: 26px; bottom: 96px; z-index: 95;
  width: min(360px, calc(100vw - 40px)); height: min(520px, 70vh);
  background: var(--paper); border: 1px solid var(--rule);
  display: none; flex-direction: column;
  box-shadow: 0 24px 60px rgba(20, 17, 12, 0.18);
}
.bella-panel.open { display: flex; }
.bella-header {
  padding: 18px 20px; border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
}
.bella-header strong { font-family: var(--display); font-size: 1.15rem; font-weight: 400; display: block; }
.bella-sub { font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); }
.bella-close { background: none; border: 0; font-size: 1.4rem; color: var(--ink-faint); cursor: pointer; line-height: 1; }
.bella-messages { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.bella-msg { font-size: 0.9rem; line-height: 1.6; padding: 11px 14px; max-width: 86%; white-space: pre-wrap; }
.bella-msg.bot { background: var(--ivory-deep); align-self: flex-start; }
.bella-msg.user { background: var(--ink); color: var(--ivory); align-self: flex-end; }
.bella-typing { display: none; padding: 0 20px 8px; font-size: 0.78rem; color: var(--ink-faint); }
.bella-typing.active { display: block; }
.bella-input { display: flex; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--rule); }
.bella-input input { flex: 1; border: 0; border-bottom: 1px solid var(--rule); background: none; padding: 8px 2px; font-family: var(--ui); font-size: 0.92rem; }
.bella-input input:focus { outline: none; border-bottom-color: var(--gold); }
.bella-input button { background: none; border: 0; cursor: pointer; color: var(--gold); }
.bella-input button svg { width: 20px; height: 20px; fill: currentColor; }
.bella-powered { padding: 0 20px 14px; font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  main section.hero { padding-top: 128px; }
  .hero-bg { height: 52vh; order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  /* Narrow layout: number, photograph, then the words beside them. */
  .service-row {
    grid-template-columns: 34px 84px 1fr;
    column-gap: 18px;
    row-gap: 6px;
    align-items: start;
  }
  .service-num { grid-column: 1; grid-row: 1; padding-top: 4px; }
  .service-thumb { grid-column: 2; grid-row: 1 / span 3; }
  .service-text { grid-column: 3; grid-row: 1; }
  .service-price { grid-column: 3; grid-row: 2; text-align: left; }
  .service-row .card-link { grid-column: 3; grid-row: 3; text-align: left; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 640px) {
  .container, .nav-inner { padding: 0 22px; }
  main section.hero { padding: 116px 22px 70px; }
  .contact-form .field-row { grid-template-columns: 1fr; gap: 0; }
  .review-text { font-size: 1.2rem; }
}

/* ═══════════════════════════════════════════════════
   Interior pages + components added when Céleste
   rolled out beyond the homepage.
   ═══════════════════════════════════════════════════ */

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

/* ── Interior page hero ── */
.page-hero {
  position: relative;
  padding: clamp(150px, 18vw, 220px) 0 clamp(60px, 8vw, 96px);
  text-align: center;
  background: var(--ivory-deep);
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.page-hero .subtext { margin-top: 1.2rem; }
.page-hero-image { position: absolute; inset: 0; z-index: 0; }
.page-hero-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8); }
.page-hero-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(245, 239, 227, 0.82); }

.section-compact { padding: clamp(56px, 7vw, 90px) 0; }

.label {
  display: block;
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 0.9rem;
}

/* Legacy button variants used by the interior pages */
.btn-outline { border-color: var(--ink); }
.btn-pulse::after { background: var(--gold); }
.btn-sm { padding: 13px 26px; font-size: 0.72rem; }

/* ── Stylists: monogram placeholders ──
   These are deliberately NOT photographs. The stock portraits that used to
   sit here were of people who do not work at Studio B. A monogram is honest
   and drops out the moment Becky sends real headshots. */
.stylist-placeholder {
  aspect-ratio: 3 / 4;
  background: var(--ivory-deep);
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background 0.6s var(--ease);
}
.stylist-placeholder::after {
  content: '';
  position: absolute; inset: 14px;
  border: 1px solid rgba(201, 163, 95, 0.34);
  pointer-events: none;
}
.stylist-card:hover .stylist-placeholder { background: #e5dbc7; }
.stylist-initials {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 300;
  letter-spacing: 0.16em; text-indent: 0.16em;
  color: var(--gold-text);
  line-height: 1;
}

.stylist-info { padding-top: 18px; }
.stylist-info h3 { font-size: 1.34rem; }
.role {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 7px;
}
.stylist-bio { margin-top: 12px; font-size: 0.98rem; color: var(--ink-soft); }
.stylist-info .btn { margin-top: 18px; }

.team-grid--2col { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.stylist-card--horizontal { display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: start; }
.stylist-card--horizontal .stylist-placeholder,
.stylist-card--horizontal .stylist-photo { margin-bottom: 0; }
.stylist-card--horizontal .stylist-info { padding-top: 0; }

/* ── Products: the shelf earns its own layout ──
   Retail is a real share of the salon's revenue, so brands get photographs
   and room rather than a row of names. */
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: clamp(20px, 2.6vw, 34px);
}
.shelf-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s var(--ease);
}
.shelf-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 163, 95, 0.5);
  box-shadow: 0 18px 42px rgba(20, 17, 12, 0.1);
}
.shelf-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ivory-deep);
}
.shelf-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.shelf-card:hover .shelf-img img { transform: scale(1.05); }
.shelf-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.shelf-body h3 { font-size: 1.42rem; margin-bottom: 8px; }
.shelf-desc { font-size: 0.98rem; color: var(--ink-soft); flex: 1; }
.shelf-tag {
  margin-top: 16px;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-text);
}

.shelf-note {
  margin-top: clamp(36px, 5vw, 56px);
  padding: 30px 34px;
  border: 1px solid rgba(201, 163, 95, 0.45);
  background: rgba(201, 163, 95, 0.07);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.shelf-note p { font-family: var(--display); font-size: 1.5rem; font-style: italic; }
.shelf-note .subtext { font-size: 0.95rem; margin-top: 4px; }

/* ── Service detail lists (spa, waxing) ── */
.service-detail-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: clamp(20px, 2.6vw, 34px);
}
.service-detail-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 30px 32px;
  transition: border-color 0.6s var(--ease), transform 0.6s var(--ease);
}
.service-detail-card:hover { border-color: rgba(201, 163, 95, 0.5); transform: translateY(-4px); }
.service-detail-card h3 { margin-bottom: 10px; }
.service-detail-info { font-size: 0.98rem; color: var(--ink-soft); }
.service-detail-price, .price {
  display: block; margin-top: 16px;
  font-size: 0.86rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-text);
}
.duration { font-size: 0.86rem; color: var(--ink-faint); }

.wax-list { border-top: 1px solid var(--rule); max-width: 760px; }
.wax-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 20px 6px;
  border-bottom: 1px solid var(--rule);
  transition: background 0.5s var(--ease), padding-left 0.5s var(--ease);
}
.wax-item:hover { background: rgba(201, 163, 95, 0.07); padding-left: 18px; }
.wax-item .price { margin-top: 0; white-space: nowrap; }

/* ── Booking modal (stylists page) ── */
/* hair-stylists.js drives these with opacity + visibility + transform, never a
   class, so the hidden state must be expressed the same way. Using display
   here would leave the modal permanently invisible. */
.booking-overlay {
  position: fixed; inset: 0; z-index: 130;
  background: rgba(20, 17, 12, 0.55);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.booking-modal {
  position: fixed; z-index: 140;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: min(520px, calc(100vw - 40px));
  max-height: 86vh; overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 30px 70px rgba(20, 17, 12, 0.25);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease);
}
.booking-modal-header {
  padding: 30px 34px 20px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.booking-modal-header h3 { font-size: 1.9rem; }
.booking-modal-close {
  position: absolute; top: 22px; right: 26px;
  background: none; border: 0; font-size: 1.7rem;
  color: var(--ink-faint); cursor: pointer; line-height: 1;
}
.booking-modal-body { padding: 26px 34px 34px; }
.booking-services { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.booking-modal-footer {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding: 0 34px 32px;
}
.booking-modal-footer .btn { flex: 1; text-align: center; padding: 15px 20px; }
.booking-services span {
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--rule); padding: 7px 14px;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .stylist-card--horizontal { grid-template-columns: 110px 1fr; gap: 18px; }
  .shelf-note { flex-direction: column; align-items: flex-start; }
}

/* Wide banner art (Color Wow) is shown whole rather than cropped to a square. */
.shelf-img--contain { background: #fff; }
.shelf-img--contain img { object-fit: contain; padding: 16px; }

/* ── Retail brand rows (products page) ── */
.brand-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 6vw, 76px) 0;
  border-bottom: 1px solid var(--rule);
}
.brand-row:last-of-type { border-bottom: 0; }
.brand-row--flip .brand-copy { order: 2; }
.brand-row--flip .brand-shots { order: 1; }

/* The source logos are dark artwork. Multiply drops any white plate they
   were exported on, so they sit directly on the ivory. */
.brand-logo {
  height: 34px; width: auto;
  margin-bottom: 18px;
  mix-blend-mode: multiply;
}
.brand-copy h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 14px; }
.brand-copy p { color: var(--ink-soft); margin-bottom: 24px; max-width: 46ch; }

.brand-shots { display: grid; gap: 14px; }
.brand-shots--3 { grid-template-columns: repeat(3, 1fr); }
.brand-shots--2 { grid-template-columns: repeat(2, 1fr); }
.brand-shots--1 { grid-template-columns: 1fr; }
.brand-shot {
  background: var(--paper);
  border: 1px solid var(--rule);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.brand-shots--1 .brand-shot { aspect-ratio: 4 / 3; background: #fff; }
.brand-shots--1 .brand-shot img { object-fit: contain; padding: 20px; }
.brand-shot img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.brand-row:hover .brand-shot img { transform: scale(1.04); }

@media (max-width: 860px) {
  .brand-row { grid-template-columns: 1fr; }
  .brand-row--flip .brand-copy,
  .brand-row--flip .brand-shots { order: initial; }
}

/* ── Long-form legal pages ── */
.legal { max-width: 760px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: clamp(38px, 5vw, 56px) 0 14px;
  padding-top: clamp(20px, 3vw, 30px);
  border-top: 1px solid var(--rule);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h3 {
  font-size: 1.16rem;
  margin: 26px 0 8px;
}
.legal p { margin-bottom: 16px; }
.legal ul { margin: 0 0 18px 1.1rem; }
.legal li { margin-bottom: 10px; }
.legal a { border-bottom: 1px solid var(--gold); }
.legal .effective {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 34px;
}
.legal-note {
  margin: 30px 0;
  padding: 22px 26px;
  border-left: 2px solid var(--gold);
  background: rgba(201, 163, 95, 0.07);
}
.legal-note p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════
   Mobile: centre the display elements so the page
   reads as deliberate rather than left-stranded.
   Paragraphs stay left-aligned — centred ragged body
   text is measurably harder to read, so only the
   short display pieces are centred.
   ═══════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .hero { text-align: center; justify-items: center; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero .eyebrow { text-align: center; }
  .hero-ctas { justify-content: center; width: 100%; }
  .hero-ctas .btn { flex: 1 1 240px; text-align: center; }

  .section-header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .section-header .gold-line { margin-left: auto; margin-right: auto; }
  .section-header .subtext { margin-left: auto; margin-right: auto; }

  .about-text { text-align: center; }
  .about-text .gold-line { margin-left: auto; margin-right: auto; }
  .about-text .lede { text-align: left; margin-left: auto; margin-right: auto; }

  .interlude p { text-align: center; }

  .team-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .stylist-card { text-align: center; }

  .shelf-note { text-align: center; align-items: center; }
  .shelf-note .btn { align-self: center; }

  .products-row { justify-content: center; }

  .contact-form { margin-left: auto; margin-right: auto; }
  .contact-form label,
  .contact-form .cf-status,
  .contact-form .cf-fineprint { text-align: center; }
  .contact-form .btn { display: block; width: 100%; text-align: center; }

  .legal { text-align: left; }
  .legal h2, .legal h3 { text-align: center; }

  .page-hero .gold-line { margin-left: auto; margin-right: auto; }

  .footer-grid { text-align: center; }
  .footer-social { justify-content: center; }
  .footer-hours { max-width: 260px; margin: 0 auto; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* The hero image sits above the type on narrow screens, so cap its height —
   a 52vh photo pushed the headline and the booking button below the fold. */
@media (max-width: 640px) {
  .hero-bg { height: min(42vh, 340px); }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* Tracked small caps eat a lot of width. At phone sizes the hero standfirst
   was orphaning its last word, so ease the tracking rather than the size. */
@media (max-width: 480px) {
  .hero .subtext { letter-spacing: 0.16em; font-size: 0.7rem; }
  .eyebrow { letter-spacing: 0.24em; text-indent: 0.24em; }
}

/* The chat bubble is fixed, so it always sits over the bottom-right corner of
   whatever has scrolled under it. Shrink and tuck it on phones so it covers
   less of a full-width call to action. */
@media (max-width: 640px) {
  .bella-trigger { width: 46px; height: 46px; right: 14px; bottom: 14px; }
  .bella-trigger svg { width: 18px; height: 18px; }
  .bella-panel { right: 12px; bottom: 70px; }
  .hero-ctas .btn { max-width: 260px; margin-left: auto; margin-right: auto; }
}
