/* =====================================================================
   LUX CUTS — Beloit, WI — styles.css
   Black + bronze-gold editorial theme (matches the Lux Cuts logo).
   Sections:  1 Variables  2 Reset/Base  3 Typography  4 Layout helpers
              5 Buttons  6 Header/Nav  7 Hero  8 Page banner  9 Services
              10 Story split  11 Gallery + lightbox  12 Barbers
              13 Visit/Contact  14 Forms  15 Footer  16 Reveal  17 Responsive
              19 Lux Cuts components (barbers, ratings, barber pole, logo)
   ===================================================================== */

/* ---------- 1. Variables ---------- */
:root {
  /* surfaces (lifted slightly from near-black for a warmer, less heavy feel) */
  --bg:          #14110d;
  --bg-alt:      #1c1813;
  --panel:       #231e17;
  --panel-2:     #2b251c;
  --footer:      #0d0c0a;

  /* bronze-gold accents (sampled from the Lux Cuts mark) */
  --gold:        #c8a368;
  --gold-bright: #ddbb80;
  --gold-deep:   #ad8a51;

  /* barber-pole accent */
  --pole-red:    #c0392b;
  --pole-blue:   #2e54a1;
  --pole-white:  #f3efe6;

  /* text (raised contrast — old --text/--muted failed WCAG AA on dark panels) */
  --cream:       #f3eee5;
  --text:        #bdb4a5;
  --muted:       #9c9284;

  /* lines */
  --line:        rgba(236, 230, 218, 0.10);
  --line-strong: rgba(236, 230, 218, 0.18);

  /* type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* layout */
  --container: 1280px;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  /* Desktop is unchanged from the original (11vw scaling, 9rem cap); only the
     small-screen floor is tightened (4.5rem → 3.75rem) so phones get a snugger
     rhythm. The clamp handles the switch — no media query needed. */
  --section-y: clamp(3.75rem, 11vw, 9rem);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--bg); }

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

/* Skip link — first focusable element; lets keyboard users jump past the nav */
.skip-link {
  position: fixed;
  left: 1rem;
  top: -120px;
  z-index: 1000;
  background: var(--gold-bright);
  color: #1a150d;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 1rem; outline: 2px solid var(--bg); outline-offset: 2px; }

/* thin scrollbar (webkit) */
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: var(--bg); }
body::-webkit-scrollbar-thumb { background: #3a3228; border-radius: 10px; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--cream); font-weight: 800; line-height: 1.08; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}
.eyebrow--line::before {
  content: "";
  width: clamp(28px, 4vw, 56px);
  height: 1px;
  background: var(--gold-deep);
  display: inline-block;
}

.section-title {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  letter-spacing: 0.005em;
  margin-top: 1.1rem;
}

.lead { color: var(--text); font-size: clamp(1rem, 1.4vw, 1.08rem); }

.accent-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.45;
}

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

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(3rem, 7vw, 5.5rem); }
[id] { scroll-margin-top: 92px; }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: none;
}
.section-head--row .head-note {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 30ch;
  text-align: right;
}

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.05rem 2.3rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s ease,
              color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover { transform: translateY(-3px); }

.btn--gold {
  --btn-bg: var(--gold-bright);
  --btn-fg: #1a150d;
  --btn-bd: var(--gold-bright);
  font-weight: 600;
}
.btn--gold:hover { box-shadow: 0 12px 30px -12px rgba(231, 202, 139, 0.55); background: var(--gold); border-color: var(--gold); }

.btn--ghost {
  --btn-bd: rgba(236, 230, 218, 0.35);
  --btn-fg: var(--cream);
}
.btn--ghost:hover { --btn-bd: var(--gold); --btn-fg: var(--gold); }

.btn--block { width: 100%; }

.text-link {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cream);
  border-bottom: 1px solid var(--gold-deep);
  padding-bottom: 4px;
  transition: color 0.25s, border-color 0.25s;
}
.text-link:hover { color: var(--gold); }

/* ---------- 6. Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.5rem;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(18, 15, 11, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding-block: 1rem;
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.brand:hover { color: var(--gold-bright); }
.brand img {
  height: 50px;
  width: auto;
  transition: transform 0.4s var(--ease);
}
.site-header.scrolled .brand img { height: 44px; }
.brand img { transition: height 0.4s ease; }

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.4rem); }
.nav a:not(.btn) {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.25s;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav a:not(.btn):hover { color: var(--gold); }
.nav a:not(.btn):hover::after,
.nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--gold); }
.nav .btn { padding: 0.7rem 1.5rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  position: relative; z-index: 110;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px; height: 1.5px;
  background: var(--cream);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 8rem 4rem;
  padding-inline: var(--pad-x);
}
/* Shared full-bleed background image (hero + page banners).
   Uses a real <img> so the src resolves relative to the HTML document —
   portable across browsers and deploy paths (no url()-in-custom-prop quirk). */
.media-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%) brightness(0.8) contrast(1.04);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(115% 75% at 50% 32%, rgba(15,13,10,0.10), rgba(15,13,10,0.62)),
    linear-gradient(180deg, rgba(15,13,10,0.45) 0%, rgba(15,13,10,0.22) 42%, rgba(15,13,10,0.88) 100%);
}
.hero__inner { max-width: 920px; }
.hero__title {
  font-size: clamp(2.9rem, 8.5vw, 6.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin: 1.6rem 0 2.4rem;
  text-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 38px;
  background: linear-gradient(var(--gold-deep), transparent);
  animation: scrollpulse 2.2s var(--ease) infinite;
}
@keyframes scrollpulse { 0%,100% { opacity:0.3; transform:scaleY(0.6); } 50% { opacity:1; transform:scaleY(1);} }

/* ---------- 8. Page banner (interior pages) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  min-height: 56vh;
  display: grid;
  align-items: end;
  padding: 8rem var(--pad-x) clamp(2.5rem, 5vw, 4rem);
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,13,10,0.65) 0%, rgba(15,13,10,0.45) 45%, rgba(15,13,10,0.95) 100%);
}
.page-hero__inner { width: 100%; max-width: var(--container); margin-inline: auto; }
.page-hero__title { font-size: clamp(2.6rem, 7vw, 5rem); margin-top: 1rem; }
.breadcrumb { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 1.2rem; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- 9. Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(2.5rem, 6vw, 6rem);
}
.svc {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.svc__body { min-width: 0; }
.svc__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
}
.svc__desc { font-size: 0.92rem; color: var(--muted); margin-top: 0.35rem; }
.svc__end { text-align: right; flex: none; }
.svc__price {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--gold);
  white-space: nowrap;
}
.svc__time {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
  white-space: nowrap;
}
.svc__age { font-size: 0.62em; color: var(--muted); letter-spacing: 0.1em; }
.svc:hover .svc__name { color: var(--gold-bright); }
.svc { transition: border-color 0.3s; }
.svc:hover { border-color: var(--line-strong); }

/* ---------- 10. Story / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
}
.split__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.04);
  transition: transform 0.9s var(--ease), filter 0.6s ease;
}
.split__media:hover img { transform: scale(1.04); filter: grayscale(0%) contrast(1.04); }
.split__media::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(236,230,218,0.08);
  pointer-events: none;
}
.split__body p + p { margin-top: 1.1rem; }
.split__body .accent-italic { margin: 1.5rem 0; display: block; }

/* Owners split: logo sits above the story text, photo fills the side column.
   On mobile the photo drops between the logo and the story (see 860px below). */
.split--owners {
  column-gap: clamp(2.5rem, 6vw, 6rem);
  row-gap: 1.8rem;
  grid-template-areas:
    "logo  media"
    "body  media";
}
.split--owners .about-logo   { grid-area: logo; margin-bottom: 0; }
.split--owners .split__media { grid-area: media; }
.split--owners .split__body  { grid-area: body; }
.prose p { color: var(--text); }

.stat-row {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.4rem;
  flex-wrap: wrap;
}
.stat__num { font-family: var(--serif); font-weight: 700; font-size: 2.1rem; color: var(--gold); line-height: 1; }
.stat__label { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 0.5rem; }

/* ---------- 11. Gallery + lightbox ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 1.2vw, 1.1rem);
}
.gallery__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--panel);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05) brightness(0.92);
  transition: transform 0.9s var(--ease), filter 0.6s ease;
}
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15,13,10,0.55));
  opacity: 0; transition: opacity 0.4s ease;
}
.gallery__item:hover img { transform: scale(1.06); filter: grayscale(0%) contrast(1.02); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item .gallery__plus {
  position: absolute; right: 1rem; bottom: 0.9rem; z-index: 2;
  color: var(--gold); font-size: 1.4rem; line-height: 1;
  opacity: 0; transform: translateY(6px); transition: 0.4s var(--ease);
}
.gallery__item:hover .gallery__plus { opacity: 1; transform: none; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(0.25rem, 1.5vw, 1rem);
  background: rgba(10, 8, 6, 0.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: clamp(1rem, 5vw, 4rem);
  /* visibility flips instantly on open (so focus can move in) but waits for the
     opacity fade-out before hiding on close — longhand to avoid shorthand
     re-serializing the 0s visibility duration into a 0.35s interpolation */
  opacity: 0;
  visibility: hidden;
  transition-property: opacity, visibility;
  transition-duration: 0.35s, 0s;
  transition-timing-function: ease, linear;
  transition-delay: 0s, 0.35s;
}
.lightbox.open { opacity: 1; visibility: visible; transition-delay: 0s, 0s; }
.lightbox img {
  max-width: 100%; max-height: 86vh; min-width: 0;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
  cursor: zoom-out;
}
.lightbox__close, .lightbox__nav {
  background: none; border: 0; color: var(--cream);
  cursor: pointer; transition: color 0.2s, transform 0.2s;
  flex: none;
}
.lightbox__close { position: absolute; top: 1.5rem; right: 1.8rem; font-size: 2rem; line-height: 1; }
.lightbox__nav { font-size: 2.4rem; padding: 0.25rem 0.5rem; line-height: 1; }
.lightbox__close:hover, .lightbox__nav:hover { color: var(--gold); }

/* ---------- 12. Journal ---------- */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 5rem);
}
.post__meta { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; gap: 1rem; align-items: center; }
.post__meta .cat { color: var(--gold-deep); }
.post__title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.4rem, 2.5vw, 1.8rem); color: var(--cream); margin: 0.7rem 0 0.5rem; transition: color 0.25s; }
.post:hover .post__title { color: var(--gold); }
.post__excerpt { color: var(--muted); font-size: 0.95rem; }
.post { padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }

/* ---------- 13. Visit / Contact ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.info-block + .info-block { margin-top: 2.2rem; }
.info-block h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.info-block p, .info-block address { font-style: normal; color: var(--cream); font-size: 1.05rem; line-height: 1.6; }
.info-block a { color: var(--cream); transition: color 0.2s; }
.info-block a:hover { color: var(--gold); }
.inline-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.inline-links a {
  position: relative;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 3px;
}
.inline-links a:hover { border-color: var(--gold); }

.hours-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.6rem);
}
.hours-card h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}
.hours-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.hours-row span:first-child { color: var(--text); }
.hours-row span:last-child { color: var(--cream); }
.hours-row .closed { color: var(--gold); font-weight: 500; }
.hours-card .btn { margin-top: 1.8rem; }
.hours-note { text-align: center; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 1rem; }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  filter: grayscale(100%) invert(0.9) contrast(0.9);
  min-height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- 14. Forms ---------- */
.form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3.5vw, 3rem);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--cream);
  font-size: 0.95rem;
  transition: border-color 0.25s, background 0.25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #7a7263; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: #181410;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c2a062' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b4543f; }
.field__error { font-size: 0.72rem; color: #d98a78; letter-spacing: 0.04em; min-height: 0; display: none; }
.field.invalid .field__error { display: block; }
.form-actions { margin-top: 1.6rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form-note { font-size: 0.78rem; color: var(--muted); }

.form-success {
  display: none;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}
.form-success.show { display: block; animation: fadeUp 0.6s var(--ease); }
.form-success__mark {
  width: 64px; height: 64px; margin: 0 auto 1.4rem;
  border: 1px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold); font-size: 1.6rem;
}
.form-success h3 { font-size: 1.8rem; margin-bottom: 0.6rem; }
.form-success p { color: var(--muted); max-width: 36ch; margin-inline: auto; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* embed slot (Calendly / Square) */
.embed-slot {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  min-height: 640px;
}
.embed-slot iframe { width: 100%; min-height: 640px; border: 0; }

/* feature list */
.feature-list li {
  display: flex; gap: 0.9rem; padding-block: 0.7rem;
  color: var(--text); font-size: 0.98rem;
  border-bottom: 1px solid var(--line);
}
.feature-list li::before { content: "✦"; color: var(--gold); flex: none; }

.card-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
}
.value-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.4rem);
}
.value-card__icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid var(--gold-deep);
  object-fit: cover;
  background: var(--panel);
  margin-bottom: 1.4rem;
  /* slightly bigger (was 72px) + a touch bolder/brighter gold line-work */
  filter: brightness(1.06) contrast(1.05) saturate(1.08);
}
.value-card .num { font-family: var(--serif); color: var(--gold-deep); font-size: 1.1rem; letter-spacing: 0.1em; }
.value-card h3 { font-size: 1.35rem; margin: 0.8rem 0 0.6rem; }
.value-card p { color: var(--muted); font-size: 0.95rem; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .section-title { margin-bottom: 1.4rem; }
.cta-band p { max-width: 48ch; margin: 0 auto 2.2rem; color: var(--text); }

/* ---------- 15. Footer ---------- */
.site-footer {
  background: var(--footer);
  border-top: 1px solid var(--line);
  padding-block: 2.4rem;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem 2rem; flex-wrap: wrap;
}
.footer-social { display: flex; gap: 1.6rem; }
.footer-social a {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
  border-bottom: 1px solid transparent; padding-bottom: 3px; transition: color 0.2s, border-color 0.2s;
}
.footer-social a:hover { color: var(--gold); border-color: var(--gold); }
.footer-meta { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.footer-credit { border-bottom: 1px solid transparent; padding-bottom: 1px; transition: color 0.2s ease, border-color 0.2s ease; }
.footer-credit:hover { color: var(--gold); border-bottom-color: var(--gold-deep); }

/* ---------- Back-to-top button (injected by main.js) ---------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(28, 24, 19, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  /* hidden + out of the tab order until you've scrolled down */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              visibility 0s linear 0.3s, background-color 0.3s ease,
              border-color 0.3s ease, color 0.3s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover {
  color: #1a150d;
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-3px);
}
.to-top svg { display: block; }
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
  .to-top:hover { transform: none; }
}

/* ---------- 16. Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* ---------- 16b. Page entrance: above-the-fold "rise from the bottom" ----------
   On every page load the hero / page-hero content rises up + fades in as ONE
   cohesive block. (An earlier version staggered each element individually AND
   layered cross-document View Transitions on top; together they read as choppy /
   double-loading and flashed between pages, so both were removed in favour of this
   single smooth motion.) The hidden start-state lives ONLY inside @keyframes
   luxRise and is gated behind html.anim-ready (set synchronously by the inline
   <head> script before first paint). So with JS off, .anim-ready is never set,
   none of this applies, and content is simply visible — zero FOUC, never hidden. */
@keyframes luxRise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* fill-mode: both shows the from-state as a backwards fill before first paint
   (the block fades in from invisible — no flash to final position) and holds the
   end-state after. .hero__inner / .page-hero__inner carry no layout transform of
   their own, and .hero__scroll is their SIBLING, so the scroll cue isn't moved. */
html.anim-ready .hero__inner,
html.anim-ready .page-hero__inner {
  animation: luxRise 0.8s var(--ease) both;
}

/* FIRST VISIT ONLY: the ~2.3s intro preloader covers the hero (its curtain starts
   sliding away ~1.56s). Without .intro-done, delay the rise to ~1.6s so it begins
   as the curtain clears. On every repeat navigation html.intro-done is present,
   this doesn't match, and the hero rises immediately. */
html.anim-ready:not(.intro-done) .hero__inner,
html.anim-ready:not(.intro-done) .page-hero__inner {
  animation-delay: 1.6s;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll::after { animation: none; }
  /* Page entrance: no motion, content simply visible. */
  html.anim-ready .hero__inner,
  html.anim-ready .page-hero__inner { animation: none !important; opacity: 1; transform: none; }
  * { animation-duration: 0.001ms !important; }
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    /* Explicit viewport sizing (not inset:0) so the overlay stays full-screen even
       when the scrolled header's backdrop-filter makes it a containing block. With
       inset:0 the menu collapsed into the header strip as the filter faded back in
       on close, flashing the gold "Book Now" button. Viewport units are absolute,
       so the overlay can't collapse — open and close stay smooth. */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(16, 13, 10, 0.98);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transform: translateX(100%);
    /* hidden from the tab order while closed so keyboard users don't tab into
       the off-screen menu; becomes visible instantly on open, hides after the
       slide-out finishes on close */
    visibility: hidden;
    transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
  }
  body.nav-open .nav { transform: none; visibility: visible; transition-delay: 0s; }
  body.nav-open { overflow: hidden; }
  /* Once scrolled, the header gains backdrop-filter (.scrolled). A backdrop-filter
     makes the header a containing block for its position:fixed children, which
     collapses the fullscreen .nav overlay down to the header's box. While the menu
     is open, drop the filter (and the solid bg/border) so the overlay fills the
     viewport again and the header blends into it like the un-scrolled state. */
  body.nav-open .site-header {
    /* Stay OPAQUE — matching the menu overlay's colour — so the menu opens over a
       solid header instead of the header going see-through and flashing the page
       underneath during the slide-in. We still drop only the backdrop-filter:
       that's what makes the header a containing block and would otherwise collapse
       the fixed overlay once you've scrolled. */
    background: rgba(16, 13, 10, 0.98);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: transparent;
    /* Snap (don't transition) so the containing block is dropped instantly on open
       — transitioning backdrop-filter to none animates through blur(>0), which
       would keep the header a containing block (overlay collapsed) for ~0.4s. */
    transition: none;
  }
  .nav a:not(.btn) { font-size: 1.05rem; letter-spacing: 0.2em; }
  .nav .btn { margin-top: 0.5rem; padding: 0.9rem 2rem; }
}

@media (max-width: 860px) {
  .split, .visit-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split--owners {
    grid-template-areas:
      "logo"
      "media"
      "body";
  }
  .split--owners .about-logo { justify-self: center; }
  .split__media { aspect-ratio: 16 / 11; }
  .services-grid { grid-template-columns: 1fr; }
  .journal-grid { grid-template-columns: 1fr; }
  .card-cols { grid-template-columns: 1fr; }
  .section-head--row .head-note { text-align: left; }
}

@media (max-width: 620px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: 92svh; padding-block: 6.5rem 6rem; }
  .footer-inner { flex-direction: column; text-align: center; gap: 1.2rem; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__title { margin: 1.2rem 0 1.8rem; }
  .hero__proof { margin-top: 1.8rem; }
  .hero__scroll { bottom: 1.1rem; }
}

/* Short phones: not enough vertical room for the scroll cue — hide it so it
   never crowds or overlaps the reviews stat. Taller phones keep it. */
@media (max-width: 620px) and (max-height: 760px) {
  .hero__scroll { display: none; }
}

/* ---------- 18. Preloader / intro ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--footer);
  overflow: hidden;
  animation: preloaderOut 2.3s var(--ease) forwards;
}
.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}
.preloader__brand {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4rem);
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  opacity: 0;
  transform: translateY(22px);
  animation: preBrand 1s var(--ease) 0.15s forwards;
}
.preloader__logo {
  width: clamp(150px, 34vw, 230px);
  height: auto;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  animation: preLogo 1.1s var(--ease) 0.1s forwards;
}
@keyframes preLogo { to { opacity: 1; transform: none; } }
.preloader__rule {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
  animation: preRule 0.9s var(--ease) 0.55s forwards;
}
.preloader__tag {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: preTag 0.9s var(--ease) 0.85s forwards;
}
@keyframes preBrand { to { opacity: 1; transform: translateY(0); letter-spacing: 0.22em; text-indent: 0.22em; } }
@keyframes preRule  { to { width: clamp(120px, 30vw, 200px); } }
@keyframes preTag   { to { opacity: 1; } }
@keyframes preloaderOut {
  0%, 68% { transform: translateX(0);    visibility: visible; }
  100%    { transform: translateX(110%); visibility: hidden; }
}
/* Skip the intro on repeat navigations within the same session */
.intro-done #preloader { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  #preloader { display: none !important; }
  .preloader__logo { animation: none; opacity: 1; transform: none; }
}

/* =====================================================================
   19. LUX CUTS COMPONENTS — barbers, ratings, barber pole, logo lockups
   ===================================================================== */

/* ---------- Barber-pole accent ---------- */
.pole {
  height: 7px;
  width: clamp(120px, 28vw, 190px);
  border-radius: 6px;
  background-image: repeating-linear-gradient(
    115deg,
    var(--pole-red)   0 9px,
    var(--pole-white) 9px 18px,
    var(--pole-blue)  18px 27px,
    var(--pole-white) 27px 36px
  );
  /* Tile the stripes at exactly one horizontal period — 36px / sin(115deg)
     ≈ 39.72px — then slide by one whole tile. Tiling and motion share the
     same period, so the loop has no seam. */
  background-size: 39.72px 100%;
  background-repeat: repeat;
  box-shadow: 0 2px 14px -6px rgba(0,0,0,0.7);
  animation: poleSpin 2s linear infinite;
}
@keyframes poleSpin {
  to { background-position-x: -39.72px; }
}
@media (prefers-reduced-motion: reduce) {
  .pole { animation: none; }
}
.pole--center { margin-inline: auto; }

/* ---------- Star rating ---------- */
.rating { display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.stars {
  color: var(--gold-bright);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  line-height: 1;
}
.rating__count {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.rating__score { color: var(--cream); font-weight: 600; }

/* ---------- Hero social proof (single stat) ---------- */
.hero__proof {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.hero__proof-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  color: var(--gold);
  line-height: 1;
}
.hero__proof-label {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
}

/* ---------- Barber preview cards (home) ---------- */
.barbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
}
.barber-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 0.3s ease, transform 0.4s var(--ease);
}
.barber-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.avatar {
  width: 86px; height: 86px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2rem;
  color: var(--gold-bright);
  background: radial-gradient(circle at 30% 25%, var(--panel-2), var(--panel));
  border: 1px solid var(--gold-deep);
  margin-bottom: 1.2rem;
}
.barber-card__name { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); }
.barber-card__role {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-top: 0.35rem; margin-bottom: 0.9rem;
}
.barber-card .rating { justify-content: center; margin-bottom: 1.4rem; }
.barber-card__links { margin-top: auto; display: flex; flex-direction: column; gap: 0.9rem; width: 100%; }

/* ---------- Barber sections (barbers/services page) ---------- */
.barber-block { scroll-margin-top: 110px; }
.barber-block + .barber-block { margin-top: clamp(3rem, 6vw, 5rem); }
.barber-head {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 1.6rem;
}
.barber-head .avatar { margin-bottom: 0; width: 72px; height: 72px; font-size: 1.6rem; }
.barber-head__text { flex: 1 1 auto; min-width: 0; }
.barber-head__text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.barber-head__text .barber-card__role { margin: 0.4rem 0 0.6rem; }
.barber-head .btn { flex: none; }
.barber-menu { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(2.5rem, 6vw, 6rem); }
.barber-menu .svc { break-inside: avoid; }

/* wide media frame (for landscape shots like the two-barber photo) */
.split__media--wide { aspect-ratio: 16 / 11; }

/* ---------- Logo lockups ---------- */
.footer-logo { height: 64px; width: auto; }
.about-logo {
  width: clamp(160px, 40vw, 240px);
  height: auto;
  margin-bottom: 1.8rem;
}

/* booking / barber-link list */
.book-links { display: grid; gap: 1rem; max-width: 460px; }
.book-links .btn { justify-content: space-between; text-align: left; }

/* note callout */
.note-band {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  font-size: 0.9rem;
  color: var(--text);
}
.note-band b { color: var(--cream); }

@media (max-width: 860px) {
  .barbers-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .barber-menu { grid-template-columns: 1fr; }
  .barber-head .btn { width: 100%; }
}

/* ---------- Reviews / testimonials ---------- */
.reviews { margin-top: clamp(2.4rem, 4vw, 3.2rem); }
.review-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.4rem);
}
.review-list--three { grid-template-columns: repeat(3, 1fr); }
.review-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.3s ease, transform 0.4s var(--ease);
}
.review-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.review-card__stars { color: var(--gold-bright); font-size: 0.95rem; letter-spacing: 0.12em; line-height: 1; }
.review-card__text {
  font-family: var(--serif);
  font-style: italic;
  color: var(--cream);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.5;
  flex: 1 1 auto;
}
.review-card__meta { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.2rem; }
.review-card__name {
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.review-card__tag {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.review-card__tag::before { content: "\2713"; color: var(--gold-deep); }

@media (max-width: 860px) {
  .review-list, .review-list--three { grid-template-columns: 1fr; }
}

/* clickable rating (links to the barber's Booksy reviews) */
a.rating { cursor: pointer; }
a.rating .rating__count { transition: color 0.2s ease; border-bottom: 1px solid transparent; padding-bottom: 1px; }
a.rating:hover .rating__count { color: var(--gold); border-bottom-color: var(--gold-deep); }
a.rating:hover .stars { filter: brightness(1.12); }

/* ---------- Button row (multiple CTAs together) ---------- */
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 480px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
}

/* ---------- Video embed (YouTube) ---------- */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 960px;
  margin-inline: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.75);
}
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
