/* ==========================================================================
   Union 22 Barbershop — site styles
   One stylesheet for every page. Colors and fonts live in :root below,
   so a brand tweak is a one-line change.
   ========================================================================== */

:root {
  /* Brand colors (from the logo and the shop) */
  --black: #0F0E0C;
  --black-2: #171613;      /* alternate dark section */
  --line: #2A2722;         /* borders on dark */
  --dots: #4A453C;         /* dotted price leaders */
  --gold: #C9A24B;
  --gold-hover: #E2C37A;
  --gold-dark: #7A5A12;    /* gold text on cream (passes contrast) */
  --green: #1E3A2D;
  --green-line: #4E6B5C;
  --cream: #F2ECE0;
  --cream-line: #CFC6B4;
  --text-soft: #D6CFC1;    /* body copy on dark */
  --text-muted: #A9A190;   /* small print on dark */
  --text-dim: #8E8676;
  --text-on-cream: #3B372F;
  --pole-red: #B3261E;
  --pole-blue: #1F4E9C;

  /* Type */
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --max: 1240px;
  --gutter: 20px;
  --section-y: 96px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: var(--gold-hover); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--black); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Type helpers ---------- */
.display {
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  font-size: clamp(40px, 6vw, 64px);
}
.display--xl { font-size: clamp(52px, 8vw, 96px); line-height: 0.92; }
.display--lg { font-size: clamp(44px, 7vw, 80px); line-height: 0.92; }
.display--md { font-size: clamp(36px, 5vw, 56px); }
.display--sm { font-size: clamp(32px, 5vw, 52px); }
.gold { color: var(--gold); }

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.lead { font-size: 19px; color: var(--text-soft); max-width: 640px; }
.copy { font-size: 18px; color: var(--text-soft); }
.small { font-size: 14px; color: var(--text-muted); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack--sm { gap: 12px; }
.stack--lg { gap: 24px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 28px;
  font-family: var(--display); font-weight: 900; font-size: 18px;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--gold); border-radius: 2px;
  background: var(--gold); color: var(--black);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--black); }
.btn--lg { font-size: 20px; padding: 16px 32px; min-height: 52px; }
.btn--sm { font-size: 18px; padding: 11px 24px; min-height: 44px; }
.btn--outline { background: transparent; color: var(--cream); border-color: var(--cream); font-weight: 800; }
.btn--outline:hover { background: var(--cream); color: var(--black); border-color: var(--cream); }
.btn--outline-gold { background: transparent; color: var(--gold); font-weight: 800; }
.btn--outline-gold:hover { background: var(--gold); color: var(--black); }
.btn--dark { background: var(--black); border-color: var(--black); color: var(--cream); }
.btn--dark:hover { background: var(--green); border-color: var(--green); color: var(--cream); }
.self-start { align-self: flex-start; }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; align-self: flex-start;
}

/* ---------- Top bar + header ---------- */
.topbar { background: var(--green); font-size: 13px; letter-spacing: 0.02em; }
.topbar .container {
  display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: center;
  padding-top: 10px; padding-bottom: 10px;
}
.topbar a { color: var(--cream); text-decoration: none; }
.topbar__where { display: flex; align-items: center; gap: 8px; }
.topbar__right { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.topbar__phone { font-weight: 700; }

.site-header { border-bottom: 1px solid var(--line); background: var(--black); position: relative; }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-top: 14px; padding-bottom: 14px;
}
.logo { display: block; line-height: 0; flex-shrink: 0; }
.logo img { height: 64px; width: auto; }

.nav {
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--display); font-weight: 800; font-size: 18px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nav a { color: var(--cream); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--gold); }
.nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  background: transparent; border: 2px solid var(--line); border-radius: 2px;
  color: var(--cream); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 860px) {
  .logo img { height: 52px; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { padding: 11px 18px; font-size: 16px; min-height: 48px; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
    flex-direction: column; gap: 0;
    background: var(--black); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    font-size: 24px;
  }
  .nav-open .nav { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
}
@media (max-width: 420px) {
  .topbar__where span { font-size: 12px; }
  .logo img { height: 46px; }
}

/* ---------- Barber-pole stripe ---------- */
.pole {
  height: 8px;
  background: repeating-linear-gradient(-45deg,
    var(--pole-red) 0 14px, var(--cream) 14px 28px,
    var(--pole-blue) 28px 42px, var(--cream) 42px 56px);
}
.pole--thin { height: 6px; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--tight { padding: 88px 0; }
.section--alt { background: var(--black-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--green { background: var(--green); }
.section--cream { background: var(--cream); color: var(--black); }
.section--cream .eyebrow { color: var(--gold-dark); }
.section--cream .copy, .section--cream .lead { color: var(--text-on-cream); }
.section--cream a { color: var(--gold-dark); }
.section--gold { background: var(--gold); color: var(--black); padding: 56px 0; }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.section-head > .stack { max-width: 640px; }

.split {
  display: grid; gap: 56px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.split--top { align-items: start; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Photo with offset shadow block */
.photo { width: 100%; object-fit: cover; }
.photo--square { aspect-ratio: 1 / 1; }
.photo--54 { aspect-ratio: 5 / 4; }
.photo--45 { aspect-ratio: 4 / 5; }
.photo--43 { aspect-ratio: 4 / 3; }
.photo--34 { aspect-ratio: 3 / 4; }
.shadow-green { box-shadow: 16px 16px 0 var(--green); }
.shadow-gold { box-shadow: 16px 16px 0 var(--gold); }

/* ---------- Home hero ---------- */
.hero {
  min-height: 680px; display: flex; align-items: center;
  background-image:
    linear-gradient(90deg, rgba(15,14,12,.94) 0%, rgba(15,14,12,.78) 45%, rgba(15,14,12,.35) 100%),
    url(../images/shop-interior-panorama.jpg);
  background-size: cover; background-position: center;
}
.hero .container { width: 100%; padding-top: 96px; padding-bottom: 96px; }
.hero__inner { max-width: 660px; display: flex; flex-direction: column; gap: 24px; }
.hero__kicker { display: flex; align-items: center; gap: 14px; }
.hero__kicker::before { content: ""; width: 40px; height: 2px; background: var(--gold); flex-shrink: 0; }
.hero__kicker h1 { font: inherit; }
.hero__lead { font-size: 19px; color: var(--text-soft); max-width: 540px; }
.rating { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; color: var(--text-soft); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 18px; }
.rating strong { color: var(--cream); }
@media (max-width: 600px) {
  .hero { min-height: 0; }
  .hero .container { padding-top: 64px; padding-bottom: 64px; }
  .hero { background-image:
    linear-gradient(180deg, rgba(15,14,12,.80) 0%, rgba(15,14,12,.92) 100%),
    url(../images/shop-interior-panorama.jpg); }
}

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--green); }
.page-hero .container { padding-top: 80px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.page-hero h1 { max-width: 920px; }
.breadcrumb { font-size: 14px; color: var(--text-soft); }
.breadcrumb ol { list-style: none; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; }
.breadcrumb a { color: var(--text-soft); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; }
.chips a {
  color: var(--cream); text-decoration: none; border: 1px solid var(--green-line);
  padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center;
}
.chips a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.stat__num { font-family: var(--display); font-weight: 900; font-size: 48px; line-height: 1; color: var(--gold); }
.stat__label { font-size: 14px; color: var(--text-soft); }

/* ---------- Price menu ---------- */
.menu { border-top: 1px solid var(--line); }
.menu--2col {
  display: grid; column-gap: 64px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
}
.menu-item {
  display: flex; align-items: baseline; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.menu-item__text { display: flex; flex-direction: column; gap: 2px; }
.menu-item__name {
  font-family: var(--display); font-weight: 800; font-size: 22px;
  letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.15;
}
.menu-item__meta { font-size: 14px; color: var(--text-muted); }
.menu-item__dots { flex-grow: 1; min-width: 24px; border-bottom: 2px dotted var(--dots); transform: translateY(-6px); }
.menu-item__price { font-family: var(--display); font-weight: 900; font-size: 26px; color: var(--gold); white-space: nowrap; }
.menu-item__price--word { font-size: 22px; }

.section--cream .menu { border-top-color: var(--cream-line); }
.section--cream .menu-item { border-bottom-color: var(--cream-line); }
.section--cream .menu-item__meta { color: #5C564A; }
.section--cream .menu-item__dots { border-bottom-color: #B3A88F; }
.section--cream .menu-item__price { color: var(--gold-dark); }
.section--green .menu { border-top-color: var(--green-line); }
.section--green .menu-item { border-bottom-color: var(--green-line); }
.section--green .menu-item__meta { color: #C4CEC6; }
.section--green .menu-item__dots { border-bottom-color: #6E8A7B; }

.menu-footer { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 40px; }

/* ---------- Barbers N Bourbon combo cards ---------- */
.combos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 420px) { .combos { grid-template-columns: 1fr; } }
.combo { border: 2px solid var(--gold); padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; }
.combo--green { background: var(--green); }
.combo__name { font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.1; }
.combo__price { font-family: var(--display); font-weight: 900; font-size: 56px; line-height: 1; color: var(--gold); }
.combo__desc { font-size: 15px; color: var(--text-soft); }
.badge {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 10px;
  border: 1px dashed var(--gold); padding: 10px 16px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
}

/* ---------- Barber feature ---------- */
.role { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.tags li { border: 1px solid var(--dots); padding: 6px 12px; font-size: 14px; }

/* ---------- Photo rows + gallery ---------- */
.photo-row { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo-row--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.photo-row figure { display: flex; flex-direction: column; gap: 10px; }
.photo-row figcaption { font-size: 14px; color: var(--text-muted); }
@media (max-width: 600px) { .photo-row:not(.photo-row--auto) { grid-template-columns: 1fr 1fr; } .photo-row:not(.photo-row--auto) > :nth-child(3) { display: none; } }

.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 260px), 1fr)); }
.gallery figure { position: relative; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px;
  background: linear-gradient(transparent, rgba(15,14,12,.85));
  font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream);
}
.insta { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; min-height: 44px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-top: 36px; }
.review { background: var(--black); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.review blockquote { font-size: 17px; color: var(--text-soft); }
.review figcaption { font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Hours ---------- */
.hours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; color: var(--text-soft); max-width: 380px; }
.hours--table { gap: 0; font-size: 17px; color: var(--cream); }
.hours--table span { padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours--table .closed { color: var(--text-muted); }
.hours .today { color: var(--gold); font-weight: 700; }

.map { width: 100%; min-height: 420px; border: 0; display: block; background: var(--black-2); }
.map--sm { min-height: 380px; }
.panel { background: var(--black-2); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.h-sub { font-family: var(--display); font-weight: 900; font-size: 32px; text-transform: uppercase; line-height: 1; }
.h-sub--gold { color: var(--gold); }
.h-card { font-family: var(--display); font-weight: 900; font-size: 26px; text-transform: uppercase; line-height: 1.05; }
.phone-big { color: var(--cream); font-size: 22px; font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.steps li { background: var(--black-2); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.steps__num { font-family: var(--display); font-weight: 900; font-size: 56px; line-height: 1; color: var(--gold); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; min-height: 44px; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 0.03em; text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 30px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 22px; color: var(--text-soft); max-width: 720px; }
.narrow { max-width: 900px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); border-top: 1px solid var(--line); line-height: 1.6; }
.footer-grid {
  display: grid; gap: 40px; padding-top: 56px; padding-bottom: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.footer-grid > div { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-logo { height: 84px; width: auto; align-self: flex-start; margin-bottom: 8px; }
.footer-title { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.site-footer address, .site-footer .soft { color: var(--text-soft); }
.site-footer .links a { color: var(--text-soft); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.site-footer .links a:hover { color: var(--gold); }
.footer-phone { color: var(--cream); font-weight: 700; text-decoration: none; }
.footer-hours { max-width: 260px; gap: 2px 16px; }
.legal { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 28px; font-size: 13px; color: var(--text-dim); }

/* ---------- Mobile sticky booking bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 2fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(15,14,12,.96); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { min-height: 48px; padding: 10px 12px; font-size: 18px; }
  body { padding-bottom: 76px; }
}

/* ---------- Booksy widget host ----------
   The official Booksy script draws its own button. We keep that button off-screen
   and send clicks to it from our own "Book" buttons (see js/main.js).
   Do not add overflow:clip, transform or filter here: those would trap Booksy's popup. */
.booksy-host { position: absolute; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; align-items: center; }

/* ---------- Forms (contact + careers) ---------- */
.form-card { background: var(--black-2); border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); }
.form { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 700; }
.field .opt { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-weight: 400; color: var(--cream);
  background: var(--black); border: 1px solid var(--dots); border-radius: 2px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 2px rgba(201,162,75,.35); }
.form-note { font-size: 14px; color: var(--text-muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.form-error { padding: 12px 14px; background: #3A1512; border: 1px solid var(--pole-red); color: #F6D7D2; font-size: 15px; }
.form-error a { color: #FFE3DE; font-weight: 700; }
.form-thanks { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.form-thanks:focus { outline: none; }
.link-btn { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-weight: 700; color: var(--gold); text-decoration: underline; cursor: pointer; }
.perks { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.perks li { border-top: 2px solid var(--gold); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.perks h3 { font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; }
.perks p { color: var(--text-soft); font-size: 16px; }
.hiring-pill { color: var(--gold) !important; font-weight: 700; }
