/* ============================================================
   BR Barber Lounge — site.css
   Design plan (taste-gates): seed 7169 · Cabinet Grotesk ·
   Editorial Split · variance 5 / motion 4 / density 5
   Palette: "Espresso Lounge" — their logo pixels (RESEARCH.md):
   espresso ground #1A140E · bone #EFE7D9 · brass #A86820
   ============================================================ */

@import url('/assets/font/cabinet-grotesk.css');

/* --- tokens --- */
:root {
  --espresso: #1A140E;       /* page ground — warm dark, their black */
  --espresso-2: #221A11;     /* raised band */
  --card: #272017;           /* card surface */
  --card-2: #2E2318;         /* card hover / raised */
  --bone: #EFE7D9;           /* primary text — logo paper white, warmed */
  --bone-2: #D8CBB4;         /* body copy */
  --muted: #AE9F87;          /* labels, hours text */
  --brass: #A86820;          /* THEIR logo gold — fills, marks */
  --brass-bright: #D29A4B;   /* AA-safe brass for links/small text on espresso */
  --brass-deep: #8A5419;     /* hover */
  --line: rgba(210, 154, 75, .18);
  --line-soft: rgba(239, 231, 217, .09);
  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 10px 32px rgba(0,0,0,.35);
  --shadow-2: 0 2px 4px rgba(0,0,0,.45), 0 22px 56px rgba(0,0,0,.5);
  --radius: 14px;
  --maxw: 1160px;
  --grade: saturate(.92) sepia(.10) contrast(1.04) brightness(.97);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* --- reset + base --- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: hidden;
  background: var(--espresso);
  background-image:
    radial-gradient(1100px 520px at 85% -6%, rgba(168, 104, 32, .10), transparent 60%),
    radial-gradient(900px 520px at -10% 14%, rgba(66, 47, 24, .5), transparent 55%),
    var(--grain);
  color: var(--bone);
  font: 400 18px/1.6 "Cabinet Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brass-bright); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--bone); }
::selection { background: var(--brass); color: #FFF8EC; }
:focus-visible { outline: 3px solid var(--brass-bright); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-weight: 800; line-height: 1.06; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 6vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass-bright);
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }

/* depth bands — every section gets a ground treatment (ban: flat backgrounds) */
.band { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.band-2 {
  background:
    linear-gradient(180deg, transparent, rgba(34, 26, 17, .9) 12%, rgba(34, 26, 17, .9) 88%, transparent),
    var(--espresso-2);
  box-shadow: inset 0 1px 0 var(--line-soft), inset 0 -1px 0 var(--line-soft);
}

/* --- header --- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 20, 14, .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.site-head.scrolled { background: rgba(26, 20, 14, .92); border-bottom-color: var(--line-soft); }
.head-row { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bone); }
.brand img {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: #F6F1E6;
}
.brand b { font-weight: 800; letter-spacing: .04em; font-size: 1.02rem; display: block; line-height: 1.1; }
.brand small { color: var(--muted); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.nav-links { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--bone-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--bone); }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: 10px;
  font: 700 1rem/1 "Cabinet Grotesk", system-ui, sans-serif; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-brass { background: var(--brass); color: #050302; box-shadow: var(--shadow-1); }
.btn-brass:hover { background: var(--brass-deep); color: #FFF3DF; }
.site-head .btn-brass { color: #050302; }
.site-head .btn-brass:hover { color: #FFF3DF; }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brass-bright); color: var(--brass-bright); }
.btn-sm { min-height: 46px; padding: 10px 18px; font-size: .92rem; }

/* --- hero (Editorial Split) --- */
.hero { padding: clamp(3.2rem, 7vw, 6.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero-grid {
  display: grid; gap: clamp(2.4rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
}
.hero h1 { margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--brass-bright); }
.hero-sub { font-size: 1.13rem; color: var(--bone-2); max-width: 34rem; margin: 0 0 30px; }
.hero-sub b { color: var(--bone); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-note { color: var(--muted); font-size: .95rem; margin: 0; }
.hero-note a { color: var(--bone-2); }
.hero-media { position: relative; }
.hero-media .frame {
  position: relative; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-2); border: 1px solid var(--line);
}
.hero-media .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(26,20,14,0) 55%, rgba(26,20,14,.55));
}
.hero-media img { width: 100%; height: auto; filter: var(--grade); }
.hero-media .offset {
  position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--line); border-radius: 18px; z-index: -1;
}
.hero-badge {
  position: absolute; left: -18px; bottom: 26px;
  background: rgba(26, 20, 14, .9); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 16px; box-shadow: var(--shadow-1);
  font-size: .88rem; color: var(--bone-2); line-height: 1.35;
}
.hero-badge b { color: var(--bone); font-weight: 700; }
.hero-badge .stars { color: var(--brass-bright); letter-spacing: .08em; }

/* --- trust band --- */
.trust { border-block: 1px solid var(--line-soft); background: rgba(34, 26, 17, .55); }
.trust-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 26px 0; text-align: center;
}
.trust-row div { font-size: .98rem; color: var(--bone-2); }
.trust-row b { display: block; color: var(--bone); font-weight: 700; font-size: 1.06rem; }

/* --- section headers --- */
.sec-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head h2 { margin: 12px 0 14px; }
.sec-head p { color: var(--bone-2); max-width: 42rem; margin: 0; font-size: 1.05rem; }

/* --- shops cards --- */
.shops-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shop-card {
  background: linear-gradient(180deg, var(--card), var(--espresso-2));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.shop-card:hover { border-color: var(--line); transform: translateY(-3px); box-shadow: var(--shadow-1); }
.shop-top { display: flex; align-items: center; gap: 12px; }
.shop-top img {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: #F6F1E6; flex: none;
}
.shop-top .no { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-bright); font-weight: 700; }
.shop-top h3 { margin: 2px 0 0; font-size: 1.22rem; }
.shop-addr { color: var(--bone-2); font-size: .98rem; margin: 0; }
.shop-addr a { color: inherit; }
.hours { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hours th, .hours td { padding: 5px 0; text-align: left; font-weight: 400; border: 0; }
.hours th { color: var(--muted); width: 42%; }
.hours td { color: var(--bone-2); text-align: right; }
.hours tr.today th, .hours tr.today td { color: var(--brass-bright); font-weight: 700; }
.shop-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.shop-links .btn { flex: 1 1 120px; }
.shop-tel { display: flex; justify-content: space-between; align-items: baseline; color: var(--bone-2); font-size: .95rem; }
.shop-tel a { font-weight: 700; font-size: 1.04rem; }

/* --- barbers --- */
.barber-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.barber-group h3 {
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass-bright); margin: 0 0 14px; font-weight: 700;
}
.barbers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.barbers li {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 15px 16px; transition: border-color .2s ease;
}
.barbers li:hover { border-color: var(--line); }
.barbers .bname { font-weight: 700; color: var(--bone); }
.barbers .bmeta { color: var(--muted); font-size: .88rem; }
.barbers .bmeta .stars { color: var(--brass-bright); }
.barbers a.book-b { margin-left: auto; color: var(--brass-bright); text-decoration: none; font-weight: 700; font-size: .9rem; white-space: nowrap; padding: 14px 6px; }
.barbers a.book-b:hover { color: var(--bone); }
.barbers-note { color: var(--muted); font-size: .92rem; margin: 18px 0 0; }

/* --- services --- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 22px 20px;
}
.svc h3 { font-size: 1.12rem; margin: 0 0 8px; }
.svc p { margin: 0; color: var(--bone-2); font-size: .96rem; }
.svc-note {
  grid-column: 1 / -1; color: var(--bone-2); font-size: 1.02rem;
  padding: 18px 22px; border-left: 3px solid var(--brass); background: rgba(168,104,32,.08);
  border-radius: 0 12px 12px 0;
}

/* --- gallery --- */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gal figure { margin: 0; position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line-soft); }
.gal img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: var(--grade);
  transition: transform .5s ease;
}
.gal figure:hover img { transform: scale(1.03); }
.gal figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gal figure:nth-child(1) img { aspect-ratio: auto; height: 100%; }

/* --- reviews --- */
.rev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rev {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 24px 22px; display: flex; flex-direction: column; gap: 12px;
}
.rev .stars { color: var(--brass-bright); letter-spacing: .1em; font-size: .95rem; }
.rev blockquote { margin: 0; font-size: 1.08rem; color: var(--bone); line-height: 1.5; }
.rev figcaption { color: var(--bone-2); font-size: .9rem; }
.rev-src { margin-top: auto; font-size: .84rem; color: var(--muted); }

/* --- final CTA --- */
.final { text-align: center; }
.final h2 { margin: 14px 0 10px; }
.final .tel-big {
  display: inline-block; font-size: clamp(1.7rem, 4.6vw, 3rem); font-weight: 800;
  color: var(--brass-bright); text-decoration: none; letter-spacing: .01em; margin: 8px 0 26px;
}
.final .tel-big:hover { color: var(--bone); }
.final p { color: var(--bone-2); max-width: 40rem; margin: 0 auto 26px; }
.final-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- footer --- */
.site-foot { border-top: 1px solid var(--line-soft); background: #14100A; padding: 56px 0 120px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.foot-brand img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #F6F1E6; }
.foot-brand b { letter-spacing: .04em; }
.site-foot h4 { margin: 0 0 12px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-bright); }
.site-foot p { margin: 0 0 10px; color: var(--bone-2); font-size: .92rem; line-height: 1.5; }
.site-foot a { color: var(--bone-2); text-decoration: none; }
.site-foot a:hover { color: var(--bone); }
.foot-shops p b { color: var(--bone); }
.foot-base {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-soft);
  color: var(--muted); font-size: .84rem;
}

/* --- mobile sticky bar (Call + Book) --- */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(20, 16, 10, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .3s ease;
}
.quickbar.on { transform: translateY(0); }
.quickbar .btn { flex: 1; min-height: 52px; }

/* --- reveals (motion 4: staggered fade-up, fire once) --- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(14px); }
  html.js .reveal.in {
    opacity: 1; transform: none;
    transition: opacity .55s ease, transform .55s ease;
    transition-delay: var(--d, 0ms);
  }
  html.js .gal figure.in { transition-delay: 0ms; }
}

/* --- responsive --- */
@media (max-width: 1020px) {
  .shops-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .gal { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 480px; }
  .nav-links a:not(.btn) { display: none; }
  .trust-row { grid-template-columns: repeat(2, 1fr); text-align: left; gap: 22px; }
  .barber-groups { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .rev-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .quickbar { display: flex; }
}
@media (max-width: 560px) {
  .hero h1 { margin-bottom: 28px; }
  .hero-sub { margin-bottom: 34px; }
  .gal { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gal figure:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .svc-grid { grid-template-columns: 1fr; }
  .hero-badge { left: 10px; bottom: 12px; }
  .hero-media .offset { display: none; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .gal img { transform: none !important; }
}
