/* ---------------------------------------------------------------
   Commune Nuit Debout — Sébastien Marchal / Velvetyne Type Foundry
   SIL Open Font License 1.1 — see /fonts/OFL-CommuneNuitDebout.txt
   A condensed, curveless grotesque: signage character with the full
   punctuation, digit and accent coverage this page actually needs.
   Body copy uses the "Humanist" system stack (Gill Sans Nova, Calibri,
   Seravek) so it costs nothing to load.
   --------------------------------------------------------------- */
@font-face {
  font-family: "Commune Nuit Debout";
  src: url("/fonts/commune-nuit-debout.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: "Commune Nuit Debout", "Haettenschweiler", "Arial Narrow", sans-serif;
  --font-body: Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
}

:root {
  --ink: #161412;
  --ink-soft: #23201d;
  --ink-line: #322d28;
  --cream: #F7F3EC;
  --cream-deep: #EFE8DC;
  --paper: #FFFFFF;
  --gold: #C9963F;
  --gold-bright: #E0AE55;
  --muted: #6B635A;
  --muted-dark: #A79C8E;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 44px rgba(22, 20, 18, 0.10);
  --shadow-lift: 0 26px 60px rgba(22, 20, 18, 0.18);
  --ease: 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.7rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.22rem; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { max-width: 100%; }

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

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--ease), background var(--ease), color var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(201, 150, 63, 0.36); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--ink-soft); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(247, 243, 236, 0.34); color: var(--cream); }
.btn-ghost:hover { background: rgba(247, 243, 236, 0.1); transform: translateY(-2px); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  font-size: 0.83rem;
  padding: 9px 16px;
  letter-spacing: 0.02em;
}
.topbar a { color: var(--gold-bright); font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #5BC98B; margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(91, 201, 139, 0.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(91, 201, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 201, 139, 0); }
}

/* ---------- Header ---------- */
#header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 243, 236, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(22, 20, 18, 0.09);
  transition: box-shadow var(--ease);
}
#header.scrolled { box-shadow: 0 6px 26px rgba(22, 20, 18, 0.09); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 38px; height: 38px; flex: none; border-radius: 10px;
  background: var(--ink); color: var(--gold);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.28rem;
}
.logo-text {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.03em; font-size: 1.05rem; line-height: 1.05;
}
.logo-text em { display: block; font-style: normal; font-size: 0.68rem; letter-spacing: 0.3em; color: var(--muted); }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--muted); position: relative; padding: 4px 0;
  transition: color var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform var(--ease), opacity var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--cream); overflow: hidden; padding: clamp(64px, 9vw, 108px) 0 clamp(72px, 9vw, 116px); }
.hero-texture {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 82% 18%, rgba(201, 150, 63, 0.20), transparent 46%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.022) 0 2px, transparent 2px 9px);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .gold { color: var(--gold); }
.hero-desc { color: var(--muted-dark); font-size: 1.06rem; max-width: 30rem; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-proof { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--muted-dark); flex-wrap: wrap; }
.hero-proof strong { color: var(--cream); }
.stars { display: inline-flex; gap: 2px; }
.star { width: 17px; height: 17px; fill: var(--gold); }
.stars.small { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; }

/* Barber pole + hours card */
.hero-card-wrap { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 26px; }
.pole { width: 34px; flex: none; display: flex; flex-direction: column; align-items: center; }
.pole-cap { width: 34px; height: 16px; border-radius: 6px; background: linear-gradient(180deg, #d8d2c8, #8e887e); }
.pole-glass {
  width: 26px; height: 210px; overflow: hidden; position: relative;
  background: #fff; border-radius: 4px;
  box-shadow: inset -5px 0 10px rgba(0,0,0,0.28), inset 4px 0 8px rgba(255,255,255,0.6);
}
.pole-stripes {
  position: absolute; inset: -100% 0;
  background: repeating-linear-gradient(-45deg, #C1272D 0 12px, #fff 12px 24px, #1E5FA8 24px 36px, #fff 36px 48px);
  animation: poleSpin 5s linear infinite;
}
@keyframes poleSpin { to { transform: translateY(48px); } }

.hours-card {
  background: var(--cream); color: var(--ink);
  border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-lift); width: 100%; max-width: 320px;
}
.hours-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.hours-open { font-size: 0.86rem; color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 7px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2E9E63; flex: none; }
.hours-list { border-top: 1px solid rgba(22,20,18,0.1); margin-bottom: 18px; }
.hours-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; font-size: 0.87rem; border-bottom: 1px solid rgba(22,20,18,0.07);
}
.hours-list li.is-today { font-weight: 700; color: var(--gold); }
.hours-list li span:last-child { color: var(--muted); }
.hours-list li.is-today span:last-child { color: var(--gold); }
.hours-list.plain { border-top: 0; margin-top: 20px; }

/* ---------- Strip ---------- */
.strip { background: var(--gold); color: var(--ink); padding: 24px 0; }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.strip-item strong { display: block; font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; line-height: 1.1; }
.strip-item span { font-size: 0.82rem; opacity: 0.72; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-dark { background: var(--ink); color: var(--cream); }
.section-dark .section-sub, .section-dark p { color: var(--muted-dark); }
.section-cream { background: var(--cream-deep); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-sub { color: var(--muted); margin-top: 14px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative; background: var(--paper); border-radius: var(--radius-lg);
  padding: 30px 26px; border: 1px solid rgba(22,20,18,0.08);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(201,150,63,0.5); }
.service-card.featured { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.service-card.featured p { color: var(--muted-dark); }
.service-tag {
  position: absolute; top: -11px; left: 26px; background: var(--gold); color: var(--ink);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.68rem; font-weight: 600; padding: 4px 12px; border-radius: 999px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; flex: 1; }
.service-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(22,20,18,0.1); }
.service-card.featured .service-foot { border-top-color: rgba(247,243,236,0.16); }
.price { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; color: var(--gold); }
.dur { font-size: 0.82rem; color: var(--muted); }

/* ---------- Story ---------- */
.story-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.story-frame {
  background: linear-gradient(160deg, var(--ink-soft), #100e0c);
  border: 1px solid var(--ink-line); border-radius: var(--radius-lg);
  padding: 46px 34px; text-align: center;
}
.scissors { color: var(--gold); width: 60px; margin: 0 auto 26px; }
.story-quote { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.35; color: var(--cream) !important; text-transform: uppercase; }
.story-attr { margin-top: 16px; font-size: 0.85rem; color: var(--gold) !important; }
.story-content h2 { margin-bottom: 20px; }
.story-content p { margin-bottom: 16px; }
.check-list { margin-top: 26px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; font-size: 0.94rem; color: var(--muted-dark); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 9px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.barber { background: var(--paper); border-radius: var(--radius-lg); padding: 28px 22px; text-align: center; border: 1px solid rgba(22,20,18,0.08); transition: transform var(--ease), box-shadow var(--ease); }
.barber:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.barber-avatar {
  width: 82px; height: 82px; margin: 0 auto 18px; border-radius: 50%;
  background: linear-gradient(150deg, var(--ink), var(--ink-soft));
  display: grid; place-items: center; color: var(--gold);
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
  border: 2px solid var(--gold);
}
.barber-avatar::after { content: attr(data-initials); }
.barber h3 { font-size: 1.06rem; margin-bottom: 4px; }
.barber-role { font-size: 0.76rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; font-weight: 600; }
.barber-note { font-size: 0.88rem; color: var(--muted); }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { background: var(--paper); border-radius: var(--radius-lg); padding: 30px 26px; border: 1px solid rgba(22,20,18,0.07); }
.review p { margin: 14px 0 18px; font-size: 0.98rem; line-height: 1.6; }
.review footer { font-size: 0.82rem; color: var(--muted); font-weight: 600; }

/* ---------- Booking ---------- */
.book-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: start; }
.book-intro h2 { margin-bottom: 18px; }
.book-alt { display: grid; gap: 12px; margin-top: 30px; }
.book-alt-item {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--ink-soft); border: 1px solid var(--ink-line);
  border-radius: var(--radius); padding: 15px 20px; transition: border-color var(--ease), transform var(--ease);
}
.book-alt-item:hover { border-color: var(--gold); transform: translateX(4px); }
.ba-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-dark); }
.ba-value { font-family: var(--font-display); font-size: 1.08rem; color: var(--gold); }

.book-form { background: var(--cream); color: var(--ink); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lift); }
.form-row { margin-bottom: 18px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.book-form label { display: block; }
.book-form label > span, .field-label {
  display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--muted); margin-bottom: 7px;
}
.book-form input, .book-form select {
  width: 100%; font-family: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid rgba(22,20,18,0.14);
  border-radius: 10px; padding: 12px 14px; transition: border-color var(--ease), box-shadow var(--ease);
}
.book-form input:focus, .book-form select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,150,63,0.18);
}
.book-form input.invalid { border-color: #C1272D; box-shadow: 0 0 0 3px rgba(193,39,45,0.14); }
.chips { display: flex; gap: 9px; flex-wrap: wrap; }
.chip {
  font-family: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer;
  background: var(--paper); border: 1.5px solid rgba(22,20,18,0.14);
  border-radius: 999px; padding: 9px 18px; transition: all var(--ease); color: var(--muted);
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.form-note { font-size: 0.82rem; color: var(--muted); text-align: center; margin-top: 14px; }
.form-note.success { color: #1E7A4C; font-weight: 600; }

/* ---------- Visit ---------- */
.visit-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.visit-info h2 { margin-bottom: 18px; }
.visit-info address { font-style: normal; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.5; margin-bottom: 14px; }
.visit-note { color: var(--muted); font-size: 0.94rem; }

.visit-map {
  position: relative; height: 380px; border-radius: var(--radius-lg); overflow: hidden;
  background: #E4DED2; border: 1px solid rgba(22,20,18,0.1);
}
.map-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(22,20,18,0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(22,20,18,0.055) 1px, transparent 1px); background-size: 42px 42px; }
.map-street { position: absolute; left: -10%; right: -10%; top: 56%; height: 30px; background: #fff; transform: rotate(-6deg); box-shadow: 0 0 0 2px rgba(22,20,18,0.06); }
.map-street.cross { top: 0; bottom: 0; left: 62%; right: auto; width: 22px; height: auto; transform: rotate(9deg); }
.map-pin { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -100%); text-align: center; color: #C1272D; }
.map-pin svg { width: 44px; filter: drop-shadow(0 5px 8px rgba(0,0,0,0.28)); }
.map-pin span {
  display: block; background: var(--ink); color: var(--cream); font-size: 0.74rem;
  font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-top: 2px; letter-spacing: 0.06em;
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--muted-dark); padding: 60px 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-brand p { margin-top: 14px; font-size: 0.9rem; max-width: 20rem; }
.footer .logo-text { color: var(--cream); }
.footer .logo-text em { color: var(--muted-dark); }
.footer-col h4 { color: var(--cream); font-size: 0.88rem; letter-spacing: 0.12em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.9rem; padding: 5px 0; transition: color var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--ink-line); padding-top: 22px; font-size: 0.82rem;
}
.footer-credit a { color: var(--gold); }
.footer-credit a:hover { text-decoration: underline; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.45s cubic-bezier(0.2,0.8,0.3,1), transform 0.55s cubic-bezier(0.2,0.8,0.3,1); }
.reveal.visible { opacity: 1; transform: none; }
/* The rule under a section heading draws itself in rather than fading. */
.section-head { position: relative; }
.section-head.reveal::after {
  content: ''; position: absolute; left: 50%; bottom: -18px; height: 2px; width: 0;
  background: currentColor; opacity: 0.25; transform: translateX(-50%);
  transition: width 0.7s cubic-bezier(0.2,0.8,0.3,1) 0.15s;
}
.section-head.reveal.visible::after { width: 54px; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pole-stripes { animation: none; }
  .topbar-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-card-wrap { justify-content: flex-start; }
  .story-grid, .book-grid, .visit-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 0 0 auto; top: 74px;
    flex-direction: column; gap: 0;
    background: var(--cream); padding: 12px 24px 22px;
    border-bottom: 1px solid rgba(22,20,18,0.1);
    box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid rgba(22,20,18,0.07); font-size: 1rem; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .services-grid, .reviews-grid, .team-grid { grid-template-columns: 1fr; }
  .pole { display: none; }
  .hours-card { max-width: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .visit-map { height: 300px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 460px) {
  .container { padding: 0 18px; }
  .form-row.two { grid-template-columns: 1fr; }
  .book-form { padding: 24px 20px; }
  .topbar { font-size: 0.76rem; }
}

/* Alternate section opening: heading left, supporting line set beside it.
   Breaks the centred eyebrow/heading/subtitle rhythm repeating down the page. */
.section-head--left {
  text-align: left; max-width: none; margin-bottom: 46px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 14px 56px; align-items: end;
}
.section-head--left .eyebrow { grid-column: 1 / -1; margin-bottom: 2px; }
.section-head--left .section-sub { margin-top: 0; padding-bottom: 8px; }
.section-head--left.reveal::after { left: 0; transform: none; }
@media (max-width: 820px) {
  .section-head--left { grid-template-columns: 1fr; gap: 12px; }
}

/* Footer entries that name a page this demo does not contain are rendered as
   plain text, not links — nothing in the footer should look clickable and
   then do nothing. */
.footer-col span.footer-static {
  display: block;
  padding: 5px 0;
  cursor: default;
}
