/* West Side Automotive — garage hazard-stripe theme
   Graphite + electric yellow · Saira Condensed / Saira */
:root {
  --ink: #111316;
  --graphite: #1b1e23;
  --graphite-2: #23272e;
  --steel: #2e333b;
  --line: rgba(255, 255, 255, 0.09);
  --text: #e7e9ec;
  --muted: #a3a9b3;
  --yellow: #eab308;
  --yellow-hi: #facc15;
  --hazard: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, #111316 14px 28px);
  --head: "Saira Condensed", "Arial Narrow", sans-serif;
  --body: "Saira", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--graphite); color: var(--text); font-family: var(--body); font-size: 16.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a, .prose a { color: var(--yellow-hi); text-decoration: underline; text-underline-offset: 3px; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
h1, h2, h3, h4 { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.02; margin: 0 0 14px; }
h1 { font-size: clamp(44px, 7.4vw, 92px); font-weight: 800; }
h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; }
h3 { font-size: 24px; font-weight: 700; }
.y { color: var(--yellow); }

/* hazard tape */
.tape { height: 12px; background: var(--hazard); }
.tape.thin { height: 6px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(17, 19, 22, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow 0.25s; }
header.site.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
header.site .wrap { display: flex; align-items: center; gap: 22px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 800; font-size: 25px; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; }
.logo .mark { width: 38px; height: 38px; border-radius: 8px; background: var(--hazard); border: 2px solid var(--yellow); flex-shrink: 0; position: relative; }
.logo .mark::after { content: "W"; position: absolute; inset: 5px; background: var(--ink); border-radius: 4px; color: var(--yellow); display: grid; place-items: center; font-size: 19px; }
.logo small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.22em; color: var(--yellow); margin-top: 3px; }
nav.main { display: flex; gap: 26px; margin-left: auto; font-family: var(--head); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: 0.04em; }
nav.main a { color: var(--muted); padding: 6px 0; border-bottom: 3px solid transparent; transition: color 0.2s, border-color 0.2s; }
nav.main a:hover, nav.main a.active { color: #fff; border-color: var(--yellow); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: 0.05em; text-transform: uppercase; padding: 6px 13px; border: 1px solid var(--line); background: var(--graphite-2); color: var(--text); border-radius: 6px; white-space: nowrap; }
.status-pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #6b7280; }
.status-pill.open::before { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); animation: blink 2.2s infinite; }
.status-pill.closed::before { background: #ef4444; }
@keyframes blink { 50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } }
.call-btn { background: var(--yellow); color: var(--ink); font-family: var(--head); font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: 0.04em; padding: 10px 18px; border-radius: 6px; white-space: nowrap; transition: transform 0.2s, background 0.2s; }
.call-btn:hover { background: var(--yellow-hi); transform: translateY(-2px); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--yellow); color: var(--yellow); font-size: 20px; width: 44px; height: 40px; border-radius: 6px; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: 0.05em; padding: 14px 26px; border-radius: 6px; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; }
.btn.primary { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 0 #a16207; }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #a16207; background: var(--yellow-hi); }
.btn.ghost { border: 2px solid rgba(255, 255, 255, 0.35); color: #fff; }
.btn.ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

/* Hero */
.hero { position: relative; padding: 70px 0 0; overflow: hidden; background: radial-gradient(1000px 500px at 85% 10%, rgba(234, 179, 8, 0.12), transparent 60%), var(--ink); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-bottom: 70px; }
.hero .eyebrow { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.chip { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; padding: 5px 11px; border: 1px solid rgba(234, 179, 8, 0.45); color: var(--yellow); border-radius: 4px; }
.hero .lead { font-size: 19px; color: #cfd3d9; max-width: 560px; }
.hero-photo { position: relative; border-radius: 10px; isolation: isolate; z-index: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; border-radius: 10px; filter: saturate(0.9) contrast(1.05); }
.hero-photo::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; background: var(--hazard); border-radius: 12px; z-index: -1; opacity: 0.9; }
.hero-photo .tag { position: absolute; left: -10px; bottom: 26px; background: var(--ink); border-left: 6px solid var(--yellow); padding: 12px 18px; font-family: var(--head); text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; font-size: 17px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.hero .wrap > div:first-child > * { animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero .wrap > div:first-child > *:nth-child(2) { animation-delay: 0.08s; }
.hero .wrap > div:first-child > *:nth-child(3) { animation-delay: 0.16s; }
.hero .wrap > div:first-child > *:nth-child(4) { animation-delay: 0.24s; }
.hero-photo { animation: slidein 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes slidein { from { opacity: 0; transform: translateX(40px) rotate(1.5deg); } }
.hero.short .wrap { grid-template-columns: 1fr; padding-bottom: 56px; }

/* Gauge stats */
.stats { background: var(--graphite-2); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stats .wrap > div { padding: 30px 16px 26px; text-align: center; border-right: 1px solid var(--line); }
.stats .wrap > div:last-child { border-right: 0; }
.gauge { --v: 0.5; width: 150px; height: 75px; margin: 0 auto 6px; position: relative; overflow: hidden; }
.gauge::before { content: ""; position: absolute; inset: 0 0 -75px 0; border-radius: 50%; background: conic-gradient(from 270deg, var(--yellow) calc(var(--v) * 180deg), var(--steel) 0 180deg, transparent 0); -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%); mask: radial-gradient(circle, transparent 54%, #000 55%); }
.gauge::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 3px; height: 62px; background: #fff; border-radius: 2px; transform-origin: bottom center; transform: translateX(-50%) rotate(calc(var(--v) * 180deg - 90deg)); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3); }
.stats b { display: block; font-family: var(--head); font-weight: 800; font-size: 40px; line-height: 1; color: #fff; }
.stats span { display: block; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.14em; font-size: 14px; color: var(--muted); margin-top: 6px; }

/* Sections */
.block { padding: 88px 0; }
.block.alt { background: var(--ink); }
.kicker { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.22em; font-weight: 700; font-size: 15px; color: var(--yellow); margin: 0 0 10px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 40px; height: 12px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 6px, transparent 6px 12px); border-radius: 2px; }
h2.title { max-width: 820px; }
.sub { color: var(--muted); max-width: 720px; font-size: 17.5px; margin: 0 0 36px; }

/* Service cards: grid on desktop, snap-scroll rail on phones */
.rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--graphite-2); border: 1px solid var(--line); border-radius: 10px; padding: 26px 24px 24px; position: relative; overflow: hidden; transition: transform 0.25s, border-color 0.25s, background 0.25s; }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--hazard); transform: scaleX(0); transform-origin: left; transition: transform 0.35s; }
.card:hover { transform: translateY(-4px); border-color: rgba(234, 179, 8, 0.5); }
.card:hover::before { transform: scaleX(1); }
.card .code { font-family: var(--head); font-weight: 700; font-size: 14px; letter-spacing: 0.18em; color: var(--yellow); text-transform: uppercase; margin-bottom: 12px; display: block; }
.card p { color: #c3c8cf; margin: 0; font-size: 15.5px; }
.rail-hint { display: none; }
.more-link { display: inline-block; margin-top: 28px; font-family: var(--head); text-transform: uppercase; font-weight: 700; letter-spacing: 0.08em; color: var(--yellow); border-bottom: 2px solid var(--yellow); }

/* Prose */
.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: start; }
.prose p { color: #cfd3d9; margin: 0 0 18px; font-size: 17px; }
.prose strong { color: #fff; }
.side-photo { border-radius: 10px; overflow: hidden; border: 6px solid var(--steel); position: sticky; top: 100px; }
.side-photo img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.side-photo figcaption { font-size: 13px; color: var(--muted); padding: 10px 12px; background: var(--steel); }

/* Why / numbered points */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.point { border-left: 4px solid var(--yellow); padding: 6px 0 6px 22px; }
.point .n { font-family: var(--head); font-weight: 800; font-size: 54px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--yellow); }
.point p { color: #c3c8cf; margin: 0; }

/* Reviews */
.review-band { background: var(--yellow); color: var(--ink); padding: 84px 0; position: relative; }
.review-band::before, .review-band::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: repeating-linear-gradient(-45deg, #111316 0 14px, var(--yellow) 14px 28px); }
.review-band::before { top: 0; } .review-band::after { bottom: 0; }
.review-band .kicker { color: var(--ink); }
.review-band .kicker::before { background: repeating-linear-gradient(-45deg, #111316 0 6px, transparent 6px 12px); }
.review-band h2 { color: var(--ink); }
.review-band .lede { max-width: 700px; font-size: 17.5px; margin: 0 0 34px; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; background: var(--ink); color: var(--text); border-radius: 10px; padding: 26px 24px; position: relative; }
.quote::before { content: "\201C"; font-family: var(--head); font-size: 80px; line-height: 0.6; color: var(--yellow); display: block; height: 30px; }
.quote p { margin: 0 0 16px; font-size: 16.5px; }
.quote cite { font-style: normal; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; font-size: 14px; color: var(--yellow); }
.review-band .btn.primary { background: var(--ink); color: var(--yellow); box-shadow: 0 6px 0 #000; margin-top: 30px; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-family: var(--head); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: 0.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 32px; color: var(--yellow); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: #c3c8cf; max-width: 760px; }

/* CTA band */
.cta-band { background: var(--ink); text-align: center; padding: 80px 20px; border-top: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(36px, 6vw, 68px); }
.cta-band p { color: var(--muted); max-width: 620px; margin: 0 auto 26px; }

/* Service detail rows (services page) */
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc-list .card h3 { font-size: 28px; }
.svc-list .card p { font-size: 16px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.steps > div { padding: 28px 22px; border-right: 1px dashed rgba(234, 179, 8, 0.35); background: var(--graphite-2); }
.steps > div:last-child { border-right: 0; }
.steps > div::before { counter-increment: s; content: "STEP 0" counter(s); display: block; font-family: var(--head); font-weight: 700; letter-spacing: 0.16em; color: var(--yellow); font-size: 14px; margin-bottom: 10px; }
.steps p { color: #c3c8cf; margin: 0; font-size: 15.5px; }
.signs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; }
.signs li { padding: 14px 16px 14px 52px; background: var(--graphite-2); border: 1px solid var(--line); border-radius: 8px; position: relative; color: #d5d9de; }
.signs li::before { content: "!"; position: absolute; left: 14px; top: 13px; width: 26px; height: 24px; background: var(--yellow); color: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); font-weight: 800; font-size: 14px; display: grid; place-items: end center; padding-bottom: 1px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ph { margin: 0; border-radius: 8px; overflow: hidden; background: var(--steel); }
.ph img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.5s; }
.ph:hover img { transform: scale(1.05); }
.caption { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* Contact */
.panel { background: var(--graphite-2); border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.panel .head { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--yellow); font-size: 15px; margin-bottom: 14px; }
.panel .big { font-family: var(--head); font-weight: 800; font-size: 34px; line-height: 1.1; display: block; }
.panel p { color: #c3c8cf; margin: 10px 0 0; font-size: 15.5px; }
.hours-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.hours-row:last-child { border-bottom: 0; }
.hours-row.off span { color: var(--muted); }
.map-embed { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: 10px; filter: grayscale(0.4) contrast(1.05); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* Footer */
footer.site { background: #0b0c0e; color: var(--muted); padding: 60px 0 0; font-size: 15px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
footer.site h4 { color: #fff; font-size: 20px; }
footer.site a { display: block; color: #d5d9de; margin-bottom: 6px; }
footer.site a:hover { color: var(--yellow); }
.footnote { border-top: 1px solid var(--line); padding: 18px 0 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.footnote a.credit { display: inline; color: var(--yellow); font-weight: 600; margin: 0; }

/* Reveal (driven by app.js) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Sticky phone call bar (added by app.js) */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(11, 12, 14, 0.96); border-top: 3px solid var(--yellow); }
.callbar a { flex: 1; text-align: center; font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; font-size: 18px; padding: 12px 10px; border-radius: 6px; }
.callbar .cb-call { background: var(--yellow); color: var(--ink); }
.callbar .cb-dir { border: 2px solid rgba(255, 255, 255, 0.3); color: #fff; }

/* Tablet */
@media (max-width: 980px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero-photo { max-width: 620px; }
  .side-photo { position: static; max-width: 520px; }
  .rail, .grid3, .quotes, .gallery { grid-template-columns: repeat(2, 1fr); }
  .grid3 > :last-child:nth-child(odd), .quotes > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stats .wrap > div:nth-child(2) { border-right: 0; }
  .stats .wrap > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps > div:nth-child(2) { border-right: 0; }
  .steps > div:nth-child(-n+2) { border-bottom: 1px dashed rgba(234, 179, 8, 0.35); }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  footer.site .cols > :first-child { grid-column: 1 / -1; }
  header.site .wrap { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 8px; }
  .status-pill.in-header { order: 5; width: 100%; justify-content: center; font-size: 13px; padding: 5px 10px; }
  nav.main { gap: 18px; }
}

/* Phone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  header.site .wrap { gap: 12px; }
  .logo { font-size: 21px; }
  .logo small { font-size: 10px; }
  .menu-toggle { display: block; }
  .call-btn { display: none; }
  nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ink); padding: 8px 20px 18px; border-bottom: 3px solid var(--yellow); }
  nav.main.open { display: flex; }
  nav.main a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .hero { padding-top: 40px; }
  .hero .wrap { padding-bottom: 50px; gap: 36px; }
  .block { padding: 64px 0; }
  .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 20px; gap: 14px; margin: 0 -20px; padding: 4px 20px 18px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail .card { flex: 0 0 82%; scroll-snap-align: start; }
  .rail-hint { display: block; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; color: var(--muted); margin-top: 4px; }
  .grid3, .grid2, .quotes, .gallery, .svc-list, .signs, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps > div { border-right: 0; border-bottom: 1px dashed rgba(234, 179, 8, 0.35); }
  .gauge { width: 120px; height: 60px; }
  .gauge::before { inset: 0 0 -60px 0; }
  .gauge::after { height: 50px; }
  .stats b { font-size: 32px; }
  footer.site .cols { grid-template-columns: 1fr; }
  .footnote { flex-direction: column; }
  .callbar { display: flex; }
  body.has-callbar { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
