/* =========================================================================
   Baylea Joanne - Elevated Editorial Design System
   Hair extension specialist + colorist, private suite, Ocean Springs MS.
   Register: warm, photo-led, generous whitespace. Serif display + clean sans.
   Palette is locked (data/site.json). Cream ground, ink text, terracotta CTA,
   sage + blush as quiet accents. AA contrast verified. No blue/tech anywhere.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
  /* Brand palette (locked) */
  --cream: #F7F1EC;
  --blush: #E8D3CE;
  --ink: #1A1A1A;
  --terracotta: #B5654A;
  --sage: #8A9A82;

  /* Derived tones - kept warm, AA-checked against their grounds */
  --terracotta-deep: #9E4F38;   /* interactive text/links + button fill (>=5:1 on cream, ~5.8:1 white-on-fill) */
  --terracotta-tint: #F0DED4;   /* faint wash */
  --sage-deep: #5E6C56;         /* sage text on cream when needed */
  --ink-soft: #574E46;          /* muted body copy (~7:1 on cream) */
  --ink-faint: #8A7F74;         /* captions / meta (large only) */
  --cream-2: #FDFBF9;           /* raised surface, a hair lighter than ground */
  --panel: #F1E7E0;             /* warm inset panel */

  --line: rgba(26, 26, 26, 0.12);
  --line-soft: rgba(26, 26, 26, 0.07);
  --line-strong: rgba(26, 26, 26, 0.22);

  /* Shadows tuned warm (brown, not grey) */
  --shadow-sm: 0 1px 2px rgba(74, 44, 30, 0.05), 0 3px 10px rgba(74, 44, 30, 0.05);
  --shadow-md: 0 14px 34px -14px rgba(74, 44, 30, 0.24);
  --shadow-lg: 0 34px 64px -22px rgba(74, 44, 30, 0.30);

  /* Type families */
  --ff-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid type scale (~1.22 ratio, clamped 360px -> 1280px) */
  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.92rem);
  --step-0:  clamp(1rem, 0.965rem + 0.18vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.5rem);
  --step-2:  clamp(1.45rem, 1.29rem + 0.72vw, 2rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.35vw, 2.75rem);
  --step-4:  clamp(2.25rem, 1.78rem + 2.1vw, 3.6rem);
  --step-5:  clamp(2.75rem, 1.95rem + 3.6vw, 5rem);

  /* Spacing + layout */
  --space-section: clamp(4rem, 7vw, 7.5rem);
  --gap: clamp(1.25rem, 3vw, 2.75rem);
  --container: 1100px;
  --container-wide: 1280px;
  --container-narrow: 760px;
  --pad-x: clamp(1.15rem, 5vw, 3rem);

  --radius: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

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

  --header-h: 76px;
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  min-height: 100dvh;
  font-family: var(--ff-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  /* Warm layered atmosphere - kept faint so text stays crisp */
  background-image:
    radial-gradient(120% 80% at 82% -10%, rgba(232, 211, 206, 0.55) 0%, rgba(232, 211, 206, 0) 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(138, 154, 130, 0.14) 0%, rgba(138, 154, 130, 0) 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* Fine grain overlay for print-like warmth (subtle, non-interactive) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%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");
}

/* keep real content above the atmosphere layers */
.site-header, main, .site-footer { position: relative; z-index: 1; }

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img { font-style: italic; color: var(--ink-faint); }

input, button, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: none; }

a { color: var(--terracotta-deep); text-decoration: none; }
a:hover { color: var(--ink); }

ul, ol { list-style: none; padding: 0; }

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

::selection { background: var(--terracotta); color: var(--cream); }

/* -------------------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: var(--step-5); font-weight: 500; line-height: 1.02; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.18; }
h4 { font-size: var(--step-1); line-height: 1.25; }

p { text-wrap: pretty; }
p + p { margin-top: 1em; }

strong, b { font-weight: 600; }
em, i { font-style: italic; }

small { font-size: var(--step--1); }

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 46ch;
}

/* Eyebrow - the editorial signature: letter-spaced label with a hairline */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--ff-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--center { justify-content: center; }

/* Display accent: an italic serif emphasis you can drop into headings */
.script {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta-deep);
}

.text-muted { color: var(--ink-soft); }

/* -------------------------------------------------------------------------
   4. Layout primitives
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* Section grounds */
.section--blush { background: linear-gradient(180deg, var(--blush) 0%, #EEDDD6 100%); }
.section--panel { background: var(--panel); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--cream); }
.section--ink .lead, .section--ink p { color: rgba(247, 241, 236, 0.82); }
.section--ink .eyebrow { color: var(--blush); }
.section--ink a { color: var(--blush); }
.section--ink a:hover { color: #fff; }

/* Section heading block */
.section-head { max-width: var(--container-narrow); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1rem; color: var(--ink-soft); font-size: var(--step-1); font-weight: 300; }
.section--ink .section-head p { color: rgba(247, 241, 236, 0.82); }

/* -------------------------------------------------------------------------
   5. Header + navigation
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 236, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: 0 var(--pad-x);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-wordmark {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem);
  letter-spacing: 0.2em;
  color: var(--ink);
  white-space: nowrap;
}
.brand-wordmark:hover { color: var(--terracotta-deep); }

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.1rem);
}

.nav-menu a {
  position: relative;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.4rem 0;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 100%;
  height: 1px;
  background: var(--terracotta-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-menu a:hover { color: var(--terracotta-deep); }
.nav-menu a:hover::after,
.nav-menu a[aria-current="page"]::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -0.5rem;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 120;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.site-nav.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-nav.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav scrim (created by JS) */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(26, 26, 26, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.nav-scrim.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease);
}

/* -------------------------------------------------------------------------
   6. Buttons
   ------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--terracotta-deep);
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.9em 1.7em;
  border-radius: var(--radius-pill);
  font-family: var(--ff-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background-color 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--ink);
  border-color: var(--ink);
}
.btn:active { transform: translateY(0); }

/* Secondary - outline on cream */
.btn-secondary {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

/* Ghost / on dark */
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  border-color: rgba(247, 241, 236, 0.45);
}
.btn-ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* Text button with animated underline */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  padding: 0.25em 0;
}
.btn-text .arrow { transition: transform 0.3s var(--ease); }
.btn-text:hover { color: var(--ink); }
.btn-text:hover .arrow { transform: translateX(4px); }

/* Book pill (header CTA) */
.btn-book, .nav-cta {
  --btn-bg: var(--terracotta-deep);
  --btn-fg: var(--cream);
  padding: 0.75em 1.4em;
}

.btn-lg { padding: 1.05em 2.1em; font-size: var(--step-0); }

/* -------------------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
/* Legibility scrim - warm, weighted to the lower-left where text sits */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(26, 26, 26, 0.62) 0%, rgba(26, 26, 26, 0.28) 42%, rgba(26, 26, 26, 0) 72%),
    linear-gradient(0deg, rgba(26, 26, 26, 0.55) 0%, rgba(26, 26, 26, 0) 45%);
}
.hero-inner {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  color: var(--cream);
}
.hero .eyebrow { color: var(--blush); }
.hero h1 {
  color: var(--cream);
  max-width: 15ch;
  text-shadow: 0 1px 30px rgba(26, 26, 26, 0.35);
}
.hero-sub {
  margin-top: 1.5rem;
  max-width: 44ch;
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(247, 241, 236, 0.92);
}
.cta-row {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Simple centered / non-image hero variant */
.hero--plain {
  min-height: auto;
  align-items: center;
  text-align: center;
  padding-block: clamp(4rem, 10vw, 8rem) var(--space-section);
  background:
    radial-gradient(80% 60% at 50% 0%, var(--blush) 0%, rgba(232, 211, 206, 0) 60%);
}
.hero--plain::after { display: none; }
.hero--plain .hero-inner { color: var(--ink); }
.hero--plain h1 { color: var(--ink); text-shadow: none; margin-inline: auto; }
.hero--plain .hero-sub { margin-inline: auto; color: var(--ink-soft); }
.hero--plain .eyebrow { color: var(--terracotta-deep); }
.hero--plain .cta-row { justify-content: center; }

/* -------------------------------------------------------------------------
   8. Editorial two-column (image + text)
   ------------------------------------------------------------------------- */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
}
.editorial--reverse .editorial__media { order: 2; }
.editorial__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.editorial__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.editorial__media:hover img { transform: scale(1.04); }
/* Optional caption chip riding the corner of the image */
.editorial__badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  background: rgba(247, 241, 236, 0.92);
  backdrop-filter: blur(6px);
  color: var(--ink);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
}
.editorial__body > * + * { margin-top: 1.25rem; }
.editorial__body h2 { margin-bottom: 0.25rem; }

/* -------------------------------------------------------------------------
   9. Card grids (method cards, city cards)
   ------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--gap);
}
.card-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--cream-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line);
}
.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.05); }
.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.card__title { font-size: var(--step-2); line-height: 1.15; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--terracotta-deep); }
.card__text { color: var(--ink-soft); font-size: var(--step-0); }
.card__link { margin-top: auto; padding-top: 0.5rem; }

/* City card - leaner, geared for the hub grid */
.city-card .card__media { aspect-ratio: 4 / 3; }
.city-card .card__title { font-size: var(--step-1); }

/* Method card - index number + rule, works with or without an image */
.method-card { position: relative; }
.method-card .card__index {
  font-family: var(--ff-display);
  font-size: var(--step-3);
  font-style: italic;
  color: var(--terracotta);
  line-height: 1;
}
.method-card .card__body { gap: 0.85rem; }

/* -------------------------------------------------------------------------
   10. Before / After
   ------------------------------------------------------------------------- */
.beforeafter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--ink);
}
.ba-pane {
  position: relative;
  overflow: hidden;
}
.ba-pane img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.ba-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(26, 26, 26, 0.72);
  color: var(--cream);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ba-pane--after .ba-label { background: var(--terracotta-deep); }
.beforeafter__caption {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1rem;
  background: var(--cream-2);
  color: var(--ink-soft);
  font-size: var(--step--1);
}

/* -------------------------------------------------------------------------
   11. Testimonials
   ------------------------------------------------------------------------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--gap);
}
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--cream-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.testimonial__quote {
  font-family: var(--ff-display);
  font-size: var(--step-1);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  position: relative;
}
.testimonial__quote::before {
  content: "\201C";
  display: block;
  font-family: var(--ff-display);
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--terracotta);
  margin-bottom: 0.25rem;
}
.testimonial__meta { margin-top: auto; display: flex; align-items: center; gap: 0.85rem; }
.testimonial__name { font-weight: 600; letter-spacing: 0.02em; }
.testimonial__role { color: var(--ink-soft); font-size: var(--step--1); }
.testimonial__stars { color: var(--terracotta); letter-spacing: 0.15em; font-size: var(--step--1); }

/* -------------------------------------------------------------------------
   12. Process-loop (muted looping video insets)
   ------------------------------------------------------------------------- */
.process-loop {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--panel);
  aspect-ratio: 4 / 5;
}
.process-loop video,
.process-loop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.process-loop--wide { aspect-ratio: 16 / 9; }
.process-loop__label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(6px);
  color: var(--cream);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
}

/* -------------------------------------------------------------------------
   13. Gallery grid + lightbox
   ------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: clamp(0.5rem, 1.5vw, 1rem);
}
.gallery-grid a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  background: var(--panel);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0);
  transition: background 0.4s var(--ease);
}
.gallery-grid a:hover::after { background: rgba(26, 26, 26, 0.12); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 3vw, 2rem);
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(20, 16, 14, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease);
}
.lightbox-figure {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-figure figcaption {
  text-align: center;
  color: rgba(247, 241, 236, 0.85);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
}
.lightbox-nav, .lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  border-radius: var(--radius-pill);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox-nav {
  width: 52px;
  height: 52px;
  font-size: 2rem;
  background: rgba(247, 241, 236, 0.1);
  flex: none;
}
.lightbox-nav:hover { background: rgba(247, 241, 236, 0.22); transform: scale(1.06); }
.lightbox-close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 48px;
  height: 48px;
  font-size: 1.9rem;
  background: rgba(247, 241, 236, 0.12);
}
.lightbox-close:hover { background: rgba(247, 241, 236, 0.24); transform: rotate(90deg); }
.lightbox.single .lightbox-nav { display: none; }

/* -------------------------------------------------------------------------
   14. GHL embed container (booking / quote iframes)
   ------------------------------------------------------------------------- */
.ghl-embed {
  position: relative;
  width: 100%;
  min-height: 720px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-2);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.ghl-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}
.ghl-embed--survey { min-height: 640px; max-width: 760px; margin-inline: auto; }
.ghl-embed--map { min-height: 0; aspect-ratio: 16 / 10; }
.ghl-embed--map iframe { height: 100%; }

/* -------------------------------------------------------------------------
   15. Forms
   ------------------------------------------------------------------------- */
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85em 1em;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: var(--step-0);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--terracotta-deep);
  box-shadow: 0 0 0 3px rgba(158, 79, 56, 0.18);
}

/* -------------------------------------------------------------------------
   16. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(247, 241, 236, 0.72);
  padding-block: clamp(3.5rem, 6vw, 5.5rem) 0;
  font-size: var(--step-0);
}
.footer-inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.footer-brand {
  font-family: var(--ff-display);
  font-size: var(--step-2);
  letter-spacing: 0.02em;
  color: var(--cream);
  margin-bottom: 1rem;
}
.site-footer address {
  font-style: normal;
  line-height: 1.7;
  color: rgba(247, 241, 236, 0.72);
}
.site-footer a { color: rgba(247, 241, 236, 0.72); }
.site-footer a:hover { color: var(--blush); }
.footer-col h3 {
  font-family: var(--ff-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.1rem;
}
.footer-col h3 a { color: inherit; }
.footer-col h3 a:hover { color: var(--blush); }
.footer-col-label {
  font-size: var(--step--1);
  color: rgba(247, 241, 236, 0.5);
  margin-bottom: 0.6rem;
}
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col ul a { font-size: var(--step-0); }
.footer-nap p { margin-top: 0.5rem; }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(247, 241, 236, 0.12);
  padding: 1.5rem var(--pad-x);
  text-align: center;
  font-size: var(--step--1);
  color: rgba(247, 241, 236, 0.5);
}
.footer-bottom p {
  max-width: var(--container-wide);
  margin-inline: auto;
}

/* -------------------------------------------------------------------------
   17. Motion - scroll reveal
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* stagger helpers for grids */
.reveal-stagger > * { opacity: 0; transform: translateY(20px); }
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.13s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.21s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.29s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.37s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.45s; }

/* -------------------------------------------------------------------------
   18. Accessibility - focus, skip link, screen-reader
   ------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--terracotta-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--ink :focus-visible,
.hero :focus-visible,
.lightbox :focus-visible { outline-color: var(--blush); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 300;
  padding: 0.7em 1.2em;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--cream); }

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

/* body scroll lock while a drawer/lightbox is open */
body.nav-open { overflow: hidden; }

/* -------------------------------------------------------------------------
   19. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: inline-flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 110;
    height: 100dvh;
    width: min(84vw, 360px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    padding: 5rem var(--pad-x) 2rem;
    background: var(--cream);
    background-image: radial-gradient(120% 60% at 100% 0%, var(--blush) 0%, rgba(232, 211, 206, 0) 60%);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
  }
  .site-nav.is-open .nav-menu {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.45s var(--ease-out), visibility 0s;
  }
  .nav-menu a {
    font-size: var(--step-1);
    text-transform: none;
    letter-spacing: 0.02em;
    font-family: var(--ff-display);
    font-weight: 500;
  }
  .nav-menu a::after { display: none; }

  /* The book pill lives beside the hamburger; hide the wordmark shift */
  .nav-cta { display: none; }
  .site-nav.is-open .nav-cta {
    display: inline-flex;
    position: fixed;
    left: var(--pad-x);
    right: auto;
    bottom: 2rem;
    z-index: 115;
    width: calc(min(84vw, 360px) - 2 * var(--pad-x));
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .editorial { grid-template-columns: 1fr; }
  .editorial--reverse .editorial__media { order: 0; }
  .editorial__media img { aspect-ratio: 4 / 3; }
  .beforeafter { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn-text { justify-content: center; }
}

/* Wider screens: let the book pill breathe on the desktop bar */
@media (min-width: 901px) {
  .nav-cta { margin-left: 0.5rem; }
}

/* -------------------------------------------------------------------------
   20. Reduced motion - honor the user's preference everywhere
   ------------------------------------------------------------------------- */
@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;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .editorial__media:hover img,
  .card:hover .card__media img,
  .gallery-grid a:hover img { transform: none; }
}
