/* Next Level Barber Studio — website UI kit styles */
@import url("colors_and_type.css");

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
img { max-width: 100%; display: block; }
button, a { font-family: inherit; }

/* ============= Promo bar ============= */
.promo-bar {
  background: var(--accent);
  color: var(--nl-black);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}
.promo-bar .marquee { display: inline-flex; gap: 28px; padding-left: 100%; animation: scroll 36s linear infinite; }
.promo-bar .marquee span { display: inline-flex; align-items: center; gap: 28px; }
.promo-bar .marquee span::after { content: "·"; opacity: 0.5; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ============= Header ============= */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,14,14,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header .inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
}
.header .brand { display: flex; align-items: center; gap: 12px; }
.header .brand img { height: 44px; }
.header .brand .word {
  font-family: var(--font-headline); font-size: 16px; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--fg-strong); white-space: nowrap;
}
.header nav { display: flex; gap: 28px; align-items: center; }
.header nav a {
  font-family: var(--font-sans); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 12px; color: var(--fg);
  text-decoration: none; cursor: pointer;
  transition: color var(--dur-base) var(--ease-out);
}
.header nav a:hover { color: var(--accent); }

/* ============= Buttons ============= */
.btn {
  font-family: var(--font-sans); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 13px; padding: 14px 26px; border-radius: var(--r-btn);
  border: 1px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  text-decoration: none;
}
.btn--primary { background: var(--accent); color: var(--fg-on-gold); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { background: var(--accent-press); transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--fg); color: var(--fg-on-cream); }
.btn--lg { padding: 18px 36px; font-size: 14px; }
.btn--sm { padding: 10px 18px; font-size: 12px; }
.btn--block { width: 100%; justify-content: center; }

/* ============= Subtle reveal animation ============= */
.reveal { opacity: 0; transform: translateY(14px); animation: reveal 900ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
}

/* ============= Hero ============= */
.hero {
  position: relative; min-height: 640px;
  background: url("assets/cut-classic-taper.jpg") center/cover;
  padding: 80px 0 96px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(14,14,14,0.96) 0%, rgba(14,14,14,0.55) 45%, rgba(14,14,14,0.7) 100%);
}
.hero .stack {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 0 32px;
}
.hero .eyebrow {
  font-family: var(--font-sans); font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  font-size: 12px; color: var(--accent); margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--font-headline);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95; letter-spacing: 0.04em;
  text-transform: uppercase; font-weight: 400; margin: 0 0 28px;
  color: var(--fg-strong);
}

/* Hero video — sized down, bordered, subtle gold corner ticks */
.hero-video {
  position: relative;
  width: min(720px, 100%);
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid rgba(212,160,41,0.45);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.6);
  overflow: hidden;
}
.hero-video wistia-player { display: block; width: 100%; height: 100%; }
.hero-video .corner {
  position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--accent); pointer-events: none; z-index: 3;
}
.hero-video .tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero-video .tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.hero-video .bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.hero-video .br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.hero .script-line {
  display: flex; align-items: center; gap: 18px;
  margin: 28px 0 0;
}
.hero .script-line .rule {
  display: block; height: 1px; width: 64px;
  background: linear-gradient(to right, transparent, var(--accent));
  transform-origin: right center;
  animation: ruleDraw 1.1s var(--ease-out) 700ms both;
}
.hero .script-line .rule:last-child {
  background: linear-gradient(to left, transparent, var(--accent));
  transform-origin: left center;
  animation-delay: 700ms;
}
@keyframes ruleDraw {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}
.hero .script-line .script {
  font-family: var(--font-script); color: var(--accent);
  font-size: 32px; line-height: 1; font-weight: 400;
}
.hero p.lead {
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  max-width: 540px; margin: 24px 0 28px; color: var(--fg);
}
.hero .actions { display: flex; gap: 14px; }

/* ============= Section ============= */
.section { padding: 96px 32px; max-width: 1280px; margin: 0 auto; }
.section.dark { background: var(--bg); }
.section.cream { background: var(--bg-inverse); color: var(--fg-on-cream); max-width: none; padding: 96px 32px; }
.section .head { text-align: center; margin-bottom: 56px; }
.section .head .eyebrow {
  font-family: var(--font-sans); font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase; font-size: 12px;
  color: var(--accent); margin: 0 0 12px;
}
.section .head h2 {
  font-family: var(--font-headline);
  font-size: clamp(40px, 6vw, 72px); line-height: 0.95; letter-spacing: 0.04em;
  text-transform: uppercase; margin: 0; font-weight: 400;
}
.section.cream .head h2 { color: var(--fg-on-cream); }
.gold-rule { display: flex; align-items: center; gap: 16px; justify-content: center; margin: 16px 0 24px; }
.gold-rule::before, .gold-rule::after { content: ""; height: 1px; background: var(--accent); flex: 1; max-width: 60px; }
.gold-rule span { font-family: var(--font-sans); font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; font-size: 11px; color: var(--accent); }

/* ============= Promise grid ============= */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.promise {
  background: var(--bg-elev); border: 1px solid var(--border);
  overflow: hidden;
}
.promise img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform var(--dur-slow) var(--ease-out); }
.promise:hover img { transform: scale(1.03); }
.promise .body { padding: 24px; }
.promise h3 {
  font-family: var(--font-sans); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 18px; margin: 0 0 8px; color: var(--fg-strong);
}
.promise p { font-size: 14px; color: var(--fg-muted); margin: 0; line-height: 1.55; }

/* ============= Barbers grid ============= */
.barbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 880px; margin: 0 auto; }
.barber {
  background: var(--bg-elev); border: 1px solid var(--border);
  overflow: hidden; transition: border-color var(--dur-base) var(--ease-out);
}
.barber:hover { border-color: var(--accent); }
.barber .photo { position: relative; }
.barber { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.barber .photo img { aspect-ratio: 1/1; object-fit: cover; width: 100%; height: 100%; transition: transform var(--dur-slow) var(--ease-out); }
.barber .body { justify-content: center; }
.barber:hover .photo img { transform: scale(1.04); }
.barber .body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.barber h3 {
  font-family: var(--font-headline); font-size: 28px; letter-spacing: 0.04em;
  text-transform: uppercase; margin: 0; font-weight: 400; color: var(--fg-strong);
}
.barber .specs { font-size: 12px; color: var(--fg-muted); margin: -4px 0 8px; letter-spacing: 0.04em; }
.barber .row { display: flex; gap: 8px; }
.barber .row .btn { flex: 1; padding: 12px 16px; font-size: 12px; justify-content: center; }

/* ============= Testimonial ============= */
.testimonials { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.tcard { background: var(--bg-elev); border: 1px solid var(--border); padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; }
.tcard .stars { color: var(--accent); letter-spacing: 4px; font-size: 14px; }
.tcard p { font-size: 15px; line-height: 1.55; color: var(--fg); margin: 0; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.tcard .who img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.tcard .who .n { font-family: var(--font-sans); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 0.05em; color: var(--fg-strong); }
.tcard .who .meta { font-size: 12px; color: var(--fg-muted); }

/* ============= Locations ============= */
.locs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.loc {
  background: var(--bg-elev); border: 1px solid var(--border);
  overflow: hidden; display: grid; grid-template-columns: 1fr 1fr;
}
.loc .info { padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.loc h3 { font-family: var(--font-headline); font-size: 44px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0; font-weight: 400; color: var(--fg-strong); }
.loc address { font-style: normal; font-size: 14px; line-height: 1.6; color: var(--fg-muted); }
.loc .hours { font-family: var(--font-sans); font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; color: var(--accent); }
.loc .map { background: #1a1a1a; min-height: 240px; position: relative; overflow: hidden; }
.loc .map iframe {
  width: 100%; height: 100%; min-height: 240px;
  border: 0; display: block;
  filter: grayscale(0.35) contrast(1.05) brightness(0.85);
}

/* ============= Booking modal ============= */
.modal-scrim {
  position: fixed; inset: 0; background: rgba(14,14,14,0.7);
  display: none; align-items: center; justify-content: center; z-index: 100;
  backdrop-filter: blur(6px);
}
.modal-scrim.open { display: flex; }
.modal {
  background: var(--bg-elev); border: 1px solid var(--border-strong);
  width: min(520px, 92vw); padding: 32px; box-shadow: var(--shadow-lg);
}
.modal h3 { font-family: var(--font-headline); font-size: 32px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 4px; font-weight: 400; color: var(--fg-strong); }
.modal .sub { font-size: 13px; color: var(--fg-muted); margin: 0 0 22px; }
.modal .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.modal label { font-family: var(--font-sans); font-weight: 700; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-muted); }
.modal input, .modal select {
  background: var(--bg); border: 1px solid var(--border-strong);
  color: var(--fg); font-family: var(--font-body); font-size: 14px;
  padding: 12px 14px; border-radius: var(--r-sm); outline: none;
}
.modal input:focus, .modal select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,160,41,0.2); }
.modal .actions { display: flex; gap: 10px; margin-top: 20px; }
.modal .actions .btn { flex: 1; justify-content: center; }
.modal .close { position: absolute; top: 18px; right: 18px; background: none; border: 0; color: var(--fg-muted); font-size: 22px; cursor: pointer; }

/* ============= Confirmation ============= */
.confirm {
  background: var(--bg-inverse); color: var(--fg-on-cream);
  border: 2px solid var(--accent); padding: 28px 28px;
  text-align: center;
}
.confirm h3 { font-family: var(--font-headline); font-size: 36px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 6px; font-weight: 400; }
.confirm p { font-size: 14px; margin: 4px 0; color: var(--fg-on-cream); }
.confirm .check { font-size: 38px; color: var(--accent); margin-bottom: 8px; }

/* ============= Footer ============= */
.footer {
  background: #050505; border-top: 1px solid var(--border);
  padding: 56px 32px 32px;
}
.footer .inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer h5 { font-family: var(--font-sans); font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.footer a, .footer p { font-size: 13px; color: var(--fg-muted); text-decoration: none; line-height: 1.8; display: block; }
.footer a:hover { color: var(--fg); }
.footer .brand img { height: 64px; margin-bottom: 14px; }
.footer .legal { max-width: 1280px; margin: 32px auto 0; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-subtle); }

/* ============= Mobile ============= */
@media (max-width: 768px) {

  /* Header — hide text nav, keep logo + call button */
  .header .inner { padding: 12px 16px; gap: 12px; }
  .header .brand .word { font-size: 12px; letter-spacing: 0.06em; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
  .header nav { gap: 0; }
  .header nav a:not(.btn) { display: none; }
  .header nav .btn { padding: 8px 12px; font-size: 11px; white-space: nowrap; }

  /* Hero */
  .hero { padding: 56px 0 72px; min-height: auto; }
  .hero .stack { padding: 0 20px; }
  .hero h1 { font-size: clamp(40px, 11vw, 64px); margin-bottom: 20px; }
  .hero .actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero .actions .btn { width: 100%; justify-content: center; text-align: center; }

  /* Sections */
  .section { padding: 64px 16px; }
  .section .head { margin-bottom: 36px; }
  .section .head h2 { font-size: clamp(32px, 9vw, 52px); }

  /* Promise grid — single column */
  .promise-grid { grid-template-columns: 1fr; gap: 16px; }
  .promise img { aspect-ratio: 16/7; }

  /* Barbers — 2 col outer, stack photo/info vertically inside */
  .barbers { grid-template-columns: 1fr 1fr; gap: 12px; max-width: 100%; }
  .barber { grid-template-columns: 1fr; }
  .barber .photo img { aspect-ratio: 4/3; height: auto; }
  .barber .body { padding: 12px 10px 14px; gap: 8px; }
  .barber h3 { font-size: 18px; }
  .barber .row .btn { font-size: 11px; padding: 10px 6px; border-radius: var(--r-lg); }

  /* Testimonials — single column */
  .testimonials { grid-template-columns: 1fr; gap: 16px; }

  /* Locations — single column, stack map below */
  .locs { grid-template-columns: 1fr; gap: 16px; }
  .loc { grid-template-columns: 1fr; }
  .loc .info { padding: 24px 20px; }
  .loc h3 { font-size: 32px; }
  .loc .map { min-height: 220px; }
  .loc .map iframe { min-height: 220px; }

  /* Footer — 2×2 grid */
  .footer { padding: 40px 20px 28px; }
  .footer .inner { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer .brand { grid-column: 1 / -1; }
  .footer .legal { flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 400px) {
  /* Very small phones — barbers go single column */
  .barbers { grid-template-columns: 1fr; }
  .barber { grid-template-columns: 1fr 1fr; }
  .barber .photo img { aspect-ratio: 1/1; }
}
