/* =============================================================
   Cutman Barbershop — Redesign
   Plain dependency-free CSS. Mobile-first with real breakpoints.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Color system: dark charcoal ground, warm brass accent, deep red secondary */
  --bg: #14120f;
  --bg-alt: #1c1915;
  --bg-panel: #201c17;
  --line: rgba(245, 241, 234, 0.1);
  --line-strong: rgba(245, 241, 234, 0.18);
  --text: #f4efe6;
  --text-muted: #bdb2a0;
  --text-faint: #8a8073;
  --accent: #c79a4b;
  --accent-bright: #e0b563;
  --accent-deep: #8a2f2f;
  --focus: #e0b563;

  --font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 2px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .02em; }
p { margin: 0 0 1em; }
button { font-family: inherit; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #14120f;
  padding: .75em 1.25em;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  left: 1em;
  top: 1em;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--accent);
  margin-bottom: .75rem;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); text-transform: uppercase; }
h3 { font-size: 1.25rem; text-transform: uppercase; }
.lede { font-size: 1.1rem; color: var(--text-muted); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .92rem;
  padding: .9em 1.7em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn-primary {
  background: var(--accent);
  color: #16130f;
}
.btn-primary:hover { background: var(--accent-bright); }
.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-bright); }
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(20, 18, 15, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 0;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
}
.brand img { height: 36px; width: 36px; object-fit: contain; }
.brand .brand-text small { display: block; font-size: .55rem; letter-spacing: .2em; color: var(--accent); font-weight: 400; }

.nav-toggle {
  position: relative;
  z-index: 495; /* stay above .primary-nav (490) so the button remains visible/clickable to close the open drawer */
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 82vw);
  height: 100vh;
  background: var(--bg-panel);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .25s ease;
  overflow-y: auto;
  padding: 5.5rem 1.75rem 2rem;
  z-index: 490;
}
.primary-nav.is-open { transform: translateX(0); }
.primary-nav ul { display: flex; flex-direction: column; gap: 1.4rem; }
.primary-nav a {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1.05rem;
  color: var(--text-muted);
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--accent-bright); }
.primary-nav .nav-cta { margin-top: 1rem; }

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 480;
}
.nav-scrim.is-open { opacity: 1; pointer-events: auto; }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-actions .btn-primary { display: none; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    transform: none;
    padding: 0;
    overflow: visible;
  }
  .primary-nav ul { flex-direction: row; align-items: center; gap: 2rem; }
  .primary-nav a { font-size: .88rem; }
  .primary-nav .nav-cta { display: none; }
  .header-actions .btn-primary { display: inline-flex; }
  .nav-scrim { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(20,18,15,.35) 0%, rgba(14,12,10,.92) 88%), var(--bg);
  background-size: cover;
  background-position: center;
  color: var(--text);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: .55;
  filter: grayscale(35%);
}
.hero-inner { position: relative; padding-bottom: 4rem; padding-top: 8rem; }
.hero-tagline { max-width: 640px; font-size: 1.15rem; color: var(--text-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }

.page-hero {
  position: relative;
  padding: 7.5rem 0 3.5rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { display: block; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--line-strong); }
.card h3 { color: var(--accent-bright); margin-bottom: .6rem; }
.card p:last-child { margin-bottom: 0; }

.photo-card { overflow: hidden; padding: 0; }
.photo-card img { width: 100%; height: 280px; object-fit: cover; filter: grayscale(15%); }
.photo-card .photo-card-body { padding: 1.5rem; }

/* ---------- Feature split ---------- */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .split.reverse .split-media { order: 2; }
}
.split-media img {
  width: 100%;
  border-radius: var(--radius);
  filter: grayscale(20%);
  border: 1px solid var(--line);
}

/* ---------- Services table ---------- */
.service-list { border-top: 1px solid var(--line); margin-top: 1rem; }
.service-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.service-row .code {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: .2rem;
}
.service-row h3 { margin-bottom: .25rem; }
.service-meta { color: var(--text-faint); font-size: .9rem; }
.service-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent-bright);
  white-space: nowrap;
}

/* ---------- Location cards ---------- */
.location-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.location-card img { width: 100%; height: 220px; object-fit: cover; filter: grayscale(15%); }
.location-card .location-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.location-card address { font-style: normal; color: var(--text-muted); margin-bottom: .5rem; }
.location-card .phone { color: var(--accent-bright); font-weight: 600; display: block; margin-bottom: 1rem; }
.location-card .btn { margin-top: auto; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.hours-table td { padding: .3rem 0; color: var(--text-muted); border-bottom: 1px dashed var(--line); }
.hours-table td:last-child { text-align: right; color: var(--text); }

/* ---------- Barber cards ---------- */
.barber-card { display: flex; flex-direction: column; }
.barber-card .name { font-family: var(--font-display); font-size: 1.15rem; text-transform: uppercase; color: var(--text); margin-bottom: .15rem; }
.barber-card .loc { color: var(--accent); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; display: block; }
.tag-new {
  display: block;
  width: fit-content; /* block forces its own line even when the parent isn't a flex column (e.g. .photo-card-body); fit-content keeps the pill sized to its text */
  background: rgba(199,154,75,.15);
  color: var(--accent-bright);
  border: 1px solid rgba(199,154,75,.4);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .25em .6em;
  border-radius: var(--radius);
  margin-bottom: .85rem;
}

/* ---------- Note / callout ---------- */
.note {
  background: rgba(199,154,75,.08);
  border: 1px solid rgba(199,154,75,.35);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  color: var(--text-muted);
  font-size: .92rem;
  margin: 1.5rem 0;
}
.note strong { color: var(--accent-bright); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--bg-panel), var(--bg-alt));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta-band h2 { margin-bottom: .75rem; }
.cta-band p { color: var(--text-muted); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1.1fr .9fr; } }
.contact-list dt { font-family: var(--font-display); color: var(--accent); text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; margin-top: 1.25rem; }
.contact-list dt:first-child { margin-top: 0; }
.contact-list dd { margin: .25rem 0 0; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f0d0b;
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: var(--text); font-size: .85rem; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-grid ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-grid a:hover { color: var(--accent-bright); }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { max-width: 320px; font-size: .92rem; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  font-size: .8rem;
  color: var(--text-faint);
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* Demo hosting fix (Snyder Creative Studio, 2026-09-16): the closed off-canvas
   drawer is translated 100% to the right, which extends the page's scrollable
   width on phones. Clip horizontal overflow at the root so the page never
   scrolls sideways. `clip` doesn't create a scroll container; `hidden` is the
   fallback for older engines. */
html, body { overflow-x: hidden; overflow-x: clip; }
