/* ============================================================
   Benny's Barbershop — Brooklyn
   Design tokens
   Ink        #16140F  (near-black, warm — leather & wood, not blue-black)
   Brass      #B08D57  (existing brand gold, kept for continuity)
   Pole Red   #8C2F2F  (nods to the physical barber pole in-shop)
   Cream      #F4EFE4  (paper / wall-menu background)
   Paper      #FAF7F1  (page background)
   Steel      #6B655C  (muted text)
   Display    'Fraunces', serif   — headlines, editorial weight
   Body       'Inter', sans-serif — reading text
   Utility    'IBM Plex Mono'     — prices, labels, wall-menu numerals
   ============================================================ */

:root {
  --ink: #16140f;
  --ink-soft: #23201a;
  --brass: #b08d57;
  --brass-bright: #cda86e;
  --pole-red: #8c2f2f;
  --cream: #f4efe4;
  --paper: #faf7f1;
  --steel: #6b655c;
  --line: #ddd4c2;
  --radius: 2px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
p { margin: 0 0 1em; color: var(--steel); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
  color: var(--brass);
  font-weight: 500;
}

/* ---------- Barber-pole signature bar ----------
   The one recurring signature element: a thin diagonal-striped
   bar (red / cream / ink) referencing the physical pole outside
   the shop. Used sparingly — never as a full background. */
.pole-bar {
  height: 6px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--pole-red) 0 14px,
    var(--paper) 14px 22px,
    var(--ink) 22px 30px,
    var(--paper) 30px 38px
  );
}

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 40px; height: 40px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 15px;
}
.brand-text { line-height: 1.15; }
.brand-text .top { font-family: 'Fraunces', serif; font-weight: 600; font-size: 18px; }
.brand-text .bottom { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em; color: var(--brass); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  margin-right: 32px; /* fallback for browsers without flexbox gap support */
}
.main-nav a:last-child { margin-right: 0; }
.main-nav a.active { color: var(--pole-red); }
.main-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--pole-red);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav-cta::after { display: none; }

.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--ink);
  width: 40px; height: 40px; border-radius: var(--radius);
  cursor: pointer;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: none; }
.menu-toggle .bars { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--brass-bright); }
.hero h1 {
  color: var(--paper);
  font-size: clamp(40px, 7vw, 78px);
  max-width: 14ch;
  margin-top: 0.3em;
}
.hero h1 em { font-style: normal; color: var(--brass-bright); }
.hero .lede {
  color: #cfc9bb;
  font-size: 19px;
  max-width: 46ch;
  margin: 24px 0 36px;
}
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--pole-red); color: #fff; }
.btn-primary:hover { background: #a33838; }
.btn-outline { border-color: var(--brass); color: var(--brass-bright); }
.btn-outline:hover { background: rgba(176,141,87,0.12); }
.btn-dark { border-color: var(--ink); color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: var(--paper); }

.hero-stats {
  display: flex; gap: 40px; margin-top: 56px;
  border-top: 1px solid rgba(244,239,228,0.15);
  padding-top: 28px;
  flex-wrap: wrap;
}
.hero-stats .stat .n { font-family: 'Fraunces', serif; font-size: 30px; color: var(--brass-bright); }
.hero-stats .stat .l { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #a89f8d; }

/* ---------- Section shell ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-cream { background: var(--cream); }
.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 0.35em; }

/* ---------- Services / wall menu ---------- */
.menu-board {
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  padding: 8px 0;
}
.menu-list { list-style: none; margin: 0; padding: 0 8px; }
.menu-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px dashed rgba(244,239,228,0.18);
}
.menu-list li:last-child { border-bottom: none; }
.menu-list .name { font-size: 17px; font-weight: 500; }
.menu-list .name .sub { display: block; font-size: 13px; color: #a89f8d; font-weight: 400; margin-top: 2px; }
.menu-list .price {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--brass-bright);
  font-size: 17px;
  white-space: nowrap;
}

.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
@media (max-width: 760px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Feature cards ---------- */
.card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .card-row { grid-template-columns: 1fr; } }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 28px;
  border-radius: var(--radius);
}
.card .num { font-family: 'IBM Plex Mono', monospace; color: var(--brass); font-size: 13px; margin-bottom: 14px; display: block; }
.card h3 { font-size: 20px; margin-bottom: 10px; }

/* ---------- Photo placeholder ---------- */
.photo-slot {
  background: linear-gradient(135deg, #efe8d8, #e3d9c2);
  border: 1px dashed var(--brass);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: var(--steel);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  text-align: center;
  padding: 24px;
  min-height: 220px;
}
.ig-embed-wrap { display: flex; justify-content: center; align-items: flex-start; }

/* ---------- Rating badges ---------- */
.badge-row { display: flex; gap: 24px; flex-wrap: wrap; }
.rating-badge {
  flex: 1;
  min-width: 240px;
  background: var(--ink);
  color: var(--paper);
  padding: 28px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  display: block;
  transition: transform 0.15s ease;
}
.rating-badge:hover { transform: translateY(-2px); }
.rating-badge .platform { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brass-bright); margin-bottom: 10px; }
.rating-badge .score { font-family: 'Fraunces', serif; font-size: 34px; color: var(--paper); display: flex; align-items: baseline; gap: 10px; }
.rating-badge .score .stars { color: var(--brass-bright); font-size: 18px; letter-spacing: 1px; }
.rating-badge .count { color: #a89f8d; font-size: 14px; margin-top: 8px; }
.rating-badge .cta { margin-top: 16px; font-size: 13.5px; color: var(--brass-bright); font-weight: 600; }


.review-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .review-row { grid-template-columns: 1fr; } }
.review {
  background: var(--ink);
  color: var(--paper);
  padding: 28px;
  border-radius: var(--radius);
}
.review .stars { color: var(--brass-bright); letter-spacing: 2px; margin-bottom: 12px; }
.review p { color: #d9d3c4; font-style: italic; }
.review .who { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #a89f8d; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--pole-red);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band .lede { color: rgba(255,255,255,0.85); max-width: 50ch; margin: 14px auto 30px; }

/* ---------- Map / contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-block { margin-bottom: 28px; }
.info-block .label { font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: 0.1em; font-size: 11.5px; color: var(--brass); margin-bottom: 8px; }
.info-block .value { font-size: 17px; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hours-table td:last-child { text-align: right; font-family: 'IBM Plex Mono', monospace; color: var(--ink); }
.map-embed { border: 1px solid var(--line); border-radius: 2px; overflow: hidden; height: 100%; min-height: 340px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc9bb; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--paper); font-size: 14px; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.site-footer a { text-decoration: none; color: #cfc9bb; }
.site-footer a:hover { color: var(--brass-bright); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; font-size: 14.5px; }
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a {
  width: 36px; height: 36px; border: 1px solid #4a453a; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.social-row a:hover { border-color: var(--brass); }
.footer-bottom {
  border-top: 1px solid #332f27;
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: #7c7566;
}

/* ---------- Mobile nav ---------- */
@media (max-width: 820px) {
  .main-nav { position: fixed; inset: 72px 0 0 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 32px 24px; gap: 24px; transform: translateX(100%); transition: transform 0.25s ease; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 20px; }
  .menu-toggle { display: block; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

:focus-visible { outline: 2px solid var(--pole-red); outline-offset: 2px; }
