/* ============================================================
   Mr. Joseph's Barbershop — tokens
   ============================================================ */
:root {
  --ink: #141414;
  --cream: #f6f1e7;
  --cream-shadow: #e8e2d3;
  --highlight: #faf8f2;
  --gold: #b6873f;
  --gold-deep: #96692a;
  --red: #7c1f1f;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --radius: 4px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 2.75rem;
  --space-5: 4.5rem;
  --space-6: 7rem;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--highlight);
  padding: 0.75em 1.25em;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

/* ============================================================
   Reveal-on-scroll (progressive enhancement)
   Content is visible by default; JS adds .is-visible for the
   transition. If JS never runs, nothing is ever hidden.
   ============================================================ */
.reveal {
  opacity: 1;
  transform: none;
}
.js-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Eyebrow / labels
   ============================================================ */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.75em;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 1em;
}
.section-title.center { text-align: center; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  min-height: 44px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn-gold {
  background: var(--gold);
  color: var(--highlight);
}
.btn-gold:hover { background: var(--gold-deep); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--highlight);
}
.btn-large {
  padding: 1em 2em;
  font-size: 1.05rem;
}

/* ============================================================
   Pole-rule signature element (pure CSS, no images)
   ============================================================ */
.pole-rule {
  height: 10px;
  width: 140px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red) 0 10px,
    var(--highlight) 10px 20px,
    var(--gold) 20px 30px
  );
  margin: 1.75rem 0;
}
.pole-rule-full {
  height: 8px;
  width: 100%;
  border-radius: 0;
  background: repeating-linear-gradient(
    -45deg,
    var(--red) 0 10px,
    var(--highlight) 10px 20px,
    var(--gold) 20px 30px
  );
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 231, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--cream-shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.6rem;
  gap: 1rem;
}
.brand {
  display: block;
  flex-shrink: 0;
}
.brand-mark {
  height: 58px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  order: 3;
}
.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.site-nav ul {
  display: flex;
  gap: 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:not(.btn) {
  text-decoration: none;
  padding: 0.25em 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover {
  border-color: var(--gold);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-phone {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--gold-deep); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--highlight);
    border-bottom: 1px solid var(--cream-shadow);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.5rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  .nav-cta {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.75rem;
  }
  .nav-cta .btn { width: 100%; }
}

/* No-JS fallback: always show nav so it's usable without JS */
.no-js .site-nav { display: flex; }
@media (max-width: 860px) {
  .no-js .site-nav {
    position: static;
    border: none;
    padding: 1rem 0 0;
  }
  .no-js .nav-toggle { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-block: clamp(3.5rem, 10vw, 7rem) clamp(3rem, 8vw, 5.5rem);
  background:
    radial-gradient(ellipse at top right, var(--cream-shadow) 0%, transparent 55%),
    var(--cream);
}
.hero-inner {
  max-width: 780px;
}
.hero-title {
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.ink-gold { color: var(--gold-deep); }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 46ch;
  color: #3a352c;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ============================================================
   About
   ============================================================ */
.about {
  padding-block: var(--space-5);
}
.about-inner {
  max-width: 760px;
}
.about-copy p {
  font-size: 1.05rem;
}
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
  border-left: 4px solid var(--gold);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

/* ============================================================
   Services / price board
   ============================================================ */
.services {
  padding-block: var(--space-5);
  background: var(--cream-shadow);
}
.price-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 880px;
  margin-inline: auto;
}
@media (min-width: 700px) {
  .price-board {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}
.price-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-block: 0.85rem;
  border-bottom: 1px dashed rgba(20,20,20,0.2);
}
.price-list li:first-child { padding-top: 0; }
.price-name {
  font-weight: 600;
  white-space: nowrap;
}
.price-leader {
  flex: 1;
  border-bottom: 1px dotted rgba(20,20,20,0.35);
  transform: translateY(-4px);
}
.price-amt {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--gold-deep);
  white-space: nowrap;
}
.services-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================================
   Reviews
   ============================================================ */
.reviews {
  padding-block: var(--space-5);
}
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  max-width: 1080px;
  margin-inline: auto;
}
@media (min-width: 780px) {
  .review-grid { grid-template-columns: repeat(3, 1fr); }
}
.review-card {
  margin: 0;
  background: var(--highlight);
  border: 1px solid var(--cream-shadow);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.review-card p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #2c2822;
}
.review-card footer {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-deep);
  margin-top: auto;
}

/* ============================================================
   Visit
   ============================================================ */
.visit {
  padding-block: var(--space-5);
  background: var(--cream-shadow);
}
.visit-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 800px) {
  .visit-inner { grid-template-columns: 1.4fr 1fr; }
}
.visit-info address {
  font-style: normal;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}
.visit-info address a { text-decoration: none; }
.visit-info address a:hover { color: var(--gold-deep); }
.visit-line { font-size: 1.05rem; }
.visit-line a { text-decoration: none; }
.visit-line a:hover { color: var(--gold-deep); }
.hours {
  margin-top: 2rem;
}
.hours h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.hours dl div {
  display: flex;
  justify-content: space-between;
  max-width: 260px;
  padding-block: 0.3rem;
  border-bottom: 1px dashed rgba(20,20,20,0.15);
}
.hours dt, .hours dd { margin: 0; font-weight: 500; }
.social-links {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  font-weight: 600;
}
.social-links a { text-decoration: underline; text-underline-offset: 3px; }
.social-links a:hover { color: var(--gold-deep); }

.visit-cta {
  background: var(--ink);
  color: var(--highlight);
  border-radius: var(--radius);
  padding: 2.25rem;
  text-align: center;
  align-self: center;
}
.visit-cta-lead {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--highlight);
  padding-block: var(--space-4);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.footer-mark {
  height: 32px;
  width: auto;
}
.footer-copy {
  font-size: 0.85rem;
  color: rgba(250,248,242,0.65);
  margin: 0;
}
.back-to-top {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--highlight);
  border-bottom: 1px solid rgba(250,248,242,0.4);
}
.back-to-top:hover { border-color: var(--gold); color: var(--gold); }
