/* ===== Tokens ===== */
:root {
  --ink: #15130f;
  --panel: #1e1b16;
  --panel-2: #262218;
  --steel: #45403a;
  --chalk: #f2ece0;
  --chalk-dim: #cfc7b8;
  --safety: #7abf3f;
  --safety-2: #c2e356;
  --safety-ink: #0f1709;

  --font-display: "Big Shoulders Display", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-body: "IBM Plex Sans", sans-serif;

  --edge: clamp(20px, 5vw, 64px);
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Keep anchored sections clear of the sticky header */
main section[id] { scroll-margin-top: 110px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

h1, h2, h3 { font-family: var(--font-display); margin: 0; }

a { color: inherit; }

ul { list-style: none; margin: 0; padding: 0; }

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) var(--edge);
}

.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(--safety);
  color: var(--safety-ink);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-weight: 600;
  z-index: 999;
}
.skip-link:focus {
  left: var(--edge);
  top: 12px;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--safety);
  color: var(--safety-ink);
}
.btn-primary:hover { background: var(--safety-2); }
.btn-ghost {
  background: transparent;
  color: var(--chalk);
  border-color: var(--steel);
}
.btn-ghost:hover { border-color: var(--safety); color: var(--safety-2); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 19, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--steel);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px var(--edge);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 26px;
  height: 26px;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.brand-mark span {
  background: var(--safety);
}
.brand-mark span:nth-child(2n) { background: var(--chalk); }

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  line-height: 1;
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}
.brand-text-sub {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--safety-2);
  margin-top: 2px;
}

.main-nav ul {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--chalk-dim);
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--chalk); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: var(--safety);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

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

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--chalk-dim);
  white-space: nowrap;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--steel);
}
.status-badge.is-open .status-dot { background: #3ddc6d; box-shadow: 0 0 8px #3ddc6d; }
.status-badge.is-closed .status-dot { background: #ff5a5a; }

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--safety);
  padding: 10px 16px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.15s ease;
}
.call-btn:hover { background: var(--safety-2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 7px;
  background: var(--chalk);
  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); }

.mobile-nav {
  border-top: 1px solid var(--steel);
  background: var(--ink);
}
.mobile-nav ul { padding: 8px var(--edge) 20px; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-mono);
  text-decoration: none;
  color: var(--chalk-dim);
  border-bottom: 1px solid var(--panel-2);
}
.mobile-call {
  color: var(--safety-2) !important;
  font-weight: 600;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 100px) var(--edge) clamp(80px, 10vw, 120px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--safety-2);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--chalk);
}
.hero h1 .accent { color: var(--safety); }

.hero-sub {
  max-width: 46ch;
  color: var(--chalk-dim);
  font-size: 1.05rem;
  margin: 26px 0 34px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.hero-slice {
  position: absolute;
  inset: -20% -10%;
  background: linear-gradient(135deg, var(--panel-2) 0%, transparent 55%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.hero-banner-img {
  position: relative;
  z-index: 1;
  width: min(380px, 80vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--steel);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}

/* Tread divider — hazard-style stripe */
.tread-divider {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--safety) 0 18px,
    var(--ink) 18px 36px
  );
}

/* ===== Stats ===== */
.stats {
  background: var(--panel);
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
}
.stats-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px var(--edge);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-grid li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 1px solid var(--steel);
  padding-left: 20px;
}
.stats-grid li:first-child { border-left: none; padding-left: 0; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--safety-2);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--chalk-dim);
}

/* ===== Section headings ===== */
.services h2, .why-us h2, .location h2, .reviews h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 40px;
}

/* ===== Services ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  -webkit-mask-image:
    radial-gradient(circle 7px at 0 50%, transparent 98%, black 100%),
    radial-gradient(circle 7px at 100% 50%, transparent 98%, black 100%);
  mask-image:
    radial-gradient(circle 7px at 0 50%, transparent 98%, black 100%),
    radial-gradient(circle 7px at 100% 50%, transparent 98%, black 100%);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
  border-color: var(--safety);
  transform: translateY(-4px);
}
.service-card:not(.service-card--flagship) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
}
.service-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 8px;
}
.service-desc {
  color: var(--chalk-dim);
  font-size: 0.92rem;
  margin: 0;
}

/* Flagship card: tires are the headline service */
.service-card--flagship {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, rgba(122, 191, 63, 0.14), var(--panel) 55%);
  border-color: var(--safety);
  padding: 32px 28px;
}
.service-card--flagship .service-name { font-size: 1.9rem; }
.service-card--flagship .service-desc {
  color: var(--chalk);
  font-size: 1.02rem;
  max-width: 90ch;
}

.services-note {
  font-family: var(--font-mono);
  color: var(--chalk-dim);
  font-size: 0.9rem;
  margin: 28px 0 0;
}
.services-note a {
  color: var(--safety-2);
  text-decoration: none;
}
.services-note a:hover { text-decoration: underline; }

/* ===== Why Us ===== */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.why-us-copy {
  color: var(--chalk-dim);
  font-size: 1.05rem;
  max-width: 50ch;
}
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--steel);
  font-size: 1.05rem;
}
.why-list li:first-child { border-top: 1px solid var(--steel); }
.why-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 0.5em;
  background: var(--safety);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ===== Location ===== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.location address {
  font-style: normal;
  color: var(--chalk-dim);
  font-size: 1.1rem;
  margin: 20px 0 28px;
  line-height: 1.6;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
}
.hours-table th, .hours-table td {
  text-align: left;
  padding: 16px 0;
  border-bottom: 1px solid var(--steel);
  font-weight: 500;
}
.hours-table th { color: var(--chalk-dim); font-weight: 500; }
.hours-table td { color: var(--chalk); text-align: right; }

/* ===== Reviews ===== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--panel);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  padding: 28px;
}
.review-stars {
  color: var(--safety-2);
  letter-spacing: 0.1em;
  margin: 0 0 14px;
}
.review-quote {
  font-size: 1.05rem;
  color: var(--chalk);
  margin: 0 0 16px;
}
.review-name {
  font-family: var(--font-mono);
  color: var(--chalk-dim);
  font-size: 0.85rem;
  margin: 0;
}

.reviews-google-link {
  display: flex;
  width: fit-content;
  margin: 40px auto 0;
}

/* ===== CTA ===== */
.cta {
  background: var(--safety);
  color: var(--safety-ink);
  text-align: center;
}
.cta-inner { padding: clamp(60px, 9vw, 100px) var(--edge); }
.cta h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  max-width: 18ch;
  margin: 0 auto 16px;
}
.cta-sub {
  font-size: 1.05rem;
  margin: 0 0 32px;
}
.cta .hero-ctas { justify-content: center; }
.cta .btn-primary {
  background: var(--ink);
  color: var(--chalk);
}
.cta .btn-primary:hover { background: var(--panel-2); }
.cta .btn-ghost {
  border-color: var(--safety-ink);
  color: var(--safety-ink);
}
.cta .btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ===== Footer ===== */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--steel);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: 24px;
}
.footer-brand { font-size: 1.4rem; }
.footer-tagline {
  font-family: var(--font-mono);
  color: var(--chalk-dim);
  font-size: 0.85rem;
  margin-top: 10px;
}
.footer-heading {
  font-family: var(--font-mono);
  color: var(--safety-2);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}
.footer-col p { margin: 0 0 8px; color: var(--chalk-dim); font-size: 0.95rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--safety-2); }
.footer-fine {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px var(--edge) 32px;
  border-top: 1px solid var(--steel);
  color: var(--chalk-dim);
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

/* ===== Reveal-on-scroll (scoped to .js so content is never hidden without JS) ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 10px; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 220px; }
  .why-us-grid, .location-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid li:nth-child(3) { border-left: none; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .call-btn-number { display: none; }
  .call-btn { padding: 10px 12px; }
  .brand-text { font-size: 1.1rem; }
  .status-badge { font-size: 0.7rem; letter-spacing: 0.02em; }
  .service-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .brand-text { display: none; }
}
