/* Eagle Rock Barber Shop — skill-e house v1.13 */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito-var.woff2?v=1') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  src: url('fonts/rubik-var.woff2?v=1') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Palette ----------
   cream  #F7F2E8  card stock + shop walls (ground)
   ink    #26231F  single dark hue
   red    #A2312E  card script + awning stripes
   blue   #31497E  card banner + pole stripe
   brass  #B8862B  lit pole lamp glow (small accents only, never text)
   action #0F7D4B  deep neon green from the Est. 1958 window sign (CTAs only)
--------------------------------- */
:root {
  --cream: #F7F2E8;
  --card: #FFFDF8;
  --line: #E7DEC9;
  --ink: #26231F;
  --muted: #6B655A;
  --red: #A2312E;
  --blue: #31497E;
  --brass: #B8862B;
  --action: #0F7D4B;
  --band-text: #F7F2E8;
  --band-muted: #CFC7B6;
  --radius: 14px;
  --display: 'Nunito', 'Avenir Next', 'Segoe UI', sans-serif;
  --body: 'Rubik', 'Helvetica Neue', Arial, sans-serif;
}

* { 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(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

section { scroll-margin-top: 84px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.btn--primary {
  background: var(--action);
  color: #fff;
}
.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 232, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.btn--header {
  min-height: 44px;
  padding: 9px 22px;
}

/* ---------- Hero ---------- */
.hero { padding: 44px 0 26px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}
h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.15rem);
  letter-spacing: -0.01em;
}
.subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 26px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.hours-status {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 1.05rem;
  margin: 0 0 4px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  margin-top: 8px;
}
.dot--open { background: var(--brass); }
.dot--closed { background: var(--red); }
.hours-mini {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.hours-mini div {
  display: flex;
  gap: 12px;
  padding: 1px 0;
}
.hours-mini dt {
  width: 72px;
  flex: none;
}
.hours-mini dd { margin: 0; }
.hero-photo {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(38, 35, 31, 0.16);
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 22%;
}

/* Signature element: the barber-pole stripe (their lit pole + card logo) */
.pole-stripe {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red) 0 14px,
    var(--cream) 14px 22px,
    var(--blue) 22px 36px,
    var(--cream) 36px 44px
  );
}

/* ---------- Proof strip (quiet) ---------- */
.proof { padding: 44px 0 10px; }
.proof-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.proof blockquote { margin: 0; }
.proof blockquote p {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.32rem;
  line-height: 1.4;
  margin: 0 0 12px;
}
.proof blockquote footer {
  color: var(--muted);
  font-size: 0.95rem;
}
.proof-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px;
}
.proof-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Sections ---------- */
.section { padding: 54px 0; }
.section h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
  margin-bottom: 26px;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }
.icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  color: var(--blue);
  margin-bottom: 14px;
}
.icon svg { width: 100%; height: 100%; }

/* ---------- How it works ---------- */
.how-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 38px 34px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.how-panel h2 { margin-bottom: 16px; }
.how-panel p { margin: 0 0 16px; }
.how-panel .btn { margin-top: 8px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.gallery-quote {
  background: var(--red);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  align-items: center;
}
.gallery-quote blockquote { margin: 0; }
.gallery-quote p {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.4;
  margin: 0 0 10px;
}
.gallery-quote footer { font-size: 0.92rem; opacity: 0.9; }

/* ---------- Reviews ---------- */
.review-card blockquote { margin: 0; }
.review-card p { color: var(--ink); margin: 0 0 14px; }
.review-card footer { color: var(--muted); font-size: 0.95rem; }
.review-card footer strong { color: var(--ink); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: start;
}
.about-copy p { margin: 0 0 16px; }
.about-photos {
  display: grid;
  gap: 14px;
}
.about-photos figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 720px; }
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 34px 16px 2px;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--red);
}
.faq-list details[open] summary::after { content: '\2013'; }
.faq-list summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.faq-list details p { margin: 0 0 18px; padding-right: 24px; color: var(--muted); }

/* ---------- Visit band (the one band) ---------- */
.visit-band {
  background: var(--ink);
  color: var(--band-text);
  margin-top: 30px;
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 44px;
  padding-top: 64px;
  padding-bottom: 24px;
  align-items: start;
}
.visit-cta h2 {
  font-size: clamp(2rem, 4.6vw, 2.7rem);
  margin-bottom: 22px;
}
.visit-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.visit-block h3 {
  font-size: 1.05rem;
  color: var(--band-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.visit-block p { margin: 0 0 10px; }
.visit-link {
  color: var(--band-text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  padding: 6px 0;
}
.visit-link:focus-visible, .visit-band .btn:focus-visible { outline: 3px solid var(--band-text); outline-offset: 2px; }
.hours-table { margin: 0; }
.hours-table div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0;
}
.hours-table dt { color: var(--band-muted); }
.hours-table dd { margin: 0; }

.site-footer {
  border-top: 1px solid rgba(247, 242, 232, 0.16);
  margin-top: 26px;
}
.site-footer p {
  text-align: center;
  color: var(--band-muted);
  font-size: 0.9rem;
  padding: 20px;
  margin: 0;
}

/* ---------- Scroll reveal (gated behind html.js) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}
html.js .reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding-top: 30px; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-quote { grid-column: auto; grid-row: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .visit-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 600px) {
  .header-row { gap: 10px; }
  .brand { font-size: 1rem; }
  .btn--header { padding: 9px 18px; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .how-panel { padding: 30px 22px; }
  .how-panel .btn { width: 100%; }
  .visit-cta .btn { width: 100%; }
  .visit-info { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
}
