/* ==========================================================================
   Fresh Salon Beechwood — boho-chic hair studio
   Palette, type, and motif are specified; everything below serves them.
   ========================================================================== */

:root {
  /* backgrounds */
  --color-bg:            #FFF8F0;
  --color-bg-alt:        #F5EBDD;

  /* text */
  --color-text:          #7A5A3A;
  --color-text-alt:      #5F7355;

  /* primary action */
  --color-cta-bg:        #7A5A3A;
  --color-cta-text:      #FFF8F0;

  /* accents */
  --color-accent-tan:    #C9A87C;
  --color-accent-walnut: #A67C52;
  --color-accent-sage:   #9DB18D;
  --color-accent-clay:   #C6866A;

  /* derived (documented) shades of the palette above — no new hues */
  --cta-hover:           #6B4C30;
  --surface-card:        #FDF6EC;
  --hairline:            #E4D3BA;
  --focus-ring:          #A67C52;

  /* type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Karla", "Segoe UI", Verdana, sans-serif;

  /* rhythm */
  --space-section: clamp(4.5rem, 10vw, 8rem);
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --maxw: 72rem;

  /* radii & shadows — deliberately varied per component */
  --r-pill: 999px;
  --r-soft: 14px;
  --r-tile: 10px;
  --shadow-nav: 0 1px 0 var(--hairline), 0 8px 24px rgba(122, 90, 58, 0.08);
  --shadow-art: 0 24px 48px -24px rgba(122, 90, 58, 0.35);
  --shadow-tile: 0 12px 28px -18px rgba(122, 90, 58, 0.28);

  /* section-scoped eyebrow color: text-alt only ever sits on --color-bg,
     never on --color-bg-alt (contrast ~4.4:1) */
  --eyebrow-ink: var(--color-text-alt);
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: clip;
}

/* Paper grain over the whole page — one fixed layer, cheap, static */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 0 0 1rem;
  font-variation-settings: "SOFT" 80, "WONK" 0, "opsz" 40;
}

p { margin: 0 0 1rem; }

a { color: var(--color-text-alt); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--color-cta-bg);
  color: var(--color-cta-text);
  border-radius: 0 0 var(--r-soft) var(--r-soft);
  text-decoration: none;
}
.skip-link:focus-visible { top: 0; }

.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}
.container--narrow { max-width: 52rem; }

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

.section--alt {
  background-color: var(--color-bg-alt);
  --eyebrow-ink: var(--color-text); /* keep eyebrows AA on the darker cream */
}

/* ---------- shared bits ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eyebrow-ink);
  margin-bottom: 1.25rem;
}
.eyebrow--centered { text-align: center; }

.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
.section-head__sub { color: var(--color-text); opacity: 0.92; }
.section-head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 3rem;
}
.section-head--split > div { max-width: 30rem; }
.section-head--split .section-head__sub { max-width: 26rem; margin: 0 0 0.4rem; }

.text-link {
  display: inline-block;
  font-weight: 700;
  color: var(--color-text-alt);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color 160ms ease;
}
.text-link:hover { color: var(--color-accent-clay); }
.text-link--inline { display: inline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.7rem;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.btn--lg { padding: 0.9rem 2.1rem; font-size: 1.05rem; }
.btn--solid {
  background: var(--color-cta-bg);
  color: var(--color-cta-text);
}
.btn--solid:hover { background: var(--cta-hover); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-accent-walnut);
}
.btn--ghost:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-text);
  transform: translateY(-2px);
}

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background-color 240ms ease, box-shadow 240ms ease;
}
.site-header.is-scrolled {
  background: rgba(255, 248, 240, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-nav);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.8rem + 1.1vw, 1.35rem);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand__glyph { color: var(--color-accent-clay); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.nav-list {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  font-weight: 600;
  color: var(--color-text-alt);
  text-decoration: none;
  padding-block: 0.35rem;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--color-accent-clay);
  transition: right 200ms ease;
}
.nav-link:hover { color: var(--color-text); }
.nav-link:hover::after,
.nav-link[aria-current="true"]::after { right: 0; }

.nav-book { white-space: nowrap; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  font: inherit;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.nav-toggle__bars span {
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 220ms ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem);
  overflow: visible;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero__copy h1 {
  font-size: clamp(2.35rem, 5.4vw, 3.9rem);
  font-weight: 480;
  margin-bottom: 1.4rem;
  max-width: 15ch;
}
.hero__copy h1 em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 40;
  color: var(--color-accent-clay);
}

.hero__lede { font-size: 1.15rem; max-width: 34rem; margin-bottom: 2rem; }

.hero__lede--fr {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-text);
  opacity: 0.88;
  margin-top: -1.4rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.hero__note {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-alt);
  margin: 0;
}

/* art bleeds off the right viewport edge:
   pulls the tile through the container gutter on small screens,
   all the way to the viewport edge on wide ones */
.hero__art {
  position: relative;
  margin-right: calc((min(100vw - 2 * var(--gutter), var(--maxw)) - 100vw) / 2);
}
.hero-art {
  width: 100%;
  height: auto;
  border-radius: 999px 999px 0 0; /* signature arch crop */
  box-shadow: var(--shadow-art);
}

/* ---------- philosophy ---------- */

.philosophy .pullquote {
  font-size: clamp(1.7rem, 4vw, 2.75rem);
  font-weight: 420;
  line-height: 1.28;
  letter-spacing: -0.005em;
  text-align: center;
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.philosophy__body {
  columns: 2;
  column-gap: 3rem;
  max-width: 56rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}
.philosophy__body p { break-inside: avoid; }

.philosophy__body--fr {
  margin-top: -0.75rem;
  margin-bottom: 2.5rem;
  font-style: italic;
  color: var(--color-text);
}
.philosophy__body--fr p { break-inside: auto; }

.philosophy__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.fact-glyph { color: var(--color-accent-clay); flex-shrink: 0; }

.arch-divider {
  margin-top: var(--space-section);
  margin-bottom: calc(-1 * var(--space-section));
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.arch-divider svg {
  display: block;
  width: 100%;
  height: clamp(36px, 5vw, 64px);
  fill: var(--color-bg-alt);
}

/* ---------- services: editorial menu ---------- */

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.menu-group__title {
  font-size: 1.45rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-accent-walnut);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
}

.menu-group__fr {
  flex-basis: 100%;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--color-text-alt);
}

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

.menu-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  padding-block: 1.1rem 1rem;
  border-bottom: 1px solid var(--hairline);
}

.menu-item__name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 550;
}

.menu-item__dots {
  flex: 1;
  margin: 0 0.85rem;
  border-bottom: 2px dotted var(--color-accent-tan);
  transform: translateY(-4px);
  min-width: 2rem;
}

.menu-item__price {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--color-text);
  white-space: nowrap;
}

.menu-item__desc {
  width: 100%;
  font-size: 0.95rem;
  color: var(--color-text);
  opacity: 0.88;
  margin-top: 0.15rem;
}

.menu-item__fr {
  width: 100%;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-style: italic;
  color: var(--color-text);
  opacity: 0.88;
  margin-top: 0.1rem;
}

.menu-note {
  border-left: 3px solid var(--color-accent-sage);
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 0.98rem;
  align-self: end;
}
.menu-note__title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-alt);
  margin-bottom: 0.75rem;
}

/* ---------- stylists: staggered trio + centered fourth ---------- */

.stylists-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.stylist--b { margin-top: clamp(2.5rem, 6vw, 4.5rem); }  /* offset middle */
.stylist--c { margin-top: clamp(1rem, 3vw, 2.25rem); }   /* slight stagger */

/* fourth card wraps to its own row, centered under the three */
.stylist--d {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, calc((100% - 2 * clamp(1.5rem, 4vw, 3rem)) / 3));
  margin-top: clamp(1rem, 3vw, 2.25rem);
}

.stylist__portrait {
  width: 100%;
  height: auto;
  border-radius: 999px 999px 16px 16px; /* signature arch crop */
  box-shadow: var(--shadow-tile);
}

.stylist__name { font-size: 1.5rem; margin: 1.4rem 0 0.2rem; }
.stylist__role {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-alt);
  margin-bottom: 0.8rem;
}
.stylists .stylist__role { color: var(--color-text); } /* alt bg: stay AA */
.stylist__bio { font-size: 0.98rem; margin-bottom: 0.6rem; }
.stylist__meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  opacity: 0.92;
  letter-spacing: 0.04em;
  margin: 0;
}

.stylist__book {
  margin: 0.7rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stylists .stylist__book a { color: var(--color-text); }

/* ---------- gallery: masonry, varied ratios ---------- */

.gallery-grid {
  columns: 3 260px;
  column-gap: clamp(1.25rem, 3vw, 2rem);
}

/* ---------- instagram feed preview ---------- */

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.feed-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: var(--r-tile);
  overflow: hidden;
  background-color: var(--color-bg);
  border: 1px solid rgba(122, 90, 58, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feed-card:hover,
.feed-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(122, 90, 58, 0.16);
}

.feed-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background-color: var(--color-bg-alt);
}
.feed-card__media img,
.feed-card__media svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-card__badge {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background-color: rgba(255, 248, 240, 0.92);
  color: var(--color-text);
}

.feed-card__body {
  display: block;
  padding: 0.9rem 1.05rem 1.1rem;
  color: var(--color-text);
}
.feed .feed-card__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.feed .feed-card__note {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text);
}
.feed-card__note code {
  font-size: 0.95em;
  background: none;
  padding: 0;
}

.feed-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 0 0;
}

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

.gallery-item {
  break-inside: avoid;
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--r-tile);
  overflow: hidden;
  background: var(--surface-card);
  box-shadow: var(--shadow-tile);
}
.gallery-item svg { width: 100%; height: auto; }

.gallery-item figcaption {
  padding: 0.7rem 1rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
}

/* one tall tile gets the arch treatment instead of the standard radius */
.gallery-item:nth-child(3) { border-radius: 999px 999px var(--r-tile) var(--r-tile); }

/* ---------- booking ---------- */

.booking__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.booking h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
.booking__intro { max-width: 34rem; margin-bottom: 2rem; }

.booking__panel {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-soft);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.booking__actions { margin-bottom: 0; }
.booking__actions .btn { width: 100%; }

.booking-form__fineprint {
  font-size: 0.85rem;
  margin: 0.9rem 0 0;
  color: var(--color-text);
}

.booking__notes {
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px dotted var(--color-accent-tan);
  list-style: none;
  font-size: 0.92rem;
  color: var(--color-text);
}
.booking__notes li { position: relative; padding-left: 1.15rem; margin-bottom: 0.5rem; }
.booking__notes li:last-child { margin-bottom: 0; }
.booking__notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-sage);
}

.booking__info { display: grid; gap: 2rem; align-content: start; }

.info-block address { font-style: normal; }
.info-block p { margin-bottom: 0.5rem; }

.info-block__lang {
  margin-top: 0.85rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--color-accent-sage);
  font-size: 0.9rem;
}

.info-block__title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-alt);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent-sage);
  display: inline-block;
}

.hours { margin: 0; }
.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.35rem;
  border-bottom: 1px dotted var(--color-accent-tan);
}
.hours__row dt { font-weight: 700; }
.hours__row dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.hours__note {
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
  color: var(--color-text);
  opacity: 0.9;
}

.map-wrap {
  border: 1.5px solid var(--color-accent-tan);
  border-radius: var(--r-soft);
  overflow: hidden;
  background: var(--color-bg-alt);
  min-height: 260px;
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  filter: sepia(0.25) saturate(0.85);
}
.map-fallback { font-size: 0.9rem; margin: 0.6rem 0 0; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--color-cta-bg);
  color: var(--color-cta-text);
  padding-top: clamp(3rem, 7vw, 5rem);
}

.site-footer a { color: inherit; }

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.brand--footer { color: var(--color-cta-text); }
.brand--footer .brand__glyph { color: var(--color-accent-tan); }

.footer-brand p {
  max-width: 30ch;
  margin-top: 1rem;
  color: rgba(255, 248, 240, 0.88);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-cta-text); /* tan fails contrast on brown at this size */
  margin-bottom: 1rem;
}

.footer-nav ul,
.footer-contact ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.footer-nav a,
.footer-contact a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}
.footer-nav a:hover,
.footer-contact a:hover { border-color: var(--color-accent-tan); }

.footer-hours { font-size: 0.9rem; color: rgba(255, 248, 240, 0.88); }
.footer-lang {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-accent-tan);
  margin: 0.5rem 0 0;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255, 248, 240, 0.22);
  font-size: 0.88rem;
  color: rgba(255, 248, 240, 0.85);
}
.site-footer__base p { margin: 0; }
.site-footer__base a { text-underline-offset: 3px; }

/* ---------- reveals (JS adds .js to <html>; without JS nothing is hidden) ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
html.js .gallery-grid .reveal:nth-child(3n+2),
html.js .stylists-grid .reveal:nth-child(2) { transition-delay: 90ms; }
html.js .gallery-grid .reveal:nth-child(3n),
html.js .stylists-grid .reveal:nth-child(3) { transition-delay: 180ms; }
html.js .stylists-grid .reveal:nth-child(4) { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover, .btn--solid:hover { transform: none; }
  .nav-link::after { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 60rem) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 30rem; }

  .philosophy__body { columns: 1; }

  .menu-grid { grid-template-columns: 1fr; }
  .menu-note { border-left: 0; border-top: 2px solid var(--color-accent-sage); padding: 1.5rem 0 0; }

  .booking__grid { grid-template-columns: 1fr; }
}

@media (max-width: 47.99rem) {
  .nav-toggle { display: inline-flex; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem var(--gutter) 1.5rem;
    background: rgba(255, 248, 240, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-nav);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
  }
  .site-header.is-open .nav-menu {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .site-header.is-open {
    background: rgba(255, 248, 240, 0.97);
  }

  .nav-list { flex-direction: column; gap: 0; }
  .nav-link {
    display: block;
    padding: 0.7rem 0;
    font-size: 1.1rem;
    border-bottom: 1px dotted var(--color-accent-tan);
  }
  .nav-link::after { content: none; }
  .nav-book { margin-top: 1rem; }

  .stylists-grid { grid-template-columns: 1fr; max-width: 24rem; margin-inline: auto; }
  .stylist--b, .stylist--c { margin-top: 0; }
  .stylist--d { grid-column: auto; width: 100%; margin-top: 0; }

  .site-footer__grid { grid-template-columns: 1fr; }
  .field-pair { grid-template-columns: 1fr; }
}

@media (min-width: 48rem) and (max-width: 60rem) {
  .stylists-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .stylist--d { width: calc((100% - 2.5rem) / 3); }
}
