/* =============================================================================
   Babylon Barbershop — styles.css
   Mobile-first, token-driven. Two co-equal primary targets: mobile (<=767px)
   and desktop (>=1024px); tablet (768-1023px) is a graceful interpolation.
   Order: tokens -> reset/base -> layout -> header -> hero -> buttons ->
          features -> mobile menu -> media queries -> a11y/motion.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --color-bg:            #0A0A0A; /* page background behind the card */
  --color-card:          #131211; /* card black */
  --color-charcoal:      #1C1A18; /* deep charcoal panels / feature strip */

  /* Text */
  --color-text-heading:  #F6F2EA; /* warm white headline */
  --color-text-body:     #A8A199; /* muted warm grey body */
  --color-text-soft:     #C9C4BC; /* soft grey nav / secondary labels */

  /* Accent (gold) — the only chromatic color */
  --color-gold:          #C9A24C;
  --color-gold-hover:    #DEBA63;
  --color-gold-deep:     #A07B2E;
  --color-border-gold:   rgba(201, 162, 76, 0.45);

  /* Lines */
  --color-divider:       rgba(255, 255, 255, 0.08);
  --color-divider-gold:  rgba(201, 162, 76, 0.35);

  /* Gradients */
  --grad-gold: linear-gradient(135deg, var(--color-gold-hover) 0%, var(--color-gold) 45%, var(--color-gold-deep) 100%);
  --grad-card: linear-gradient(120deg, #0D0C0B 0%, #161412 55%, #1B1814 100%);
  --overlay-hero: linear-gradient(90deg, rgba(10,10,10,0.97) 0%, rgba(10,10,10,0.86) 34%, rgba(10,10,10,0.45) 66%, rgba(10,10,10,0.12) 100%);

  /* Per-breakpoint media overlay (mobile default = light top/bottom darken) */
  --media-overlay: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.12) 42%, rgba(10,10,10,0.55) 100%);

  /* Radii */
  --radius-card: 24px;   /* mobile base; bumped on desktop */
  --radius-btn:  7px;

  /* Spacing scale (px): 4 8 12 16 24 32 48 64 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Outer card gutter + safe areas */
  --gutter: clamp(10px, 1.6vw, 22px);

  /* Motion (zeroed under prefers-reduced-motion) */
  --t-fast: 150ms;
  --t:      190ms;

  /* Type */
  --font-sans: "Montserrat", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
}

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

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Always reserve space for the vertical scrollbar so short pages (no scrollbar)
     and tall pages (scrollbar present) keep the SAME viewport width — otherwise the
     centered card/footer shift horizontally between pages. */
  scrollbar-gutter: stable;
}

html, body {
  max-width: 100%;
  overflow-x: clip; /* hard guarantee: no horizontal scroll at any width */
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Outer gutter around the card, respecting iOS safe areas */
  padding:
    max(env(safe-area-inset-top),    var(--gutter))
    max(env(safe-area-inset-right),  var(--gutter))
    max(env(safe-area-inset-bottom), var(--gutter))
    max(env(safe-area-inset-left),   var(--gutter));
}

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

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

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3 { font-weight: 600; line-height: 1.1; }

/* Visually hidden but available to assistive tech */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.gold { color: var(--color-gold); }

.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: currentColor; /* inherits surrounding text color */
}

/* ---------------------------------------------------------------------------
   3. Layout — the premium card
   --------------------------------------------------------------------------- */
.card {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  background: var(--grad-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-card);
  overflow: hidden; /* clips hero photo + diagonal edge to the rounded corners */
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  position: relative;
}

/* ---------------------------------------------------------------------------
   4. Header / nav
   --------------------------------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: clamp(14px, 3.5vw, 20px) clamp(18px, 4vw, 28px);
}

.logo { display: inline-flex; flex: 0 0 auto; border-radius: 4px; }
.logo img { height: 52px; width: auto; }

/* Desktop nav + persistent CTA are hidden in the mobile base.
   .nav-cta needs the .site-header prefix (0,2,0) so it beats .btn's
   `display: inline-flex` (0,1,0) declared later in the buttons section. */
.nav { display: none; }
.site-header .nav-cta { display: none; }

/* Hamburger (mobile base) */
.hamburger {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--color-text-soft);
  transition: color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.hamburger .icon { width: 26px; height: 26px; }
.hamburger:hover { color: var(--color-gold); }

/* ---------------------------------------------------------------------------
   5. Hero
   --------------------------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.hero__copy {
  padding: clamp(18px, 5vw, 28px) clamp(20px, 6vw, 24px) clamp(24px, 6vw, 30px);
}

/* Eyebrow: tracked gold label + trailing gold hairline rule */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  color: var(--color-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.2;
}
.eyebrow span { flex: 0 0 auto; }
.eyebrow::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  max-width: 90px;
  background: var(--color-divider-gold);
}

.hero__title {
  font-family: var(--font-serif);
  color: var(--color-text-heading);
  /* Fluid: ~34px floor on phones -> ~64px cap on desktop */
  font-size: clamp(2.125rem, 5vw, 4rem);
  line-height: 1.07;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-4);
}

.hero__lede {
  color: var(--color-text-body);
  font-size: clamp(0.95rem, 1.2vw, 1.0625rem);
  line-height: 1.6;
  max-width: 48ch;
  margin-bottom: clamp(20px, 4vw, 28px);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
/* Mobile: primary is a full-width block; Call Now stays auto-width + centered (spec §3.4–3.5) */
.hero__cta .btn--primary { width: 100%; }
.hero__cta .btn--link { width: auto; align-self: center; }

/* --- Hero media --- */
.hero__media {
  position: relative;
  width: 100%;
  flex: 1 1 auto;                          /* grows to fill the gap above the feature strip */
  min-height: clamp(200px, 30vh, 300px);   /* reserves space (no CLS) even before the image loads */
  background: var(--grad-card);            /* premium dark fallback if the image fails to load */
  overflow: hidden;
}
.hero__media picture,
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__img {
  object-fit: cover;
  object-position: center;
  /* Mobile: diagonal top edge (signature gold hairline transition) */
  clip-path: polygon(0 16px, 100% 0, 100% 100%, 0 100%);
}
/* Darkening overlay over the photo (keeps adjacent text/strip at AA contrast) */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--media-overlay);
  clip-path: polygon(0 16px, 100% 0, 100% 100%, 0 100%);
}
/* Mobile: gold diagonal hairline sitting on the angled top edge */
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, var(--color-gold-deep), var(--color-gold-hover) 50%, var(--color-gold-deep));
  clip-path: polygon(0 16px, 100% 0, 100% 2px, 0 18px);
}

/* ---------------------------------------------------------------------------
   6. Buttons
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 15px 26px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease,
              border-color var(--t-fast) ease, transform var(--t-fast) ease,
              box-shadow var(--t-fast) ease, filter var(--t-fast) ease;
}
.btn .icon { width: 18px; height: 18px; }

/* Primary — solid gold gradient, dark near-black text (the visual anchor) */
.btn--primary {
  background: var(--grad-gold);
  color: var(--color-card);
  box-shadow: 0 10px 26px -12px rgba(201, 162, 76, 0.6);
}
.btn--primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); filter: brightness(0.98); }

/* Outline — transparent fill, gold border + text; fills gold on hover */
.btn--outline {
  background: transparent;
  border-color: var(--color-border-gold);
  color: var(--color-gold);
}
.btn--outline:hover {
  background: var(--grad-gold);
  border-color: transparent;
  color: var(--color-card); /* dark text on gold gradient — WCAG AA verified */
}

/* Link — gold icon + gold text + underline, no fill */
.btn--link {
  background: transparent;
  color: var(--color-gold);
  padding: 12px 8px;
  text-transform: uppercase;
}
.btn--link span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.btn--link:hover { color: var(--color-gold-hover); }

/* ---------------------------------------------------------------------------
   7. Feature strip
   --------------------------------------------------------------------------- */
.features {
  margin-top: auto; /* pin to the bottom of the card */
  display: flex;
  border-top: 1px solid var(--color-divider);
  background: var(--color-charcoal);
}

.feature {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;   /* mobile: icon ABOVE label */
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  padding: clamp(14px, 3.5vw, 18px) clamp(6px, 2vw, 12px);
  min-width: 0;
}
.feature + .feature { border-left: 1px solid var(--color-divider); }

.feature__icon { color: var(--color-gold); width: 22px; height: 22px; }

.feature__title {
  color: var(--color-text-soft);
  font-size: clamp(0.6875rem, 2.6vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}
.feature__title--full { display: none; } /* desktop uses full labels */
.feature__sub {
  display: none;                          /* hidden on mobile */
  color: var(--color-text-body);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* Actionable strip items: Book Online (link) + Walk-ins / Open 7 Days (modal
   triggers). Reset the <a>/<button> to sit flush in the strip, with a subtle
   gold hover and a keyboard focus ring kept INSIDE the cell (no overflow). */
.feature--action {
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: background-color var(--t-fast) ease;
}
.feature--action .feature__title,
.feature--action .feature__icon { transition: color var(--t-fast) ease; }
.feature--action:hover { background-color: rgba(201, 162, 76, 0.06); }
.feature--action:hover .feature__icon { color: var(--color-gold-hover); }
.feature--action:hover .feature__title { color: var(--color-text-heading); }
.feature--action:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: -3px;
  border-radius: 4px;
}
/* The strip sits flush at the card's bottom edge, so the two end items share the
   card's rounded corners. Round their outer-bottom corners (inset 1px for the
   card border) so the hover highlight follows the curve instead of squaring off.
   The strip's first child is the sr-only <h2>, so the first feature is nth-child(2). */
.features .feature:nth-child(2) { border-bottom-left-radius: calc(var(--radius-card) - 1px); }
.features .feature:last-child  { border-bottom-right-radius: calc(var(--radius-card) - 1px); }

/* ---------------------------------------------------------------------------
   8. Mobile menu (overlay drawer)
   --------------------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;         /* clip the off-canvas panel so it can never add page scroll */
  visibility: hidden;       /* removes from a11y tree + tab order when closed */
  opacity: 0;
  /* Delay the hide until AFTER the fade-out, so the panel stays visible while closing. */
  transition: opacity var(--t) ease, visibility 0s linear var(--t);
}
.mobile-menu.is-open {
  visibility: visible;      /* flips IMMEDIATELY on open (0s delay) so the panel is focusable at once */
  opacity: 1;
  transition: opacity var(--t) ease, visibility 0s linear 0s;
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(2px);
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(86vw, 360px);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding:
    max(env(safe-area-inset-top), 24px)
    28px
    max(env(safe-area-inset-bottom), 28px);
  background: var(--grad-card);
  border-left: 1px solid var(--color-divider-gold);
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 0.9);
  transform: translateX(12%);
  transition: transform var(--t) ease;
}
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }

.mobile-menu__close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--color-text-soft);
  transition: color var(--t-fast) ease;
}
.mobile-menu__close:hover { color: var(--color-gold); }

.mobile-menu__links { display: flex; flex-direction: column; }
.mobile-menu__links a {
  display: block;
  padding: 14px 4px;
  color: var(--color-text-soft);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-divider);
  transition: color var(--t-fast) ease;
}
.mobile-menu__links a:hover { color: var(--color-gold); }
.mobile-menu__links a[aria-current="page"] { color: var(--color-gold); }

.mobile-menu__cta { margin-top: var(--space-4); width: 100%; }

/* ===========================================================================
   9. TABLET  (>= 768px, < 1024px)
   Single-column hero with copy OVER a full-bleed darkened desktop photo.
   Feature strip switches to desktop layout. Nav stays as the hamburger.
   =========================================================================== */
@media (min-width: 768px) {
  :root { --radius-card: 28px; }

  .site-header { padding: 20px clamp(24px, 4vw, 40px); }
  .logo img { height: 60px; }

  /* Hero: copy floats (left, vertically centered) over the full-bleed photo */
  .hero {
    position: relative;
    flex: 1 0 auto;
    display: flex;
    justify-content: center;   /* column main axis -> vertical centering of the copy */
    align-items: flex-start;   /* cross axis -> copy hugs the left */
    min-height: clamp(380px, 52vh, 520px);
    --media-overlay: linear-gradient(100deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.78) 46%, rgba(10,10,10,0.45) 100%);
  }
  .hero__copy {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 620px;
    padding: clamp(28px, 5vw, 48px) clamp(28px, 5vw, 44px);
  }
  .hero__cta {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-5);
  }
  .hero__cta .btn--primary { width: auto; } /* inline on one row with Call Now (leaves the mobile-menu CTA full-width) */

  .hero__media {
    position: absolute;
    inset: 0;
    z-index: 1;
    flex: initial;           /* out of flow: flex sizing no longer applies */
    min-height: 0;
    height: auto;            /* full-bleed behind copy */
  }
  .hero__img,
  .hero__media::after { clip-path: none; }      /* straight edge on tablet/desktop */
  .hero__img { object-position: 72% center; }   /* keep the subject framed */
  .hero__media::before { display: none; }       /* no diagonal gold edge */

  /* Feature strip -> desktop layout (icon left, title + subtitle) */
  .feature {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: var(--space-4);
    padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 32px);
  }
  .feature__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .feature__title { font-size: 0.875rem; letter-spacing: 0.08em; }
  .feature__title--full { display: inline; }
  .feature__title--short { display: none; }
  .feature__sub { display: block; }
}

/* ===========================================================================
   10. DESKTOP  (>= 1024px)
   Two-zone hero (copy left ~46% / photo right ~54%), horizontal nav + CTA,
   3-column feature strip with subtitles.
   =========================================================================== */
@media (min-width: 1024px) {
  :root { --radius-card: 30px; }

  /* Header: show horizontal nav + persistent outline CTA, hide hamburger */
  .hamburger { display: none; }

  .nav { display: block; margin-left: auto; }
  .nav ul { display: flex; align-items: center; gap: clamp(24px, 2.6vw, 40px); }
  .nav a {
    position: relative;
    display: inline-block;
    padding: 6px 0;
    color: var(--color-text-soft);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color var(--t-fast) ease;
  }
  .nav a:hover { color: var(--color-text-heading); }
  .nav a[aria-current="page"] { color: var(--color-gold); }
  .nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--color-gold);
  }

  .site-header .nav-cta {
    display: inline-flex;
    margin-left: clamp(20px, 2.4vw, 36px);
    padding: 12px 20px;
  }

  .logo img { height: 66px; }

  /* Two-zone hero: copy constrained left (~46%) over the full-bleed photo; the
     left->right --overlay-hero blends the seam so there is no hard column edge.
     align-items: flex-start is inherited from the tablet rule (copy stays left). */
  .hero {
    min-height: 0;
    --media-overlay: var(--overlay-hero);
  }
  .hero__copy {
    width: 46%;
    max-width: 560px;
    padding: clamp(32px, 4vw, 56px) var(--space-6) clamp(32px, 4vw, 56px) clamp(40px, 5vw, 72px);
  }
  .hero__title { letter-spacing: 0; margin-bottom: var(--space-5); }
  .hero__lede { max-width: 30rem; }
  .hero__img { object-position: right center; }

  /* Feature strip: 3 columns, icon left + title + subtitle. Full-bleed to the
     card edges (no inline padding) so the end items' rounded hover highlight
     meets the card's corners; content stays inset via each .feature's padding. */
  .feature { padding: clamp(22px, 2.4vw, 30px) clamp(24px, 2.6vw, 40px); gap: var(--space-4); }
  .feature__icon { width: 24px; height: 24px; }
  .feature__title { font-size: 0.875rem; }

  /* Mobile menu can never appear on desktop */
  .mobile-menu { display: none; }
}

/* ===========================================================================
   11. SERVICES PAGE  (services.html)
   Adds ONLY what the services page needs on top of the shared system above:
   a hero (copy over a full-bleed darkened interior backdrop) and an editorial
   menu-style price list. Header, buttons, feature strip, mobile menu, eyebrow
   and headline/lede typography are all reused from the home page unchanged.
   =========================================================================== */

/* --- Services hero (mobile base: copy centered over a near-black backdrop) --- */
.services-hero {
  position: relative;
  display: flex;            /* row: single copy child, vertically centered */
  align-items: center;
  min-height: clamp(340px, 60vh, 460px);  /* reserves hero height -> CLS-safe */
  overflow: hidden;
  /* Heavy near-black overlay on mobile keeps copy crisp (matches the reference) */
  --media-overlay: linear-gradient(180deg, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.78) 50%, rgba(10,10,10,0.92) 100%);
}
.services-hero__copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(20px, 7vw, 32px) clamp(20px, 6vw, 24px);
}
.services-hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--grad-card);   /* premium dark fallback if the image fails */
  overflow: hidden;
}
.services-hero__media picture,
.services-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.services-hero__img {
  object-fit: cover;        /* never stretched */
  object-position: center;
}
.services-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--media-overlay);
}
/* Mobile: full-width gold Book Appointment, with Call Now centered below (mirrors the home hero §5) */
.services-hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.services-hero__cta .btn--primary { width: 100%; }
.services-hero__cta .btn--link { width: auto; align-self: center; }

/* --- Services menu (mobile base: single column, editorial price rows) --- */
.service-menu {
  padding: clamp(28px, 5vw, 44px) clamp(20px, 5vw, 48px) clamp(36px, 6vw, 60px);
}
/* Thin gold hairline with a centered scissors icon */
.service-menu__divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: clamp(18px, 4vw, 26px);
}
.service-menu__divider::before,
.service-menu__divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--color-divider-gold);
}
.service-menu__icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: var(--color-gold);
}
/* "Services" section label — semantic <h2> styled as the small gold eyebrow */
.service-menu__eyebrow {
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: clamp(14px, 3vw, 22px);
}
.service-menu__grid {
  display: grid;
  grid-template-columns: 1fr;             /* mobile: one column */
  gap: 0 clamp(32px, 5vw, 72px);
  align-items: start;                     /* columns top-aligned (unequal lengths) */
}
.service-list { display: flex; flex-direction: column; }
.service-row {
  display: grid;
  grid-template-columns: 1fr auto;        /* name flexes, price hugs right -> no collision */
  align-items: baseline;
  gap: var(--space-4);
  padding: clamp(11px, 2.2vw, 15px) 0;
  border-bottom: 1px solid var(--color-divider);
}
.service-row__name {
  color: var(--color-text-soft);
  font-size: clamp(0.95rem, 1vw, 1.0625rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.service-row__price {
  color: var(--color-gold);              /* pricing in gold (editorial accent) */
  font-weight: 600;
  font-size: clamp(0.95rem, 1vw, 1.0625rem);
  white-space: nowrap;
}

/* Services — TABLET (>= 768px): copy floats left over the full-bleed photo;
   two-column menu. Mirrors the home hero's tablet treatment. */
@media (min-width: 768px) {
  .services-hero {
    min-height: clamp(380px, 52vh, 520px);
    --media-overlay: linear-gradient(100deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.78) 46%, rgba(10,10,10,0.45) 100%);
  }
  .services-hero__copy {
    max-width: 620px;
    padding: clamp(28px, 5vw, 48px) clamp(28px, 5vw, 44px);
  }
  /* Headline is longer than the home one; size it for two clean lines. */
  .services-hero .hero__title { font-size: clamp(1.9rem, 4.2vw, 2.15rem); line-height: 1.14; }
  /* The source asset frames the chair on the left; mirror it so the chair sits
     on the right (matches the approved mockup), clear of the left-aligned copy. */
  .services-hero__img { transform: scaleX(-1); }
  /* Book Appointment + Call Now sit inline on one row (mirrors the home hero) */
  .services-hero__cta {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-5);
  }
  .services-hero__cta .btn--primary { width: auto; }

  /* Two balanced columns; stretch + distribute rows so both columns level out
     (same top AND bottom) despite holding a different number of services. */
  .service-menu__grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .service-menu__grid .service-row { flex: 1 1 auto; align-content: center; }
}

/* Services — DESKTOP (>= 1024px): two-zone hero (copy left ~46% over the
   left->right --overlay-hero blend, chair/mirror visible right). */
@media (min-width: 1024px) {
  .services-hero {
    min-height: clamp(420px, 56vh, 560px);
    --media-overlay: var(--overlay-hero);
  }
  .services-hero__copy {
    width: 48%;
    max-width: 600px;
    padding: clamp(32px, 4vw, 56px) var(--space-6) clamp(32px, 4vw, 56px) clamp(32px, 3.5vw, 48px);
  }
  /* Longer services headline + narrow two-zone column -> size it down so it
     lands on two clean lines (per the approved desktop mockup). */
  .services-hero .hero__title { font-size: clamp(1.4rem, 2.25vw, 1.95rem); line-height: 1.16; }
}

/* ===========================================================================
   12. ABOUT PAGE  (about.html)
   A longer, multi-section scrolling page that reuses the shared header, buttons,
   feature strip, mobile menu, eyebrow/headline typography and tokens. Adds only
   About-specific sections: a bounded real-interior hero, Our Promise (3 pillars),
   Our Approach (editorial + checklist), Visit Us (storefront + details) and a
   no-headshot Team list. Mobile-first base, then tablet/desktop overrides.
   =========================================================================== */

/* --- Shared section primitives (centered heads + left-aligned variants) --- */
.section-head { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.section-eyebrow {
  color: var(--color-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: var(--space-3);
}
.section-title {
  font-family: var(--font-serif);
  color: var(--color-text-heading);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.14;
  letter-spacing: 0.01em;
}
.section-title--left { text-align: left; }

/* --- About hero (mobile base: copy block, then a real-interior photo band) --- */
.about-hero { display: flex; flex-direction: column; }
.about-hero__copy {
  padding: clamp(18px, 5vw, 28px) clamp(20px, 6vw, 24px) clamp(24px, 6vw, 30px);
}
.about-hero__cta { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.about-hero__cta .btn--primary { width: 100%; }

.about-hero__media {
  position: relative;
  width: 100%;
  min-height: clamp(220px, 44vw, 320px);   /* reserves height -> CLS-safe */
  background: var(--grad-card);             /* premium dark fallback if the image fails */
  overflow: hidden;
}
.about-hero__media picture,
.about-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.about-hero__img {
  object-fit: cover;                        /* never stretched */
  object-position: center;
  clip-path: polygon(0 16px, 100% 0, 100% 100%, 0 100%);  /* signature angled top edge (mobile) */
}
.about-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--media-overlay);
  clip-path: polygon(0 16px, 100% 0, 100% 100%, 0 100%);
}
.about-hero__media::before {                /* gold diagonal hairline on the angled edge */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, var(--color-gold-deep), var(--color-gold-hover) 50%, var(--color-gold-deep));
  clip-path: polygon(0 16px, 100% 0, 100% 2px, 0 18px);
}

/* --- Our Promise (mobile base: stacked pillars, no boxed cards) --- */
.about-promise {
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--color-divider);
}
.promise-grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 40px); }
.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  padding-inline: clamp(8px, 2vw, 24px);
}
.pillar__icon { width: 30px; height: 30px; color: var(--color-gold); }
.pillar__title { color: var(--color-text-heading); font-size: 1.0625rem; letter-spacing: 0.02em; }
.pillar__text { color: var(--color-text-body); font-size: 0.9375rem; line-height: 1.55; max-width: 34ch; }

/* --- Our Approach (mobile base: decorative panel above copy + checklist) --- */
.about-approach {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 44px);
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--color-divider);
}
/* Real barber-at-work photo (landscape 4:3). Rounded frame, dark gradient fallback. */
.about-approach__media {
  width: 100%;
  border: 1px solid var(--color-divider);
  border-radius: 18px;
  overflow: hidden;
  background: var(--grad-card);   /* premium dark fallback if the image fails to load */
}
.about-approach__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;            /* matches the source; preserves the full composition */
}
.about-approach__lede {
  color: var(--color-text-body);
  font-size: clamp(0.95rem, 1.2vw, 1.0625rem);
  line-height: 1.6;
  max-width: 46ch;
  margin: var(--space-3) 0 clamp(18px, 3vw, 26px);
}
.check-list { display: flex; flex-direction: column; gap: var(--space-3); }
.check-list li { display: flex; align-items: center; gap: var(--space-3); color: var(--color-text-soft); line-height: 1.4; }
.check-list__icon { color: var(--color-gold); width: 22px; height: 22px; flex: 0 0 auto; }

/* --- Visit Us (mobile base: storefront photo above the details) --- */
.about-visit {
  display: flex;
  flex-direction: column-reverse;          /* photo (last child) renders ABOVE details */
  gap: clamp(24px, 4vw, 40px);
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--color-divider);
}
.about-visit__media {
  border: 1px solid var(--color-divider);
  border-radius: 18px;
  overflow: hidden;
  background: var(--grad-card);   /* premium dark fallback if the image fails to load */
}
.about-visit__img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.visit-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: clamp(18px, 3vw, 26px) 0 clamp(20px, 3vw, 28px);
}
.visit-list li { display: flex; align-items: flex-start; gap: var(--space-3); color: var(--color-text-soft); font-size: 1rem; line-height: 1.5; }
.visit-list__icon { color: var(--color-gold); flex: 0 0 auto; margin-top: 2px; }
.visit-list a { color: var(--color-text-soft); transition: color var(--t-fast) ease; }
.visit-list a:hover { color: var(--color-gold); }
.about-visit__cta { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-3); }
.about-visit__cta .btn--link { align-self: center; }

/* --- Our Team (mobile base: stacked rows, gold roles, NO headshots) --- */
.about-team {
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--color-divider);
}
.team-grid { display: flex; flex-direction: column; }
.team-member { text-align: center; padding: clamp(18px, 3vw, 24px) 0; border-bottom: 1px solid var(--color-divider); }
.team-member:last-child { border-bottom: 0; }
.team-member__name { font-family: var(--font-serif); color: var(--color-text-heading); font-size: clamp(1.3rem, 2vw, 1.6rem); }
.team-member__role {
  color: var(--color-gold);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 6px 0 10px;
}
.team-member__bio { color: var(--color-text-body); font-size: 0.9375rem; line-height: 1.55; max-width: 38ch; margin-inline: auto; }

/* About — TABLET (>= 768px): hero copy floats over the full-bleed photo; team 3-up */
@media (min-width: 768px) {
  .about-hero {
    position: relative;
    justify-content: center;                /* column main axis -> vertical centering */
    align-items: flex-start;                /* copy hugs the left */
    min-height: clamp(420px, 52vh, 520px);
    --media-overlay: linear-gradient(100deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.78) 46%, rgba(10,10,10,0.45) 100%);
  }
  .about-hero__copy {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 620px;
    padding: clamp(28px, 5vw, 48px) clamp(28px, 5vw, 44px);
  }
  .about-hero__cta { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .about-hero__cta .btn--primary { width: auto; }
  /* Reference sizes the About headline smaller than the home hero so it lands as
     two clean lines in the narrower two-zone column (mobile keeps the base clamp). */
  .about-hero .hero__title { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.12; }
  .about-hero__media {
    position: absolute;
    inset: 0;
    z-index: 1;
    min-height: 0;
  }
  .about-hero__img,
  .about-hero__media::after { clip-path: none; }   /* straight edge from tablet up */
  .about-hero__img { object-position: 60% center; }
  .about-hero__media::before { display: none; }     /* no diagonal gold edge */

  /* Team: 3-up row with subtle dividers */
  .team-grid { flex-direction: row; }
  .team-member { flex: 1 1 0; border-bottom: 0; padding: clamp(8px, 2vw, 16px) clamp(16px, 3vw, 32px); }
  .team-member + .team-member { border-left: 1px solid var(--color-divider); }

  /* Visit Us CTA row inline */
  .about-visit__cta { flex-direction: row; align-items: center; gap: var(--space-5); }
  .about-visit__cta .btn--link { align-self: auto; }
}

/* About — DESKTOP (>= 1024px): two-zone hero; 3-col promise; editorial splits */
@media (min-width: 1024px) {
  .about-hero {
    min-height: clamp(440px, 56vh, 560px);
    --media-overlay: var(--overlay-hero);
  }
  .about-hero__copy {
    width: 48%;
    max-width: 560px;
    padding: clamp(32px, 4vw, 56px) var(--space-6) clamp(32px, 4vw, 56px) clamp(40px, 5vw, 72px);
  }
  .about-hero__img { object-position: right center; }

  /* Promise: 3 columns with subtle vertical dividers (no boxed cards) */
  .promise-grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .pillar { padding-inline: clamp(20px, 3vw, 44px); }
  .pillar + .pillar { border-left: 1px solid var(--color-divider); }

  /* Approach: editorial split (decorative media left / copy right) */
  .about-approach { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 5vw, 72px); }
  .about-approach__panel { min-height: clamp(280px, 30vw, 420px); }

  /* Visit Us: two columns; storefront photo on the RIGHT (details left) */
  .about-visit { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 5vw, 72px); }
  .about-visit__img { aspect-ratio: 4 / 3; }
}

/* ===========================================================================
   13. CONTACT PAGE  (contact.html)
   A multi-section scrolling page that reuses the shared header, buttons, feature
   strip, mobile menu, eyebrow/headline/section-head typography and tokens. Adds
   only Contact-specific sections: a bounded real-interior hero, a slim Contact
   Information row, and a message form beside a map/location panel. The map panel
   is a styled placeholder built to accept a live <iframe> embed later with no
   layout change. Mobile-first base, then tablet/desktop overrides.
   =========================================================================== */

/* --- Contact hero (mobile base: copy block, then a real-interior photo band;
       mirrors the About hero mechanics) --- */
.contact-hero { display: flex; flex-direction: column; }
.contact-hero__copy {
  padding: clamp(18px, 5vw, 28px) clamp(20px, 6vw, 24px) clamp(24px, 6vw, 30px);
}
.contact-hero__cta { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.contact-hero__cta .btn--primary { width: 100%; }

.contact-hero__media {
  position: relative;
  width: 100%;
  min-height: clamp(220px, 44vw, 320px);   /* reserves height -> CLS-safe */
  background: var(--grad-card);             /* premium dark fallback if the image fails */
  overflow: hidden;
}
.contact-hero__media picture,
.contact-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.contact-hero__img {
  object-fit: cover;                        /* never stretched */
  object-position: center;
  clip-path: polygon(0 16px, 100% 0, 100% 100%, 0 100%);  /* signature angled top edge (mobile) */
}
.contact-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--media-overlay);
  clip-path: polygon(0 16px, 100% 0, 100% 100%, 0 100%);
}
.contact-hero__media::before {                /* gold diagonal hairline on the angled edge */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, var(--color-gold-deep), var(--color-gold-hover) 50%, var(--color-gold-deep));
  clip-path: polygon(0 16px, 100% 0, 100% 2px, 0 18px);
}

/* --- Contact information (mobile base: stacked, icon-led items, NO boxed cards) --- */
.contact-info {
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--color-divider);
}
.contact-info__grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 40px); }
.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  padding-inline: clamp(8px, 2vw, 24px);
}
.info-item__icon { width: 30px; height: 30px; color: var(--color-gold); margin-bottom: var(--space-1); }
.info-item__title { color: var(--color-text-heading); font-size: 1.0625rem; letter-spacing: 0.02em; }
.info-item__text { color: var(--color-text-body); font-size: 0.9375rem; line-height: 1.55; }
.info-item__text a { color: var(--color-text-soft); transition: color var(--t-fast) ease; }
.info-item__text a:hover { color: var(--color-gold); }
.info-item__call { padding: 8px; }   /* quiet gold "Call Now" link beneath the number */

/* --- Send a Message + map (mobile base: form, then map panel below) --- */
.contact-connect {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 44px);
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--color-divider);
}

.contact-form__form {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 20px);
  margin-top: clamp(18px, 3vw, 24px);
}
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label {
  color: var(--color-text-soft);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;                         /* comfortable tap target */
  padding: 13px 14px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text-heading);
  background: var(--color-charcoal);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-btn);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.field textarea { min-height: 132px; line-height: 1.5; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--color-text-body); }
.field input:hover,
.field textarea:hover { border-color: var(--color-border-gold); }
/* Focus: gold border always; keyboard focus adds a subtle gold ring (replacing
   the default outline so focus is never invisible). */
.field input:focus,
.field textarea:focus { border-color: var(--color-gold); }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 76, 0.18);
}
.contact-form__submit { margin-top: var(--space-2); width: 100%; }
.contact-form__note { margin-top: var(--space-3); color: var(--color-text-body); font-size: 0.875rem; }
.contact-form__note.is-success { color: var(--color-gold); }   /* set by the no-op submit handler */

/* Map/location panel — a stylized dark street-map surface (derived from
   contact-map-reference-v2.png) used as the panel's visual: real road geometry around the
   shop with the gold Babylon pin + name/address label integrated onto the map. A real,
   accessible "Get Directions" link is overlaid at the lower edge over a soft scrim. Sized
   to roughly match the form on desktop; an <iframe> embed could replace the image later. */
.contact-map { display: flex; }
.contact-map__panel {
  position: relative;
  flex: 1 1 auto;
  min-height: clamp(300px, 56vw, 380px);
  border: 1px solid var(--color-divider-gold);
  border-radius: 18px;
  overflow: hidden;
  /* Deep charcoal fallback if the map image fails to load. */
  background: linear-gradient(160deg, #20201D 0%, #17150F 60%, #100F0D 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
/* The map image fills the panel. object-position keeps the gold pin + label in frame as
   the panel is cropped at different aspect ratios across breakpoints. */
.contact-map__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 50%;
}
/* Subtle gold inner edge + a bottom scrim so the overlaid link stays legible over the map. */
.contact-map__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(to top, rgba(8, 8, 7, 0.88) 0%, rgba(8, 8, 7, 0.42) 16%, transparent 34%);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 76, 0.10);
}

/* Overlay cluster — anchored at the lower-left over the scrim. Holds the accessible address
   (sr-only; the map carries the visual label) and the actionable Get Directions link. */
.contact-map__overlay {
  position: absolute;
  z-index: 2;
  left: clamp(16px, 6%, 28px);
  right: clamp(16px, 6%, 28px);
  bottom: clamp(16px, 6%, 24px);
}
/* Quiet gold "Get Directions" pill, integrated over the map's lower edge. */
.contact-map__directions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 11px 18px;
  color: var(--color-gold);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--color-border-gold);
  border-radius: 999px;
  background: linear-gradient(rgba(18, 16, 14, 0.80), rgba(13, 12, 10, 0.84));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease, background var(--t-fast) ease;
}
.contact-map__directions .icon { width: 15px; height: 15px; }
.contact-map__directions:hover {
  color: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  background: linear-gradient(rgba(24, 21, 16, 0.88), rgba(18, 16, 12, 0.9));
}

/* Contact — TABLET (>= 768px): two-zone hero; 3-up contact-info row */
@media (min-width: 768px) {
  .contact-hero {
    position: relative;
    justify-content: center;                /* column main axis -> vertical centering */
    align-items: flex-start;                /* copy hugs the left */
    min-height: clamp(420px, 52vh, 520px);
    --media-overlay: linear-gradient(100deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.78) 46%, rgba(10,10,10,0.45) 100%);
  }
  .contact-hero__copy {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 620px;
    padding: clamp(28px, 5vw, 48px) clamp(28px, 5vw, 44px);
  }
  .contact-hero__cta { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .contact-hero__cta .btn--primary { width: auto; }
  .contact-hero__media { position: absolute; inset: 0; z-index: 1; min-height: 0; }
  .contact-hero__img,
  .contact-hero__media::after { clip-path: none; }   /* straight edge from tablet up */
  .contact-hero__img { object-position: 60% center; }
  .contact-hero__media::before { display: none; }     /* no diagonal gold edge */

  /* Contact info: 3 columns with subtle vertical dividers (no boxed cards) */
  .contact-info__grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .info-item { padding-inline: clamp(16px, 3vw, 32px); }
  .info-item + .info-item { border-left: 1px solid var(--color-divider); }
}

/* Contact — DESKTOP (>= 1024px): two-zone hero; form + map two-column row */
@media (min-width: 1024px) {
  .contact-hero {
    min-height: clamp(440px, 56vh, 560px);
    --media-overlay: var(--overlay-hero);
  }
  .contact-hero__copy {
    width: 48%;
    max-width: 560px;
    padding: clamp(32px, 4vw, 56px) var(--space-6) clamp(32px, 4vw, 56px) clamp(40px, 5vw, 72px);
  }
  .contact-hero__img { object-position: right center; }

  .info-item { padding-inline: clamp(20px, 3vw, 44px); }

  /* Form left (~54%), map right; stretch so the map panel matches the form height */
  .contact-connect {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(40px, 5vw, 72px);
  }
  .contact-map { height: 100%; }
  .contact-map__panel { min-height: 0; height: 100%; }
}

/* ===========================================================================
   13b. Footer — shared premium footer below the card (all pages)
   Mobile base: single stacked column. Sits as its own charcoal panel with a
   gold top hairline; matches the card width + radius so it reads as part of the
   same system rather than a giant page-wide footer.
   =========================================================================== */
.site-footer {
  flex: 0 0 auto;
  width: 100%;
  max-width: 1320px;
  margin: var(--gutter) auto 0;
  background: var(--color-charcoal);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-top: 1px solid var(--color-divider-gold); /* subtle gold hairline */
  border-radius: var(--radius-card);
  overflow: hidden;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 5vw, 36px);
  padding: clamp(30px, 5vw, 52px) clamp(22px, 4vw, 48px) clamp(26px, 4vw, 40px);
}

/* Brand + short line */
.footer-brand__name {
  font-family: var(--font-serif);
  color: var(--color-text-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.footer-brand__tagline {
  margin-top: var(--space-2);
  color: var(--color-text-body);
  font-size: 0.9375rem;
  max-width: 34ch;
}

/* Column heads */
.footer-col__title {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: var(--space-4);
}

/* Quick links */
.footer-nav__list li + li { margin-top: 10px; }
.footer-nav__list a {
  color: var(--color-text-body);
  font-size: 0.9375rem;
  transition: color var(--t-fast) ease;
}

/* Contact + connect lists (icon-led rows) */
.footer-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--color-text-body);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.footer-list li + li { margin-top: 12px; }
.footer-list a {
  color: var(--color-text-body);
  transition: color var(--t-fast) ease;
}
.footer__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--color-gold);
}

/* Shared link hover (gold), keyboard focus stays the global gold ring */
.footer-nav__list a:hover,
.footer-list a:hover { color: var(--color-gold); }

/* Bottom row — copyright */
.site-footer__bottom {
  border-top: 1px solid var(--color-divider);
  padding: clamp(15px, 3vw, 20px) clamp(22px, 4vw, 48px);
  text-align: center;
}
.site-footer__bottom p {
  color: var(--color-text-body);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

/* Footer — MOBILE (< 600px): compact + lighter so it reads as a slim panel,
   not a second large rounded card stacked under the page. Tighter padding/gaps,
   a smaller radius, and a prominent-but-not-huge brand. */
@media (max-width: 599px) {
  .site-footer { border-radius: 18px; }            /* less "giant card" than the full card radius */
  .site-footer__inner {
    gap: 20px;
    padding: 24px 20px 18px;
  }
  .footer-brand__name { font-size: 1.2rem; }
  .footer-brand__tagline { margin-top: 4px; font-size: 0.875rem; }
  .footer-col__title { margin-bottom: 10px; }
  .footer-nav__list li + li { margin-top: 8px; }
  .footer-list li + li { margin-top: 9px; }
  .site-footer__bottom { padding: 13px 20px; }
  .site-footer__bottom p { font-size: 0.75rem; }
}

/* Footer — wider mobile + tablet (>= 420px, < 1024px): Explore + Contact sit
   side by side; brand and Connect span the full width (Connect near the bottom). */
@media (min-width: 420px) and (max-width: 1023px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .footer-brand,
  .footer-connect { grid-column: 1 / -1; }
}

/* Footer — DESKTOP: brand (wider) + three columns in one row */
@media (min-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: 1.6fr 1fr 1.6fr 1.1fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
  }
  .footer-brand { grid-column: auto; }
}

/* ===========================================================================
   13c. Modals — reusable premium dialog (walk-ins info, opening hours)
   Centered dark/charcoal surface with a gold hairline over a soft scrim. Shared
   verbatim across all pages; opened from the bottom strip (see script.js §4).
   =========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;                    /* above the mobile menu (100) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(env(safe-area-inset-top), 20px)
    max(env(safe-area-inset-right), 16px)
    max(env(safe-area-inset-bottom), 20px)
    max(env(safe-area-inset-left), 16px);
  visibility: hidden;              /* removes from a11y tree + tab order when closed */
  opacity: 0;
  transition: opacity var(--t) ease, visibility 0s linear var(--t);
}
.modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--t) ease, visibility 0s linear 0s;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.72);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;                /* long content (hours) scrolls inside the modal */
  background: var(--grad-card);
  border: 1px solid var(--color-divider-gold);
  border-radius: 20px;
  padding: clamp(26px, 4vw, 40px);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
  text-align: center;
  transform: translateY(8px) scale(0.98);
  transition: transform var(--t) ease;
}
.modal.is-open .modal__dialog { transform: translateY(0) scale(1); }
.modal__dialog:focus { outline: none; }   /* programmatic fallback focus only */

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--color-text-soft);
  transition: color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.modal__close:hover { color: var(--color-gold); }

.modal__icon {
  width: 34px;
  height: 34px;
  margin: 2px auto clamp(12px, 2vw, 16px);
  color: var(--color-gold);
}
.modal__title {
  font-family: var(--font-serif);
  color: var(--color-text-heading);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-3);
}
.modal__body {
  color: var(--color-text-body);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 46ch;
  margin: 0 auto clamp(18px, 3vw, 24px);
}

/* Location panel — mirrors the Contact page address treatment (charcoal surface,
   gold hairline, icon-led rows + a quiet gold "Get Directions" pill). */
.modal__panel {
  text-align: left;
  background: var(--color-charcoal);
  border: 1px solid var(--color-divider-gold);
  border-radius: 14px;
  padding: clamp(16px, 3vw, 22px);
  margin-bottom: clamp(18px, 3vw, 24px);
}
.modal__panel-title {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: var(--space-3);
}
.modal__list { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--space-4); }
.modal__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--color-text-body);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.modal__list a { color: var(--color-text-body); transition: color var(--t-fast) ease; }
.modal__list a:hover { color: var(--color-gold); }
.modal__list-icon { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; color: var(--color-gold); }

.modal__directions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 16px;
  color: var(--color-gold);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--color-border-gold);
  border-radius: 999px;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease, background var(--t-fast) ease;
}
.modal__directions .icon { width: 15px; height: 15px; }
.modal__directions:hover {
  color: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  background: rgba(201, 162, 76, 0.08);
}

/* Opening-hours list — day left, gold time right, hairline rows. */
.modal__hours {
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-bottom: clamp(18px, 3vw, 24px);
}
.modal__hours li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding: 10px 2px;
  border-bottom: 1px solid var(--color-divider);
  font-size: 0.9375rem;
}
.modal__hours li:last-child { border-bottom: 0; }
.modal__day { color: var(--color-text-soft); font-weight: 500; }
.modal__time { color: var(--color-gold); white-space: nowrap; }

.modal__cta { width: 100%; }

/* ===========================================================================
   14. Accessibility — focus + reduced motion
   =========================================================================== */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 3px;
}
/* Don't show the ring for mouse/touch users, only keyboard */
:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0.01ms; --t: 0.01ms; } /* every transition uses these tokens -> effectively off */
  html { scroll-behavior: auto; }
  /* Explicitly remove transform-based motion + the decorative blur (not merely shorten them) */
  .btn--primary:hover { transform: none; }
  .mobile-menu__panel { transition: none; transform: none; }
  .mobile-menu__backdrop { backdrop-filter: none; }
  .modal__dialog { transition: none; transform: none; }
  .modal__backdrop { backdrop-filter: none; }
}
