/* ==========================================================================
   K Clinic: website styles
   Layout adapted from the Dribbble reference, colours from the K Clinic brand.
   Rules live in DESIGN.md. Components use tokens only: no local magic numbers.
   ========================================================================== */

:root {
  /* ---- colour ---- */
  --gold: #9d835f;
  --gold-700: #7a6243;
  --gold-800: #64502f;
  --gold-400: #b79d74;
  --gold-200: #dccbb0;
  --grad-gold: linear-gradient(95deg, #725b3c 0%, #9a8160 100%);
  --grad-gold-hover: linear-gradient(95deg, #64502f 0%, #8b7352 100%);

  --ink: #191714;
  --ink-2: #2b2721;
  --text: #4f4940;
  --muted: #6f675d;
  --soft: #978d80;
  --line: #e7dfd2;
  --line-2: #efe9df;
  --sand-50: #f7f3ec;
  --sand-100: #f1ebe1;
  --white: #fff;
  --dark: #2a241d;
  --dark-rgb: 30, 25, 20;
  --success: #3f6b45;
  --danger: #a0442f;

  /* ---- type ---- */
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(40px, 6vw, 96px);
  --fs-h2: clamp(32px, 4.4vw, 56px);
  --fs-statement: clamp(26px, 3vw, 42px);
  --fs-h3: clamp(20px, 1.7vw, 23px);
  --fs-h4: 19px;
  --fs-stat: clamp(22px, 2.6vw, 34px);
  --fs-lead: clamp(16px, 1.3vw, 18px);
  --fs-body: 16px;
  --fs-sm: 15px;
  --fs-xs: 13px;

  /* ---- space ---- */
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --frame: clamp(8px, 1.2vw, 16px);
  --section-y: clamp(72px, 8vw, 120px);
  --head-gap: clamp(32px, 4vw, 52px);
  --gap: 20px;
  --pad-card: clamp(22px, 2.2vw, 30px);
  --pad-card-sm: 18px 20px;

  /* ---- shape ---- */
  --r-xl: clamp(22px, 2.4vw, 32px);
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --r-pill: 999px;

  /* ---- icons ---- */
  --icon-lg: 56px;
  --icon-md: 34px;
  --icon-sm: 22px;
  --chip: calc(var(--icon-md) + 18px);

  /* ---- elevation ---- */
  --shadow-sm: 0 1px 2px rgba(25, 23, 20, .04), 0 12px 32px -12px rgba(25, 23, 20, .10);
  --shadow-md: 0 24px 48px -26px rgba(25, 23, 20, .34);
  --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, .45);
  --shadow-btn: 0 10px 24px -12px rgba(114, 91, 60, .65);
  --shadow-btn-hover: 0 14px 30px -12px rgba(114, 91, 60, .75);
  --ring: 0 0 0 4px rgba(157, 131, 95, .16);
  --ring-danger: 0 0 0 4px rgba(160, 68, 47, .12);

  /* ---- motion ---- */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur-fast: .25s;
  --dur: .35s;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
/* responsive images: <picture> is layout-neutral, a tiny blurred preview shows until the photo arrives */
picture { display: contents; }
img[style*="background-image"] { background-size: cover; background-position: center; background-repeat: no-repeat; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--ink); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
svg { width: 1em; height: 1em; flex: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* placeholder marker: content to confirm with the client (search: class="ph") */
.ph { text-decoration: underline dashed rgba(157, 131, 95, .55); text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- typography helpers ---------- */
.h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -.03em; }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 52ch; }
.muted { color: var(--soft); }
.label { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }

.pill {
  display: inline-flex; align-items: center;
  padding: 7px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink);
  font-size: var(--fs-sm); font-weight: 500; line-height: 1.2;
  margin-bottom: 20px;
}
.pill--white { border-color: transparent; }
.pill--glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: var(--white); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ---------- buttons ---------- */
.btn {
  --icon: 42px;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 7px 26px 7px 7px;
  min-height: calc(var(--icon) + 14px);
  border: 0; border-radius: var(--r-pill);
  background: var(--grad-gold);
  color: var(--white);
  font-weight: 500; font-size: var(--fs-body); line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), translate var(--dur) var(--ease);
  box-shadow: var(--shadow-btn);
  position: relative;
}
.btn:hover { background: var(--grad-gold-hover); box-shadow: var(--shadow-btn-hover); }
.btn:active { translate: 0 1px; }
.btn__icon {
  width: var(--icon); height: var(--icon);
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white); color: var(--gold-700);
  font-size: 20px;
  overflow: hidden;
}
.btn__icon svg { transition: transform var(--dur) var(--ease); }
.btn:hover .btn__icon svg { transform: translateX(3px); }

.btn--sm { --icon: 32px; font-size: var(--fs-sm); padding: 6px 22px 6px 6px; gap: 11px; min-height: 44px; }
.btn--sm .btn__icon { font-size: 16px; }

.btn--outline { background: var(--white); color: var(--gold-700); border: 1px solid var(--line); box-shadow: none; }
.btn--outline .btn__icon { background: var(--grad-gold); color: var(--white); }
.btn--outline:hover { background: var(--sand-50); border-color: var(--gold-200); box-shadow: none; }

.btn--block { width: 100%; justify-content: center; padding-right: 26px; }
.btn--block .btn__icon { position: absolute; left: 7px; }

.round-btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0; background: var(--white); color: var(--gold-700);
  font-size: var(--icon-sm); cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), translate var(--dur-fast), opacity var(--dur-fast);
  box-shadow: var(--shadow-sm);
}
.round-btn:hover { translate: 0 -2px; }
.round-btn--solid { background: var(--grad-gold); color: var(--white); }
.round-btn:disabled { opacity: .45; cursor: default; translate: none; }

/* ---------- shared card ---------- */
.card {
  background: var(--sand-50);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  transition: background var(--dur), translate var(--dur) var(--ease), box-shadow var(--dur);
}
.card:hover { background: var(--sand-100); translate: 0 -3px; box-shadow: var(--shadow-sm); }
.card-icon { color: var(--gold); flex: none; }
/* visible to screen readers and search engines only */
.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; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: calc(var(--frame) + 14px + env(safe-area-inset-top, 0px)) var(--frame) 0;
  transition: padding var(--dur) var(--ease);
  pointer-events: none;
}
.site-header__inner {
  pointer-events: auto;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 24px;
  border-radius: var(--r-pill);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease), max-width var(--dur) var(--ease);
}
.brand { display: inline-flex; align-items: center; position: relative; }
.brand__logo { height: 58px; width: auto; transition: opacity .3s, height var(--dur) var(--ease); }
.brand__logo--dark { position: absolute; left: 0; top: 0; opacity: 0; }

.nav { flex: 1; display: flex; justify-content: center; }
.nav__list { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav__link { position: relative; color: rgba(255,255,255,.78); font-size: var(--fs-body); font-weight: 500; padding: 6px 0; transition: color var(--dur-fast); }
.nav__link:hover, .nav__link.is-active { color: var(--white); }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__link.is-active::after { transform: scaleX(1); }
.nav__cta-mobile { display: none; }
.nav-toggle { display: none; }

/* scrolled state */
.site-header.is-scrolled { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.site-header.is-scrolled .site-header__inner {
  max-width: 1180px;
  padding: 8px 8px 8px 24px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}
.site-header.is-scrolled .brand__logo { height: 44px; }
.site-header.is-scrolled .brand__logo--light { opacity: 0; }
.site-header.is-scrolled .brand__logo--dark { opacity: 1; }
.site-header.is-scrolled .nav__link { color: var(--muted); }
.site-header.is-scrolled .nav__link:hover,
.site-header.is-scrolled .nav__link.is-active { color: var(--ink); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: var(--frame) var(--frame) 0; }
.hero__frame {
  position: relative;
  min-height: max(640px, min(calc(100svh - var(--frame) * 2), 960px));
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex; align-items: flex-end;
  isolation: isolate;
  background: var(--dark);
}
/* the photo is taller than the frame (6% above and below) so the scroll
   parallax only moves it inside that margin and never uncovers the frame */
.hero__bg {
  position: absolute; top: -6%; right: 0;
  width: 62%; height: 112%;
  object-fit: cover; object-position: 50% 4%;
  z-index: -2;
  transform-origin: 60% 30%;
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--dark) 0%, var(--dark) 38%, rgba(42, 36, 29, .82) 46%, rgba(42, 36, 29, .25) 62%, rgba(42, 36, 29, 0) 78%),
    linear-gradient(0deg, rgba(var(--dark-rgb), .55) 0%, rgba(var(--dark-rgb), 0) 40%),
    linear-gradient(180deg, rgba(var(--dark-rgb), .4) 0%, rgba(var(--dark-rgb), 0) 20%),
    radial-gradient(120% 90% at 10% 100%, rgba(157, 131, 95, .22) 0%, rgba(157, 131, 95, 0) 60%);
}
.hero__content {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  padding-top: 140px; padding-bottom: clamp(36px, 5vw, 64px);
  color: var(--white);
}
.hero__main { max-width: 820px; }
.hero__kicker { display: flex; align-items: center; gap: 16px; font-size: var(--fs-body); line-height: 1.45; color: rgba(255,255,255,.82); margin-bottom: clamp(24px, 3vw, 40px); }
.hero__spark { font-size: var(--icon-md); color: var(--white); opacity: .9; }
.hero__title {
  color: var(--white);
  font-size: var(--fs-display);
  line-height: .98;
  letter-spacing: -.035em;
  margin-bottom: clamp(28px, 3.6vw, 52px);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .line > span { display: inline-block; will-change: transform; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero__tags li {
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 500; line-height: 1.3;
  color: var(--white);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.hero__lead { max-width: 620px; font-size: var(--fs-lead); line-height: 1.55; color: rgba(255,255,255,.88); }

/* ==========================================================================
   ABOUT + VALUES (one chapter: values has no top padding)
   ========================================================================== */
.about { padding: var(--section-y) 0; }
.about__inner { --photo-w: clamp(170px, 15vw, 250px); position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.about__statement {
  font-family: var(--font-display);
  font-size: var(--fs-statement);
  line-height: 1.22;
  letter-spacing: -.02em;
  font-weight: 500;
  color: var(--ink);
  max-width: min(900px, calc(100% - var(--photo-w) * 2 - 24px));
  margin-bottom: 40px;
}
.about__statement .w { display: inline; }
.about__photo {
  position: absolute; top: 46%;
  width: var(--photo-w);
  aspect-ratio: 4 / 3.4;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo--left { left: var(--gutter); transform: translateY(-50%) rotate(-11deg); }
.about__photo--right { right: var(--gutter); transform: translateY(-50%) rotate(11deg); }

.values { padding: 0 0 var(--section-y); }
.values__inner { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.values__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.value-card { padding: var(--pad-card); min-height: 290px; display: flex; flex-direction: column; }
.value-card__icon { font-size: var(--icon-lg); }
.value-card h3 { font-size: var(--fs-h3); margin: 44px 0 10px; }
.value-card p { font-size: var(--fs-sm); line-height: 1.55; color: var(--muted); min-height: 3.1em; }
.values__intro { order: 1; } /* first in the DOM for heading order, shown on the right */
.values__intro .h2 { margin-bottom: 24px; }

/* ==========================================================================
   SECTION SHELLS
   ========================================================================== */
.panel {
  margin: 0 var(--frame);
  border-radius: var(--r-xl);
  background: var(--sand-50);
  padding: var(--section-y) 0;
  overflow: hidden;
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: var(--head-gap); }
.section-head .h2 { max-width: 24ch; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .h2 { max-width: 20ch; margin-bottom: 20px; }
.slider-nav { display: flex; gap: 12px; }

/* ==========================================================================
   TREATMENTS SLIDER (white cards on the sand panel)
   ========================================================================== */
.slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(290px, 31%, 420px);
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
  padding: 4px max(var(--gutter), calc((100% - var(--container)) / 2)) 8px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.slider::-webkit-scrollbar { display: none; }
.slider:focus-visible { outline-offset: -2px; }

.service-card {
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
  display: flex; flex-direction: column; align-items: flex-start;
  transition: translate var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.service-card:hover { translate: 0 -4px; box-shadow: var(--shadow-md); }
.service-card__icon { font-size: var(--icon-lg); color: var(--gold); margin-bottom: 40px; }
.service-card h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.service-card p { font-size: var(--fs-sm); line-height: 1.6; color: var(--muted); margin-bottom: 28px; min-height: 3.2em; }
.service-card img { margin-top: 36px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-md); }

/* ==========================================================================
   ALL SERVICES (tabs, no prices)
   ========================================================================== */
.menu { padding: var(--section-y) 0; }
.menu > .container { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-rows: auto 1fr; gap: var(--gap) clamp(32px, 5vw, 72px); align-items: start; }
.menu__head { grid-column: 1; display: flex; flex-direction: column; align-items: stretch; }
.menu__head .h2 { margin-bottom: 16px; }
.menu__head .lead { margin-bottom: 32px; }
.menu__panel { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }

/* category tabs: numbered vertical list on desktop, segmented pill below 1024px */
.tabs { display: grid; gap: 6px; max-width: 100%; counter-reset: tab; }
.tabs__btn {
  counter-increment: tab;
  display: flex; align-items: center; gap: 16px; width: 100%;
  min-height: 64px; padding: 0 12px 0 20px;
  border: 1px solid transparent; border-radius: var(--r-md);
  background: transparent; cursor: pointer; text-align: left; white-space: nowrap;
  font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.015em; color: var(--muted);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.tabs__btn::before { content: "0" counter(tab); font-family: var(--font-body); font-size: var(--fs-xs); letter-spacing: .08em; color: var(--muted); transition: color var(--dur-fast); }
.tabs__btn::after {
  content: ""; flex: none; margin-left: auto;
  width: 40px; height: 40px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat, var(--grad-gold);
  opacity: 0; scale: .8;
  transition: opacity var(--dur-fast), scale var(--dur-fast) var(--ease);
}
.tabs__btn:hover { color: var(--ink); background: var(--sand-50); }
.tabs__btn.is-active { color: var(--ink); background: var(--sand-50); border-color: var(--line); }
.tabs__btn.is-active::before { color: var(--gold-700); }
.tabs__btn.is-active::after { opacity: 1; scale: 1; }
.tab-s { display: none; }

/* services: one rounded sheet, cells split by hairlines */
.svc-grid, .svc-cols {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--line); overflow: hidden;
}
.svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc-card, .svc-card:hover { border: 0; border-radius: 0; translate: none; box-shadow: none; }
.svc-card { padding: var(--pad-card); min-width: 0; background: var(--sand-50); }
.svc-card:hover { background: var(--white); }
.svc-card__icon { width: var(--chip); height: var(--chip); display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--white); border: 1px solid var(--line); font-size: calc(var(--icon-md) - 6px); color: var(--gold); transition: background var(--dur-fast); }
.svc-card:hover .svc-card__icon { background: var(--sand-50); }
.svc-card h3 { font-size: var(--fs-h4); line-height: 1.2; }
.svc-card p { font-size: var(--fs-sm); line-height: 1.5; color: var(--muted); }

.svc-card--row { display: flex; flex-direction: column; align-items: flex-start; min-height: 190px; }
.svc-card--row > div { margin-top: auto; padding-top: 24px; }
.svc-card--row h3 { margin-bottom: 6px; }

.menu__note { display: flex; align-items: center; gap: 12px; padding: 12px var(--pad-card); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--white); font-size: var(--fs-sm); color: var(--gold-700); }
.menu__note .svc-card__icon { width: var(--icon-md); height: var(--icon-md); font-size: var(--icon-sm); background: var(--sand-50); }
.menu__note + .svc-cols { border-radius: 0 0 var(--r-xl) var(--r-xl); grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.menu__note + .svc-cols > :first-child { grid-row: span 2; }

.svc-group summary { list-style: none; display: flex; align-items: center; gap: 14px; pointer-events: none; }
.svc-group summary::-webkit-details-marker { display: none; }
.svc-group summary h3 { flex: 1; }
.svc-group__body { margin-top: 18px; }
.svc-group__desc { margin-bottom: 14px; }
.svc-zones { margin: 0; display: grid; gap: 10px; }
.svc-zones div + div { padding-top: 10px; border-top: 1px solid var(--line); }
.svc-zones div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; font-size: var(--fs-sm); line-height: 1.5; }
.svc-zones dt { color: var(--gold-700); font-weight: 500; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; line-height: 1.75; }
.svc-zones dd { margin: 0; color: var(--text); }
.svc-list { display: grid; gap: 9px; }
.svc-list li { position: relative; padding-left: 16px; font-size: var(--fs-sm); line-height: 1.45; color: var(--text); }
.svc-list li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-400); }

.menu__cta {
  grid-column: 1; grid-row: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  padding: var(--pad-card);
  border-radius: var(--r-lg);
  background: var(--dark);
}
.menu__cta p { font-size: var(--fs-body); color: rgba(255,255,255,.88); }

/* ==========================================================================
   SPACE / BENTO
   ========================================================================== */
.space { padding: var(--section-y) 0; }
.bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: repeat(2, clamp(200px, 21vw, 300px));
  gap: var(--gap);
}
.bento__item { border-radius: var(--r-lg); overflow: hidden; background: var(--sand-100); }
.bento__item img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.bento__item:hover img { scale: 1.04; }
.bento__item--tall { grid-row: span 2; }

/* ==========================================================================
   RESULTS (white cards on the sand panel)
   ========================================================================== */
.results__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.case-card {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
  display: flex; flex-direction: column; gap: 28px;
}
.case-card__top { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: stretch; }
.case-card__text { display: flex; flex-direction: column; align-items: flex-start; }
.case-card h3 { font-size: var(--fs-h3); line-height: 1.2; margin-bottom: 20px; }
.case-card__meta { margin: 0 0 28px; display: grid; gap: 8px; font-size: var(--fs-sm); }
.case-card__meta div { line-height: 1.45; }
.case-card__meta dt { display: inline; color: var(--ink); font-weight: 500; }
.case-card__meta dd { display: inline; margin: 0; color: var(--muted); }
.case-card .btn { margin-top: auto; }
/* photos keep their own 4:3 frame so nothing is cropped off the sides */
.case-card__photo { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; align-self: center; }
.case-card__photo img { width: 100%; height: 100%; object-fit: cover; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 0; }
.stats li { padding: 0 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.3; }
.stats strong { font-family: var(--font-display); font-size: var(--fs-stat); font-weight: 500; color: var(--ink); letter-spacing: -.02em; line-height: 1.05; }

/* before / after */
.compare { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; align-self: center; background: var(--sand-100); user-select: none; --pos: 50%; }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__before::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); box-shadow: 0 0 12px rgba(0,0,0,.25); }
.compare__handle {
  position: absolute; top: 50%; left: var(--pos);
  transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--white); color: var(--gold-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  box-shadow: var(--shadow-md);
  pointer-events: none;
}
.compare__tag { position: absolute; bottom: 12px; padding: 4px 12px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 500; background: rgba(255,255,255,.86); color: var(--ink); backdrop-filter: blur(6px); pointer-events: none; }
.compare__tag--l { left: 12px; }
.compare__tag--r { right: 12px; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare:focus-within .compare__handle { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ==========================================================================
   TEAM
   ========================================================================== */
.team { padding: var(--section-y) 0; }
.team__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.team__intro { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 8px; }
.team__intro .h2 { margin-bottom: 20px; }
.team__intro .lead { margin-bottom: 32px; }
.team__grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr auto; gap: var(--gap); }
/* name boxes share one grid row, so they are always the same height side by side */
.doc-card { position: relative; display: grid; grid-template-rows: 1fr auto; }
@media (min-width: 721px) { .doc-card { grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; } }
.doc-card__photo { grid-area: 1 / 1 / -1 / -1; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand-100); }
.doc-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale 1s var(--ease); }
.doc-card:hover .doc-card__photo img { scale: 1.04; }
.doc-card__body {
  position: relative; grid-area: 2 / 1; margin: 0 14px 14px;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad-card-sm);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}
.doc-card__body h3 { font-size: var(--fs-h3); margin-bottom: 4px; }
.doc-card__body p { font-size: var(--fs-sm); color: var(--muted); }
.doc-card__body .doc-card__note { font-size: var(--fs-xs); color: var(--gold-700); margin-top: 6px; line-height: 1.4; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { padding: 0 var(--frame); }
.contact__frame {
  position: relative; isolation: isolate;
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: var(--section-y) 0;
  background: var(--dark);
}
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.contact__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--dark-rgb), .88) 0%, rgba(var(--dark-rgb), .72) 45%, rgba(var(--dark-rgb), .38) 100%); }
.contact__inner { display: grid; grid-template-columns: 1fr minmax(360px, 480px); gap: clamp(36px, 6vw, 96px); align-items: center; color: var(--white); }
.contact__title { color: var(--white); max-width: 13ch; margin-bottom: 20px; }
.contact__lead { color: rgba(255,255,255,.82); max-width: 46ch; font-size: var(--fs-lead); margin-bottom: 40px; }
.contact__list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list small { display: block; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 2px; }
.contact__list a:hover { color: var(--gold-200); }
.contact__list .contact__perk { grid-column: 1 / -1; padding: 14px 16px; border-radius: var(--r-md); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.contact__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); font-size: 20px; color: var(--gold-200); }

.booking {
  background: var(--white);
  color: var(--text);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-lg);
}
.booking__title { font-size: var(--fs-h3); margin-bottom: 6px; }
.booking__sub { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.field .optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--sand-50);
  font-size: var(--fs-body);
  color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%237a6243' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  padding-right: 42px;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: var(--soft); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: var(--ring); }
.field.has-error input { border-color: var(--danger); box-shadow: var(--ring-danger); }
.booking .btn { margin-top: 8px; }
.booking__status { margin-top: 14px; font-size: var(--fs-sm); min-height: 1.4em; text-align: center; }
.booking__status.is-ok { color: var(--success); }
.booking__status.is-err { color: var(--danger); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { padding: var(--section-y) 0 36px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer__brand img { height: 84px; width: auto; margin-bottom: 22px; }
.footer__brand p { color: var(--muted); font-size: var(--fs-sm); max-width: 32ch; margin-bottom: 22px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 20px; color: var(--gold-700); transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.footer__social a:hover { background: var(--grad-gold); color: var(--white); border-color: transparent; }
.footer__col h4 { font-family: var(--font-body); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col li, .footer__col a { font-size: var(--fs-sm); color: var(--ink-2); }
.footer__col a:hover { color: var(--gold-700); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; font-size: var(--fs-xs); color: var(--muted); }
.footer__credit a { color: var(--ink-2); font-weight: 500; transition: color var(--dur-fast); }
.footer__credit a:hover { color: var(--gold-700); }
.footer__top-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.footer__top-link svg { transform: rotate(-90deg); }
.footer__top-link:hover { color: var(--gold-700); }

/* ==========================================================================
   MOTION: driven by GSAP (assets/js/main.js); content is visible without it
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .case-card__top { grid-template-columns: 1fr; }
  .compare, .case-card__photo { min-height: 0; aspect-ratio: 16 / 10; }
  .case-card h3 { margin-bottom: 16px; }
  .case-card .btn { margin-top: 0; }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: grid; place-items: center;
    width: 48px; height: 48px; margin-left: auto;
    border-radius: 50%; border: 1px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.1); cursor: pointer;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    position: relative; z-index: 2;
  }
  .nav-toggle span { display: block; width: 18px; height: 1.6px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), background .3s; position: absolute; }
  .nav-toggle span:first-child { transform: translateY(-3.5px); }
  .nav-toggle span:last-child { transform: translateY(3.5px); }
  .site-header.is-scrolled .nav-toggle { border-color: var(--line); background: var(--white); }
  .site-header.is-scrolled .nav-toggle span { background: var(--ink); }
  .header-cta { display: none; }

  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 120px var(--gutter) 48px;
    background: var(--sand-50);
    opacity: 0; visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
  }
  .nav__list { flex-direction: column; gap: 4px; margin-bottom: 36px; }
  .nav__link, .site-header.is-scrolled .nav__link { color: var(--ink); font-family: var(--font-display); font-size: var(--fs-h2); letter-spacing: -.03em; line-height: 1.25; }
  .nav__link::after { display: none; }
  .nav__cta-mobile { display: inline-flex; }

  body.nav-open { overflow: hidden; }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  body.nav-open .nav-toggle { border-color: var(--line); background: var(--white); }
  body.nav-open .nav-toggle span { background: var(--ink); }
  body.nav-open .nav-toggle span:first-child { transform: rotate(45deg); }
  body.nav-open .nav-toggle span:last-child { transform: rotate(-45deg); }
  body.nav-open .brand__logo--light { opacity: 0; }
  body.nav-open .brand__logo--dark { opacity: 1; }
  body.nav-open .brand { z-index: 2; }
  body.nav-open .site-header__inner { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

  .hero__bg { width: 100%; object-position: 62% 10%; }
  .hero__shade { background: linear-gradient(0deg, rgba(var(--dark-rgb), .94) 0%, rgba(var(--dark-rgb), .75) 42%, rgba(var(--dark-rgb), .2) 72%, rgba(var(--dark-rgb), .45) 100%); }
  .hero__content { flex-direction: column; align-items: flex-start; }

  .about__statement { max-width: 720px; }
  .about__photo { position: static; transform: none !important; width: 46%; max-width: 280px; display: inline-block; }
  .about__inner { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; gap: 0 16px; }
  .about__inner > :not(.about__photo) { grid-column: 1 / -1; }
  .about__photo--left { grid-row: 4; justify-self: end; margin-top: 48px; rotate: -5deg; }
  .about__photo--right { grid-row: 4; justify-self: start; margin-top: 48px; rotate: 5deg; }

  .values__inner { grid-template-columns: 1fr; }
  .values__intro { order: -1; }
  .results__grid { grid-template-columns: 1fr; }
  .case-card__top { grid-template-columns: 1.05fr 1fr; }
  .team__layout { grid-template-columns: 1fr; }
  .menu > .container { display: block; }
  .menu__head { flex-direction: row; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px 40px; margin-bottom: var(--head-gap); }
  .menu__head .lead { margin-bottom: 0; }
  .tabs { display: flex; gap: 4px; padding: 5px; background: var(--sand-50); border: 1px solid var(--line-2); border-radius: var(--r-pill); }
  .tabs__btn, .tabs__btn.is-active { border: 0; }
  .tabs__btn { width: auto; min-height: 44px; padding: 0 22px; justify-content: center; border-radius: var(--r-pill); font-family: var(--font-body); font-size: var(--fs-sm); letter-spacing: 0; }
  .tabs__btn::before, .tabs__btn::after { display: none; }
  .tabs__btn:hover { background: transparent; }
  .tabs__btn.is-active { background: var(--grad-gold); color: var(--white); box-shadow: var(--shadow-btn); }
  .svc-grid, .svc-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid > :last-child:nth-child(odd) { grid-column: span 2; }
  .menu__cta { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-top: var(--gap); padding: 12px 12px 12px 26px; border-radius: var(--r-pill); }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root {
    --fs-h4: 17px;
    --gap: 12px;
    --pad-card: 20px;
    --pad-card-sm: 14px 16px;
    --icon-lg: 44px;
    --icon-md: 30px;
  }
  .hide-sm { display: none; }
  .brand__logo { height: 48px; }
  .site-header.is-scrolled .site-header__inner { padding-left: 18px; }
  .site-header.is-scrolled .brand__logo { height: 40px; }

  .hero__frame { min-height: max(620px, calc(100svh - var(--frame) * 2)); }
  .hero__bg { object-position: 55% 8%; }
  .hero__content { padding-top: 120px; gap: 24px; }
  .hero__kicker { display: none; }
  .hero__tags li { font-size: var(--fs-xs); padding: 5px 12px; }
  .hero__tags li:nth-child(n+4) { display: none; }

  .about__photo { width: 100%; max-width: 190px; }
  .about__photo--left, .about__photo--right { margin-top: 36px; }

  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head--center { align-items: center; }
  .slider-nav { display: none; }
  .slider { grid-auto-columns: 84%; }
  .service-card__icon { margin-bottom: 28px; }

  .values__grid { grid-template-columns: 1fr; }
  .value-card { min-height: 0; display: grid; grid-template-columns: var(--icon-lg) 1fr; column-gap: 16px; align-items: start; }
  .value-card__icon { grid-row: span 2; }
  .value-card h3 { margin: 2px 0 6px; }
  .value-card p { min-height: 0; }

  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 160px; }
  .bento__item--tall { grid-column: 1 / -1; grid-row: auto; }
  .bento__item:first-child { height: 240px; }

  .case-card { gap: 20px; }
  .case-card__top { grid-template-columns: 1fr; }
  .stats { padding: 14px 0; }
  .stats li { padding: 0 12px; }

  .team__grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .doc-card__photo { aspect-ratio: 4 / 4.4; }

  .menu__head { flex-direction: column; align-items: stretch; }
  .tabs { width: 100%; }
  .tabs__btn { flex: 1 1 0; padding: 0 8px; }
  .tab-l { display: none; }
  .tab-s { display: inline; }
  .svc-grid, .svc-cols, .menu__note + .svc-cols { grid-template-columns: 1fr; }
  .menu__note + .svc-cols > :first-child { grid-row: auto; }
  .svc-grid > :last-child:nth-child(odd) { grid-column: auto; }
  .svc-card--row { flex-direction: row; align-items: center; gap: 14px; min-height: 0; }
  .svc-card--row > div { margin-top: 0; padding-top: 0; }
  .svc-card--row h3 { margin-bottom: 3px; }
  .svc-group summary { cursor: pointer; pointer-events: auto; min-height: 44px; }
  .svc-group summary::after { content: ""; width: 9px; height: 9px; margin-right: 4px; border-right: 1.6px solid var(--gold-700); border-bottom: 1.6px solid var(--gold-700); transform: rotate(45deg) translateY(-3px); transition: transform var(--dur-fast); flex: none; }
  .svc-group[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
  .menu__cta { border-radius: var(--r-lg); padding: 20px; }

  .contact__list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .booking { padding: 22px; }

  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
