/* Tire City — design tokens. Bronze/gold matches the logo's metallic accent; near-black matches the decal. */
:root {
  --bronze: #e0a648;
  --bronze-bright: #f4c469;
  --bronze-dark: #b9812c;
  --rust: #c9622a;
  --dark: #0c0d11;
  --dark-2: #16181f;
  --dark-3: #1e2129;
  --ink: #1b1e26;
  --paper: #f7f3ea;
  --white: #ffffff;
  --line: #e4ddce;
  --radius: 12px;
  --radius-lg: 20px;
  --font-head: "Bebas Neue", "Barlow Condensed", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --shadow-bronze: 0 8px 30px -8px rgba(224, 166, 72, 0.45);
  --shadow-card: 0 16px 40px -20px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  padding-bottom: 64px; /* room for the fixed call bar */
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 0.95;
  color: var(--dark);
}
h1 { font-size: clamp(3rem, 8vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-top: 0; }
h3 { font-size: 1.3rem; }
p { max-width: 62ch; }
a { color: var(--bronze-dark); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; position: relative; }
.skip { position: absolute; left: -999px; top: 0; background: var(--dark); color: var(--white); padding: 0.75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Badge / pill */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(224, 166, 72, 0.12); border: 1px solid rgba(224, 166, 72, 0.5);
  color: var(--bronze-bright); font-weight: 600; font-size: 0.85rem;
  padding: 0.45rem 1rem; border-radius: 999px; margin-bottom: 1.25rem;
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.9rem 1.6rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.btn--bronze { background: linear-gradient(135deg, var(--bronze-bright), var(--bronze-dark)); color: var(--dark); border-color: transparent; box-shadow: var(--shadow-bronze); }
.btn--bronze:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(224, 166, 72, 0.6); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); transform: translateY(-2px); }
.btn--yelp { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--yelp:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(0,0,0,0.25); }
.btn--yelp img { display: block; }
.btn--icon { padding: 0.9rem 1.4rem; }
.btn--icon .review-badge__g { width: 22px; height: 22px; font-size: 0.85rem; }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }

/* Header */
.site-header { background: var(--dark); color: var(--white); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,0.06); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; padding: 0.6rem 1.25rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--white); text-decoration: none; }
.brand__logo { border-radius: 50%; box-shadow: 0 0 0 2px rgba(224, 166, 72, 0.35); }
.brand__name { font-family: var(--font-head); font-weight: 400; font-size: 1.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.site-nav { display: flex; gap: 1.5rem; margin-left: auto; flex-wrap: wrap; }
.site-nav a { color: #cfcbc0; text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.15s; }
.site-nav a:hover { color: var(--bronze-bright); }
.site-header__call { white-space: nowrap; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; 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 { display: none; flex-direction: column; background: var(--dark-2); border-top: 1px solid rgba(255,255,255,0.08); }
.mobile-nav a { display: block; padding: 0.9rem 1.25rem; color: var(--white); text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-nav a:hover { color: var(--bronze-bright); }
.mobile-nav.is-open { display: flex; }
@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  .site-header__call { display: none; }
  /* The fixed call bar measures ~85px tall on mobile (two stacked-padding buttons); the base 64px
     reservation above was too short and let it cover in-page CTAs (e.g. the /contact/ dispatch card
     buttons). Bump the reservation to match on the widths where the bar is actually visible. */
  body { padding-bottom: 96px; }
}

/* Hero */
.hero { position: relative; background: radial-gradient(120% 140% at 15% 0%, var(--dark-3), var(--dark) 60%); color: var(--white); padding: 5rem 0 7rem; overflow: hidden; }
.hero__glow { position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px; background: radial-gradient(circle, rgba(224, 166, 72, 0.28), transparent 70%); pointer-events: none; }
.hero__inner { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 2rem; }
.hero h1 { color: var(--white); }
.hero__h1 { white-space: nowrap; font-size: clamp(1.9rem, 5.4vw, 5.6rem); }
.hero__lede { font-size: 1.2rem; max-width: 34rem; color: #d8d5cd; }
.hero__hours { display: flex; align-items: center; gap: 0.5rem; margin: 0.9rem 0 0; font-weight: 700; color: var(--bronze-bright); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.75rem 0; }
.hero__stats { display: flex; gap: 2.5rem; row-gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero__stats strong { display: block; font-family: var(--font-head); font-size: 2.6rem; color: var(--bronze-bright); }
.hero__stats span { font-size: 0.8rem; color: #b8b5ac; text-transform: uppercase; letter-spacing: 0.06em; }
.hero__emblem { display: flex; justify-content: center; align-items: center; position: relative; min-height: 420px; animation: float 6s ease-in-out infinite; }
.hero__emblem::before {
  content: ""; position: absolute; inset: 8% ; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(244, 196, 105, 0.55) 12%, transparent 26%, transparent 50%, rgba(244, 196, 105, 0.35) 62%, transparent 76%);
  filter: blur(6px);
  animation: spin 9s linear infinite;
}
.hero__emblem::after {
  content: ""; position: absolute; width: 78%; height: 78%; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 166, 72, 0.45), transparent 70%);
  animation: pulse-glow 3.2s ease-in-out infinite;
}
.hero__emblem-ring, .hero__emblem-center { position: absolute; top: 50%; left: 50%; z-index: 1; width: 100%; max-width: 460px; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 24px 60px rgba(0,0,0,0.6)); }
.hero__emblem-ring { animation: spin-ring 14s linear infinite; }
@keyframes spin-ring { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero__divider { position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; background: var(--white); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-glow { 0%, 100% { opacity: 0.6; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .hero__emblem, .hero__emblem-ring, .hero__emblem::before, .hero__emblem::after { animation: none; } }
@media (max-width: 820px) {
  .hero { padding: 2.5rem 0 4rem; }
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  /* Copy and CTAs stay first so the H1 and "Call"/"Text" buttons are visible without scrolling on a
     375x812 viewport — the emblem used to render above them (order: -1) and pushed both off-screen. */
  .hero__emblem { margin-top: 1.5rem; min-height: 150px; }
  .hero__emblem-ring, .hero__emblem-center { max-width: 130px; }
  .site-nav { display: none; }
}

/* Sections */
.section { padding: 4.5rem 0; position: relative; }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.eyebrow { color: var(--bronze-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; }
.section--dark .eyebrow { color: var(--bronze-bright); }
.intro { font-size: 1.15rem; max-width: 44rem; color: #444; }
.section--dark .intro { color: #cfcbc0; }

/* Diagonal transitions between light and dark sections */
.section--dark::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 48px; background: var(--white); clip-path: polygon(0 0, 100% 0, 0 100%); }
.section--dark + .section:not(.section--dark)::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 48px; background: var(--dark); clip-path: polygon(100% 0, 100% 100%, 0 0); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }
/* Services grid has exactly 5 cards (see services.js) — 5 columns keeps them on one row instead of
   wrapping an orphaned 5th card onto its own line under the default 4-column grid. */
.card-grid--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }
.service-card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.75rem; border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); background: var(--paper); border-left: 4px solid var(--bronze); box-shadow: var(--shadow-card); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -18px rgba(0,0,0,0.4); }
.service-card__icon { font-size: 2.4rem; }
.service-card__name { font-family: var(--font-head); font-weight: 400; text-transform: uppercase; font-size: 1.4rem; letter-spacing: 0.02em; color: var(--dark); }
.service-card__blurb { font-size: 0.94rem; color: #555; }

/* Steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.75rem; margin-top: 2rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.steps__num { font-family: var(--font-head); font-size: 2.6rem; color: var(--bronze-bright); flex-shrink: 0; line-height: 1; }
.steps h3 { font-size: 1.15rem; color: var(--white); margin: 0 0 0.3rem; text-transform: uppercase; }
.section:not(.section--dark) .steps h3 { color: var(--dark); }

/* Two-col / quote */
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.pull-quote { display: flex; flex-direction: column; align-items: center; text-align: center; font-family: var(--font-head); font-size: 2.1rem; text-transform: uppercase; color: var(--dark); margin: 0; line-height: 1.05; height: 100%; justify-content: center; }
.pull-quote::before { content: ""; display: block; width: 56px; height: 4px; background: var(--bronze); border-radius: 999px; margin-bottom: 1.25rem; }
.badges { list-style: none; padding: 0; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.badges li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 1.1rem; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }

/* City list */
.city-list { color: var(--bronze-bright); font-size: 1.1rem; line-height: 2; }
.section:not(.section--dark) .city-list { color: var(--bronze-dark); }

/* CTA band */
.cta-band { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; margin: 2.5rem 0; }
.cta-band p { margin: 0; font-weight: 700; font-size: 1.05rem; }
.cta-band__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: #777; margin-bottom: 1rem; }
.breadcrumbs a { color: #777; }

/* Page content (markdown) */
.page-content { padding: 3.5rem 0; max-width: 760px; }
.page-content h2 { margin-top: 2.5rem; }
.nearby-list { list-style: none; padding: 0; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.nearby-list a { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 1rem; text-decoration: none; font-size: 0.9rem; font-weight: 600; }

/* Review badges (Google / Yelp) */
.review-badges { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }
.review-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  color: #d8d5cd; text-decoration: none; font-weight: 600; font-size: 0.85rem;
  padding: 0.5rem 0.9rem; border-radius: 999px; transition: border-color 0.15s, transform 0.15s;
}
.review-badge:hover { border-color: var(--bronze); transform: translateY(-2px); }
.review-badge__g {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; background: var(--white); color: var(--dark);
  font-family: var(--font-body); font-weight: 800; font-size: 0.72rem; line-height: 1;
}
.review-badges--light .review-badge { background: var(--paper); border-color: var(--line); color: var(--ink); }
.review-badges--light .review-badge__g { background: var(--dark); color: var(--white); }
.review-badge--yelp img { display: block; }

/* Google review cards */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 1.5rem 0 2rem; }
@media (max-width: 860px) { .review-grid { grid-template-columns: 1fr; } }
.review-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.review-card__stars { color: var(--bronze-dark); letter-spacing: 0.1em; }
.review-card__text { font-size: 0.96rem; color: var(--ink); flex: 1; }
.review-card__meta { font-size: 0.85rem; color: #777; margin: 0; }

/* Rating summary */
.rating-summary { display: flex; align-items: center; gap: 0.6rem; font-size: 1.3rem; margin: 1rem 0 0.3rem; }
.rating-summary__stars { color: var(--bronze-dark); letter-spacing: 0.1em; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field input, .field select, .field textarea { padding: 0.75rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.field textarea { min-height: 100px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.notice { background: #fff8e8; border: 1px solid #e8d9a8; border-radius: var(--radius); padding: 1rem 1.25rem; }
.dispatch-card { background: var(--dark); color: var(--white); border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 1.5rem; }
.dispatch-card .eyebrow { color: var(--bronze-bright); }
.dispatch-card__phone { display: block; font-family: var(--font-head); font-size: 2.4rem; color: var(--white); text-decoration: none; margin: 0.4rem 0; }
.plain-list { list-style: none; padding: 0; }
.plain-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }

/* Footer */
.site-footer { background: var(--dark); color: #d8d5cd; padding: 3.5rem 0 1.25rem; margin-top: 2rem; }
.site-footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
.site-footer__heading { font-size: 1.1rem; font-weight: 700; color: var(--white); margin: 0 0 0.85rem; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: #d8d5cd; text-decoration: none; }
.site-footer a:hover { color: var(--bronze-bright); }
.site-footer__legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #2a2d36; font-size: 0.8rem; color: #999; }

/* Call bar (mobile-sticky) */
.call-bar { position: fixed; bottom: 0; left: 0; right: 0; display: none; z-index: 30; box-shadow: 0 -6px 20px rgba(0,0,0,0.25); }
.call-bar__btn { flex: 1; text-align: center; padding: 1rem; font-weight: 700; text-decoration: none; color: var(--dark); background: linear-gradient(135deg, var(--bronze-bright), var(--bronze-dark)); }
.call-bar__btn--text { background: var(--dark); color: var(--white); }
@media (max-width: 640px) { .call-bar { display: flex; } }
