/* ==========================================================================
   The Barber Guys — style.css
   Dark-first, no framework, no build step. Tokens → base → layout → blocks.
   Palette and type follow BRAND.md.
   ========================================================================== */

/* ----------------------------------------------------------------- tokens */
:root {
  --ink:        #111315;
  --charcoal:   #2A2D31;
  --charcoal-2: #1B1E21;
  --off-white:  #F4F4F2;
  --white:      #FFFFFF;
  --steel:      #8A9096;
  --rule:       #3A3E43;
  --green:      #2E3B33;
  --red:        #C4262E;

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --wrap:   1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 6px;

  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4: clamp(2.75rem, 1.9rem + 4.2vw, 5.25rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

img { max-width: 100%; height: auto; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--white); color: var(--ink);
  padding: .75rem 1.25rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 1rem;
}

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--rule);
  background: color-mix(in srgb, var(--ink) 96%, transparent);
}

.nav-inner {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .9rem 0;
}

/* brand block: logo, with the email tucked underneath (template-site pattern) */
.nav-brand { display: flex; flex-direction: column; gap: .3rem; }

.nav-logo {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--white);
}
/* NOTE: logo-mark.svg is loaded via <img>, so it is a separate document and
   CANNOT inherit `color` from this page — `currentColor` inside it would fall
   back to black and vanish on the dark header. The mark therefore carries its
   own `color="#F4F4F2"` presentation attribute. Do not remove it. If the SVG
   is ever inlined into the HTML instead, a CSS `color` rule will override that
   attribute as normal. */
.nav-logo img { width: 46px; height: 46px; }

.nav-wordmark {
  display: flex; flex-direction: column;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.15;
}
.nav-wordmark em {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--steel);
  margin-top: .15rem;
}

.header-email {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; color: var(--steel);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.header-email:hover { color: var(--off-white); }
.header-email svg {
  width: 14px; height: 14px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* nav */
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  display: block;
  padding: .55rem .8rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--steel);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--off-white); background: var(--charcoal); }
.nav-links a.active { color: var(--white); }

.nav-cta a {
  background: var(--white);
  color: var(--ink) !important;
  font-weight: 600;
  margin-left: .5rem;
  padding-inline: 1.15rem;
}
.nav-cta a:hover { background: var(--off-white); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--off-white);
  border-radius: 2px; margin: 4px 0;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: min(92svh, 860px);
  display: grid; align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, var(--ink) 8%, color-mix(in srgb, var(--ink) 72%, transparent) 48%, color-mix(in srgb, var(--ink) 30%, transparent) 100%),
    linear-gradient(to top, var(--ink) 2%, transparent 40%);
}
.hero-inner { padding: 7rem 0 6rem; max-width: 46rem; }

.hero h1 { margin-bottom: .35em; }

.lede {
  font-size: var(--step-1);
  color: color-mix(in srgb, var(--off-white) 82%, transparent);
  max-width: 34ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 2.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.6rem;
  font-family: var(--font-display);
  font-size: .92rem; font-weight: 700;
  letter-spacing: .03em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--white); color: var(--ink); }
.btn-primary:hover { background: var(--off-white); }
.btn-ghost { border-color: var(--rule); color: var(--off-white); }
.btn-ghost:hover { border-color: var(--off-white); background: color-mix(in srgb, var(--white) 6%, transparent); }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}
.hero-facts li {
  display: flex; flex-direction: column;
  padding-right: 2.25rem; margin-right: 2.25rem;
  border-right: 1px solid var(--rule);
}
.hero-facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-facts strong {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 800; line-height: 1.1;
}
.hero-facts span { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }

.hero-scroll {
  position: absolute; bottom: 1.75rem; left: 50%; translate: -50% 0;
  width: 22px; height: 34px;
  border: 1px solid var(--rule); border-radius: 12px;
}
.hero-scroll span {
  position: absolute; top: 7px; left: 50%; translate: -50% 0;
  width: 2px; height: 6px; border-radius: 2px; background: var(--steel);
  animation: scrollHint 1.8s var(--ease) infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60%      { transform: translateY(10px); opacity: 0; }
}

/* ------------------------------------------------------------------ strip */
.strip { background: var(--white); color: var(--ink); }
.strip-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem;
  padding: 1.1rem 0;
}
.strip-label {
  margin: 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
}
.strip-list { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.strip-list li {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 500; font-size: .92rem;
}
.strip-list li::before {
  content: ''; width: 10px; height: 10px; flex: none;
  background: currentColor;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

/* --------------------------------------------------------------- sections */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-alt { background: var(--charcoal-2); }

.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-sub { color: var(--steel); font-size: var(--step-1); margin: 0; }
.section-sub a { color: var(--off-white); }

/* ------------------------------------------------------------------ cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.card {
  background: var(--ink);
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column;
  transition: background .25s var(--ease);
}
.section-alt .card { background: var(--charcoal-2); }
.card:hover { background: var(--charcoal); }

.card-icon { width: 30px; height: 30px; margin-bottom: 1.5rem; color: var(--steel); }
.card-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.card h3 { margin-bottom: .3rem; }
.card-note { color: var(--steel); font-size: .85rem; margin: 0 0 1.5rem; }
.card-price {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 800; line-height: 1;
}
.card-price small { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); display: block; margin-bottom: .35rem; }

/* ---------------------------------------------------------------- feature */
.feature { background: var(--ink); }
.feature-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}
.feature-media img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
.feature-body p { color: color-mix(in srgb, var(--off-white) 80%, transparent); }
.feature-body .btn { margin-top: 1rem; }

/* ---------------------------------------------------------------- pricing */
.price-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.price-group h3 {
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--steel);
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: .4rem;
}
.price-row {
  display: flex; align-items: baseline; gap: .75rem;
  padding: .85rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent);
}
.price-row:last-child { border-bottom: 0; }
.price-name { font-weight: 500; }
.price-name em {
  font-style: normal; color: var(--steel); font-size: .82rem; margin-left: .4rem;
}
.price-dots {
  flex: 1;
  border-bottom: 1px dotted var(--rule);
  translate: 0 -4px;
}
.price-value {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.price-footnote {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.price-footnote p { margin: 0; color: var(--steel); }
.price-footnote strong { color: var(--off-white); }

.pay-list { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.pay-list img {
  height: 26px; width: auto;
  opacity: .72;
  filter: brightness(0) invert(1);
  transition: opacity .2s var(--ease);
}
.pay-list li:hover img { opacity: 1; }

/* ---------------------------------------------------------------- gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
  gap: 10px;
}
.gallery-item {
  position: relative;
  padding: 0; border: 0; margin: 0;
  background: var(--charcoal);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 3 / 4;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease), opacity .3s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--ink) 55%, transparent), transparent 45%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.gallery-item:hover::after { opacity: 1; }

/* ------------------------------------------------------------------ about */
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-body p { color: color-mix(in srgb, var(--off-white) 80%, transparent); }

.tick-list { margin-top: 1.75rem; display: grid; gap: .7rem; }
.tick-list li { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; }
.tick-list li::before {
  content: ''; flex: none; margin-top: .45rem;
  width: 9px; height: 9px; background: var(--white);
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.about-media { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; align-items: start; }
.about-media img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.about-media img:first-child { aspect-ratio: 4 / 5; }
.about-media img:last-child  { aspect-ratio: 3 / 5; margin-top: 2.5rem; }

/* ------------------------------------------------------------------ visit */
.visit-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.visit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 3rem;
  margin-top: 2.5rem;
}
.visit-block h3 {
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--steel);
  margin-bottom: .85rem;
}
.visit-block address { font-style: normal; line-height: 1.7; }
.visit-block p { margin-bottom: .35rem; }
.visit-block a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.visit-block a:hover { border-bottom-color: var(--off-white); }

.link-arrow { display: inline-block; margin-top: .85rem; font-weight: 500; font-size: .9rem; }
.link-arrow::after { content: ' →'; }

.hours { margin: 0; display: grid; grid-template-columns: auto; gap: .35rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent); padding-bottom: .35rem; }
.hours dt { color: var(--steel); font-size: .9rem; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; font-size: .9rem; }

.visit-media img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

/* ----------------------------------------------------------------- footer */
.site-footer {
  background: var(--charcoal-2);
  border-top: 1px solid var(--rule);
  padding: 3rem 0 2.5rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.75rem;
}
.footer-brand { display: flex; align-items: center; gap: .7rem; color: var(--white); }
.footer-brand img { width: 42px; height: 42px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav a { font-size: .88rem; color: var(--steel); text-decoration: none; }
.footer-nav a:hover { color: var(--off-white); }
.footer-legal { width: 100%; margin: 0; padding-top: 1.75rem; border-top: 1px solid var(--rule); font-size: .78rem; color: var(--steel); }

/* --------------------------------------------------------------- lightbox */
.lightbox {
  border: 0; padding: 0;
  max-width: 100vw; max-height: 100vh;
  width: 100%; height: 100%;
  background: color-mix(in srgb, var(--ink) 96%, transparent);
  display: none;
  place-items: center;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: color-mix(in srgb, #000 82%, transparent); }
.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 82vh;
  width: auto; border-radius: var(--radius);
}
.lb-close, .lb-nav {
  position: absolute;
  background: color-mix(in srgb, var(--white) 8%, transparent);
  border: 1px solid var(--rule);
  color: var(--off-white);
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s var(--ease);
}
.lb-close:hover, .lb-nav:hover { background: color-mix(in srgb, var(--white) 18%, transparent); }
.lb-close { top: 1.25rem; right: 1.25rem; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; }
.lb-nav { top: 50%; translate: 0 -50%; width: 48px; height: 48px; font-size: 2rem; line-height: 1; }
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }
.lb-caption {
  position: absolute; bottom: 1.5rem; left: 50%; translate: -50% 0;
  margin: 0; max-width: 80vw; text-align: center;
  font-size: .85rem; color: var(--steel);
}

/* ---------------------------------------------------------------- reveals */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .feature-inner,
  .about-inner,
  .visit-inner { grid-template-columns: 1fr; }
  .feature-media { order: -1; }
  .feature-media img { aspect-ratio: 16 / 10; }
  .about-media img:last-child { margin-top: 0; }
  .visit-media img { aspect-ratio: 16 / 10; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 80px; }
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1.5rem;
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: .9rem .25rem; font-size: 1rem; border-radius: 0; }
  .nav-cta a { margin: .75rem 0 0; text-align: center; padding: .95rem; }

  .header-email { font-size: .72rem; }
  .hero-inner { padding: 5rem 0 5.5rem; }
  .hero-facts li { padding-right: 1.35rem; margin-right: 1.35rem; }
}

@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 520px) {
  .nav-logo img { width: 38px; height: 38px; }
  .nav-wordmark { font-size: .9rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .price-footnote { flex-direction: column; align-items: flex-start; }
  .lb-nav { width: 40px; height: 40px; }
  .lb-prev { left: .5rem; }
  .lb-next { right: .5rem; }
}

/* --------------------------------------------------------- accessibility */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
