/* Elite Barber's Lounge — styles
   Palette pulled from the shop: black marble, red veins, chrome, hex LED light. */
:root {
  --bg: #0e0e0e;
  --surface: #1a1a1a;
  --surface-2: #232323;
  --line: #2e2e2e;
  --chrome: #c7c7c7;
  --text: #f4f4f4;
  --muted: #a9a9a9;
  --red: #b3121f;        /* fills: buttons, badges (white text on it = 7:1) */
  --red-hover: #cf1726;
  --red-text: #ff5a64;   /* red used as text on black (6:1) */
  --radius: 14px;
  --head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --script: "Great Vibes", "Brush Script MT", cursive;
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.6 var(--body);
  padding-bottom: var(--bar-h);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 6vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.center { text-align: center; margin-top: 2rem; }
.section { padding: clamp(64px, 10vw, 112px) 0; }
.eyebrow { font: 600 .8rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--red-text); margin-bottom: 14px; }
.lead { font-size: 1.1rem; color: #d6d6d6; max-width: 56ch; }
.note { color: var(--muted); font-size: .9rem; text-align: center; margin-top: 1.25rem; }
.muted { color: var(--muted); }

/* Hexagon motif — echoes the shop's LED ceiling */
.hex-bg {
  background-color: #111;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 55 16.5v31L28 63 1 47.5v-31z M28 63v34' fill='none' stroke='%23ffffff' stroke-opacity='.045' stroke-width='1.5'/%3E%3C/svg%3E");
  border-block: 1px solid var(--line);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 1rem/1 var(--body); text-decoration: none; letter-spacing: .01em;
  border: 2px solid transparent; transition: background .2s, border-color .2s, transform .2s;
}
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .92rem; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }
.btn-ghost { border-color: var(--chrome); color: #fff; background: rgba(0,0,0,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; text-underline-offset: 4px; }
.text-link:hover { color: var(--red-text); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14,14,14,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-name { font: 400 1.9rem/1 var(--script); }
.brand-name span { font: 600 .85rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; margin-left: 4px; vertical-align: middle; }
.nav ul { display: none; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 500; color: #ddd; }
.nav a:hover { color: #fff; }
.nav-toggle { width: 44px; height: 44px; background: none; border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
.nav.open ul { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 68px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
.nav.open li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.header-cta { display: none; }

/* Hero */
.hero { position: relative; min-height: min(92vh, 820px); display: grid; align-items: end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,14,.35) 0%, rgba(14,14,14,.55) 45%, rgba(14,14,14,.97) 100%); }
.hero-content { position: relative; padding: 120px 0 56px; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 5.4rem); text-transform: uppercase; font-weight: 700; margin-bottom: .35em; }
.hero h1 em { font: 400 1.15em/0.9 var(--script); text-transform: none; color: #fff; padding-right: .08em; }
.hero-sub { font-size: clamp(1.05rem, 2.6vw, 1.3rem); color: #e0e0e0; max-width: 36ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.open-status { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; background: rgba(0,0,0,.5); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-size: .95rem; }
.open-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.open-status.is-open .dot { background: #34c759; box-shadow: 0 0 0 4px rgba(52,199,89,.2); }
.open-status.is-closed .dot { background: var(--red-text); }

/* Trust bar */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust-row { display: grid; grid-template-columns: repeat(2, 1fr); }
.trust-item { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 22px 8px; text-decoration: none; gap: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-item:nth-child(2n) { border-right: 0; }
.trust-big { font: 700 1.9rem/1 var(--head); display: inline-flex; align-items: center; color: #fff; min-height: 30px; }
.trust-big svg { width: 26px; height: 26px; color: var(--red-text); }
.trust-big .star { color: #f5c518; font-size: .8em; margin-left: 4px; }
.trust-label { color: var(--muted); font-size: .88rem; }
a.trust-item:hover .trust-label { color: #fff; }

/* Skip the wait */
.split.solo { grid-template-columns: 1fr !important; max-width: 760px; }
.split { display: grid; gap: 40px; align-items: center; }
.promo-card { background: linear-gradient(145deg, #1d0a0c, #2a0e12); border: 1px solid #5a1219; border-radius: var(--radius); padding: 32px 28px; position: relative; overflow: hidden; }
.promo-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(179,18,31,.45), transparent 70%); }
.promo-tag { font: 600 .75rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--red-text); }
.promo-big { font: 700 4rem/1 var(--head); margin: 6px 0 4px; }
.promo-card h3 { font-size: 1.5rem; text-transform: uppercase; }
.promo-card p:not(.promo-tag):not(.promo-big) { color: #dcdcdc; }

/* Services */
.menu { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0 56px; }
.menu-item { display: flex; align-items: baseline; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.menu-name h3 { margin: 0; font-size: 1.15rem; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; }
.menu-name p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.menu-dots { flex: 1; border-bottom: 2px dotted #3b3b3b; transform: translateY(-5px); min-width: 16px; }
.menu-meta { text-align: right; white-space: nowrap; }
.menu-price { display: block; font: 600 1.35rem/1 var(--head); }
.menu-time { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* Barbers */
.barber-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
.barber-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.barber-photo { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 35%, #2b2b2b, #151515); display: grid; place-items: center; }
.barber-photo img { width: 100%; height: 100%; object-fit: cover; }
.avatar { font: 700 3.4rem/1 var(--head); color: var(--chrome); width: 120px; height: 120px; border-radius: 50%; border: 2px solid #3a3a3a; display: grid; place-items: center; background: #1c1c1c; }
.badge { position: absolute; top: 14px; left: 14px; background: var(--red); color: #fff; font: 600 .72rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; }
.barber-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; flex: 1; }
.barber-body h3 { font-size: 1.6rem; margin: 0; text-transform: uppercase; }
.full-name { font: 400 .9rem/1 var(--body); color: var(--muted); text-transform: none; margin-left: 6px; }
.specialty { color: #d4d4d4; margin: 0; }
.barber-rating { color: #f5c518; font-size: .92rem; margin: 0; }
.barber-body .btn { margin-top: auto; }
.coming-soon { margin-top: auto; color: var(--muted); font-style: italic; }
.is-placeholder { opacity: .7; }

/* Gallery */
.gallery { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.gallery-btn img { aspect-ratio: 1; width: 100%; object-fit: cover; transition: transform .4s; }
.gallery-btn:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 820px); }
.lightbox::backdrop { background: rgba(0,0,0,.88); }
.lightbox img { max-height: 86vh; width: auto; border-radius: 10px; }
.lightbox-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }

/* Reviews */
.review-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
.review-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.review-stars { color: #f5c518; letter-spacing: .15em; margin-bottom: 12px; }
.review-card blockquote { margin: 0 0 16px; flex: 1; }
.review-card blockquote p { color: #e2e2e2; margin: 0; }
.review-by { font-weight: 600; margin: 0; }
.review-by span { color: var(--muted); font-weight: 400; }

/* Visit */
.visit-grid { display: grid; gap: 32px; margin-top: 32px; }
.storefront { border-radius: var(--radius); margin-bottom: 24px; width: 100%; aspect-ratio: 1200 / 435; object-fit: cover; }
address { font-style: normal; display: grid; gap: 12px; margin-bottom: 22px; }
address p { margin: 0; }
address p, address a { display: inline-flex; gap: 12px; align-items: flex-start; text-decoration: none; font-size: 1.05rem; }
address svg { color: var(--red-text); flex: none; margin-top: 3px; }
address a:hover span { text-decoration: underline; }
.visit-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.amenities li { display: flex; gap: 8px; align-items: center; color: #d4d4d4; font-size: .92rem; }
.amenities svg { color: var(--red-text); flex: none; }
.hours { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.hours th, .hours td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; color: #ddd; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.today { background: rgba(179,18,31,.18); }
.hours tr.today th { font-weight: 600; }
.hours tr.today th::after { content: " · Today"; color: var(--red-text); font-size: .8em; }
.map { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #151515 url("images/storefront.webp") center / cover; }
.map::before { content: ""; position: absolute; inset: 0; background: rgba(14,14,14,.7); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-load { position: absolute; inset: 0; margin: auto; width: max-content; height: 52px; display: inline-flex; gap: 10px; align-items: center; padding: 0 24px; border-radius: 999px; border: 2px solid var(--chrome); background: rgba(0,0,0,.5); color: #fff; font: 600 1rem var(--body); cursor: pointer; }
.map-load:hover { background: rgba(255,255,255,.1); }

/* FAQ */
.faq { margin-top: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--head); color: var(--red-text); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: #d0d0d0; padding-bottom: 20px; margin: 0; }

/* Careers */
.careers-box { display: grid; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 5vw, 56px); }
.careers-box img { width: 96px; height: 96px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 24px; background: #0a0a0a; font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid p { margin: 0 0 6px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-name { font: 600 1.1rem var(--head); text-transform: uppercase; letter-spacing: .06em; margin-top: 12px !important; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { display: inline-flex; gap: 10px; align-items: center; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; color: var(--muted); font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* Sticky mobile action bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr); height: var(--bar-h); background: rgba(14,14,14,.96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); padding-bottom: env(safe-area-inset-bottom); }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; font-size: .78rem; font-weight: 600; letter-spacing: .03em; }
.mobile-bar a:first-child { background: var(--red); color: #fff; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ≥ 640px */
@media (min-width: 640px) {
  .trust-row { grid-template-columns: repeat(4, 1fr); }
  .trust-item { border-bottom: 0; }
  .trust-item:nth-child(2n) { border-right: 1px solid var(--line); }
  .trust-item:last-child { border-right: 0; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .barber-grid { grid-template-columns: repeat(2, 1fr); }
  /* a lone barber on the last row sits centered */
  .barber-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }
  .careers-box { grid-template-columns: auto 1fr; }
  .careers-box img { width: 140px; height: 140px; }
  .footer-grid { grid-template-columns: 1fr 1.4fr 1fr; }
}
/* ≥ 960px: desktop */
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .nav-toggle { display: none; }
  .nav ul { display: flex; gap: 30px; margin-right: 24px; }
  .header-cta { display: inline-flex; }
  .split { grid-template-columns: 1.3fr 1fr; gap: 64px; }
  .menu { grid-template-columns: 1fr 1fr; }
  .barber-grid { grid-template-columns: repeat(3, 1fr); }
  .barber-card:last-child:nth-child(odd) { grid-column: auto; justify-self: stretch; width: auto; }
  .barber-card:last-child:nth-child(3n+1) { grid-column: 2; }
  .barber-body h3 .full-name { display: block; margin: 4px 0 0; }
  .visit-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .hero-content { padding-bottom: 88px; }
}

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

/* 404 page */
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 16px; max-width: 620px; margin: 0 auto; }
.notfound img { margin-bottom: 20px; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3rem); text-transform: uppercase; }
.notfound p { color: var(--muted, #b8b8b8); }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 20px 0 28px; }
.notfound-small { font-size: .9rem; }
.notfound-small a { color: inherit; }

/* Reviews marquee: cards slide right-to-left, new ones enter from the right */
.review-marquee { margin-top: 32px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.review-track { list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: 20px; width: max-content; animation: review-scroll calc(var(--count) * 9s) linear infinite; }
.review-track .review-card { width: clamp(270px, 78vw, 380px); flex: none; }
.review-marquee:hover .review-track, .review-marquee:focus-within .review-track, .review-marquee.paused .review-track { animation-play-state: paused; }
@keyframes review-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 10px)); } }
.marquee-controls { margin: 18px 0 0; }
.marquee-toggle { background: none; border: 0; color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 8px; }
.marquee-toggle:hover { color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .review-marquee { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; padding: 0 16px; }
  .review-track { animation: none; }
  .review-track .review-card { scroll-snap-align: start; }
  .review-track [aria-hidden="true"], .marquee-controls { display: none; }
}
