/* ============================================================
   Berry's Beauty — design system
   Clean editorial luxury. Brand-derived monochrome:
   warm ink + cream paper, no gold/brass. One accent = ink.
   Type: Cabinet Grotesk (display) + General Sans (body).
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* palette (derived from the Berry's Beauty logo: cream + warm near-black) */
  --ink: #1b1a17;
  --ink-2: #33312b;
  --paper: #e9e4e0;
  --paper-2: #e1dcd6;
  --paper-3: #d6d0c8;
  --line: #d3ccc3;
  --line-2: #beb6ab;
  --muted: #6a655b;
  --muted-2: #8b8578;
  --on-ink: #ece7e2;
  --on-ink-soft: #b6afa6;

  --accent: #1b1a17;           /* accent is the ink itself */
  --focus: #8a7d5f;            /* warm focus ring */

  --display: "Cabinet Grotesk", "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --wrap-narrow: 900px;

  --r: 4px;                    /* surfaces */
  --r-lg: 6px;
  --r-pill: 100px;             /* interactive */

  --shadow-1: 0 6px 24px rgba(27, 26, 23, 0.06);
  --shadow-2: 0 20px 50px rgba(27, 26, 23, 0.10);
  --shadow-3: 0 34px 80px rgba(27, 26, 23, 0.16);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --header-h: 64px;
  --topbar-h: 40px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }
input, select, textarea { font: inherit; }

::selection { background: var(--ink); color: var(--paper); }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
}
h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.75rem); }
h4 { font-size: 1.1rem; letter-spacing: -0.01em; }
p { color: var(--muted); }
strong { color: var(--ink); font-weight: 600; }

.display {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.lead {
  font-family: var(--sans);
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  line-height: 1.5;
  color: var(--muted);
  font-weight: 400;
}
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(72px, 11vw, 132px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 80px); }

.tone-paper { background: var(--paper); }
.tone-paper-2 { background: var(--paper-2); }
.tone-paper-3 { background: var(--paper-3); }
.tone-ink { background: var(--ink); color: var(--on-ink); }
.tone-ink h1, .tone-ink h2, .tone-ink h3, .tone-ink h4 { color: var(--on-ink); }
.tone-ink p { color: var(--on-ink-soft); }
.tone-ink .eyebrow { color: var(--on-ink-soft); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 18px; }

/* skip link */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  background: var(--ink); color: var(--on-ink);
  padding: 10px 18px; border-radius: var(--r);
  font-size: 0.9rem; font-weight: 500;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--sans); font-size: 0.98rem; font-weight: 600; letter-spacing: 0.005em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease-soft),
              color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft), box-shadow 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.9rem; }

.btn--primary { background: var(--ink); color: var(--on-ink); }
.btn--primary:hover { background: #000; box-shadow: var(--shadow-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(27,26,23,0.03); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; box-shadow: var(--shadow-2); }
.tone-ink .btn--ghost { color: var(--on-ink); border-color: rgba(236,231,226,0.28); }
.tone-ink .btn--ghost:hover { border-color: var(--on-ink); background: rgba(236,231,226,0.06); }

/* text link with animated underline */
.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--ink);
  position: relative; padding-bottom: 2px;
}
.link svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.link:hover::after { transform: scaleX(1); }
.link:hover svg { transform: translateX(4px); }
.tone-ink .link { color: var(--on-ink); }

/* ---------- Media frames ---------- */
.media {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--paper-2), var(--paper-3));
  isolation: isolate;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.media img { transition: transform 1.1s var(--ease); }
.media--zoom:hover img { transform: scale(1.05); }

/* branded placeholder for frames without a photo yet */
.media--ph::after {
  content: "Berry's";
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: -0.03em;
  color: rgba(27, 26, 23, 0.12);
}
.media--ph .ph-tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  background: rgba(233,228,224,0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 5px 11px; border-radius: var(--r-pill);
}

/* ============================================================
   HEADER (Web Component: <site-header>)
   ============================================================ */
site-header { display: block; }

/* Top bar: phone + reviews + call button, hides on scroll */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 199;
  height: var(--topbar-h);
  background: var(--ink); color: var(--on-ink);
  transition: transform 0.4s var(--ease);
}
body.scrolled .topbar { transform: translateY(-100%); }
.topbar__inner {
  max-width: var(--wrap); margin-inline: auto; height: 100%;
  padding-inline: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 0.82rem;
}
.topbar__phone { display: inline-flex; align-items: center; gap: 8px; color: var(--on-ink); letter-spacing: 0.01em; }
.topbar__phone svg { width: 15px; height: 15px; opacity: 0.75; }
.topbar__phone:hover { color: #fff; }
.topbar__right { display: inline-flex; align-items: center; gap: 18px; }
.topbar__tag { color: var(--on-ink-soft); }
.topbar__rating { display: inline-flex; align-items: center; gap: 6px; color: var(--on-ink); font-size: 0.82rem; }
.topbar__rating:hover { color: #fff; }
.topbar__rating strong { font-weight: 700; color: inherit; }
.topbar__stars { color: #e2c069; font-size: 0.9rem; }
.topbar__count { color: var(--on-ink-soft); }
@media (max-width: 640px) { .topbar__count { display: none; } }
.topbar__call {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--on-ink); color: var(--ink);
  padding: 5px 14px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 0.8rem;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.topbar__call:hover { background: #fff; transform: translateY(-1px); }
.topbar__call svg { width: 15px; height: 15px; }
@media (max-width: 560px) { .topbar__tag { display: none; } .topbar__inner { padding-inline: 16px; } }

.hdr {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 200;
  transition: top 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
body.scrolled .hdr { top: 0; box-shadow: 0 8px 30px rgba(27,26,23,0.07); }
.hdr__inner {
  max-width: var(--wrap); margin-inline: auto;
  height: var(--header-h);
  padding-inline: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.hdr__brand { display: inline-flex; align-items: center; }
.hdr__brand img { height: 26px; width: auto; }
/* transparent-over-hero state uses the light (cream) logo */
.hdr--transparent .hdr__brand img { filter: none; }
body.scrolled .hdr, .hdr--solid {
  background: rgba(233, 228, 224, 0.85);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
/* on transparent hero header, invert brand + nav to cream */
.hdr--transparent:not(.hdr--solid) { color: var(--on-ink); }
.hdr--transparent:not(.hdr--solid) .hdr__brand img { filter: brightness(0) invert(1); }
.hdr--transparent:not(.hdr--solid) .nav__link { color: rgba(236,231,226,0.82); }
.hdr--transparent:not(.hdr--solid) .nav__link:hover,
.hdr--transparent:not(.hdr--solid) .nav__link[aria-current="page"] { color: var(--on-ink); }
.hdr--transparent:not(.hdr--solid) .burger span { background: var(--on-ink); }

.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-block; position: relative;
  font-size: 0.94rem; font-weight: 500; color: var(--ink-2);
  padding: 8px 14px; border-radius: var(--r-pill);
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1.5px;
  background: currentColor;
}

/* dropdown mega menu */
.nav__item { position: relative; }
.nav__panel {
  position: absolute; top: 100%; left: -52px; transform: translateY(10px);
  display: grid; grid-template-columns: repeat(4, minmax(116px, auto)); gap: 4px 12px;
  align-items: stretch;
  width: max-content; max-width: calc(100vw - 24px);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 18px 18px; box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
/* invisible bridge over the gap so the menu stays open while the cursor moves onto it */
.nav__panel::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav__item:hover .nav__panel, .nav__item:focus-within .nav__panel {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(4px);
}
.nav__panel ul { display: block; }
.nav__group { padding: 0 10px; }
.nav__group:not(:last-child) { border-right: 1px solid var(--line); }
.nav__grouptitle {
  font-size: 0.63rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 10px; padding-inline: 10px;
}
.nav__panel a {
  display: block; padding: 9px 9px; font-size: 0.875rem; line-height: 1.3; color: var(--ink-2);
  white-space: nowrap;
  border-radius: var(--r); transition: background 0.15s, color 0.15s;
}
.nav__panel a:hover { background: var(--paper-2); color: var(--ink); }

.hdr__actions { display: flex; align-items: center; gap: 10px; }
.hdr__cta { display: none; }

/* burger */
.burger {
  width: 44px; height: 44px; display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px; border-radius: var(--r-pill);
  transition: background 0.2s;
}
.burger:hover { background: rgba(27,26,23,0.06); }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile overlay */
.mmenu {
  position: fixed; inset: 0; z-index: 190;
  background: var(--paper);
  padding: calc(var(--topbar-h) + var(--header-h) + 16px) 24px 32px;
  display: flex; flex-direction: column;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), visibility 0.35s, transform 0.35s var(--ease);
}
.mmenu.open { opacity: 1; visibility: visible; transform: none; }
.mmenu a { display: block; }
.mmenu__link {
  font-family: var(--display); font-weight: 600;
  font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink);
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.mmenu__groups { padding: 6px 0 10px; border-bottom: 1px solid var(--line); }
.mmenu__cattitle {
  display: block; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 600; margin: 14px 0 9px;
}
.mmenu__sub { display: flex; flex-wrap: wrap; gap: 8px; }
.mmenu__sub a {
  font-size: 0.85rem; color: var(--ink-2); padding: 8px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
}
.mmenu__sub a:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.mmenu__foot { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.mmenu__foot a.btn { display: inline-flex; width: 100%; }
.mmenu__contact { margin-top: 6px; font-size: 0.95rem; color: var(--muted); }
.mmenu__contact a { color: var(--ink); }

/* ============================================================
   HERO — 50 / 50 split, full-bleed image
   ============================================================ */
.hero { padding-top: calc(var(--topbar-h) + var(--header-h)); }
.hero__inner { display: grid; grid-template-columns: 1fr; min-width: 0; }
.hero__copy { padding: clamp(36px, 7vw, 64px) 24px clamp(44px, 7vw, 64px); max-width: 640px; margin-inline: auto; width: 100%; }
.hero h1 { margin-bottom: 22px; }
.hero__copy .lead { max-width: 46ch; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero__media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; min-width: 0; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__cta .link { align-self: flex-start; }
}
@media (min-width: 960px) {
  .hero { min-height: calc(94vh - var(--topbar-h)); min-height: calc(94dvh - var(--topbar-h)); display: grid; }
  .hero__inner { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .hero__copy {
    align-self: center; margin-inline: 0; max-width: none;
    padding: 40px 6vw 40px max(24px, calc((100vw - 1240px) / 2 + 40px));
  }
  .hero__copy > * { max-width: 560px; }
  .hero__media { aspect-ratio: auto; height: 100%; }
}

/* ============================================================
   Editorial statement
   ============================================================ */
.statement p {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem); line-height: 1.18; letter-spacing: -0.02em;
  color: var(--ink); max-width: 20ch;
}
.statement .lead { margin-top: 26px; max-width: 52ch; }

/* ============================================================
   Category grid (2x2, image-led)
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.cat {
  position: relative; display: block; overflow: hidden; border-radius: var(--r-lg);
  min-height: 320px; color: var(--on-ink);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.cat:hover img { transform: scale(1.05); }
.cat::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,19,16,0.82) 0%, rgba(20,19,16,0.28) 46%, rgba(20,19,16,0.08) 100%);
}
.cat__body { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; min-height: 320px; }
.cat__count { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(236,231,226,0.75); font-weight: 600; margin-bottom: 8px; }
.cat h3 { color: #fff; margin-bottom: 8px; }
.cat p { color: rgba(236,231,226,0.82); font-size: 0.92rem; max-width: 34ch; }
.cat__arrow {
  position: absolute; top: 22px; right: 22px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(236,231,226,0.4); color: #fff;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.cat:hover .cat__arrow { background: var(--paper); color: var(--ink); transform: rotate(-45deg); }
.cat__arrow svg { width: 18px; height: 18px; }

/* ============================================================
   Split feature (image + text)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split--text { max-width: 640px; }
.section:has(.split--text) { padding-top: clamp(24px, 4vw, 40px); }
.split__body .eyebrow { margin-bottom: 18px; }
.split__body h2 { margin-bottom: 20px; }
.split__body .lead { margin-bottom: 22px; }
.checks { display: grid; gap: 14px; margin-bottom: 32px; }
.checks li { display: flex; gap: 13px; align-items: flex-start; color: var(--ink-2); font-size: 1rem; }
.checks svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--ink); }

/* ============================================================
   Stats (plain, no cards)
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
.stat { border-top: 1px solid rgba(236,231,226,0.18); padding-top: 20px; }
.tone-paper-3 .stat, .tone-paper-2 .stat, .tone-paper .stat { border-top-color: var(--line-2); }
.stat__num { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.4rem); letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.tone-ink .stat__num { color: var(--on-ink); }
.stat__label { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }
.tone-ink .stat__label { color: var(--on-ink-soft); }

/* ============================================================
   Quote
   ============================================================ */
.quote { max-width: 900px; margin-inline: auto; text-align: center; }
.quote blockquote {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.25; letter-spacing: -0.02em;
  color: var(--ink);
}
.tone-ink .quote blockquote { color: var(--on-ink); }
.quote figcaption { margin-top: 26px; font-size: 0.92rem; color: var(--muted); }
.quote figcaption strong { color: var(--ink); }
.tone-ink .quote figcaption strong { color: var(--on-ink); }
.quote__stars { display: inline-flex; gap: 3px; margin-bottom: 22px; color: var(--ink); }
.tone-ink .quote__stars { color: var(--on-ink); }

/* ============================================================
   Reviews grid (Treatwell)
   ============================================================ */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.reviews-more { margin-top: 18px; max-height: 0; overflow: hidden; opacity: 0; gap: 0; transition: opacity 0.4s var(--ease); }
.reviews-more.show { max-height: none; opacity: 1; gap: 18px; margin-top: 18px; }
.review {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 26px 22px;
}
.review__stars { display: flex; gap: 2px; font-size: 0.95rem; color: var(--ink); }
.review__stars .is-empty { color: var(--line-2); }
.review__text {
  font-size: 0.95rem; color: var(--ink-2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.review__tag {
  align-self: flex-start; font-size: 0.76rem; color: var(--muted);
  padding: 5px 12px; border: 1px solid var(--line-2); border-radius: var(--r-pill);
}
.review__footer {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.review__who strong { color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.review__time { color: var(--muted-2); font-size: 0.82rem; margin-left: 7px; }
.review__verified { display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; color: var(--muted-2); white-space: nowrap; }
.review__verified svg { width: 13px; height: 13px; }
.reviews-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 32px; }
@media (min-width: 720px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.quote__stars svg { width: 18px; height: 18px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta { text-align: center; }
.cta h2 { margin-bottom: 20px; max-width: 18ch; margin-inline: auto; }
.cta .lead { max-width: 50ch; margin-inline: auto; margin-bottom: 32px; }
.cta__row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============================================================
   Marquee (single, decorative divider)
   ============================================================ */
.marquee { overflow: hidden; padding-block: 22px; border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 0; width: max-content; animation: marquee 70s linear infinite; }
.marquee__track span { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.02em; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; }
.marquee__track span::after { content: "·"; margin-inline: 34px; color: var(--muted-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Page hero (interior)
   ============================================================ */
.phero { padding-top: calc(var(--topbar-h) + var(--header-h) + clamp(40px, 7vw, 84px)); padding-bottom: clamp(40px, 6vw, 72px); }
.phero .crumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 22px; }
.phero .crumb a { color: var(--muted-2); }
.phero .crumb a:hover { color: var(--ink); }
.phero h1 { margin-bottom: 20px; max-width: 16ch; }
.phero .lead { max-width: 56ch; }

/* ============================================================
   Overview grid (behandelingen)
   ============================================================ */
.ov-cat { margin-bottom: clamp(44px, 6vw, 72px); }
.ov-cat__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ov-cat__head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.ov-cat__head span { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.ov-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tcard { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s; }
.tcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: transparent; }
.tcard__media { position: relative; }
.tcard__num { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; color: var(--ink); background: rgba(233,228,224,0.85); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: 4px 10px; border-radius: var(--r-pill); }
.tcard__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.tcard--text .tcard__body { padding-top: 26px; }
.tcard__body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.tcard__body p { font-size: 0.92rem; margin-bottom: 18px; }
.tcard__link { margin-top: auto; align-self: flex-start; }

/* ============================================================
   Treatment detail
   ============================================================ */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag { padding: 7px 15px; border-radius: var(--r-pill); background: var(--paper-2); border: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-2); }
.spec { display: grid; grid-template-columns: 1fr; gap: 0; margin: 4px 0 32px; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.spec dt { color: var(--muted); }
.spec dd { color: var(--ink); font-weight: 500; text-align: right; }
.related { display: grid; grid-template-columns: 1fr; gap: 14px; }
.rel { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s; }
.rel:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: transparent; }
.rel h4 { font-size: 1.05rem; }
.rel svg { width: 18px; height: 18px; flex: none; color: var(--ink); transition: transform 0.3s var(--ease); }
.rel:hover svg { transform: translateX(4px); }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-1); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-2); border-radius: var(--r); padding: 13px 15px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(27,26,23,0.08);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #a1503f; }
.field .err { display: none; color: #a1503f; font-size: 0.82rem; margin-top: 6px; }
.field.invalid .err { display: block; }
.form-note { font-size: 0.82rem; color: var(--muted-2); margin-top: 12px; }
.form-ok { display: none; background: var(--ink); color: var(--on-ink); border-radius: var(--r); padding: 14px 18px; margin-bottom: 18px; font-size: 0.94rem; }
.form-ok.show { display: block; }

.info { display: grid; gap: 26px; }
.info__row { display: flex; gap: 16px; align-items: flex-start; }
.info__ic { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-2); color: var(--ink); }
.info__ic svg { width: 20px; height: 20px; }
.info__row h4 { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 5px; }
.info__row p, .info__row a { font-size: 1.02rem; color: var(--ink); }
.info__row a:hover { color: var(--muted); }
.hours { display: grid; gap: 2px; margin-top: 4px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; font-size: 0.94rem; padding: 5px 0; }
.hours span:first-child { color: var(--muted); }
.hours span:last-child { color: var(--ink); }
.badge-open { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.badge-open .dot { width: 8px; height: 8px; border-radius: 50%; background: #5c7a53; box-shadow: 0 0 0 3px rgba(92,122,83,0.18); }
.badge-open.closed .dot { background: var(--muted-2); box-shadow: none; }
.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); line-height: 0; box-shadow: var(--shadow-1); }
.map iframe { width: 100%; height: 380px; border: 0; filter: grayscale(0.35) contrast(0.98); }

/* ============================================================
   Prose (legal)
   ============================================================ */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.prose ul { padding-left: 20px; margin-bottom: 16px; }
.prose li { list-style: disc; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose .note { font-size: 0.9rem; color: var(--muted); background: var(--paper-2); padding: 14px 18px; border-radius: var(--r); }

/* ============================================================
   Team
   ============================================================ */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 22px; }
.team__card .media { margin-bottom: 16px; }
.team__card h4 { font-size: 1.15rem; margin-bottom: 3px; }
.team__card p { font-size: 0.88rem; color: var(--muted); }
.member { text-align: center; }
.member__avatar {
  width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--line);
  font-family: var(--display); font-weight: 700; font-size: 1.55rem; color: var(--ink); letter-spacing: 0.01em;
}
.member__avatar img { width: 100%; height: 100%; object-fit: cover; }
.member__name { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.member__role { font-size: 0.85rem; color: var(--muted); margin-top: 3px; }
.member__rating { font-size: 0.84rem; color: var(--ink-2); margin-top: 10px; }
.member__rating .star { color: var(--ink); }
@media (min-width: 720px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .team { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; } }

/* Treatwell rating badge */
.rating-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: var(--r-pill);
  background: var(--paper); border: 1px solid var(--line);
  font-size: 0.9rem; color: var(--ink);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.rating-badge:hover { box-shadow: var(--shadow-1); transform: translateY(-1px); }
.rating-badge__score { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.rating-badge__stars { color: var(--ink); font-size: 0.95rem; }
.rating-badge__meta { color: var(--muted); font-size: 0.84rem; }
.tone-ink .rating-badge { background: rgba(236,231,226,0.06); border-color: rgba(236,231,226,0.18); color: var(--on-ink); }
.tone-ink .rating-badge__stars { color: var(--on-ink); }
.tone-ink .rating-badge__meta { color: var(--on-ink-soft); }

/* rating + award side by side */
.badge-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.badge-row.center { justify-content: center; }
.award { width: 66px; height: 66px; flex: none; }
.ftr__brand .ftr__award { width: 104px; height: auto; margin-top: 24px; display: block; }

/* ============================================================
   404
   ============================================================ */
.nf { min-height: 74vh; min-height: 74dvh; display: grid; place-items: center; text-align: center; padding: calc(var(--topbar-h) + var(--header-h) + clamp(60px,10vw,110px)) 24px clamp(80px,14vw,150px); }
.nf__code { font-family: var(--display); font-weight: 700; font-size: clamp(5rem, 18vw, 11rem); line-height: 0.85; letter-spacing: -0.05em; color: var(--ink); margin-bottom: 12px; }
.nf h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 16px; }
.nf p { max-width: 46ch; margin: 0 auto 30px; }
.nf__row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============================================================
   FOOTER (Web Component: <site-footer>)
   ============================================================ */
site-footer { display: block; }
.ftr { background: var(--ink); color: var(--on-ink); padding-top: clamp(64px, 9vw, 104px); }
.ftr__grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
.ftr__brand img { height: 24px; margin-bottom: 18px; }
.ftr__brand p { color: var(--on-ink-soft); font-size: 0.92rem; max-width: 34ch; }
.ftr__socials { display: flex; gap: 10px; margin-top: 22px; }
.ftr__socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(236,231,226,0.07); color: var(--on-ink); transition: background 0.25s, transform 0.25s; }
.ftr__socials a:hover { background: rgba(236,231,226,0.16); transform: translateY(-2px); }
.ftr__socials svg { width: 18px; height: 18px; }
.ftr h5 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-ink); font-weight: 600; margin-bottom: 16px; }
.ftr__col ul { display: grid; gap: 9px; }
.ftr__col a, .ftr__col p { color: var(--on-ink-soft); font-size: 0.92rem; transition: color 0.2s; }
.ftr__col a:hover { color: var(--on-ink); }
.ftr .hours div { border: 0; padding: 3px 0; }
.ftr .hours span:first-child { color: var(--on-ink-soft); }
.ftr .hours span:last-child { color: var(--on-ink); }
.ftr .badge-open { color: var(--on-ink); }
.ftr__bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding-block: 26px; border-top: 1px solid rgba(236,231,226,0.1); font-size: 0.85rem; color: var(--on-ink-soft); }
.ftr__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.ftr__legal a:hover { color: var(--on-ink); }

/* ============================================================
   Floating actions
   ============================================================ */
.floats { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: flex; flex-direction: column; gap: 12px; }
.fab { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-2); transition: transform 0.3s var(--ease), box-shadow 0.3s, opacity 0.3s; }
.fab:hover { transform: translateY(-3px); }
.fab svg { width: 23px; height: 23px; }
.fab--call { background: var(--ink); color: var(--on-ink); }
.fab--call:hover { background: #000; }
.fab--top { background: var(--paper); color: var(--ink); border: 1px solid var(--line-2); opacity: 0; pointer-events: none; }
.fab--top.show { opacity: 1; pointer-events: auto; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }

/* ============================================================
   Grain overlay (fixed, subtle)
   ============================================================ */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.03; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .ov-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .related { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
  .hero__note { gap: 40px; }
}
@media (min-width: 960px) {
  .nav { display: block; }
  .hdr__cta { display: inline-flex; }
  .burger { display: none; }
  .ov-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split--text { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 2; }
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
  .spec { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .spec div:nth-last-child(-n+1) { }
}
@media (min-width: 1180px) { .wrap { padding-inline: 40px; } }

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