/* Nirala Auto Repair — minimal Swiss: white, black, one red · Inter Tight · strict 12-col grid, oversized numerals, thin rules, no shadows */
:root {
  --black: #0a0a0a;
  --red: #dc2626;
  --white: #ffffff;
  --grey: #f4f4f4;
  --mid: #5f5f5f;
  --rule: #0a0a0a;
  --hair: #d9d9d9;
  --gut: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 18px; line-height: 1.55; color: var(--black); background: var(--white); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; margin: 0 0 16px; }
p { margin: 0 0 16px; }
.wrap { width: min(1240px, 100% - 48px); margin: 0 auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* 12-col grid */
.g12 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); row-gap: 40px; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c9 { grid-column: span 9; } .c12 { grid-column: span 12; }
.s4 { grid-column-start: 5; } .s5 { grid-column-start: 6; } .s7 { grid-column-start: 8; }

/* Header */
header.site { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--rule); }
header.site.scrolled { border-bottom-width: 2px; }
header.site .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.logo .sq { width: 18px; height: 18px; background: var(--red); }
nav.main { display: flex; gap: 26px; }
nav.main a { font-size: 15px; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
nav.main a:hover { border-color: var(--hair); }
nav.main a.active { border-color: var(--red); }
.call-btn { background: var(--black); color: #fff; font-weight: 600; font-size: 15px; padding: 12px 18px; transition: background 0.2s; white-space: nowrap; }
.call-btn:hover { background: var(--red); }
.menu-toggle { display: none; background: none; border: 1px solid var(--black); width: 44px; height: 44px; font-size: 18px; cursor: pointer; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.status-pill::before { content: ""; width: 10px; height: 10px; background: #999; }
.status-pill.open::before { background: #16a34a; }
.status-pill.closed::before { background: var(--red); }

/* Type helpers */
.label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid); margin: 0 0 18px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin: 0 0 18px; }
h2.title { font-size: clamp(36px, 5vw, 64px); max-width: 15ch; }
.lead { font-size: 22px; line-height: 1.45; color: #2b2b2b; max-width: 34ch; }
.mega { font-size: clamp(110px, 18vw, 260px); font-weight: 600; letter-spacing: -0.07em; line-height: 0.82; margin: 0; }
.mega .r { color: var(--red); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 18px 26px; font-weight: 600; font-size: 16px; border: 1px solid var(--black); transition: background 0.2s, color 0.2s, gap 0.2s; }
.btn::after { content: "→"; transition: transform 0.25s; }
.btn:hover::after { transform: translateX(5px); }
.btn.primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn.primary:hover { background: var(--black); border-color: var(--black); }
.btn.line:hover { background: var(--black); color: #fff; }
.btn.inv { background: #fff; color: var(--black); border-color: #fff; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

/* Hero */
.hero { padding: 72px 0 0; border-bottom: 1px solid var(--rule); }
.hero h1 { font-size: clamp(48px, 8vw, 116px); letter-spacing: -0.055em; line-height: 0.92; margin-bottom: 30px; }
.hero h1 .r { color: var(--red); }
.hero .meta { border-top: 1px solid var(--rule); padding-top: 14px; font-size: 15px; color: var(--mid); }
.hero .meta b { color: var(--black); display: block; font-weight: 600; }
.hero-img { margin-top: 64px; aspect-ratio: 21/8; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: grayscale(1) contrast(1.08); animation: wipe 1.2s cubic-bezier(.77,0,.18,1) both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero .copy > * { animation: up 0.7s cubic-bezier(.22,1,.36,1) both; }
.hero .copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero .copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero .copy > *:nth-child(4) { animation-delay: 0.24s; }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero.small { padding-bottom: 72px; }

/* Stats */
.stats { border-bottom: 1px solid var(--rule); }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats .wrap > div { padding: 36px 24px 34px 0; border-right: 1px solid var(--rule); }
.stats .wrap > div + div { padding-left: 24px; }
.stats .wrap > div:last-child { border-right: 0; }
.stats b { display: block; font-size: clamp(56px, 7vw, 96px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.9; margin-bottom: 12px; }
.stats span { font-size: 15px; color: var(--mid); }

/* Sections */
.block { padding: 120px 0; border-bottom: 1px solid var(--rule); }
.block.grey { background: var(--grey); }
.block.black { background: var(--black); color: #fff; border-bottom-color: var(--black); }
.block.black .label, .block.black .lead { color: #bdbdbd; }
.prose p { font-size: 19px; color: #242424; max-width: 62ch; }
.prose strong { font-weight: 600; }
.prose a { color: var(--red); border-bottom: 1px solid var(--red); }
.black .prose p { color: #d6d6d6; }

/* Numbered items (services/why) */
.items { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gut); row-gap: 56px; }
.items.two { grid-template-columns: repeat(2, 1fr); }
.card { border-top: 1px solid var(--rule); padding-top: 18px; transition: border-color 0.3s; }
.card:hover { border-top-color: var(--red); }
.black .card { border-top-color: #fff; }
.card .n { font-size: 15px; font-weight: 600; color: var(--red); display: block; margin-bottom: 26px; }
.card h3 { font-size: 26px; letter-spacing: -0.025em; margin-bottom: 12px; }
.card p { color: #3b3b3b; font-size: 17px; margin: 0; }
.card p + p { margin-top: 12px; }
.black .card p { color: #cfcfcf; }
.card.big .n { font-size: 72px; letter-spacing: -0.06em; line-height: 0.9; color: var(--black); margin-bottom: 18px; }
.card.big:hover .n { color: var(--red); }
.more { margin-top: 56px; }
.textlink { font-weight: 600; border-bottom: 2px solid var(--red); padding-bottom: 2px; }

/* Lists */
ul.rule-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
ul.rule-list li { padding: 16px 0 16px 44px; border-bottom: 1px solid var(--hair); position: relative; font-size: 18px; }
ul.rule-list li::before { content: counter(li, decimal-leading-zero); counter-increment: li; position: absolute; left: 0; top: 17px; font-size: 13px; font-weight: 600; color: var(--red); }
ul.rule-list { counter-reset: li; }

/* Reviews */
.review-band { padding: 120px 0; border-bottom: 1px solid var(--rule); }
.review-band .quotes { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gut); margin: 60px 0 50px; }
.quote { margin: 0; border-top: 1px solid var(--rule); padding-top: 22px; }
.quote p { font-size: 22px; line-height: 1.35; letter-spacing: -0.015em; margin: 0 0 22px; }
.quote p::before { content: "“"; color: var(--red); }
.quote p::after { content: "”"; color: var(--red); }
.quote cite { font-style: normal; font-size: 14px; color: var(--mid); }

/* FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 50px 26px 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 18px; height: 2px; background: var(--black); box-shadow: none; }
.faq summary::before { content: ""; position: absolute; right: 12px; top: calc(50% - 8px); width: 2px; height: 18px; background: var(--red); transition: transform 0.25s; }
.faq details[open] summary::before { transform: scaleY(0); }
.faq details p { max-width: 64ch; color: #333; margin: -6px 0 26px; }

/* Panels / contact */
.panel { border-top: 2px solid var(--rule); padding-top: 18px; }
.panel .big { font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.04em; display: inline-block; line-height: 1.05; margin-bottom: 10px; }
.panel .big:hover { color: var(--red); }
.panel p { color: var(--mid); font-size: 16px; }
.hours-row { display: grid; grid-template-columns: 1fr auto; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 17px; }
.hours-row b { font-weight: 600; }
.hours-row.off span { color: var(--red); }
.map-embed { width: 100%; height: 100%; min-height: 460px; border: 0; filter: grayscale(1); display: block; }

/* Images */
.frame { overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.5s; }
.frame:hover img { filter: grayscale(0); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gut); }
.ph { margin: 0; aspect-ratio: 4/3; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.5s, transform 0.6s; }
.ph:hover img { filter: grayscale(0); transform: scale(1.03); }
.caption { font-size: 14px; color: var(--mid); margin-top: 18px; border-top: 1px solid var(--hair); padding-top: 12px; }

/* CTA */
.cta-band { background: var(--red); color: #fff; padding: 110px 0; }
.cta-band .wrap > * { max-width: none; }
.cta-band h2 { font-size: clamp(44px, 7vw, 104px); letter-spacing: -0.055em; line-height: 0.92; margin-bottom: 36px; }
.cta-band p { font-size: 20px; max-width: 46ch; color: #fff; }

/* Footer */
footer.site { padding: 72px 0 0; }
footer.site .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gut); padding-bottom: 60px; }
footer.site h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid); border-top: 1px solid var(--rule); padding-top: 14px; }
footer.site p, footer.site a { display: block; font-size: 16px; margin-bottom: 6px; }
footer.site a:hover { color: var(--red); }
.footnote { width: min(1240px, 100% - 48px); margin: 0 auto; border-top: 1px solid var(--rule); padding: 18px 0 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--mid); }
.footnote .credit { color: var(--black); font-weight: 600; display: inline; margin: 0; }
.footnote .credit:hover { color: var(--red); }

/* app.js hooks */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; padding: 0 0 env(safe-area-inset-bottom); background: var(--black); }
.callbar a { flex: 1; text-align: center; padding: 18px 10px; font-weight: 600; font-size: 16px; }
.callbar .cb-call { background: var(--red); color: #fff; }
.callbar .cb-dir { color: #fff; }

@media (max-width: 980px) {
  .g12 { grid-template-columns: 1fr; row-gap: 32px; }
  .g12 > * { grid-column: 1 / -1 !important; }
  .items { grid-template-columns: repeat(2, 1fr); }
  .items.trio, .review-band .quotes { grid-template-columns: 1fr; row-gap: 40px; }
  .block, .review-band { padding: 84px 0; }
  .hero-img { aspect-ratio: 16/9; }
  nav.main { gap: 18px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 36px); }
  .footnote { width: calc(100% - 36px); }
  header.site .wrap { gap: 12px; min-height: 62px; padding: 8px 0; }
  .logo { font-size: 18px; }
  nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 0 18px; border-bottom: 2px solid var(--black); }
  nav.main.open { display: flex; }
  nav.main a { padding: 16px 0; font-size: 20px; border-bottom: 1px solid var(--hair); }
  nav.main a.active { border-bottom-color: var(--red); }
  .menu-toggle { display: block; }
  .call-btn { padding: 11px 14px; }
  .call-btn .num { display: none; }
  .status-pill { order: 5; width: 100%; font-size: 13px; border-top: 1px solid var(--hair); padding-top: 8px; }
  .callbar { display: flex; }
  body.has-callbar { padding-bottom: 72px; }
  .items, .items.two { grid-template-columns: 1fr; row-gap: 40px; }
  .stats .wrap { grid-template-columns: 1fr; }
  .stats .wrap > div, .stats .wrap > div + div { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--hair); }
  .stats .wrap > div:last-child { border-bottom: 0; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .block, .review-band, .cta-band { padding: 64px 0; }
  .hero { padding-top: 44px; }
  .hero-img { margin-top: 40px; aspect-ratio: 4/3; }
  .quote p { font-size: 20px; }
  .faq summary { font-size: 19px; }
  footer.site .wrap { grid-template-columns: 1fr; }
  .map-embed { min-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
