/* ===================================================================
   BLG Hardware — tokens
   =================================================================== */
:root {
  --red: #C21F26;
  --red-dark: #971419;
  --ink: #1A1D29;
  --concrete: #F5F1E8;
  --concrete-dim: #EAE4D4;
  --slate: #5B6178;
  --slate-dim: rgba(91, 97, 120, 0.35);
  --bronze: #B07C3F;
  --white: #FFFFFF;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --radius: 6px;

  --shadow-card: 0 8px 24px rgba(26, 29, 41, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--concrete);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.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: 0; top: -100px;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

a { color: inherit; }

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

/* ===================================================================
   Buttons
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--ink);
}

/* Outline variant on light backgrounds (Visit section) */
.visit .btn-outline {
  color: var(--ink);
  border-color: var(--ink);
}
.visit .btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

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

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  margin-right: auto;
}
.brand-mark {
  width: 34px;
  height: auto;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  color: var(--concrete);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--white);
  border-bottom-color: var(--red);
}

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

.phone-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  text-decoration: none;
  color: var(--white);
  border: 2px solid var(--red);
  background: var(--red);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background-color 0.15s ease;
}
.phone-btn:hover { background: var(--red-dark); }
.phone-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.phone-number {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
}

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

/* ===================================================================
   Hero
   =================================================================== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero-photo {
  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(26,29,41,0.15) 0%, rgba(26,29,41,0.35) 45%, rgba(26,29,41,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 48px 24px 56px;
  max-width: var(--wrap);
  margin: 0 auto;
  width: 100%;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--concrete);
  margin: 0 0 12px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: 0.98;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 46ch;
  color: var(--concrete);
  margin: 0 0 28px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ===================================================================
   Pegboard divider — the signature motif
   =================================================================== */
.pegboard-divider {
  height: 28px;
  background-image: radial-gradient(circle, var(--slate-dim) 2.5px, transparent 2.6px);
  background-size: 26px 26px;
  background-position: center;
  background-color: var(--concrete);
}

/* ===================================================================
   Intro
   =================================================================== */
.intro {
  padding: 64px 0;
  background: var(--concrete);
}
.intro-text {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  max-width: 62ch;
  margin: 0 auto;
  text-align: center;
  color: var(--ink);
}

/* ===================================================================
   Specialties / cards
   =================================================================== */
.specialties {
  padding: 72px 0 56px;
  background: var(--concrete);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 8px;
  text-align: center;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin: 0 0 40px;
  text-align: center;
  color: var(--ink);
}
.section-title-light { color: var(--white); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--red);
}
/* punch-hole corner detail referencing pegboard/toolbox hardware */
.card::before,
.card::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--concrete);
  border: 2px solid var(--red);
}
.card::before { left: 20px; }
.card::after { right: 20px; }

.card-media {
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 18px;
  aspect-ratio: 4 / 3;
  background: var(--concrete-dim);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.4rem;
  margin: 0 0 10px;
  position: relative;
  display: inline-block;
}
.card-title::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: var(--red);
  transition: width 0.25s ease;
}
.card:hover .card-title::after,
.card:focus-within .card-title::after {
  width: 100%;
}

.card-copy {
  margin: 0 0 16px;
  color: var(--ink);
}
.card-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-list li {
  font-size: 0.94rem;
  padding-left: 16px;
  position: relative;
  color: var(--ink);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--slate);
}
.card-list strong { color: var(--red-dark); }

.also-line {
  text-align: center;
  margin: 40px auto 0;
  max-width: 60ch;
  font-size: 0.95rem;
  color: var(--slate);
  font-style: italic;
}

/* ===================================================================
   Why BLG
   =================================================================== */
.why {
  background: var(--ink);
  padding: 68px 0;
}
.why-wrap {
  text-align: center;
  max-width: 780px;
}
.why-line {
  color: var(--concrete);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin: 0 0 18px;
}
.why-line:last-child { margin-bottom: 0; }

/* ===================================================================
   Visit
   =================================================================== */
.visit {
  padding: 72px 0 88px;
  background: var(--concrete);
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.visit-info .eyebrow,
.visit-info .section-title { text-align: left; }

.hours-table {
  border-collapse: collapse;
  margin: 20px 0 24px;
  font-variant-numeric: tabular-nums;
}
.hours-table th,
.hours-table td {
  text-align: left;
  padding: 8px 20px 8px 0;
  font-size: 1.02rem;
  border-bottom: 1px solid var(--concrete-dim);
}
.hours-table th {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--slate);
  font-size: 0.85rem;
}

.addr {
  font-style: normal;
  font-size: 1.05rem;
  margin: 0 0 14px;
}

.phone-mono {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--red);
  text-decoration: none;
  margin-bottom: 28px;
}
.phone-mono:hover { text-decoration: underline; }

.visit-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.visit-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 340px;
  background: var(--concrete-dim);
}
.visit-map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}

/* ===================================================================
   Footer
   =================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--concrete);
  padding: 44px 0 20px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(245,241,232,0.15);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
}
.footer-mark { width: 30px; height: auto; }

.footer-facts p {
  margin: 0 0 6px;
  font-size: 0.92rem;
  color: var(--concrete);
}
.footer-facts a { text-decoration: none; }
.footer-facts a:hover { text-decoration: underline; }
.footer-note {
  color: var(--slate);
  font-style: italic;
  margin-top: 10px !important;
}

.footer-credit {
  text-align: center;
  font-size: 0.78rem;
  color: var(--slate);
  margin: 18px 0 0;
}

/* ===================================================================
   Scroll reveal
   =================================================================== */
/* Reveal is a pure-CSS, load-triggered fade (not scroll-triggered), so
   content can never get stuck invisible regardless of how the viewport is
   scrolled, resized, or captured. IntersectionObserver was tried and
   dropped: it under-fires when a tool jumps/resizes the viewport instead
   of firing real scroll events, which risked hiding real content. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal-in 0.6s ease forwards;
  animation-delay: var(--reveal-delay, 0s);
}
@keyframes reveal-in {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
}
/* No-JS / no-animation-support fallback: never hide content */
.no-js .reveal { opacity: 1; transform: none; animation: none; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
  .visit-map { min-height: 280px; }
  .visit-map iframe { min-height: 280px; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    gap: 0;
    border-bottom: 3px solid var(--red);
    max-height: 320px;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  /* Only collapse the nav behind the toggle once JS has actually run and
     can drive it — without JS the nav stays open and fully usable, since
     there is no other way to reach it. */
  .js .main-nav { max-height: 0; }
  .js .main-nav.is-open { max-height: 320px; }
  .main-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(245,241,232,0.08);
    width: 100%;
  }
  .nav-toggle { display: flex; }
  .phone-label { display: none; }
  .phone-number { display: none; }
  .phone-btn {
    padding: 0;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
  }
  .phone-btn::before {
    content: "\260E";
    font-size: 1.05rem;
    line-height: 1;
  }
  .brand-word {
    font-size: 0.98rem;
  }
  .header-inner { gap: 10px; }

  .hero { min-height: 88vh; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }

  .footer-inner { flex-direction: column; }
}

@media (min-width: 1440px) {
  .hero-title { font-size: 6.2rem; }
}
