/* ============================================================
   Damian Barber — bespoke barbershop one-pager
   Aesthetic: charcoal/near-black, warm tobacco/wood, barber-pole
   red accent + chrome. Oswald (condensed display) + Inter (text).
   ============================================================ */

:root {
  --bg:        #0e0d0c;   /* near-black charcoal */
  --bg-2:      #15110f;   /* warm dark surface  */
  --surface:   #1c1714;   /* card / panel       */
  --line:      #2c241f;   /* hairline border    */
  --wood:      #3a2c22;   /* tobacco / wood tone */
  --text:      #f1ece6;   /* warm off-white     */
  --muted:     #b3a89d;   /* muted warm grey    */
  --faint:     #7d736a;
  --red:       #c0392b;   /* barber-pole red    */
  --red-bright:#e04434;
  --chrome:    #cdd2d6;   /* steel / chrome     */
  --gold:      #c8a35b;   /* warm brass accent  */

  --maxw: 1120px;
  --pad: clamp(1.1rem, 4vw, 2.4rem);
  --r: 4px;

  --f-display: 'Oswald', 'Arial Narrow', sans-serif;
  --f-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow-line::before {
  content: "";
  width: 30px; height: 2px;
  background: var(--red);
  display: inline-block;
}
.pole {
  width: 11px; height: 11px; border-radius: 50%;
  background: repeating-linear-gradient(45deg, var(--red) 0 4px, #fff 4px 8px);
  display: inline-block; flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn-accent {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-accent:hover { background: var(--red-bright); border-color: var(--red-bright); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(241,236,230,.28);
}
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14,13,12,0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, padding .25s ease;
}
.site-header.scrolled {
  background: rgba(14,13,12,0.94);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.15rem;
  transition: padding .25s ease;
}
.site-header.scrolled .header-inner { padding-block: 0.7rem; }

.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-mark {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand-sub {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-top: 0.28rem;
  padding-left: 0.1rem;
}

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .18s ease;
  position: relative;
}
.nav a:not(.nav-cta):hover { color: var(--text); }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--red);
  transition: width .22s ease;
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  color: #fff !important;
  background: var(--red);
  padding: 0.55rem 1.05rem;
  border-radius: var(--r);
  letter-spacing: 0.1em;
}
.nav-cta:hover { background: var(--red-bright); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--text);
  transition: transform .25s ease, opacity .25s ease;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('/images/hero.jpg') center 22% / cover no-repeat;
  filter: grayscale(0.18) contrast(1.04) brightness(0.62);
  transform: scale(1.04);
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(14,13,12,0.95) 0%, rgba(14,13,12,0.78) 42%, rgba(14,13,12,0.30) 78%, rgba(14,13,12,0.55) 100%),
    linear-gradient(to top, rgba(14,13,12,0.92) 0%, transparent 38%);
}
.hero-inner { position: relative; z-index: 2; padding-block: 6rem; }
.hero-copy { max-width: 660px; }
.hero h1 {
  font-size: clamp(3.4rem, 12vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0.4rem 0 1.4rem;
}
.hero h1 .h1-line2 {
  color: var(--red-bright);
  -webkit-text-stroke: 0;
}
.hero-lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text);
  max-width: 52ch;
  margin: 0 0 2rem;
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2rem; }
.hero-meta {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}
/* barber-pole stripe at hero foot */
.stripe {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  height: 6px;
  background: repeating-linear-gradient(115deg,
     var(--red) 0 14px, #f4f1ee 14px 28px, #1d3a8a 28px 42px, #f4f1ee 42px 56px);
  opacity: 0.92;
}

/* ============ SECTIONS ============ */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.about { background: var(--bg-2); }
.gallery-section { background: var(--bg); }
.services { background: var(--bg-2); }
.contact { background: var(--bg); }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 5.5vw, 3.2rem); margin-bottom: 0.6rem; }
.section-sub { color: var(--muted); margin: 0.6rem 0 0; font-size: 1.02rem; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.about-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.about-body .lead {
  font-size: 1.2rem;
  color: var(--text);
  margin-top: 0;
}
.about-body p { color: var(--muted); }
.about-body p + p { margin-top: 1rem; }

.marks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.mark {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.8rem 1.5rem;
  position: relative;
}
.mark::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--red);
  border-radius: var(--r) 0 0 var(--r);
}
.mark-icon {
  font-size: 1.5rem; color: var(--gold);
  display: block; margin-bottom: 0.7rem;
}
.mark h3 { font-size: 1.4rem; margin-bottom: 0.4rem; letter-spacing: 0.05em; }
.mark p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  outline: none;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover, .card:focus-visible { transform: translateY(-4px); border-color: var(--red); }
.card:focus-visible { box-shadow: 0 0 0 2px var(--red); }
.card-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #000;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease, filter .3s ease;
  filter: grayscale(0.1) contrast(1.02);
}
.card:hover .card-media img { transform: scale(1.05); filter: none; }
.card-logo .card-media { background: #0a0a0a; }
.card-logo .card-media img { object-fit: contain; padding: 8%; filter: none; }
.card figcaption {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
}
.gallery-foot { text-align: center; margin-top: 2.4rem; color: var(--muted); }
.gallery-foot a { color: var(--red-bright); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.gallery-foot a:hover { color: var(--text); }

/* ---------- services ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.svc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.9rem 1.6rem;
  position: relative;
  transition: border-color .2s ease, transform .2s ease;
}
.svc:hover { border-color: var(--red); transform: translateY(-3px); }
.svc-num {
  font-family: var(--f-display);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--red-bright);
  display: block;
  margin-bottom: 0.8rem;
}
.svc h3 { font-size: 1.45rem; margin-bottom: 0.5rem; letter-spacing: 0.04em; }
.svc p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.6rem, 5vw, 4rem);
  align-items: start;
}
.contact-info h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.8rem; }
.contact-lede { color: var(--muted); max-width: 48ch; margin: 0 0 2rem; }
.contact-details { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-details li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.contact-details li:last-child { border-bottom: 1px solid var(--line); }
.cd-label {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--faint);
}
.cd-value { color: var(--text); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hours-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 2rem 1.8rem;
  position: relative;
  overflow: hidden;
}
.hc-pole {
  position: absolute; top: 0; left: 0; width: 5px; height: 100%;
  background: repeating-linear-gradient(180deg,
     var(--red) 0 10px, #f4f1ee 10px 20px);
  opacity: .9;
}
.hours-card h3 {
  font-size: 1.5rem; margin-bottom: 1.2rem; letter-spacing: 0.06em;
  padding-left: 0.5rem;
}
.hc-list { list-style: none; padding: 0 0 0 0.5rem; margin: 0; }
.hc-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.hc-list li span:first-child { color: var(--muted); }
.hc-list li span:last-child { font-family: var(--f-display); letter-spacing: 0.06em; color: var(--text); }
.hc-list li.hc-closed span:last-child { color: var(--faint); }
.hc-addr {
  padding-left: 0.5rem; margin: 1.2rem 0 0;
  font-family: var(--f-display); letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 0.82rem; color: var(--gold);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 6vw, 4rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .brand-mark { font-size: 1.7rem; }
.footer-brand .brand-sub { color: var(--red-bright); }
.footer-col p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.95rem; }
.footer-col a { color: var(--muted); transition: color .18s ease; }
.footer-col a:hover { color: var(--red-bright); }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  border-top: 1px solid var(--line);
  padding-block: 1.4rem;
  font-size: 0.82rem;
  color: var(--faint);
  font-family: var(--f-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============ STICKY MOBILE CTA ============ */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 0.95rem 1rem;
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.4);
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.mc-pole {
  width: 9px; height: 9px; border-radius: 50%;
  background: repeating-linear-gradient(45deg, #fff 0 3px, var(--red-bright) 3px 6px);
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(255,255,255,.5);
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,7,6,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lb-inner { margin: 0; max-width: 90vw; max-height: 90vh; text-align: center; }
.lb-inner img {
  max-width: 90vw; max-height: 78vh;
  border-radius: var(--r);
  border: 1px solid var(--line);
  margin-inline: auto;
}
.lb-cap {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1rem;
}
.lb-close, .lb-nav {
  position: absolute;
  background: rgba(28,23,20,0.85);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s ease, border-color .18s ease;
}
.lb-close:hover, .lb-nav:hover { background: var(--red); border-color: var(--red); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card-media img, .btn, .svc, .mark, .card { transition: none !important; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .marks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(80vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    background: var(--bg-2);
    border-left: 1px solid var(--line);
    padding: 2rem var(--pad);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 55;
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.15rem; }
  .nav-cta { width: 100%; justify-content: center; }
  .nav-toggle { display: flex; z-index: 56; }
  .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); }

  .hero { min-height: 88vh; }
  .hero-inner { padding-block: 4.5rem; }
  .contact-details li { grid-template-columns: 1fr; gap: 0.2rem; }

  .mobile-cta { display: flex; }
  body { padding-bottom: 3.4rem; }
  .lb-nav { width: 42px; height: 42px; }
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
}

@media (max-width: 460px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .svc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-sub { letter-spacing: 0.32em; }
}
