/* ==========================================================================
   HARTS Salon — main stylesheet
   Design tokens first; layout and components below.
   ========================================================================== */

:root {
  /* Palette — white base; warm accents sampled from the HARTS price list & brand deck */
  --bg:       #FFFFFF;
  --ivory:    #F4F1EC; /* text & buttons on dark bands only */
  --paper:    #F7F5F1;
  --sand:     #D9D0C5;
  --taupe:    #B09278;
  --taupe-deep: #75593F; /* ≥4.5:1 on white and paper (WCAG AA small text) */
  --stone:    #595857;
  --ink:      #1D1A1A;
  --ink-soft: #2B2725;
  --rosewood: #A84645;
  --whatsapp: #149444; /* white text clears 3:1 (WhatsApp green, AA for bold button text) */

  /* Type */
  --font-display: "Pretendard", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Small text is left alone (already compact); only the big display end is
     pulled down — smaller headings read as more refined and intentional. */
  --text-xs: 0.78rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-lg: 1.15rem;
  --text-xl: clamp(1.3rem, 1.1rem + 1vw, 1.65rem);
  --text-2xl: clamp(1.6rem, 1.2rem + 1.7vw, 2.3rem);
  --text-hero: clamp(2rem, 1.35rem + 3vw, 3.4rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 2.5rem;
  --space-16: 3.25rem;
  /* Section padding pulled in to match the smaller type — was clamp(4rem, 9vw, 7.5rem) */
  --section-pad: clamp(2.75rem, 6.5vw, 5.25rem);

  --content-max: 1140px;
  --radius: 3px;
}

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

html { scroll-behavior: smooth; background: var(--bg); font-size: 93.75%; } /* ~15px base; scales the whole type + rem-spacing scale down a touch */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 600; }

p { margin: 0 0 var(--space-4); }

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--ivory);
  padding: var(--space-3) var(--space-6);
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Visually hidden, still read by screen readers / SEO */
.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;
}

/* ---------- Utilities ---------- */
.wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe-deep);
  margin-bottom: var(--space-4);
}

.dark .eyebrow { color: var(--taupe); }

.lede {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--stone);
  max-width: 58ch;
}

.dark { background: var(--ink); color: var(--ivory); }
.dark .lede { color: var(--sand); }
.dark .note { color: var(--sand); }
.dark a { color: var(--ivory); }

.section { padding-block: var(--section-pad); }

.rule {
  border: 0;
  border-top: 1px solid var(--sand);
  margin: 0;
}

.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 1.9em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-solid { background: var(--ink); color: var(--ivory); }
.btn-solid:hover { background: var(--ink-soft); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }

.dark .btn-solid { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.dark .btn-solid:hover { background: var(--sand); border-color: var(--sand); }
.dark .btn-ghost { color: var(--ivory); border-color: var(--ivory); }
.dark .btn-ghost:hover { background: var(--ivory); color: var(--ink); }

.btn-wa { border-color: var(--whatsapp); background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: #0f7d3a; border-color: #0f7d3a; }
.btn-wa .ic { fill: currentColor; }

.btn .ic { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Header ---------- */
/* Sticky, not fixed: the header occupies the top of the document flow, so
   page content can never paint above it when in-app webviews (Telegram, IG)
   or iOS Safari collapse their browser chrome mid-scroll. */
.site-header {
  position: sticky;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

/* Fades out while scrolling down, back in on scroll up (see main.js) */
.site-header.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--sand);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; }

.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.2rem); }

.site-nav a:not(.btn) {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: 0.3em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: var(--space-2);
  cursor: pointer;
}

.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after { position: absolute; top: 7px; }

.is-open .nav-toggle .bars { background: transparent; }
.is-open .nav-toggle .bars::before { transform: translateY(7px) rotate(45deg); }
.is-open .nav-toggle .bars::after { transform: translateY(-7px) rotate(-45deg); }

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

  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    top: 62px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    background: var(--bg);
    text-align: center;
  }

  .site-nav a:not(.btn) { font-size: var(--text-lg); }

  .is-open .site-nav { display: flex; }
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(29, 26, 26, 0.25);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Hero (headline + stacked, slanted colour-result cards) ---------- */
.hero {
  padding-top: clamp(1rem, 3.5vh, 2.5rem);   /* mobile: tighter above the image (desktop zeroes this) */
  padding-bottom: clamp(2.5rem, 7vw, 5rem);
  overflow-x: clip;                 /* contain the slanted back card's peek */
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  max-width: 14ch;
  text-wrap: balance;
  margin-bottom: var(--space-6);
}

.hero .lede { margin-bottom: var(--space-8); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }

/* Two colour results stacked like a hand of photos: the cool result sits
   slanted behind the warm one, so the card has movement instead of sitting
   square in the grid. */
.hero-photo {
  position: relative;
  width: 100%;
  max-width: 318px;
  margin-inline: auto;
  padding: 1.75rem 1.5rem;          /* room for the slanted back card to peek */
  order: -1;                        /* mobile: image stack leads, above the copy */
  margin-bottom: 3.25rem;           /* clear the slanted back card's downward overhang */
}
.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 26px 50px -26px rgba(29, 26, 26, 0.5);
}
.hero-photo-back {
  position: absolute;
  inset: 1.75rem 1.5rem;
  transform: rotate(-7deg) translateX(-7%);
  z-index: 0;
}
.hero-photo-front {
  position: relative;
  z-index: 1;
  transform: rotate(2.5deg);
}

@media (min-width: 860px) {
  .hero { padding-block: 0; }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    min-height: min(78vh, 680px);
  }
  .hero-photo { max-width: 400px; order: 0; margin-bottom: 0; }   /* desktop: back to copy-left / photo-right */
}

/* ---------- Trust strip ---------- */
.trust-strip { border-block: 1px solid var(--sand); background: var(--paper); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding-block: var(--space-8);
  text-align: center;
}

.trust-icon {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  margin: 0 auto var(--space-3);
  color: var(--taupe-deep);
}

.trust-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.2;
}

.trust-grid span { font-size: var(--text-sm); color: var(--stone); }

@media (max-width: 800px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card-grid.two { grid-template-columns: 1fr 1fr; }

@media (max-width: 900px) {
  .card-grid, .card-grid.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .card-grid, .card-grid.four, .card-grid.two { grid-template-columns: 1fr; }
}

/* ---------- Why HARTS (dark editorial band) ---------- */
.why-harts h2 { max-width: 16ch; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: var(--space-12);
}

.why-item {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(244, 241, 236, 0.22);
}
.why-item:has(.why-icon) { position: relative; padding-left: 2.6rem; }
.why-item .why-icon {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--taupe);
}
.why-item:has(.why-icon) .why-icon {
  position: absolute;
  left: 0;
  top: var(--space-6);
}
.why-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--ivory);
  margin-bottom: var(--space-4);
}
.why-item p { color: var(--sand); font-size: var(--text-sm); line-height: 1.7; margin: 0; }

/* 2-column variant (About "How we work" — four reasons) */
.why-grid.cols-2 { grid-template-columns: repeat(2, 1fr); column-gap: clamp(2.5rem, 5vw, 4.5rem); row-gap: var(--space-12); }

/* Light-background variant (About "How we work" on a white section) */
.why-grid.on-light .why-item { border-top-color: var(--sand); }
.why-grid.on-light .why-item h3 { color: var(--ink); }
.why-grid.on-light .why-item p { color: var(--stone); }
.why-grid.on-light .why-item a { color: var(--ink); }
.why-grid.on-light .why-icon { color: var(--taupe-deep); }

/* About founder finale: portrait beside bio + award ledger */
.founder-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.founder-portrait {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(244, 241, 236, 0.14);
  background: rgba(244, 241, 236, 0.04);
}
.founder-portrait img { display: block; width: 100%; height: auto; }

/* award ledger sits below the bio, set off by a hairline */
.founder-awards {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(244, 241, 236, 0.18);
}
.founder-awards .award-list { margin-top: var(--space-3); }

@media (min-width: 760px) {
  .founder-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
@media (max-width: 800px) {
  .why-grid, .why-grid.cols-2 { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* Signature-service excerpt rows (text-first until photos arrive) */
.svc-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--sand);
}

.svc-rows li { border-bottom: 1px solid var(--sand); }

.svc-rows a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  text-decoration: none;
}

.svc-rows h3 {
  font-size: var(--text-xl);
  margin: 0 0 var(--space-1);
}

.svc-rows .desc {
  color: var(--stone);
  font-size: var(--text-sm);
  max-width: 52ch;
  margin: 0;
}

.svc-rows .from {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}

.svc-rows a:hover h3,
.svc-rows a:focus-visible h3 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

/* Price + a persistent arrow so each row reads as a navigable link */
.svc-end { display: inline-flex; align-items: baseline; gap: var(--space-3); }
.svc-arrow {
  font-size: var(--text-lg);
  line-height: 1;
  color: var(--taupe-deep);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-rows a:hover .svc-arrow,
.svc-rows a:focus-visible .svc-arrow { transform: translateX(5px); color: var(--ink); }

/* GST note sits right under the table, right-aligned beneath the price column
   (p.svc-gst beats .note's max-width:72ch so it spans full width and hugs right) */
p.svc-gst { margin: var(--space-3) 0 0; max-width: none; text-align: right; }
/* the "see all services" button drops below the table + note */
.svc-foot { margin-top: var(--space-6); }

@media (prefers-reduced-motion: reduce) {
  .svc-arrow { transition: none; }
  .svc-rows a:hover .svc-arrow,
  .svc-rows a:focus-visible .svc-arrow { transform: none; }
}

/* Service teaser cards */
.svc-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.svc-card:hover { box-shadow: 0 16px 40px rgba(29, 26, 26, 0.12); transform: translateY(-3px); }

.svc-card .media { aspect-ratio: 4 / 5; overflow: hidden; }
.svc-card .media img { width: 100%; height: 100%; object-fit: cover; }

.svc-card .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--sand), #d8cec2 90%);
}
.svc-card .placeholder img { width: 72px; height: 72px; opacity: 0.5; }

.svc-card .body { padding: var(--space-6); }
.svc-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.svc-card .from { color: var(--taupe-deep); font-size: var(--text-sm); font-weight: 600; }
.svc-card .desc { color: var(--stone); font-size: var(--text-sm); margin: var(--space-2) 0 0; }

/* ---------- Split sections (editorial image/text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.split.reverse > .media { order: 2; }

.split .media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(29, 26, 26, 0.14);
}

.split h2 { max-width: 18ch; }

@media (max-width: 800px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > .media { order: 0; }
  .split .media { max-width: 480px; }
}

/* ---------- Instagram gallery ---------- */
.ig-grid {
  list-style: none;
  margin: var(--space-8) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.ig-grid a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
}

.ig-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ig-grid a:hover img { transform: scale(1.04); }

.ig-cta { margin: var(--space-8) 0 0; }

@media (max-width: 620px) {
  .ig-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ig-grid img { transition: none; }
  .ig-grid a:hover img { transform: none; }
}

/* ---------- Press strip ---------- */
.press-strip { padding-block: var(--space-12); }

.press-strip .label {
  text-align: center;
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: var(--space-8);
}

.press-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
}

.press-logos img {
  height: 42px;
  width: auto;
  transition: transform 0.2s ease;
}
.press-logos img:hover { transform: translateY(-2px); }
.press-logos img.tall { height: 58px; }

@media (max-width: 600px) {
  .press-logos img { height: 34px; }
  .press-logos img.tall { height: 46px; }
}

/* ---------- Founder band ---------- */
.founder-band { overflow: hidden; }

.founder-band .split { align-items: center; }

.award-list { list-style: none; margin: var(--space-6) 0 0; padding: 0; }
.award-list li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(244, 241, 236, 0.16);
  font-size: var(--text-sm);
  color: var(--sand);
  display: flex;
  gap: var(--space-4);
  align-items: baseline;
}
.award-list .yr {
  font-family: var(--font-display);
  color: var(--taupe);
  min-width: 3em;
}

/* Light-background variant (about page) */
.award-list.on-light li { border-bottom-color: var(--sand); color: var(--stone); }
.award-list.on-light .yr { color: var(--taupe-deep); }

/* ---------- Visit strip ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.visit-grid h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe-deep);
  margin-bottom: var(--space-3);
}

.info-icon {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--taupe-deep);
}
.info-row { position: relative; padding-left: 2.7rem; }
.info-row .info-icon { position: absolute; left: 0; top: 0.15rem; }

.visit-grid p { margin: 0; color: var(--stone); }
.visit-grid a:not(.btn) { color: var(--ink); }

@media (max-width: 800px) {
  .visit-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* ---------- Price components ---------- */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 900px) { .bundle-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .bundle-grid { grid-template-columns: 1fr; } }

.bundle-card {
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
}

.bundle-card .tag {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--taupe-deep);
  margin-bottom: var(--space-2);
}

.bundle-card h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-lg); margin-bottom: var(--space-3); }

.bundle-card .includes { color: var(--stone); font-size: var(--text-sm); margin-bottom: var(--space-4); }

.bundle-prices {
  display: flex;
  gap: var(--space-6);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--sand);
}

.bundle-prices div { text-align: center; }
.bundle-prices .len {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  color: var(--taupe-deep);
}
.bundle-prices .amt { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; }

.bundle-prices.range { display: block; }
.bundle-prices.range .amt { font-size: var(--text-lg); }

.bundle-card .cutoff {
  margin: var(--space-4) 0 0;
  font-size: var(--text-xs);
  color: var(--stone);
}

.note { font-size: var(--text-sm); color: var(--stone); max-width: 72ch; text-wrap: pretty; }

/* Price tables */
.price-table { width: 100%; border-collapse: collapse; margin-block: var(--space-6); }

.price-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  padding-bottom: var(--space-4);
}

/* Sub-table title (smaller than a category caption, so hierarchy reads;
   also gives stacked mobile tables a visible title when thead is hidden) */
.price-table caption.sub {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding-bottom: var(--space-2);
}

/* Anchor targets clear the sticky header + subnav on jump (header height is
   measured by JS into --header-h; ~52px covers the subnav row) */
#bundles, #cut, #colour, #treatment, #perm, #promos { scroll-margin-top: calc(var(--header-h, 62px) + 52px); }

.price-table th, .price-table td {
  text-align: left;
  padding: var(--space-3) var(--space-2);
  border-bottom: 1px solid var(--sand);
  font-size: var(--text-sm);
}

.price-table thead th {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe-deep);
  border-bottom: 1px solid var(--ink);
}

.price-table td.num, .price-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Desktop: fix the column widths so the S / M / L price columns line up
   across every table regardless of how long the service labels are. */
@media (min-width: 801px) {
  .price-table { table-layout: fixed; }
  .price-table th.num, .price-table td.num { width: 7.5rem; }
}

/* Price footnotes (moved out of the hero, set at the foot of the price list) */
.price-notes {
  list-style: none;
  margin: var(--space-8) 0 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--sand);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--stone);
  max-width: 72ch;
}
.price-notes strong { color: var(--ink); }

.price-table tfoot td { border-bottom: 0; color: var(--stone); font-size: var(--text-xs); padding-top: var(--space-4); }

/* Anchor sub-nav */
.subnav {
  position: sticky;
  top: var(--header-h, 62px);
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-block: 1px solid var(--sand);
  transition: top 0.3s ease;
}

/* The subnav never hides: when the header fades out on scroll-down,
   it slides up and takes the top spot (class toggled in main.js). */
.subnav.header-hidden { top: 0; }

.subnav ul {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: var(--space-3) 0;
  overflow-x: auto;
}

.subnav a {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--stone);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--ink); border-bottom-color: var(--ink); }

/* Promo */
.promo-card {
  border: 1px solid var(--rosewood);
  border-radius: var(--radius);
  padding: var(--space-8);
  background: var(--paper);
}

.promo-card .badge {
  display: inline-block;
  background: var(--rosewood);
  color: var(--ivory);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.35em 1em;
  margin-bottom: var(--space-4);
}

.promo-card details { margin-top: var(--space-3); }
.promo-card summary { cursor: pointer; font-size: var(--text-sm); font-weight: 600; }
.promo-card details ul { color: var(--stone); font-size: var(--text-sm); padding-left: 1.2em; }

/* Mobile stacked price rows */
@media (max-width: 620px) {
  .price-table.stack thead { display: none; }
  /* Row title on its own line, then the S/M/L prices flow in a horizontal row */
  .price-table.stack tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.75rem;
    row-gap: 0.2rem;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--sand);
  }
  .price-table.stack th[scope="row"] {
    flex: 1 0 100%;
    border: 0;
    padding: 0 0 0.35rem;
    text-align: left;
  }
  .price-table.stack td.num {
    flex: 0 0 auto;
    min-width: 4.75em;             /* S / M / L line up in tidy columns */
    border: 0;
    padding: 0;
    text-align: left;
    font-variant-numeric: tabular-nums;
  }
  .price-table.stack td:not(.num) { flex: 1 0 100%; border: 0; }
  .price-table.stack td.num::before {
    content: attr(data-label) " ";
    font-size: var(--text-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--taupe-deep);
    margin-right: 0.35em;
  }
}

/* ---------- Contact ---------- */
.map-frame {
  border: 0;
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  filter: grayscale(0.35) sepia(0.08);
}

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--sand);
  font-size: var(--text-sm);
}
.hours-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band .hero-ctas { justify-content: center; margin-top: var(--space-8); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--sand);
  padding-block: var(--space-16) var(--space-8);
  font-size: var(--text-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-12);
}

.site-footer .brand img { height: 26px; }

.site-footer h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: var(--space-4);
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--space-2); }
.site-footer a { color: var(--sand); text-decoration: none; }
.site-footer a:hover { color: var(--ivory); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(244, 241, 236, 0.14);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: #9b948e;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reveal animation ---------- */
/* Reveal-on-scroll is a progressive enhancement: content is visible by default
   and only hidden once JS confirms it can animate it back in (the inline <head>
   script adds .js before first paint). No-JS / crawlers / headless stay visible. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal="2"].is-visible { transition-delay: 0.12s; }
.js [data-reveal="3"].is-visible { transition-delay: 0.24s; }
.js [data-reveal="4"].is-visible { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding-top: clamp(3rem, 8vh, 5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.page-hero h1 { max-width: 16ch; }
