/* Accurate Auto Glass, Stockton CA
   Palette comes from the shop itself: the red walls, the black logo bar,
   the green edge you see on a sheet of laminated glass, loader yellow. */
:root {
  --red: #d11a1f;
  --red-deep: #a50f14;
  --black: #000;
  --ink: #1e2124;
  --ink-soft: #50565c;
  --glass: #eef3f2;
  --white: #fff;
  --edge: #1b6658;
  --edge-pale: #d3e5e0;
  --loader: #f4b400;
  --line: #c9d3d1;
  --slant: -12deg;
  --wrap: 1180px;
  --display: "Saira", "Arial Narrow", sans-serif;
  --body: "Saira", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--glass); color: var(--ink);
  font-family: var(--body); font-stretch: 100%; font-size: 1.0625rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--edge); text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--edge); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--black); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

h1, h2, h3 { font-family: var(--display); font-stretch: 62%; font-style: italic; font-weight: 800; line-height: 0.98; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: clamp(3.1rem, 9.2vw, 7.4rem); text-transform: uppercase; }
h2 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); text-transform: uppercase; }
h3 { font-size: 1.7rem; font-stretch: 75%; line-height: 1.05; }
p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; }

/* ---------- buttons: parallelograms, same slant as the logo ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none;
  font: italic 800 1.25rem/1 var(--display); font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.02em;
  padding: 17px 30px; color: #fff; background: var(--red);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: background 0.15s;
}
.btn:hover { background: var(--red-deep); color: #fff; }
.btn.dark { background: var(--black); }
.btn.dark:hover { background: var(--ink); }
.btn.ghost { background: var(--white); color: var(--black); }
.btn.ghost:hover { background: var(--edge-pale); color: var(--black); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- header ---------- */
.top { background: var(--white); border-bottom: 4px solid var(--black); position: sticky; top: 0; z-index: 40; }
.top .wrap { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.logo { display: block; flex: none; }
.logo img { height: 56px; width: auto; display: block; }
.top nav { margin-left: auto; display: flex; gap: 24px; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-stretch: 88%; }
.top nav a:hover { color: var(--red); }
.top .phone { font: italic 800 1.7rem/1 var(--display); font-stretch: 70%; color: var(--black); text-decoration: none; white-space: nowrap; }
.top .phone:hover { color: var(--red); }
.top .btn { padding: 13px 24px; font-size: 1.05rem; }
@media (max-width: 980px) { .top nav { display: none; } .top .phone { margin-left: auto; } }
@media (max-width: 640px) { .top .btn { display: none; } .logo img { height: 44px; } .top .phone { font-size: 1.4rem; } .top .wrap { min-height: 62px; } }

/* ---------- hero ---------- */
.hero { background: var(--white); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0; align-items: stretch; min-height: min(86vh, 800px); }
.hero-text { padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); position: relative; z-index: 2; align-self: center; }
.hero h1 { margin-bottom: 26px; }
.hero h1 span { display: block; }
.hero h1 .r { color: var(--red); }
.hero .lede { max-width: 34ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-photo { position: relative; margin-right: calc((100vw - min(100vw - 40px, var(--wrap))) / -2); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%); }
.proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px; padding-top: 22px; border-top: 2px solid var(--black); font-weight: 600; font-stretch: 90%; }
.proof a { color: var(--ink); }
.stars { color: var(--red); letter-spacing: 2px; }
.open-now { display: inline-flex; align-items: center; gap: 8px; }
.open-now i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-soft); display: inline-block; }
.open-now.is-open i { background: #1f9d55; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { margin: 0 -20px; height: 62vw; min-height: 300px; order: -1; }
  .hero-photo img { clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); object-position: 50% 28%; }
  .hero-text { padding-top: 26px; }
}

/* ---------- sections ---------- */
.band { padding: clamp(60px, 9vw, 120px) 0; }
.band.white { background: var(--white); }
.band.black { background: var(--black); color: #fff; }
.band.black a { color: #fff; }
.band.red { background: var(--red); color: #fff; }
.band.red a { color: #fff; }
.head { margin-bottom: clamp(28px, 4vw, 52px); }
.head p { margin-top: 18px; }
.rule { height: 12px; background: repeating-linear-gradient(calc(90deg + var(--slant)), var(--black) 0 14px, transparent 14px 28px); }

/* ---------- damage picker ---------- */
.picker { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.car-stage { background: var(--white); border: 3px solid var(--black); padding: 26px 20px 20px; position: relative; }
.car-stage svg { display: block; width: min(100%, 300px); margin: 0 auto; overflow: visible; }
.car-body { fill: #e3e8e7; stroke: var(--black); stroke-width: 3; }
.car-detail { fill: none; stroke: var(--black); stroke-width: 2; opacity: 0.35; }
.pane { fill: var(--edge-pale); stroke: var(--edge); stroke-width: 2.5; cursor: pointer; transition: fill 0.15s; }
.pane:hover { fill: #b9d8d0; }
.pane[aria-pressed="true"] { fill: var(--red); stroke: var(--red-deep); }
.pane:focus-visible { outline: none; stroke: var(--black); stroke-width: 4; }
.reticle { pointer-events: none; opacity: 0; transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.2s; transform-box: view-box; }
.reticle.on { opacity: 1; }
.reticle circle { fill: none; stroke: var(--black); stroke-width: 2.5; }
.reticle line { stroke: var(--black); stroke-width: 2.5; }
.picked { margin: 16px 0 0; text-align: center; font: italic 800 1.5rem/1.1 var(--display); font-stretch: 72%; text-transform: uppercase; min-height: 1.2em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; justify-content: center; }
.chip { font: 600 0.95rem/1 var(--body); font-stretch: 88%; padding: 10px 14px; background: var(--white); border: 2px solid var(--black); color: var(--ink); cursor: pointer; }
.chip:hover { background: var(--edge-pale); }
.chip[aria-pressed="true"] { background: var(--black); color: #fff; }

form.quote { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.quote .full { grid-column: 1 / -1; }
label { display: block; font-weight: 700; font-stretch: 90%; margin-bottom: 6px; }
label small { font-weight: 400; color: var(--ink-soft); }
input, textarea, select {
  width: 100%; font: 400 1.0625rem/1.3 var(--body); color: var(--ink); background: var(--white);
  border: 2px solid var(--black); border-radius: 0; padding: 13px 14px; appearance: none;
}
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--edge); outline-offset: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--black); background: var(--white); }
.seg label { margin: 0; padding: 13px 10px; text-align: center; cursor: pointer; font-weight: 600; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg input:checked + label { background: var(--black); color: #fff; }
.seg input:focus-visible + label { outline: 3px solid var(--edge); outline-offset: -3px; }
.hp { position: absolute; left: -9999px; }
.form-msg { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.form-msg.err { color: var(--red-deep); }
.sent { border: 3px solid var(--black); background: var(--white); padding: 28px; }
.sent h3 { margin-bottom: 10px; }
@media (max-width: 860px) { .picker { grid-template-columns: 1fr; } }
@media (max-width: 520px) { form.quote { grid-template-columns: 1fr; } }

/* ---------- services ---------- */
.svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(28px, 5vw, 72px); list-style: none; margin: 0; padding: 0; }
.svc li { padding: 24px 0; border-top: 2px solid var(--black); display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start; }
.svc svg { width: 46px; height: 46px; stroke: var(--red); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { margin-bottom: 6px; }
.svc h3 a { color: inherit; text-decoration: none; }
.svc h3 a:hover { color: var(--red); text-decoration: underline; }
.svc p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; } }

/* ---------- split (mobile service) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split .ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split .ph { position: relative; }
.split .ph::after { content: ""; position: absolute; left: -14px; bottom: -14px; width: 46%; height: 12px; background: var(--black); transform: skewX(var(--slant)); }
.band.red .split .ph::after { background: var(--black); }
.ticks { list-style: none; padding: 0; margin: 22px 0 28px; }
.ticks li { padding: 10px 0 10px 34px; position: relative; border-top: 1px solid rgba(255, 255, 255, 0.35); font-weight: 500; }
.band.white .ticks li, .band:not(.red):not(.black) .ticks li { border-top-color: var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 16px; height: 9px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .ph img { aspect-ratio: 4 / 3; } }

/* ---------- galleries ---------- */
.heavy h2 { color: var(--loader); }
.shots { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.shots figure { margin: 0; position: relative; overflow: hidden; background: #111; }
.shots img { width: 100%; height: 100%; object-fit: cover; }
.shots figcaption { position: absolute; left: 0; bottom: 0; background: var(--black); color: #fff; padding: 8px 14px 8px 12px; font-weight: 600; font-stretch: 85%; font-size: 0.95rem; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.heavy .shots figcaption { background: var(--loader); color: var(--black); }
.shots .a { grid-column: span 5; height: min(44vw, 540px); }
.shots .b { grid-column: span 4; height: min(44vw, 540px); }
.shots .c { grid-column: span 3; height: min(44vw, 540px); }
.shots .d { grid-column: span 6; height: min(36vw, 430px); }
.shots .e { grid-column: span 4; height: min(42vw, 520px); }
@media (max-width: 760px) {
  .shots { grid-template-columns: 1fr 1fr; gap: 8px; }
  .shots .a, .shots .b, .shots .c, .shots .d, .shots .e { grid-column: span 1; height: 62vw; }
  .shots .wide { grid-column: span 2; height: 72vw; }
}

/* ---------- reviews ---------- */
.reviews { columns: 3 300px; column-gap: 28px; }
.reviews blockquote { break-inside: avoid; margin: 0 0 28px; padding: 0 0 0 20px; border-left: 6px solid var(--red); }
.reviews p { margin: 0 0 10px; font-size: 1.08rem; }
.reviews cite { font-style: normal; color: var(--ink-soft); font-size: 0.95rem; }
.score { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.score b { font: italic 800 clamp(4rem, 9vw, 6.5rem) / 0.9 var(--display); font-stretch: 62%; color: var(--red); }

/* ---------- repair or replace ---------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 3px solid var(--black); background: var(--white); }
.versus > div { padding: clamp(22px, 3.5vw, 40px); }
.versus > div + div { border-left: 3px solid var(--black); }
.versus h3 { font-size: 2.1rem; text-transform: uppercase; margin-bottom: 12px; }
.versus ul { margin: 0; padding-left: 20px; }
.versus li { margin-bottom: 8px; }
@media (max-width: 700px) { .versus { grid-template-columns: 1fr; } .versus > div + div { border-left: 0; border-top: 3px solid var(--black); } }

/* ---------- faq ---------- */
.faq details { border-top: 2px solid var(--black); }
.faq details:last-child { border-bottom: 2px solid var(--black); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font: italic 800 1.5rem/1.15 var(--display); font-stretch: 75%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font: 400 2.2rem/1 var(--body); color: var(--red); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 22px; margin: 0; }

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: stretch; }
.visit address { font-style: normal; font-size: 1.2rem; line-height: 1.45; margin: 18px 0 22px; }
.visit .big-phone { font: italic 800 clamp(2.6rem, 6vw, 4rem) / 1 var(--display); font-stretch: 65%; color: #fff; text-decoration: none; display: inline-block; margin-bottom: 20px; }
.hours { border-collapse: collapse; width: 100%; max-width: 340px; margin-bottom: 26px; }
.hours td { padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.hours td:last-child { text-align: right; }
.map { min-height: 380px; border: 0; width: 100%; height: 100%; filter: grayscale(0.2); }
.areas { margin-top: 20px; opacity: 0.9; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } .map { height: 340px; } }

/* ---------- footer ---------- */
footer { background: var(--white); border-top: 4px solid var(--black); padding: 36px 0 110px; font-size: 0.97rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: flex-start; justify-content: space-between; }
footer ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 36px; }
footer li { margin-bottom: 6px; }
footer .logo img { height: 64px; }
@media (min-width: 641px) { footer { padding-bottom: 40px; } }

/* ---------- sticky call bar (phones) ---------- */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; grid-template-columns: 1fr 1fr; border-top: 3px solid var(--black); }
.callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 8px calc(16px + env(safe-area-inset-bottom)); text-decoration: none; font: italic 800 1.2rem/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.callbar .c1 { background: var(--red); color: #fff; }
.callbar .c2 { background: var(--white); color: var(--black); }
.callbar svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .callbar { display: grid; } }

/* ---------- service pages ---------- */
.page-hero { background: var(--white); }
.page-hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(36px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); margin-bottom: 22px; }
.page-hero img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); }
.crumbs { font-size: 0.95rem; margin-bottom: 18px; color: var(--ink-soft); }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 44px 0 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.cta-strip { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; }
.cta-strip h2 { max-width: 16ch; }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: 1fr; } .page-hero img { aspect-ratio: 4 / 3; clip-path: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reticle, .btn, .pane { transition: none; }
}

/* buttons keep their own colours inside coloured bands */
.band .btn, .band .btn:hover { color: #fff; }
.band .btn.ghost, .band .btn.ghost:hover { color: var(--black); }

.shots .c img { object-position: 0% 50%; }
.hero-photo img { object-position: 46% 30%; }
