/* ==========================================================================
   Beacon Hardware — design tokens
   ========================================================================== */
:root {
  --ink:        #111111;   /* fascia black */
  --paper:      #F5F4F1;   /* warm off-white page background */
  --white:      #FFFFFF;
  --red:        #E1261C;   /* signal red, from HARDWARE lettering */
  --red-dark:   #B81E16;
  --yellow:     #EFB81C;   /* restrained secondary accent */
  --charcoal:   #3A3A3A;   /* body text on light backgrounds */
  --line:       #DEDBD3;

  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1160px;
  --radius: 4px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
}

/* ==========================================================================
   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.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-3);
}

p { margin: 0 0 var(--space-2); max-width: 62ch; }

a { color: var(--red); }

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

.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(--red);
  color: var(--white);
  padding: 0.75em 1.25em;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

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

.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  /* red-dark, not red: at this weight/size the vivid red falls just under
     AA contrast on the light paper/white section backgrounds where this
     default color applies (About, Gallery). Sections on dark backgrounds
     override this to yellow below. */
  color: var(--red-dark);
  margin-bottom: var(--space-1);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); }

.btn-call {
  background: var(--red);
  color: var(--white);
  padding: 0.6em 1.1em;
  font-size: 0.85rem;
}
.btn-call:hover { background: var(--red-dark); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 3px solid var(--red);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  gap: var(--space-2);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
  flex-shrink: 0;
}

.wordmark-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

.wordmark-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.w-white { color: var(--white); }
.w-red { color: var(--red); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  margin: 0 auto;
}

.primary-nav {
  display: none;
  align-items: center;
  gap: var(--space-3);
}
.primary-nav a:not(.btn) {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.primary-nav a:not(.btn):hover { color: var(--yellow); }

.primary-nav.is-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  background: var(--ink);
  padding: var(--space-2) var(--space-3) var(--space-3);
  border-bottom: 3px solid var(--red);
  gap: var(--space-2);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}
.status-pill[hidden] { display: none; }
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6bbf59;
  flex-shrink: 0;
}
.status-pill[data-state="closed"] .status-dot,
.hero-status[data-state="closed"] .status-dot { background: var(--red); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex;
    position: static;
    background: none;
    padding: 0;
    border: 0;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.35) 0%, rgba(17,17,17,0.55) 55%, rgba(17,17,17,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}
.hero-content .eyebrow { color: var(--yellow); }
.hero h1 { color: var(--white); }
.hero-sub {
  font-size: 1.15rem;
  max-width: 40ch;
  color: rgba(255,255,255,0.92);
}
.hero-hours-fallback {
  font-size: 0.9rem;
  color: var(--yellow);
  font-weight: 600;
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 700;
  margin-bottom: var(--space-3);
  background: rgba(0,0,0,0.35);
  padding: 0.5em 1em;
  border-radius: 999px;
}
.hero-status[hidden] { display: none; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ==========================================================================
   Window strip
   ========================================================================== */
.window-strip {
  background: var(--red);
  color: var(--white);
  padding: var(--space-3) 0;
}
.window-kicker {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  margin: 0 0 var(--space-1);
  color: rgba(255,255,255,0.85);
}
.window-list {
  list-style: none;
  margin: 0 0 var(--space-1);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}
.window-item {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.window-note {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: var(--space-6) 0; }
.about-grid {
  display: grid;
  gap: var(--space-4);
}
.about-media img {
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
  height: auto;
}
.about-copy h2:first-of-type { margin-top: 0; }
.about-copy h2 { margin-top: var(--space-4); }

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery {
  padding: var(--space-6) 0;
  background: var(--white);
}
.gallery-sub { color: var(--charcoal); }
.gallery-grid {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-item img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.05); }

.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.6em 0.7em;
  background: linear-gradient(180deg, rgba(17,17,17,0) 0%, rgba(17,17,17,0.85) 100%);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Visit
   ========================================================================== */
.visit {
  padding: var(--space-6) 0;
  background: var(--ink);
  color: rgba(255,255,255,0.88);
}
.visit h2, .visit h3 { color: var(--white); }
.visit .eyebrow { color: var(--yellow); }
.visit-grid {
  display: grid;
  gap: var(--space-4);
}
.visit-address, .visit-phone {
  font-size: 1.1rem;
  color: var(--white);
}
.visit-phone a {
  color: var(--yellow);
  font-weight: 700;
  text-decoration: none;
}
.visit-phone a:hover { text-decoration: underline; }

.hours-table {
  width: 100%;
  max-width: 360px;
  border-collapse: collapse;
  margin: var(--space-2) 0 var(--space-4);
}
.hours-table tr { border-bottom: 1px solid rgba(255,255,255,0.15); }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.55em 0;
  font-size: 0.95rem;
}
.hours-table th {
  color: var(--white);
  font-weight: 700;
  width: 4.5em;
}
.hours-table td { color: rgba(255,255,255,0.8); }
.hours-table tr[data-today="true"] th,
.hours-table tr[data-today="true"] td { color: var(--yellow); }

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

@media (min-width: 800px) {
  .visit-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  border-top: 3px solid var(--red);
  padding: var(--space-4) 0;
  text-align: center;
}
.footer-inner > * { margin: 0 0 var(--space-1); }
.wordmark-footer { justify-content: center; margin-bottom: var(--space-2); }
.footer-address, .footer-hours {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}
.footer-address a { color: var(--yellow); text-decoration: none; }
.footer-credit {
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  margin-top: var(--space-2);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10,10,10,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: var(--space-3);
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: min(90vw, 900px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-caption {
  color: var(--white);
  margin-top: var(--space-2);
  font-size: 0.95rem;
  text-align: center;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: var(--red);
  border-color: var(--red);
}
.lightbox-close { top: var(--space-2); right: var(--space-2); }
.lightbox-prev { left: var(--space-2); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-2); top: 50%; transform: translateY(-50%); }

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

/* JS-only elements: start hidden via the [hidden] attribute (see HTML);
   main.js clears the `hidden` property once real hours data is computed.
   Note: do not also hide via [data-js-only] here — that would permanently
   override the `hidden` property being cleared by JS. */
