/* ═══════════════════════════════════════════════════════════
   Backyard Barbershop
   Palette and type carried over from the Wix original:
   the greens and the mint are the shop's, Bodoni and Jost
   stand in for the Didot and Futura LT it was already using.
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Bodoni Moda';
  src: url('fonts/bodoni-moda.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('fonts/bodoni-moda-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('fonts/jost.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink:   #08160e;
  --moss:  #12291b;
  --fern:  #1c3d27;
  --mint:  #64cebb;
  --mint-dim: #3f9e8d;
  --bone:  #f3f0e7;
  --bone-dim: #c3c9c0;
  --brass: #c9a227;

  --display: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
  --body: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;

  /* one fluid scale drives every size — nothing here is a fixed px step */
  --step--1: clamp(0.86rem, 0.83rem + 0.15vw, 0.94rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.11rem + 0.45vw, 1.5rem);
  --step-2:  clamp(1.45rem, 1.28rem + 0.85vw, 2rem);
  --step-3:  clamp(1.75rem, 1.44rem + 1.55vw, 2.7rem);
  --step-4:  clamp(2.1rem, 1.55rem + 2.75vw, 3.8rem);
  --step-5:  clamp(2.6rem, 1.4rem + 6vw, 6rem);

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --rhythm: clamp(3.5rem, 9vw, 8rem);
  --measure: 62ch;
}

/* ── reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

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

a { color: inherit; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--mint);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  font-weight: 500;
}
.skip:focus { left: 0; }

/* ── shared type ───────────────────────────────────────── */
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.section-note {
  color: var(--bone-dim);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  max-width: 44ch;
}

.eyebrow {
  font-size: var(--step--1);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mint);
  font-weight: 400;
}

/* ── buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  /* trailing letter-space would push the label off-centre; take it back */
  padding: 0.7rem calc(1.6rem - 0.14em) 0.7rem 1.6rem;
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn--book {
  background: var(--mint);
  color: var(--ink);
}
.btn--book:hover { background: var(--bone); }

.btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: rgba(243, 240, 231, 0.35);
}
.btn--ghost:hover { border-color: var(--mint); color: var(--mint); }

.link {
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid rgba(100, 206, 187, 0.4);
  padding-bottom: 1px;
  transition: border-color 160ms ease;
}
.link:hover { border-color: var(--mint); }

/* ── top bar ───────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--gutter);
  background: rgba(8, 22, 14, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.mark {
  text-decoration: none;
  line-height: 1;
  display: grid;
}
.mark__name {
  font-family: var(--display);
  font-size: var(--step-1);
  letter-spacing: 0.01em;
}
.mark__sub {
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--mint);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.4vw, 2rem);
}
.nav a {
  text-decoration: none;
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding: 0.6rem 0;
  transition: color 160ms ease;
}
.nav a:hover { color: var(--mint); }
.nav__book {
  color: var(--ink);
  padding: 0.6rem calc(1.3rem - 0.14em) 0.6rem 1.3rem;
  min-height: 44px;
  flex: none;
}
.nav__book:hover { color: var(--ink); }

/* below 720 the text links go; the Book button stays, because
   it is the only thing on the page anyone urgently needs */
@media (max-width: 720px) {
  .nav a:not(.nav__book) { display: none; }
}

/* ── hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(92svh, 900px);
  padding: var(--rhythm) var(--gutter) clamp(2.5rem, 6vw, 5rem);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, var(--ink) 4%, rgba(8, 22, 14, 0.82) 38%, rgba(8, 22, 14, 0.25) 75%),
    linear-gradient(to right, rgba(8, 22, 14, 0.75), transparent 62%);
}

.hero__body {
  position: relative;
  z-index: 2;
  max-width: 44ch;
  display: grid;
  gap: 1.1rem;
}

.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-5);
  line-height: 0.9;
  letter-spacing: -0.03em;
  display: grid;
}
.hero__title em {
  font-style: italic;
  color: var(--mint);
  padding-left: 0.06em;
}

.hero__lede {
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.45;
  color: var(--bone);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* ── the slate (signature) ─────────────────────────────── */
.slate {
  padding: var(--rhythm) var(--gutter);
  background: var(--moss);
  border-top: 1px solid rgba(201, 162, 39, 0.3);
}

.slate__head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.prices {
  max-width: 46rem;
  display: grid;
  gap: clamp(0.4rem, 1.4vw, 0.9rem);
}

.price {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: clamp(0.4rem, 1.2vw, 0.8rem);
}

.price dt,
.price dd {
  font-family: var(--display);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* the leader rule: the one piece of ornament on the page,
   and it earns its place by tying name to price across the gap */
.price::after {
  content: '';
  grid-column: 2;
  height: 1px;
  background: linear-gradient(to right, rgba(100, 206, 187, 0.55), rgba(100, 206, 187, 0.15));
  transform: translateY(-0.32em);
  transform-origin: left;
}

.price dd { color: var(--mint); font-variant-numeric: lining-nums tabular-nums; }

.price--feature dt,
.price--feature dd { font-style: italic; }
.price--feature dd { color: var(--brass); }
.price--feature::after {
  background: linear-gradient(to right, rgba(201, 162, 39, 0.6), rgba(201, 162, 39, 0.15));
}

.slate__foot {
  margin-top: clamp(2rem, 5vw, 3.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.slate__hint {
  font-size: var(--step--1);
  color: var(--bone-dim);
  max-width: 32ch;
}

/* No reveal animation here. The prices are the reason the page exists;
   gating them on JS + scroll + IntersectionObserver buys a flourish and
   risks a blank slate. They render, always. */

/* ── work ──────────────────────────────────────────────── */
.work {
  padding: var(--rhythm) var(--gutter);
}
.work .section-title { margin-bottom: clamp(1.75rem, 4vw, 3rem); }

.gallery {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(0.6rem, 1.6vw, 1.1rem);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--moss);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.gallery__item:hover img { transform: scale(1.04); }

.gallery__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 1.5rem 1rem 0.85rem;
  width: 100%;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(8, 22, 14, 0.9), transparent);
}

@media (min-width: 46rem) {
  .gallery { grid-template-columns: repeat(6, 1fr); }
  .gallery__item { grid-column: span 2; }
  .gallery__item--tall { grid-column: span 3; grid-row: span 2; }
  .gallery__item--tall img { aspect-ratio: 3 / 4.6; }
  .gallery__item--wide { grid-column: span 3; }
  .gallery__item--wide img { aspect-ratio: 16 / 10; }
}

/* ── story ─────────────────────────────────────────────── */
.story {
  padding: var(--rhythm) var(--gutter);
  background: var(--fern);
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 56rem) {
  .story { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

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

.story__body {
  display: grid;
  gap: 1.1rem;
  max-width: var(--measure);
}
.story__body p { text-wrap: pretty; }

.drop {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.25;
  color: var(--mint);
}

.sig {
  font-family: var(--display);
  font-size: var(--step-1);
  color: var(--bone-dim);
  margin-top: 0.5rem;
}

/* ── visit ─────────────────────────────────────────────── */
.visit { padding: var(--rhythm) var(--gutter); }
.visit .section-title { margin-bottom: clamp(1.75rem, 4vw, 3rem); }

.visit__grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  background: var(--moss);
  border: 1px solid rgba(201, 162, 39, 0.28);
}
.card h3 {
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mint);
}
.card address {
  font-family: var(--display);
  font-style: normal;
  font-size: var(--step-2);
  line-height: 1.25;
}
.card__note { color: var(--bone-dim); font-size: var(--step--1); }
.card p { text-wrap: pretty; }

/* ── contact ───────────────────────────────────────────── */
.contact {
  padding: var(--rhythm) var(--gutter);
  background: var(--moss);
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 56rem) {
  .contact { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
}

.contact__intro { display: grid; gap: 0.75rem; }

.form {
  display: grid;
  gap: 1.1rem clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.field input,
.field textarea {
  font-family: var(--body);
  font-size: var(--step-0);
  color: var(--bone);
  background: var(--ink);
  border: 1px solid rgba(243, 240, 231, 0.45);
  padding: 0.75rem 0.9rem;
  min-height: 48px;
  width: 100%;
  transition: border-color 160ms ease;
}
.field textarea { resize: vertical; }
.field input:hover,
.field textarea:hover { border-color: rgba(100, 206, 187, 0.5); }

.field[data-invalid] input,
.field[data-invalid] textarea { border-color: #e2857a; }

.field__error {
  font-size: var(--step--1);
  color: #e2857a;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.form__status { font-size: var(--step--1); color: var(--mint); }
.form__status[data-state='error'] { color: #e2857a; }

/* ── footer ────────────────────────────────────────────── */
.footer {
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) calc(clamp(2.5rem, 6vw, 4rem) + env(safe-area-inset-bottom));
  display: grid;
  gap: 0.5rem;
  border-top: 1px solid rgba(201, 162, 39, 0.25);
  color: var(--bone-dim);
  font-size: var(--step--1);
}
.footer__mark {
  font-family: var(--display);
  font-size: var(--step-2);
  color: var(--bone);
}
.footer a { color: var(--mint); text-decoration: none; }
.footer__fine { color: rgba(195, 201, 192, 0.6); }

/* ── mobile book bar ───────────────────────────────────── */
.bookbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  background: var(--mint);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .bookbar { display: block; }

  /* the hero already has a Book button, so the bar would be a second
     identical CTA on top of it. With JS the bar waits until the hero is
     gone; without JS it just stays put, which is the safe direction. */
  .js .bookbar {
    transform: translateY(100%);
    transition: transform 260ms ease;
  }
  .js.is-past-hero .bookbar { transform: none; }

  /* keep the hero's own buttons clear of the bar */
  .hero { padding-bottom: 5.5rem; }
  .footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

@media print {
  .topbar, .bookbar, .hero__media, .form { display: none; }
  body { background: #fff; color: #000; }
  .js .price { opacity: 1 !important; transform: none !important; }
}
