/* ==========================================================================
   Paul Molé Barber Shop — Design tokens
   ========================================================================== */
:root {
  --ink: #1c1712;
  --wood: #4a2f1f;
  --wood-dark: #362214;
  --parchment: #f2e9da;
  --parchment-dim: #e8dcc6;
  --brass: #a9782f;
  --brass-light: #c99a4a;
  --brass-text: #7d5620; /* darker brass — meets 4.5:1 on parchment for small/bold labels */
  --pine: #1f4a3a;
  --pole-red: #8c2a2a;
  --pole-white: #ece3d2;
  --pole-blue: #26415a;

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

  --max-width: 1180px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 3px;
  --shadow-soft: 0 12px 32px rgba(28, 23, 18, 0.18);
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
}

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

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

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-5) var(--space-3);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass);
  color: var(--ink);
  padding: 0.75em 1.25em;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin: 0 0 var(--space-2);
}
.eyebrow-light { color: var(--brass-light); }

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin-bottom: var(--space-3);
  max-width: 18ch;
}
.section-title-light { color: var(--parchment); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.75em 1.5em;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-brass {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}
.btn-brass:hover { background: var(--brass-light); border-color: var(--brass-light); }

.btn-ghost {
  background: transparent;
  color: var(--parchment);
  border-color: rgba(242, 233, 218, 0.55);
}
.btn-ghost:hover { border-color: var(--parchment); background: rgba(242, 233, 218, 0.08); }

.btn-lg { padding: 0.9em 1.9em; font-size: 1rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 23, 18, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(169, 120, 47, 0.35);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand { display: block; line-height: 0; }
.brand-logo {
  height: 48px;
  width: auto;
}

.nav-panel {
  display: flex;
  align-items: center;
  flex: 1;
  margin-left: var(--space-3);
}

.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: var(--space-4); }
.main-nav a {
  color: var(--parchment);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.4em 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { border-color: var(--brass); color: var(--brass-light); }

.header-cta { margin-left: auto; }

.nav-check { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: var(--space-2);
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--parchment);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--wood-dark);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,23,18,0.35) 0%, rgba(28,23,18,0.35) 40%, rgba(20,15,10,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-5) var(--space-3) var(--space-5);
  color: var(--parchment);
  width: 100%;
}
.hero-headline {
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  color: var(--parchment);
  margin-bottom: var(--space-2);
}
.hero-copy {
  max-width: 46ch;
  font-size: 1.1rem;
  color: var(--parchment-dim);
  margin-bottom: var(--space-3);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wood-dark);
  background: var(--brass-light);
  padding: 0.4em 0.9em;
  border-radius: 999px;
  margin: 0;
}

/* ==========================================================================
   Barber pole divider (signature element)
   ========================================================================== */
.pole-divider {
  height: 14px;
  width: 100%;
  background-image: repeating-linear-gradient(
    45deg,
    var(--pole-red) 0 22px,
    var(--pole-white) 22px 44px,
    var(--pole-blue) 44px 66px,
    var(--pole-white) 66px 88px
  );
  background-size: 124px 124px;
  animation: pole-drift 14s linear infinite;
}
@keyframes pole-drift {
  from { background-position: 0 0; }
  to { background-position: 124px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pole-divider { animation: none; }
}

/* ==========================================================================
   Story
   ========================================================================== */
.story { background: var(--parchment); }

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  color: var(--wood);
  max-width: 34ch;
  line-height: 1.35;
  margin: var(--space-3) 0 var(--space-4);
  padding-left: var(--space-3);
  border-left: 3px solid var(--brass);
}
.pull-quote-alt {
  margin-top: var(--space-5);
  margin-bottom: 0;
  max-width: 42ch;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-5);
  align-items: start;
  margin-top: var(--space-4);
}

.story-entry {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(74, 47, 31, 0.15);
  margin-bottom: var(--space-4);
}
.story-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.story-year {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: 0.5em;
}
.story-entry p:not(.story-year) { color: var(--ink); }

.story-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  position: sticky;
  top: 6rem;
}
.story-img-main {
  grid-column: 1 / -1;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.story-inset {
  margin: 0;
}
.story-inset img {
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}
.story-inset figcaption {
  font-size: 0.78rem;
  color: var(--wood);
  opacity: 0.75;
  margin-top: 0.4em;
  font-style: italic;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { background: var(--parchment-dim); }

.services-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-5);
  align-items: start;
  margin-top: var(--space-4);
}

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.service-card {
  background: var(--parchment);
  border: 1px solid rgba(74, 47, 31, 0.14);
  border-radius: var(--radius);
  padding: var(--space-3);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
  border-color: var(--brass);
  transform: translateY(-2px);
}
.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-2);
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5em;
  color: var(--wood);
}
.service-card p {
  font-size: 0.92rem;
  color: var(--ink);
}
.service-addons {
  font-size: 0.82rem;
  color: var(--brass-text);
  font-weight: 500;
}

.services-media {
  display: grid;
  gap: var(--space-2);
}
.services-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.services-media-small { aspect-ratio: 1 / 1; }

.services-note {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(74, 47, 31, 0.15);
  font-style: italic;
  color: var(--wood);
  max-width: 60ch;
}

/* ==========================================================================
   Visit
   ========================================================================== */
.visit {
  background: var(--wood-dark);
  color: var(--parchment);
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-5);
  align-items: center;
}
.visit-line { font-size: 1.05rem; margin-bottom: 0.4em; }
.visit-line a { text-decoration: none; border-bottom: 1px solid var(--brass); }
.visit-line a:hover { color: var(--brass-light); }

.hours-table {
  margin: var(--space-3) 0;
  border-collapse: collapse;
  width: 100%;
  max-width: 380px;
}
.hours-table caption {
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--brass-light);
  margin-bottom: 0.6em;
}
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.45em 0;
  border-bottom: 1px solid rgba(242, 233, 218, 0.15);
  font-weight: 400;
  font-size: 0.95rem;
}
.hours-table th { color: var(--parchment-dim); font-weight: 500; }

.visit-note {
  font-size: 0.9rem;
  color: var(--parchment-dim);
  margin-bottom: var(--space-3);
  font-style: italic;
}

.visit-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
  filter: sepia(12%) saturate(85%);
}
.visit-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--parchment-dim);
  padding: var(--space-4) var(--space-3);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-4);
  align-items: start;
}
.footer-logo {
  height: 56px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}
.footer-nav a { text-decoration: none; color: var(--parchment-dim); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--brass-light); }
.footer-info { font-size: 0.88rem; text-align: right; }
.footer-info p { margin-bottom: 0.35em; }
.footer-info a { text-decoration: none; color: var(--parchment-dim); }
.footer-info a:hover { color: var(--brass-light); }
.footer-copy {
  grid-column: 1 / -1;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(242, 233, 218, 0.1);
  font-size: 0.8rem;
  opacity: 0.7;
  text-align: center;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .story-grid, .services-layout, .visit-grid {
    grid-template-columns: 1fr;
  }
  .story-media { position: static; }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-info { text-align: center; }
}

@media (max-width: 720px) {
  .nav-panel { display: none; }
  .nav-toggle { display: flex; }

  /* No-JS baseline: the hidden checkbox drives the menu via :checked.
     JS (main.js) progressively enhances this with aria-state updates
     and auto-close-on-link-click, but the menu fully works without it. */
  .nav-check:checked ~ .nav-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--ink);
    padding: var(--space-3);
    border-bottom: 1px solid rgba(169,120,47,0.35);
  }
  .nav-check:checked ~ .nav-panel .main-nav ul {
    flex-direction: column;
    gap: var(--space-2);
  }
  .nav-check:checked ~ .nav-panel .header-cta {
    margin-left: 0;
  }
  .nav-check:checked ~ .nav-panel .header-cta .btn { width: 100%; }

  .hero { min-height: 100vh; }
  .service-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section-inner { padding: var(--space-4) var(--space-2); }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
