/* ==========================================================================
   Railside Barbershop — one-page site
   Tokens are the "Organic" design system from the handoff (organic-styles.css).
   ========================================================================== */

/* — self-hosted fonts (SIL OFL — licences in assets/fonts/) ————————————— */

@font-face {
  font-family: "Caprasimo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/caprasimo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f5ead8;
  --surface: #ebddc5;
  --text: #201e1d;

  --a-100: #fff2eb;
  --a-200: #ffe1d0;
  --a-300: #ffc6a5;
  --a-400: #f6a06b;
  --a-500: #d67f48;
  --a: #c67139;
  --a-btn: #9b592d;
  --a-btn-hover: #874c26;
  --a-600: #b2622d;
  --a-700: #8c491a;
  --a-800: #643312;

  --s-100: #f0fae1;
  --s-200: #e1eecc;
  --s-300: #ccdbb2;
  --s-400: #aebf92;
  --s: #7a8a5e;
  --s-btn: #626e4b;
  --s-btn-hover: #535d3f;
  --s-600: #728157;
  --s-700: #56633f;
  --s-800: #3d472b;
  --s-900: #272e1b;

  --n-100: #f9f4ed;
  --n-200: #eee7db;
  --n-300: #dcd3c4;
  --n-600: #82796a;
  --n-700: #645c50;

  --font-heading: "Caprasimo", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --sp-1: 4.4px;
  --sp-2: 8.8px;
  --sp-3: 13.2px;
  --sp-4: 17.6px;
  --sp-6: 26.4px;
  --sp-8: 35.2px;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(46, 43, 37, 0.14);
  --shadow-md: 0 3px 10px rgba(46, 43, 37, 0.16);
  --shadow-lg: 0 12px 32px rgba(46, 43, 37, 0.22);

  --wrap: 1200px;
  --header-h: 71px;
}

/* — base ————————————————————————————————————————————————————————————— */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

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

a { color: var(--a-700); text-underline-offset: 3px; }
a:hover { color: var(--a-600); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(198, 113, 57, 0.3); }

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

.skip-link {
  position: absolute;
  left: var(--sp-3);
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--a-btn);
  color: var(--bg);
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--sp-3); color: var(--bg); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.section { padding-block: 44px; }
.section-title { font-size: clamp(32px, 5vw, 44px); }
.mb-lg { margin-bottom: 32px; }
.mb-sm { margin-bottom: var(--sp-3); }
.accolade .star { font-style: normal; }
.review blockquote { margin: 0; }
.visit address { margin: 0; }
.menu__board { margin: 0; }

/* — buttons ——————————————————————————————————————————————————————————— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: var(--sp-2) calc(var(--sp-3) * 1.35);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary { background: var(--a-btn); border-color: var(--a-btn); color: var(--bg); }
.btn-primary:hover { background: var(--a-btn-hover); border-color: var(--a-btn-hover); color: var(--bg); }
.btn-primary:active { background: var(--a-800); border-color: var(--a-800); }

.btn-sage { background: var(--s-btn); border-color: var(--s-btn); color: var(--bg); }
.btn-sage:hover { background: var(--s-btn-hover); border-color: var(--s-btn-hover); color: var(--bg); }
.btn-sage:active { background: var(--s-800); border-color: var(--s-800); }

.btn-outline { color: var(--a-700); border-color: rgba(32, 30, 29, 0.16); background: transparent; }
.btn-outline:hover { background: rgba(32, 30, 29, 0.07); color: var(--a-700); }

/* — tags ——————————————————————————————————————————————————————————————— */

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: 999px;
}
.tag-accent { background: var(--a-100); color: var(--a-800); }
.tag-sage { background: var(--s-100); color: var(--s-800); }

/* — washed photo treatment ————————————————————————————————————————————— */

.washed { filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94); }

/* — header / nav ——————————————————————————————————————————————————————— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 234, 216, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--n-200);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--bg); }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--sp-3) var(--sp-6);
}

.nav__brand {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--text);
  flex: none;
}
.nav__brand img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
}
.nav__brand span {
  font-family: var(--font-heading);
  font-size: 20px;
  white-space: nowrap;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: 15px;
}
.nav__links a {
  color: var(--text);
  text-decoration: none;
  padding: 4px 2px;
}
.nav__links a:hover { color: var(--a-700); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--n-300);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
}
.nav__toggle svg { display: block; }
/* without JS the toggle cannot do anything — the links stay inline instead */
html:not(.js) .nav__toggle { display: none !important; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

/* — scroll progress (bottom edge of the sticky header) ————————————————— */

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;               /* sits on top of the header's 1px border */
  height: 3px;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  width: 100%;
  background: var(--a);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* — back to top ———————————————————————————————————————————————————————— */

.to-top {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: 52px;
  height: 52px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--a);
  color: var(--bg);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, visibility 0s linear 0.25s;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.to-top:hover { background: var(--a-600); }
.to-top:active { background: var(--a-700); }
.to-top svg { display: block; }
html:not(.js) .to-top { display: none; }
/* never float over the open mobile menu */
.menu-open .to-top { opacity: 0; visibility: hidden; transform: translateY(12px); transition-delay: 0s, 0s, 0s, 0s; }

/* — hero ——————————————————————————————————————————————————————————————— */

.hero {
  background: var(--s-900);
  color: var(--bg);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-8);
  align-items: center;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 53px var(--sp-6);
}
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.hero__pole {
  width: 64px;
  height: 12px;
  flex: none;
  border-radius: 999px;
  background: repeating-linear-gradient(-45deg, var(--a) 0 9px, var(--bg) 9px 18px, var(--s) 18px 27px, var(--bg) 27px 36px);
}
.hero__eyebrow span:last-child {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--s-300);
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 0.98;
  text-wrap: pretty;
}
.hero__lede {
  font-size: 18px;
  line-height: 1.6;
  max-width: 44ch;
  color: var(--s-200);
}
.hero__rating {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.hero__rating a { color: var(--bg); font-weight: 600; }
.hero__rating a:hover { color: var(--a-300); }
.stars { color: var(--a); letter-spacing: 3px; line-height: 1; }
.stars-lg { font-size: 24px; }
.stars-md { font-size: 20px; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.hero__phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  color: var(--s-200);
  font-weight: 600;
  text-decoration: none;
}
.hero__phone:hover { color: var(--bg); }

.hero__figure {
  margin: 0;
  width: 100%;
  max-height: 580px;
  aspect-ratio: 4 / 4.8;
  justify-self: end;
  overflow: hidden;
  border-radius: 46% 54% 50% 50% / 32% 32% 68% 68%;
}
.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* — review ticker —————————————————————————————————————————————————————— */

.ticker {
  background: var(--a-100);
  padding-block: var(--sp-6);
  overflow: hidden;
  border-bottom: 3px dashed var(--a-200);
}
.ticker__row { overflow: hidden; }
.ticker__row + .ticker__row { margin-top: var(--sp-4); }
.ticker__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.ticker__track--left { animation: marquee-left 80s linear infinite; }
.ticker__track--right { animation: marquee-right 90s linear infinite; }
.ticker__row:hover .ticker__track,
.ticker__row:focus-within .ticker__track { animation-play-state: paused; }

.ticker .quote {
  display: block;
  flex: none;
  margin-right: var(--sp-4);
  padding: var(--sp-2) calc(var(--sp-4) * 1.25);
  background: var(--bg);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.ticker .quote b { font-weight: 700; }
.ticker__track--left .quote b { color: var(--a-700); }
.ticker__track--right .quote b { color: var(--s-700); }

@keyframes marquee-left { to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* — accolades —————————————————————————————————————————————————————————— */

.accolades__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--sp-6);
  align-items: stretch;
}
.accolades__photo {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.accolades__photo img { width: 100%; height: 100%; object-fit: cover; }
.accolades__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.accolade {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-2);
  padding: calc(var(--sp-4) * 1.25);
  border-radius: var(--r-lg);
}
.accolade:nth-child(odd) { background: var(--s-100); }
.accolade:nth-child(even) { background: var(--a-100); }
.accolade b {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.1;
}
.accolade:nth-child(odd) b { color: var(--s-700); }
.accolade:nth-child(even) b { color: var(--a-700); }
.accolade > span { font-weight: 600; }

/* — barbers ———————————————————————————————————————————————————————————— */

.barbers__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}
.barber {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--sp-4);
  background: var(--n-100);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.barber__photo { min-height: 320px; aspect-ratio: 5 / 7; }
.barber__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* top-left anchored: when the box is narrower than the frame, the LAWRENZ sign / the Quintanilla tattoo
     (both at the left edge) stay in; when it is shorter, the sign + both faces at the top stay in */
  object-position: 0 12%;
}
.barber__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--sp-3);
  padding: calc(var(--sp-4) * 1.25);
}
.barber__body h3 { font-size: 28px; }
.barber__body p { line-height: 1.6; color: var(--n-700); }
.barbers__note { margin-top: calc(var(--sp-4) * 1.25); color: var(--n-700); }

/* — menu (dark) ———————————————————————————————————————————————————————— */

.menu {
  background: var(--s-900);
  color: var(--bg);
  padding-block: 53px;
}
.menu__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--sp-8);
  align-items: start;
}
.menu__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.menu__intro p { line-height: 1.6; color: var(--s-300); max-width: 42ch; }
.menu__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.menu__board {
  display: flex;
  flex-direction: column;
  border: 2px dashed var(--s-700);
  border-radius: var(--r-lg);
  padding: var(--sp-4) calc(var(--sp-4) * 1.25);
}
.menu__row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--s-800);
}
.menu__row:last-child { border-bottom: 0; }
.menu__row dt {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  flex: 1;
  font-weight: 600;
  margin: 0;
}
.menu__row .dur {
  color: var(--s-400);
  font-size: 14px;
  margin-left: auto;
  white-space: nowrap;
}
.menu__row dd {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--a-400);
}

/* — portfolio —————————————————————————————————————————————————————————— */

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.work__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.work__tile {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  transition: transform 0.3s ease;
}
.work__tile:nth-child(even) { margin-top: var(--sp-6); }
.work__tile:hover { transform: translateY(-6px); }
.work__tile img { width: 100%; height: 100%; object-fit: cover; }

/* — reels —————————————————————————————————————————————————————————————— */

.reels { background: var(--s-100); padding-block: 44px; }
.reels__lede { margin-bottom: 32px; color: var(--n-700); max-width: 60ch; }
.reels__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.reel { display: flex; flex-direction: column; gap: var(--sp-3); }
.reel__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--s-800);
}
.reel__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* two of the supplied thumbnails are landscape screengrabs — letterbox them
   over a blurred copy of themselves rather than cropping the frame apart */
.reel__frame--wide img { object-fit: contain; }
.reel__frame--wide .reel__blur {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  object-fit: cover;
  filter: blur(18px) saturate(0.7) brightness(0.85);
}
.reel__play {
  position: absolute;
  right: var(--sp-3);
  bottom: var(--sp-3);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--a);
  color: var(--bg);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.reel__play:hover { background: var(--a-600); color: var(--bg); }
.reel > a:last-child { font-size: 14px; font-weight: 600; }

/* — reviews ———————————————————————————————————————————————————————————— */

.reviews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.reviews__score { display: flex; flex-direction: column; gap: var(--sp-2); }
.reviews__score div { display: flex; align-items: center; gap: var(--sp-3); }
.reviews__score b { font-weight: 600; }
.reviews__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.reviews__masonry { columns: 3; column-gap: var(--sp-4); }
.review {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  break-inside: avoid;
  margin: 0 0 var(--sp-4);
  padding: calc(var(--sp-4) * 1.25);
  background: var(--surface);
  border-radius: var(--r-lg);
}
.review p { line-height: 1.55; }
.review figcaption { font-weight: 600; color: var(--a-700); }

/* — community —————————————————————————————————————————————————————————— */

.community { background: var(--s-100); padding-block: 44px; }
.community__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.community__photo {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.community__photo img { width: 100%; height: 100%; object-fit: cover; }
.community__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.community__body p { line-height: 1.7; color: var(--n-700); max-width: 52ch; }

/* — Cuts for Courage: full-bleed dark band between community and visit ——— */

.event {
  background: var(--s-900);
  color: var(--bg);
  padding-block: 44px;
}
.event__inner {
  display: grid;
  grid-template-columns: auto 1fr minmax(250px, 280px);
  gap: var(--sp-6) var(--sp-8);
  align-items: center;
}
.event__emblem {
  width: 196px;
  flex: none;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 7px rgba(245, 234, 216, 0.09), var(--shadow-md);
}
.event__emblem img { display: block; width: 100%; height: 100%; object-fit: contain; }

.event__main { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
.event__name {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1.06;
  color: var(--bg);
  margin: 0;
}
.event__lede { margin: 0; line-height: 1.6; color: var(--s-300); max-width: 40ch; }
.event__when {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin: var(--sp-1) 0 0;
  font-family: var(--font-heading);
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.25;
  color: var(--a-400);
}
.event__sched { min-width: 0; }
.event__time { white-space: nowrap; }
.event__pole {
  width: 44px;
  height: 10px;
  flex: none;
  margin-top: 0.42em;
  border-radius: 999px;
  background: repeating-linear-gradient(-45deg, var(--a) 0 8px, #fff 8px 16px, var(--s) 16px 24px, #fff 24px 32px);
  box-shadow: 0 0 0 1px var(--s-700);
}
.event__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
  padding-left: var(--sp-8);
  border-left: 1px solid var(--s-800);
}
.event__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; margin: 0; }
.event__label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--s-400);
}
.event__who { font-size: 15px; font-weight: 600; color: var(--s-200); }
.event__contact a {
  display: inline-block;
  padding-block: 9px;
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.15;
  color: var(--a-400);
  text-decoration: none;
}
.event__contact a:hover { color: var(--a-300); text-decoration: underline; }
.event__partner {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--s-300);
  max-width: 38ch;
}
.event__partner a { color: var(--a-400); white-space: nowrap; }

/* — visit —————————————————————————————————————————————————————————————— */

.visit__banner {
  margin: 0 0 32px;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7;
}
.visit__banner img { width: 100%; height: 100%; object-fit: cover; }

.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: var(--sp-6);
  align-items: start;
}
.visit__col { display: flex; flex-direction: column; gap: calc(var(--sp-4) * 1.25); }
.visit h3 { font-size: 22px; margin-bottom: var(--sp-2); }
.visit address { font-style: normal; line-height: 1.6; }
.visit__contact { display: flex; flex-direction: column; gap: var(--sp-1); }
.visit__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}
.visit__note { font-size: 14px; color: var(--n-700); }

.hours {
  background: var(--n-100);
  border-radius: var(--r-lg);
  padding: calc(var(--sp-4) * 1.25);
}
.hours h3 { margin-bottom: var(--sp-3); }
.hours dl { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; }
.hours dl > div { display: flex; justify-content: space-between; gap: var(--sp-4); }
.hours dt { margin: 0; }
.hours dd { margin: 0; font-weight: 600; }
.hours dd.closed { font-weight: 400; color: var(--n-700); }

.visit iframe {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--n-200);
  display: block;
}

/* — footer ————————————————————————————————————————————————————————————— */

.site-footer {
  background: var(--s-900);
  color: var(--s-100);
  padding-block: var(--sp-8);
  padding-bottom: 60px;          /* the resting back-to-top button sits below the hairline, on clear ground */
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.site-footer__brand { display: flex; align-items: center; gap: var(--sp-3); }
.site-footer__brand img { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; }
.site-footer__brand strong {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 18px;
  color: var(--bg);
}
.site-footer__brand span { font-size: 14px; color: var(--s-400); }
.site-footer__links { display: flex; gap: var(--sp-4); font-size: 14px; }
.site-footer__links a {
  color: var(--s-200);
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}
.site-footer__links a:hover { color: var(--bg); }
.site-footer__meta { font-size: 13px; color: var(--s-400); }
.site-footer__legal {
  width: 100%;
  margin-top: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--s-800);
  font-size: 13px;
  color: var(--s-400);
}

/* — entry + scroll reveal ——————————————————————————————————————————————— */

@media (prefers-reduced-motion: no-preference) {
  .fade-up { animation: fade-up 0.6s ease both; }
  .d1 { animation-delay: 0.1s; }
  .d2 { animation-delay: 0.2s; }
  .d3 { animation-delay: 0.3s; }
  .d4 { animation-delay: 0.4s; }
  /* transform only — an opacity fade on the LCP image delays the metric */
  .hero__figure { animation: rise 0.7s 0.2s ease both; }

  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }

.hero__rating a,
.section__head > a,
.reel > a:last-child { display: inline-flex; align-items: center; min-height: 24px; }


/* ==========================================================================
   Responsive
   ========================================================================== */

/* 1021–1080: two barber cards still side by side, give the text column room */
@media (max-width: 1080px) {
  .hero__inner { gap: var(--sp-6); }
  .barber { grid-template-columns: 1fr 1fr; }
}

/* ≤1020 (handoff v2): hero / barbers / menu / community → 1 col,
   accolades / portfolio / reels / visit → 2 col, reviews 3 → 2 */
@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: 1fr; padding-block: 40px; }
  .hero__figure {
    order: 2;
    justify-self: center;
    max-width: 460px;
    max-height: none;
  }
  .hero__copy { order: 1; }

  .accolades__grid { grid-template-columns: 1fr; }
  .accolades__photo { aspect-ratio: 4 / 5; }

  .barbers__grid { grid-template-columns: 1fr; }
  .barber { grid-template-columns: 0.9fr 1.1fr; }
  .menu__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .community__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .event__inner { grid-template-columns: auto 1fr; gap: var(--sp-6); align-items: center; }
  .event__emblem { width: 150px; }
  .event__side {
    grid-column: 1 / -1;
    padding-left: 0;
    padding-top: var(--sp-6);
    border-left: 0;
    border-top: 1px solid var(--s-800);
    align-self: stretch;
  }
  .reviews__masonry { columns: 2; }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .reels__grid { grid-template-columns: repeat(2, 1fr); }
  .visit__grid { grid-template-columns: 1fr 1fr; }
  .visit__map { grid-column: 1 / -1; }

  /* touch: every inline link is a 44px target */
  .nav__links a,
  .hero__rating a,
  .section__head > a,
  .reel > a:last-child,
  .visit__contact a,
  .site-footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .visit__contact { gap: 0; }
}

/* ≤900: the five text links + Book now no longer fit beside the brand → hamburger */
@media (max-width: 900px) {
  :root { --header-h: 71px; }

  .nav__toggle { display: inline-flex; }
  html:not(.js) .nav__menu { flex-wrap: wrap; justify-content: flex-end; }
  html:not(.js) .nav__links { flex-direction: row; flex-wrap: wrap; font-size: 15px; }
  html:not(.js) .nav__links a { min-height: 44px; border-bottom: 0; }
  .js .nav__menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-6) var(--sp-6);
    background: var(--bg);
    border-bottom: 1px solid var(--n-200);
    box-shadow: var(--shadow-md);
  }
  .js .nav__menu.is-open { display: flex; }
  .js .nav__menu {
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .menu-open, .menu-open body { overflow: hidden; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; font-size: 17px; }
  .nav__links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    border-bottom: 1px solid var(--n-200);
  }
  .nav__menu .btn { margin-top: var(--sp-2); }
  .site-header { position: sticky; }
  .nav { position: relative; }
}

/* ≤680 (handoff v2): everything single column, barber cards stack, stagger off */
@media (max-width: 680px) {
  .wrap, .nav, .hero__inner { padding-inline: 20px; }
  .section { padding-block: 36px; }
  .menu, .reels, .community { padding-block: 36px; }
  .section__head, .reviews__head, .reels__lede { margin-bottom: 24px; }

  .nav__brand img { width: 40px; height: 40px; }
  .nav__brand span { font-size: 17px; }

  .hero__lede { font-size: 17px; }
  .hero__actions { align-items: stretch; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__phone { flex: 1 1 100%; }

  .accolades__tiles { gap: var(--sp-3); }
  .accolade { padding: var(--sp-4); }

  .barber { grid-template-columns: 1fr; }
  .barber__photo { min-height: 0; aspect-ratio: 4 / 5; }

  .work__tile:nth-child(even) { margin-top: 0; }

  .event { padding-block: 34px; }
  .event__inner { grid-template-columns: 1fr; gap: var(--sp-4); align-items: start; }
  .event__emblem { width: 116px; box-shadow: 0 0 0 5px rgba(245, 234, 216, 0.09), var(--shadow-md); }
  .event__side { padding-top: var(--sp-4); }
  .event__when { gap: var(--sp-2); }
  .event__pole { width: 32px; height: 9px; }

  .reviews__masonry { columns: 1; }
  .visit__grid { grid-template-columns: 1fr; }
  .visit__banner { aspect-ratio: 16 / 9; }

  /* leave a clear band under the legal line so the resting back-to-top
     button never sits on the address / links */
  .site-footer { padding-bottom: 92px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .site-footer__legal { margin-top: var(--sp-1); }
  .to-top { right: 20px; }
}


@media (max-width: 1020px) and (orientation: landscape) and (max-height: 500px) {
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; padding-block: 28px; align-items: center; }
  .hero__copy { order: 0; gap: 14px; }
  .hero__figure { order: 0; max-width: 280px; justify-self: end; }
  .hero h1 { font-size: clamp(32px, 5.2vw, 48px); }
  .hero__lede { font-size: 15px; }
  .hero__actions { align-items: center; }
  .hero__actions .btn, .hero__phone { flex: 0 1 auto; }
}

@media (max-width: 460px) {
  .accolades__tiles { grid-template-columns: 1fr; }
  .hero__eyebrow span:last-child { font-size: 12.5px; }
  .work__grid, .reels__grid { gap: var(--sp-3); }
  .ticker .quote { font-size: 14px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; width: auto; }
  .ticker__row { overflow-x: auto; }
  .ticker .quote[aria-hidden="true"] { display: none; }
  .work__tile { transition: none; }
  .to-top { transition: none; transform: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
