/* =========================================================
   HD MOTORSPORTS — shared stylesheet
   Design system: tech-inspection-sheet meets pit garage.
   Palette: true black + acid green (brand-fixed) + gunmetal/concrete.
   Type: Big Shoulders Condensed (display) / Public Sans (body) / Space Mono (spec data)
   Signature: diagonal "cut" section breaks echo the blade-slash in the HD mark.
   ========================================================= */

:root {
  --black: #000000;
  --green: #9bef16;
  --gunmetal: #2b2e2f;
  --gunmetal-light: #3a3d3e;
  --concrete: #ececE6;
  --white: #ffffff;
  --caution: #ffc400;

  --font-display: "Big Shoulders Condensed", sans-serif;
  --font-body: "Public Sans", sans-serif;
  --font-mono: "Space Mono", monospace;

  --cut: clamp(28px, 4.5vw, 88px);
  --container: 1180px;
  --header-h: 84px;
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

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

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

/* ---------- Utility: eyebrow / mono labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.eyebrow.on-light {
  color: var(--gunmetal);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--black);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  background: var(--white);
}

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

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

.btn-outline.on-light {
  border-color: var(--black);
  color: var(--black);
}

.btn-outline.on-light:hover {
  border-color: var(--gunmetal);
  color: var(--gunmetal);
  background: rgba(0, 0, 0, 0.04);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: var(--black);
  z-index: 100;
  border-bottom: 3px solid var(--green);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-link img {
  height: 58px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  color: var(--white);
  position: relative;
  padding: 0.4rem 0.1rem;
}

.main-nav a.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.15s ease;
}

.main-nav a.nav-link:hover::after,
.main-nav a.nav-link:focus-visible::after {
  width: 100%;
}

.main-nav a.nav-link.active {
  color: var(--green);
}

.main-nav a.nav-link.active::before {
  content: "";
  position: absolute;
  inset: -7px -10px;
  background: rgba(155, 239, 22, 0.12);
  border-radius: 3px;
  box-shadow: 0 2px 14px rgba(155, 239, 22, 0.18);
}

.nav-cta {
  display: none;
}

@media (min-width: 901px) {
  .nav-cta {
    display: inline-flex;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: 100%;
    height: calc(100vh - var(--header-h));
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    gap: 1.5rem;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
  }

  .main-nav a.nav-link {
    font-size: 1.4rem;
  }

  .nav-cta {
    display: inline-flex;
    margin-top: 1rem;
  }
}

/* =========================================================
   DIAGONAL DIVIDER (signature element)
   A thin decorative SVG wedge placed BETWEEN sections —
   never clips real content, unlike clipping a whole section.
   Echoes the blade-slash angle in the HD mark.
   ========================================================= */
.diagonal-divider {
  display: block;
  width: 100%;
  line-height: 0;
  position: relative;
  z-index: 2;
}

.diagonal-divider svg {
  display: block;
  width: 100%;
  height: var(--cut);
}

.diagonal-divider.pull-up {
  margin-top: calc(var(--cut) * -1);
}

.fill-black { fill: var(--black); }
.fill-concrete { fill: var(--concrete); }
.fill-gunmetal { fill: var(--gunmetal); }
.fill-white { fill: var(--white); }

.bg-black {
  background: var(--black);
  color: var(--white);
}

.bg-concrete {
  background: var(--concrete);
  color: var(--black);
}

.bg-gunmetal {
  background: var(--gunmetal);
  color: var(--white);
}

.bg-white {
  background: var(--white);
  color: var(--black);
}

.section-pad {
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  padding-top: calc(3.5rem + var(--header-h));
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -8%;
  width: 60%;
  height: 130%;
  background: var(--gunmetal);
  clip-path: polygon(40% 0, 100% 0, 60% 100%, 0% 100%);
  opacity: 0.6;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-logo {
  max-width: 420px;
  width: 70%;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  margin-bottom: 1rem;
}

.hero h1 .accent {
  color: var(--green);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 46ch;
  color: var(--concrete);
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Spec strip (under hero) ---------- */
.spec-strip {
  background: var(--gunmetal);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.spec-strip li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--concrete);
  padding: 1.1rem 1.75rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.spec-strip li:last-child {
  border-right: none;
}

.spec-strip li strong {
  color: var(--green);
  font-weight: 700;
}

@media (max-width: 700px) {
  .spec-strip ul {
    justify-content: flex-start;
    overflow-x: auto;
  }
}

/* =========================================================
   SECTION HEADERS
   ========================================================= */
.section-head {
  max-width: 56ch;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}

.section-head p {
  margin-top: 0.85rem;
  font-size: 1.05rem;
  opacity: 0.85;
}

/* =========================================================
   SPEC ROW (label : value list — the tech-sheet motif)
   ========================================================= */
.spec-row-list {
  border-top: 1px solid currentColor;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.bg-black .spec-row,
.bg-gunmetal .spec-row {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.spec-row .label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--green);
  flex: 0 0 auto;
}

.spec-row .value {
  font-family: var(--font-body);
  font-size: 0.98rem;
  text-align: right;
}

/* =========================================================
   SERVICE / CARD GRID
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.75rem;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 22px, 22px 0);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  background: var(--green);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.service-card h3 {
  font-size: 1.3rem;
  margin: 0.5rem 0 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.service-card a.card-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gunmetal);
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
}

.service-card a.card-link:hover {
  color: var(--green);
}

/* =========================================================
   TEAM GRID
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--gunmetal);
  padding: 1.75rem 1.5rem;
  text-align: left;
  border-left: 4px solid var(--green);
}

.team-card .role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 0.35rem;
}

.team-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--concrete);
}

/* =========================================================
   VENDOR MARQUEE
   ========================================================= */
.vendor-strip {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem 0;
}

.vendor-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scroll-left 110s linear infinite;
}

.vendor-track span {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--concrete);
  white-space: nowrap;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vendor-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
  }
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.cta-band p {
  max-width: 50ch;
  margin: 0 auto 2rem;
  opacity: 0.85;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--black);
  color: var(--concrete);
  padding: 3rem 0 1.75rem;
  border-top: 3px solid var(--green);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 1rem;
  color: var(--green);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.footer-col p,
.footer-col li {
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  color: var(--concrete);
}

.footer-col a:hover {
  color: var(--green);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.footer-social a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 0.7rem;
}

.footer-social a:hover {
  border-color: var(--green);
  color: var(--green);
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  justify-self: start;
}

.footer-bottom .cf-badge {
  justify-self: end;
  align-self: center;
}

.footer-bottom-left a:hover {
  color: var(--green);
}

.cf-badge {
  opacity: 0.65;
  transition: opacity 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.cf-badge img {
  width: 140px;
  height: auto;
}

.cf-badge:hover,
.cf-badge:focus-visible {
  opacity: 1;
  transform: scale(1.05);
}

/* =========================================================
   ANCHOR SCROLL OFFSET (sticky header)
   ========================================================= */
section[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* =========================================================
   JUMP NAV (services page quick links)
   ========================================================= */
.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.jump-nav a {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  color: var(--white);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.jump-nav a:hover,
.jump-nav a:focus-visible {
  border-color: var(--green);
  color: var(--green);
}

/* =========================================================
   SERVICE DETAIL (two-col: copy + spec rows)
   ========================================================= */
.service-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.75rem;
  align-items: start;
}

@media (max-width: 800px) {
  .service-detail {
    grid-template-columns: 1fr;
  }
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

/* =========================================================
   GALLERY GRID + NATIVE DIALOG LIGHTBOX
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.gallery-thumb {
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.gallery-thumb .img-placeholder,
.gallery-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.gallery-thumb:hover .img-placeholder,
.gallery-thumb:focus-visible .img-placeholder,
.gallery-thumb:hover img,
.gallery-thumb:focus-visible img {
  transform: scale(1.02);
  opacity: 0.92;
}

.gallery-cap {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-top: 0.6rem;
  opacity: 0.75;
}

.lightbox {
  border: none;
  padding: 0;
  margin: auto;
  background: var(--black);
  max-width: min(92vw, 1000px);
  max-height: 88vh;
  width: 100%;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.lightbox-inner {
  position: relative;
  padding: 1.25rem;
}

.lightbox-inner img,
.lightbox-inner .img-placeholder {
  width: 100%;
  max-height: 70vh;
}

.lightbox-cap {
  color: var(--concrete);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-top: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--green);
  color: var(--black);
  border: none;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 3;
}

/* =========================================================
   MERCH LOOKBOOK
   ========================================================= */
.merch-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.merch-card .img-placeholder {
  min-height: 200px;
  border: none;
}

.merch-card-body {
  padding: 1.25rem;
}

.merch-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.merch-card-body p {
  font-size: 0.9rem;
  opacity: 0.8;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.text-center {
  text-align: center;
}

/* Temporary placeholder for real photography not yet supplied.
   Replace with a real <img> in /images once photos are sourced. */
.img-placeholder {
  background: repeating-linear-gradient(
    135deg,
    var(--gunmetal-light),
    var(--gunmetal-light) 10px,
    var(--gunmetal) 10px,
    var(--gunmetal) 20px
  );
  color: var(--concrete);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1rem;
  min-height: 220px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
}

/* =========================================================
   RESPONSIVE SPLIT (replaces ad-hoc inline 2-col grids —
   minmax(0,...) prevents content from forcing overflow,
   and the breakpoint collapses to one column on mobile)
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split.split-lead {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.split.split-lead-wide {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.split.split-top {
  align-items: start;
}

@media (max-width: 800px) {
  .split,
  .split.split-lead,
  .split.split-lead-wide {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================
   SOCIAL ICONS
   ========================================================= */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--concrete);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.social-icons a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-icons a:hover,
.social-icons a:focus-visible {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

.social-icons.on-light a {
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--gunmetal);
}

.social-icons.on-light a:hover {
  border-color: var(--green);
  color: var(--black);
}

/* =========================================================
   PARTNER LOGOS (grayscale → color + 5% scale on hover)
   ========================================================= */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.partner-logo img {
  max-height: 56px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.partner-logo:hover img,
.partner-logo:focus-visible img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* =========================================================
   CLOUDFLARE BADGE (temporary text stand-in until the
   official asset is sourced — same hover spec either way)
   ========================================================= */
.cf-badge-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--concrete);
  opacity: 0.65;
  transition: opacity 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.cf-badge-text:hover,
.cf-badge-text:focus-visible {
  opacity: 1;
  transform: scale(1.05);
}

.cf-badge-text .cf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f6821f;
  display: inline-block;
}

/* =========================================================
   VETERAN BADGE (about page)
   ========================================================= */
.veteran-badge {
  max-width: 213px;
  margin-top: 1.5rem;
}

/* =========================================================
   INSTAGRAM ICON OVERRIDE (stroke-based, bolder/more visible
   at small sizes than a thin filled outline glyph)
   ========================================================= */
.social-icons a svg.icon-ig {
  fill: none;
}

.social-icons a svg.icon-ig .ig-dot {
  fill: currentColor;
}

/* =========================================================
   YELP ICON (real PNG, recolored via CSS mask — same
   technique used on the Alvis Auto Repair project)
   ========================================================= */
.icon-mask {
  display: block;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.icon-yelp {
  -webkit-mask-image: url('images/yelp-icon.png');
  mask-image: url('images/yelp-icon.png');
}

/* =========================================================
   HOURS LIST (contact page only — current day highlighted
   in green via JS based on the visitor's local date)
   ========================================================= */
.hours-list {
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: inherit;
  opacity: 0.85;
}

.hours-list li:last-child {
  border-bottom: none;
}

.hours-list li.is-today {
  color: var(--gunmetal);
  opacity: 1;
  font-weight: 700;
  background: rgba(155, 239, 22, 0.22);
  margin: 0 -0.75rem;
  padding: 0.45rem 0.75rem;
  border-radius: 3px;
  border-bottom: 1px solid transparent;
}

/* =========================================================
   MERCH PHOTOS (real images — consistent crop regardless of
   each source photo's native aspect ratio)
   ========================================================= */
.merch-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* =========================================================
   LIGHT-BACKGROUND TEXT CONTRAST FIX
   Bright green (#9bef16) text is hard to read on white/concrete
   backgrounds — these elements default to green for dark
   sections, but need to switch to gunmetal automatically when
   their containing section is light.
   ========================================================= */
.bg-white .spec-row .label,
.bg-concrete .spec-row .label,
.bg-white .service-num,
.bg-concrete .service-num {
  color: var(--gunmetal);
}

/* =========================================================
   FOLLOW ROW (contact page) — on narrow screens, stack the
   label above the icons instead of cramming both on one line.
   Keeps icons at full 38px size; only the layout changes.
   ========================================================= */
@media (max-width: 480px) {
  .spec-row-follow {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.6rem;
  }

  .spec-row-follow .social-icons {
    width: 100%;
  }
}
