/* ==========================================================================
   Sach Aesthetics
   Design tokens, layout and components. One stylesheet, no build step.
   ========================================================================== */

:root {
  /* Palette drawn from the studio photography */
  --bone:        #F3EEE8;
  --bone-deep:   #EAE2D9;
  --shell:       #E4D8CC;
  --sand:        #D3C0AE;
  --ink:         #423F3B;
  --ink-soft:    #6F6862;
  --ink-faint:   #9C948C;
  --clay:        #A8785C;
  --mulberry:    #7C3B44;
  --line:        rgba(66, 63, 59, 0.16);
  --line-soft:   rgba(66, 63, 59, 0.09);

  /* Type */
  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body:    "Newsreader", Georgia, "Times New Roman", serif;
  --util:    "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --gutter: 24px;
  --maxw: 1280px;
  --section: clamp(64px, 9vw, 132px);
  --header-h: 68px;
}

/* --------------------------------------------------------------- Reset -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.66;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bone);
  padding: 12px 18px;
  z-index: 999;
  font-family: var(--util);
  font-size: 13px;
}
.skip:focus { left: 8px; top: 8px; }

/* ------------------------------------------------------------ Utilities -- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 780px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(44px, 6vw, 84px); }
.section--shell { background: var(--shell); }
.section--deep { background: var(--bone-deep); }

.label {
  font-family: var(--util);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  margin: 0 0 22px;
  display: block;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* --------------------------------------------------------------- Header -- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(243, 238, 232, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.header__inner {
  position: relative;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

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

.nav { display: none; }

.nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav a {
  font-family: var(--util);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--ink);
  padding-block: 6px;
  position: relative;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--mulberry);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Treatments dropdown */
.nav__item--has-menu { position: relative; }

.nav__sub {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  min-width: 232px;
  background: var(--bone);
  border: 1px solid var(--line-soft);
  padding: 10px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
  box-shadow: 0 18px 44px -28px rgba(66, 63, 59, 0.55);
}

.nav__item--has-menu:hover .nav__sub,
.nav__item--has-menu:focus-within .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__sub a {
  display: block;
  padding: 9px 18px;
  letter-spacing: 0.13em;
}
.nav__sub a::after { display: none; }
.nav__sub a:hover { color: var(--mulberry); }

/* Two classes so the later `.btn { display: inline-flex }` cannot win on order */
.header .header__cta { display: none; }

/* Burger — sits first in the bar on mobile */
.burger {
  appearance: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  margin-left: -10px;
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
  color: var(--ink);
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bone);
  z-index: 55;
  padding: 34px var(--gutter) 120px;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.drawer[data-open="true"] { opacity: 1; visibility: visible; transform: none; }

.drawer ul { list-style: none; margin: 0; padding: 0; }

.drawer > ul > li { border-bottom: 1px solid var(--line-soft); }

.drawer a {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-decoration: none;
  padding: 18px 0;
}

.drawer__sub { padding: 0 0 18px 2px !important; }
.drawer__sub a {
  font-family: var(--util);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  padding: 8px 0;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------- Button -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--util);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  padding: 15px 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn:hover { background: var(--mulberry); border-color: var(--mulberry); }

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

.btn--light {
  background: transparent;
  border-color: rgba(243, 238, 232, 0.75);
  color: var(--bone);
}
.btn--light:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

.btn--solid-light {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
}
.btn--solid-light:hover { background: var(--mulberry); border-color: var(--mulberry); color: var(--bone); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ----------------------------------------------------------------- Hero -- */

.hero {
  position: relative;
  min-height: clamp(520px, 82vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--sand);
}

.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media picture,
.banner__media picture { display: block; width: 100%; height: 100%; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(52, 38, 30, 0.62) 0%, rgba(52, 38, 30, 0.2) 45%, rgba(52, 38, 30, 0.06) 100%);
}

.hero__body {
  position: relative;
  padding-block: clamp(44px, 7vw, 84px);
  color: var(--bone);
}

.hero__logo {
  width: min(420px, 74vw);
  filter: brightness(0) invert(1);
  margin-bottom: 22px;
}

.hero__tag {
  font-family: var(--util);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin: 0 0 30px;
  color: rgba(243, 238, 232, 0.86);
}

/* Interior page banner */
.banner {
  position: relative;
  min-height: clamp(300px, 46vh, 460px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--sand);
}
.banner__media { position: absolute; inset: 0; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(52, 38, 30, 0.6), rgba(52, 38, 30, 0.05));
}
.banner__body {
  position: relative;
  color: var(--bone);
  padding-block: clamp(32px, 5vw, 56px);
}
.banner h1 {
  font-size: clamp(34px, 6.4vw, 74px);
}
.banner .label { color: rgba(243, 238, 232, 0.72); margin-bottom: 14px; }

/* ---------------------------------------------------------------- Split -- */

.split {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.split h2 {
  font-size: clamp(28px, 4.4vw, 48px);
  margin-bottom: 22px;
}

.split--flip .split__media { order: -1; }

/* ------------------------------------------------------------ Card grid -- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.card {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 3 / 4;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.card:hover img { transform: scale(1.045); }

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(52, 38, 30, 0.66) 0%, rgba(52, 38, 30, 0.12) 55%, transparent 100%);
}

.card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 24px;
  color: var(--bone);
  z-index: 2;
}

.card h3 {
  font-size: clamp(20px, 2.6vw, 26px);
  margin-bottom: 8px;
}

.card__more {
  font-family: var(--util);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(243, 238, 232, 0.82);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card__more::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: width 0.4s ease;
}
.card:hover .card__more::after { width: 40px; }

/* ------------------------------------------- Signature: treatment ledger -- */

.ledger { border-top: 1px solid var(--line); }

.ledger__row {
  border-bottom: 1px solid var(--line-soft);
  padding-block: 26px;
}

.ledger__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
}

.ledger__name {
  font-family: var(--display);
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
  flex: 0 1 auto;
}

/* the dot leader that ties name to price, like a printed menu */
.ledger__leader {
  flex: 1 1 auto;
  min-width: 18px;
  height: 1px;
  align-self: center;
  margin-top: 4px;
  background-image: radial-gradient(circle, var(--ink-faint) 1px, transparent 1.2px);
  background-size: 7px 2px;
  background-repeat: repeat-x;
  background-position: bottom;
  opacity: 0.75;
}

.ledger__price {
  font-family: var(--display);
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 700;
  color: var(--mulberry);
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.ledger__meta {
  font-family: var(--util);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  margin-top: 10px;
}

.ledger__desc {
  margin-top: 12px;
  max-width: 66ch;
}

.ledger__book {
  font-family: var(--util);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  display: inline-block;
  margin-top: 16px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.ledger__book:hover { color: var(--mulberry); border-color: var(--mulberry); }

/* Compact ledger used for area/price lists with no description */
.ledger--compact .ledger__row { padding-block: 15px; }

/* ------------------------------------------------------------ Info tiles -- */

.tiles {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}

.tile {
  background: var(--bone);
  padding: clamp(28px, 4vw, 44px) clamp(22px, 3vw, 36px);
}

.tile h3 {
  font-size: 15px;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.tile p { color: var(--ink); }

/* ---------------------------------------------------------------- Quote -- */

.quote {
  font-family: var(--body);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(23px, 3.6vw, 40px);
  line-height: 1.34;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

/* ----------------------------------------------------------------- Form -- */

.form { display: grid; gap: 22px; }

.field { display: grid; gap: 8px; }

.field label {
  font-family: var(--util);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

.field input,
.field textarea,
.field select {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  border-radius: 0;
  transition: border-color 0.25s ease;
  width: 100%;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--mulberry);
}
.field textarea { resize: vertical; min-height: 130px; }

.form__note {
  font-family: var(--util);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* Honeypot: off screen rather than display:none, which some bots detect */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  font-family: var(--util);
  font-size: 12px;
  letter-spacing: 0.04em;
  margin: 0;
  padding: 12px 16px;
  border-left: 2px solid var(--mulberry);
  background: rgba(124, 59, 68, 0.06);
  color: var(--ink);
}
.form__status[data-state="ok"] {
  border-left-color: #4F7A52;
  background: rgba(79, 122, 82, 0.08);
}

/* ------------------------------------------------------------ Contact kv -- */

.kv { display: grid; gap: 26px; }

.kv__item { border-top: 1px solid var(--line-soft); padding-top: 16px; }

.kv__key {
  font-family: var(--util);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.kv__val { font-size: 17px; }
.kv__val a { text-decoration: none; border-bottom: 1px solid var(--line); }
.kv__val a:hover { color: var(--mulberry); border-color: var(--mulberry); }

/* ------------------------------------------------------------------ Map -- */

.map {
  width: 100%;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--line-soft);
  filter: grayscale(0.42) sepia(0.16) contrast(0.96);
}

/* ------------------------------------------------------------- Gallery -- */

.gallery { display: grid; gap: 4px; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* --------------------------------------------------------------- Footer -- */

.footer {
  background: var(--ink);
  color: var(--bone);
  padding-block: clamp(52px, 7vw, 84px) 34px;
}

.footer a { color: inherit; text-decoration: none; }

.footer__top {
  display: grid;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(243, 238, 232, 0.16);
}

.footer__logo {
  width: min(300px, 62vw);
  filter: brightness(0) invert(1);
  margin-bottom: 18px;
}

.footer__blurb {
  color: rgba(243, 238, 232, 0.68);
  max-width: 38ch;
}

.footer h4 {
  font-family: var(--util);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(243, 238, 232, 0.5);
  margin: 0 0 16px;
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }

.footer li a {
  font-size: 15px;
  color: rgba(243, 238, 232, 0.86);
  transition: color 0.25s ease;
}
.footer li a:hover { color: var(--bone); }

.footer__base {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-family: var(--util);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 238, 232, 0.5);
}

.footer__credit a {
  color: inherit;
  border-bottom: 1px solid rgba(243, 238, 232, 0.24);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.footer__credit a:hover {
  color: var(--bone);
  border-bottom-color: var(--bone);
}

/* --------------------------------------------------- Sticky mobile book -- */

.bookbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(243, 238, 232, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-soft);
}
.bookbar .btn { width: 100%; }

/* -------------------------------------------------------------- Reveals -- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- Breakpoints -- */

@media (min-width: 700px) {
  :root { --gutter: 40px; }
  .banner { min-height: clamp(420px, 42vw, 580px); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .ledger__head { align-items: baseline; }
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
}

@media (min-width: 1000px) {
  :root { --header-h: 78px; --gutter: 56px; }
  /* Banner artwork is 1512x812 (1.86:1). Tracking that ratio keeps the crop
     shallow instead of slicing the top and bottom off on wide screens. */
  .banner { min-height: clamp(600px, 54vw, 880px); }
  .banner h1 { font-size: clamp(48px, 5.2vw, 82px); }
  .nav { display: block; margin-left: 46px; }
  .header .header__cta { display: inline-flex; margin-left: auto; }
  .burger { display: none; }
  .drawer { display: none; }
  .bookbar { display: none; }
  .brand img { height: 34px; }
  .split { grid-template-columns: 1fr 1fr; gap: 88px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  body { padding-bottom: 0; }
}

@media (max-width: 999px) {
  body { padding-bottom: 74px; }

  /* Centred against the viewport, not against the space left over by the burger */
  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

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