/* =========================================================
   Astor Place Hairstylists — Redesign
   Palette: barber-pole red/navy/cream, tabloid-headline type
   ========================================================= */

:root {
  --red: #c41230;
  --red-dark: #97001f;
  --navy: #1a2a52;
  --navy-dark: #101b38;
  --cream: #f5f0e6;
  --cream-2: #ece4d3;
  --ink: #141414;
  --ink-soft: #3a352e;
  --gold: #e8c35c;
  --white: #fffdf8;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --radius: 3px;
  --shadow-tape: 0 2px 6px rgba(20, 15, 5, 0.25), 0 8px 20px rgba(20, 15, 5, 0.12);
  --max-width: 1180px;

  --dur: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0s; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6em;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.05;
  margin-bottom: 0.5em;
}

.section {
  padding: 70px 0;
}
.section--dark {
  background: var(--navy);
  color: var(--cream);
}
.section--dark .section-title { color: var(--white); }
.section--dark .eyebrow { color: var(--gold); }

.section-lede {
  max-width: 62ch;
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.section--dark .section-lede { color: #cfd6e6; }

/* ---------- Barber pole divider (signature motif) ---------- */
.stripe-divider {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red) 0 18px,
    var(--white) 18px 36px,
    var(--navy) 36px 54px
  );
  background-size: 76.4px 100%;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
}

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 4px solid var(--red);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  color: var(--white);
  text-decoration: none;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.wordmark-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(
    from 45deg,
    var(--red) 0 12.5%, var(--white) 12.5% 25%,
    var(--navy) 25% 37.5%, var(--white) 37.5% 50%,
    var(--red) 50% 62.5%, var(--white) 62.5% 75%,
    var(--navy) 75% 87.5%, var(--white) 87.5% 100%
  );
  border: 2px solid var(--white);
}
.wordmark small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 600;
}

.main-nav {
  display: none;
}
.main-nav ul {
  display: flex;
  gap: 28px;
}
.main-nav a {
  text-decoration: none;
  color: var(--cream);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 0 var(--red-dark);
}
.btn--primary:hover { background: #d61638; }
.btn--primary:active { transform: translateY(0); box-shadow: 0 1px 0 var(--red-dark); }
.btn--ghost {
  background: transparent;
  border-color: var(--cream);
  color: var(--cream);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); }
.btn--dark {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 0 var(--navy-dark);
}
.btn--dark:hover { background: #223769; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 2px solid var(--cream);
  border-radius: var(--radius);
  padding: 0;
  align-items: center;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--cream);
  display: block;
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav { display: block; }
}

.mobile-nav {
  display: none;
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul {
  padding: 10px 20px 20px;
  display: flex;
  flex-direction: column;
}
.mobile-nav a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  color: var(--cream);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 900px) {
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,20,35,0.35) 0%, rgba(12,14,26,0.55) 45%, rgba(10,10,18,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 0 56px;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  transform: rotate(-2deg);
  box-shadow: var(--shadow-tape);
}
.hero h1 {
  font-size: clamp(2.6rem, 9vw, 5.6rem);
  text-transform: uppercase;
  line-height: 0.98;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.hero h1 span {
  display: block;
  color: var(--gold);
}
.hero-tagline {
  margin-top: 18px;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  max-width: 46ch;
  color: var(--cream);
  font-weight: 400;
}
.hero-ctas {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-meta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.92rem;
  color: #d8dbe6;
}
.hero-meta strong { color: var(--white); font-family: var(--font-display); font-weight: 400; letter-spacing: 0.02em; }

/* ---------- Story ---------- */
.story-grid {
  display: grid;
  gap: 40px;
  margin-top: 40px;
}
@media (min-width: 900px) {
  .story-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
}
.story-photos {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-auto-rows: min-content;
  gap: 16px 16px;
  align-items: start;
}
.story-photos figure { margin: 0; }
.story-photos .tall { grid-row: span 2; }
.story-photos .tall img { aspect-ratio: 3 / 4; }
.story-photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-tape);
}
.story-photos figcaption {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 6px;
  margin-bottom: 2px;
}

.pull-quote {
  border-left: 6px solid var(--red);
  padding: 6px 0 6px 22px;
  margin: 30px 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--navy);
  text-transform: uppercase;
  line-height: 1.25;
}
.pull-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  text-transform: none;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* ---------- Wall of Fame (signature collage) ---------- */
.wall-of-fame {
  background: var(--navy);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.04), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.04), transparent 40%);
}
.wall-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 18px;
}
@media (min-width: 640px) {
  .wall-grid { grid-template-columns: repeat(3, 1fr); gap: 34px 24px; }
}
@media (min-width: 1000px) {
  .wall-grid { grid-template-columns: repeat(4, 1fr); }
}

.wall-item {
  position: relative;
  background: var(--white);
  padding: 10px 10px 34px;
  border-radius: 2px;
  box-shadow: var(--shadow-tape);
  transition: transform var(--dur) ease;
}
.wall-item:nth-child(4n+1) { transform: rotate(-3deg); }
.wall-item:nth-child(4n+2) { transform: rotate(2deg); }
.wall-item:nth-child(4n+3) { transform: rotate(-1.5deg); }
.wall-item:nth-child(4n+4) { transform: rotate(2.5deg); }
.wall-item:hover,
.wall-item:focus-within { transform: rotate(0deg) scale(1.04); z-index: 5; }

.wall-item::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 46px;
  height: 20px;
  background: rgba(232, 195, 92, 0.85);
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}
.wall-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
}
.wall-item figcaption {
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}
.wall-item button.lightbox-trigger {
  position: absolute;
  inset: 0;
  z-index: 2; /* sits above the <img> regardless of DOM order, so clicks always reach it */
  background: transparent;
  border: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.wall-note {
  margin-top: 30px;
  font-size: 0.92rem;
  color: #c3cadd;
  max-width: 60ch;
}

/* ---------- Barbers ---------- */
.barbers-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (min-width: 640px) {
  .barbers-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
}
@media (min-width: 1000px) {
  .barbers-grid { grid-template-columns: repeat(4, 1fr); gap: 30px; }
}
.barber-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(20,15,5,0.12), 0 6px 16px rgba(20,15,5,0.06);
  display: flex;
  flex-direction: column;
}
.barber-photo-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cream-2);
}
.barber-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.barber-card h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  color: var(--navy);
  padding: 14px 14px 0;
}
.barber-card .badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  font-weight: 700;
  margin: 6px 14px 0;
}
.barber-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 8px 14px 16px;
  margin: 0;
  flex: 1;
}

/* ---------- Press ---------- */
.press-feature {
  margin-top: 40px;
  display: grid;
  gap: 30px;
}
@media (min-width: 900px) {
  .press-feature { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
}
.press-feature img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-tape);
  transform: rotate(-1.5deg);
}
.press-feature-copy .eyebrow { color: var(--red); }
.press-feature-copy h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 14px;
  line-height: 1.15;
}

.press-grid {
  margin-top: 50px;
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .press-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1050px) {
  .press-grid { grid-template-columns: repeat(3, 1fr); }
}
.press-card {
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.press-card img { aspect-ratio: 16/10; object-fit: cover; }
.press-card .press-card-body { padding: 18px 18px 22px; }
.press-card h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.2;
}
.press-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
}

.press-mentions {
  margin-top: 40px;
  display: grid;
  gap: 16px;
}
@media (min-width: 700px) {
  .press-mentions { grid-template-columns: repeat(3, 1fr); }
}
.press-mention {
  background: rgba(255,255,255,0.65);
  border-left: 4px solid var(--red);
  padding: 16px 18px;
  border-radius: 2px;
}
.press-mention strong {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.press-mention p { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }

/* ---------- Visit ---------- */
.visit {
  background: var(--white);
  border-top: 4px solid var(--navy);
  border-bottom: 4px solid var(--navy);
}
.visit-grid {
  margin-top: 40px;
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .visit-grid { grid-template-columns: 1fr 1fr; }
}
.visit-facts dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 20px;
  margin-top: 10px;
}
.visit-facts dt {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--red);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding-top: 2px;
}
.visit-facts dd {
  margin: 0;
  color: var(--ink);
}
.visit-facts a.phone-link {
  text-decoration: none;
  border-bottom: 1px dotted var(--ink-soft);
}
.visit-facts a.phone-link:hover { border-color: var(--red); color: var(--red); }

.visit-cta {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.visit-map {
  border: 0;
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  filter: grayscale(0.15) contrast(1.05);
}

.walkin-banner {
  margin-top: 44px;
  background: var(--red);
  color: var(--white);
  padding: 26px 28px;
  border-radius: var(--radius);
  text-align: center;
  transform: rotate(-0.6deg);
  box-shadow: var(--shadow-tape);
}
.walkin-banner p {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin: 0;
  line-height: 1.3;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #b9c0d4;
  padding: 46px 0 30px;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  gap: 30px;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; color: #b9c0d4; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #8b93ab;
}

/* ---------- Scroll reveal ----------
   Content is visible by default (no-JS / JS-not-yet-run state).
   Only once JS confirms IntersectionObserver support does it add
   `js-reveal` to <html> and arm the hidden/animate-in behavior, so
   there is no window where real content can be stuck invisible. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) ease, transform var(--dur) ease;
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 16, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 84vh;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-caption {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--cream);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: 2px solid var(--cream);
  color: var(--cream);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.1); }

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