/* Tri-Cities Auto Glass LLC
   Brand is black, signal red and white, so the site is dark by design. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("/fonts/archivo.woff2") format("woff2");
}
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/fonts/lexend.woff2") format("woff2");
}

:root {
  --black: #0b0b0c;
  --ink: #131315;
  --panel: #19191c;
  --line: #2b2b30;
  --white: #f4f4f2;
  --muted: #a9a9ae;
  --red: #d7141d;
  --red-hot: #ef2b33;
  --glass-blue: #4d9be6;

  --display: "Archivo", "Arial Black", sans-serif;
  --body: "Lexend", system-ui, sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px; /* room for the mobile call bar */
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
b { font-weight: 600; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 11vw, 5.4rem); }
h2 { font-size: clamp(2rem, 7vw, 3.4rem); }
h3 { font-size: 1.3rem; line-height: 1.15; letter-spacing: -0.01em; }

.red { color: var(--red-hot); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-hot);
  margin-bottom: 14px;
}

.body-lg { font-size: 1.1rem; color: var(--muted); max-width: 46ch; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--black);
  padding: 10px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

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

/* Buttons: hard offset edge, taken from the brand mock */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  min-height: 48px; padding: 0 22px;
  font-family: var(--display); font-stretch: 105%; font-weight: 800; font-size: 1rem;
  text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; border-radius: 14px; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 1.1rem; }
.btn-red { background: var(--red); color: #fff; box-shadow: 4px 4px 0 var(--white); }
.btn-red:hover { background: var(--red-hot); transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--white); }
.btn-red:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--white); }
.btn-ghost { border-color: var(--white); color: var(--white); background: transparent; }
.btn-ghost:hover { background: var(--white); color: var(--black); }

.text-link { font-weight: 500; text-underline-offset: 4px; }
.text-link:hover { color: var(--red-hot); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 12px; min-height: 72px; }
.logo { margin-right: auto; flex: none; }
.logo-mark { height: 50px; width: auto; overflow: visible; }
.logo-car { fill: none; stroke: var(--white); stroke-width: 3.2; stroke-linecap: round; }
.logo-window { fill: none; stroke: var(--glass-blue); stroke-width: 2.4; stroke-linecap: round; }
.logo-name { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 36px; fill: var(--white); }
.logo-rule { stroke: var(--red-hot); stroke-width: 2.4; stroke-linecap: round; }
.logo-sub { font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 15px; fill: var(--red-hot); }

.btn-call { min-height: 44px; padding: 0 14px; font-size: 0.92rem; box-shadow: 3px 3px 0 var(--white); }
.btn-call-label { display: none; }

.menu-toggle {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: none; border: 2px solid var(--line); border-radius: 12px; cursor: pointer;
}
.bars, .bars::before, .bars::after {
  display: block; width: 18px; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column;
  background: var(--ink); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 16px;
}
.nav.open { display: flex; }
.nav a {
  min-height: 48px; display: flex; align-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.nav a:last-child { border-bottom: 0; }
.nav a:hover { color: var(--red-hot); }
.nav-pay { text-decoration: underline !important; text-underline-offset: 4px; }

/* Hero */
.hero {
  padding: 20px 0 28px;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.035) 38% 46%, transparent 46% 58%, rgba(255, 255, 255, 0.02) 58% 62%, transparent 62%),
    radial-gradient(120% 80% at 80% 0%, #232327 0%, var(--black) 60%);
}
.hero-card {
  background: var(--black);
  border: 3px solid var(--red);
  border-radius: 28px;
  padding: 32px 24px 12px;
  display: grid; gap: 28px;
  overflow: hidden;
}
.lede { margin-top: 20px; font-size: 1.1rem; max-width: 44ch; color: #dcdcdc; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.hero-actions .btn { flex: 1 1 240px; }

.windshield { width: 100%; max-width: 560px; margin-inline: auto; }
.ws-frame { fill: var(--white); }
.ws-glass { stroke: var(--glass-blue); stroke-width: 2; stroke-opacity: 0.55; }
.ws-sheen { fill: #fff; opacity: 0.45; }
.crack path { fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.crack-dark { stroke: #14183a; }
.crack-light { stroke: #fff; }
.impact { fill: var(--red-hot); stroke: #14183a; stroke-width: 5; }

/* Crack draws itself in once on load */
.crack path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: crack 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) 0.55s forwards; }
.impact { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: impact 0.25s ease-out 0.4s forwards; }
@keyframes crack { to { stroke-dashoffset: 0; } }
@keyframes impact { to { transform: scale(1); } }

/* Fact strip */
.strip { background: var(--red); color: #fff; }
.strip-row { display: grid; gap: 6px; padding-block: 18px; }
.strip p { font-size: 1rem; }
.strip b { font-family: var(--display); font-weight: 800; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { position: relative; background: var(--ink); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 36px; }

/* Light section, so the black and red ones hit harder */
.section-light { background: var(--white); color: var(--black); }
.section-light .eyebrow, .section-light .service .num { color: var(--red); }
.section-light .services { border-top-color: var(--black); }
.section-light .service { border-bottom-color: #d4d4cf; }
.section-light .service p { color: #45454b; }
.section-light :focus-visible { outline-color: var(--black); }

/* Crack line: the hero graphic carried down the page as a divider */
.crack-rule { position: absolute; left: 0; right: 0; top: -20px; height: 40px; pointer-events: none; }
.crack-rule svg { width: 100%; height: 100%; }
.crack-rule path { fill: none; stroke: var(--red-hot); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.crack-rule::after {
  content: ""; position: absolute; left: 39.17%; top: 24px; width: 14px; height: 14px; margin: -7px;
  border-radius: 50%; background: var(--red-hot); border: 3px solid var(--black);
}

/* Services: numbered ledger */
.services { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--white); }
.service {
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  transition: background-color 0.15s ease;
}
.service .num {
  font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 1.05rem;
  color: var(--red-hot); padding-top: 3px; min-width: 2.2ch;
}
.service p { margin-top: 8px; color: var(--muted); max-width: 58ch; }

/* Steps */
.steps { display: grid; gap: 16px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.step h3 { display: flex; align-items: center; gap: 14px; }
.step h3 span {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--red); color: #fff; border-radius: 50%; font-size: 1.1rem;
}
.step p { margin-top: 14px; color: var(--muted); }

/* Area + payment */
.area { display: grid; gap: 36px; }
.area h2 { margin-bottom: 18px; }
.pay-card { background: var(--white); color: var(--black); border-radius: var(--radius); padding: 28px 24px; }
.pay-card p { margin-top: 10px; font-weight: 400; color: #3a3a3f; }
.pay-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 22px; }
.pay-card .btn-red { box-shadow: 4px 4px 0 var(--black); }
.pay-card .btn-red:hover { box-shadow: 6px 6px 0 var(--black); }
.pay-card :focus-visible { outline-color: var(--black); }

/* Quote */
.quote { position: relative; background: var(--ink); }
.quote-grid { display: grid; gap: 36px; }
.quote-intro h2 { margin-bottom: 18px; }
.phone-big {
  display: inline-block; margin-top: 14px;
  font-family: var(--display); font-stretch: 112%; font-weight: 900;
  font-size: clamp(1.9rem, 8vw, 2.8rem); letter-spacing: -0.02em;
  text-decoration: none; color: var(--white);
}
.phone-big:hover { color: var(--red-hot); }

.quote-form { display: grid; gap: 16px; background: var(--black); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 0.95rem; }
.optional { color: var(--muted); font-weight: 300; }
.hint { font-size: 0.88rem; color: var(--muted); }
#q-vin { text-transform: uppercase; letter-spacing: 0.06em; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 16px; font-weight: 400; color: var(--white);
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; }
.field input::placeholder { color: #77777d; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--glass-blue); }
.photo-drop {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 64px; padding: 12px 14px; cursor: pointer;
  background: var(--panel); border: 2px dashed #4a4a52; border-radius: var(--radius-sm);
  font-weight: 500; transition: border-color 0.12s ease, color 0.12s ease;
}
.photo-drop svg { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.photo-drop:hover, input:focus-visible + .photo-drop, .photo-drop.has-file { border-color: var(--glass-blue); }
.photo-drop.has-file { border-style: solid; }
#photo-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field .invalid { border-color: var(--red-hot); }
.form-status { min-height: 1.6em; font-weight: 500; }
.form-status.error { color: #ff8a8f; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; color: var(--muted); font-size: 0.95rem; }
.footer-row { display: grid; gap: 22px; }
.footer-name { font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--white); text-underline-offset: 4px; }
.footer-legal { margin-top: 22px; font-size: 0.85rem; }

/* Mobile call bar */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(11, 11, 12, 0.96); border-top: 1px solid var(--line);
}
.call-bar .btn-red { box-shadow: none; }

@media (min-width: 560px) {
  .btn-call-label { display: inline; }
  .strip-row { grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .quote-form { grid-template-columns: 1fr 1fr; padding: 32px; }
  .field-wide { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step h3 { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  body { padding-bottom: 0; font-size: 18px; }
  .call-bar, .menu-toggle { display: none; }

  .header-row { min-height: 88px; gap: 28px; }
  .logo-mark { height: 62px; }
  .nav {
    display: flex; position: static; flex-direction: row; gap: 28px;
    background: none; border: 0; padding: 0;
  }
  .nav a { border: 0; font-size: 0.98rem; }
  .btn-call { min-height: 48px; padding: 0 20px; font-size: 1rem; }

  .hero { padding: 36px 0 48px; }
  .hero-card { grid-template-columns: 1.3fr 0.7fr; align-items: center; gap: 24px; padding: 64px 56px; }
  h1 { font-size: clamp(2.8rem, 4.5vw, 4.2rem); }
  .hero-actions .btn { flex: 0 0 auto; }
  .windshield { transform: rotate(-4deg) scale(1.08); }

  .section { padding: 112px 0; }
  .section-head { margin-bottom: 52px; }

  .services { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .service { padding: 34px 0; gap: 24px; }
  .service:hover { background: linear-gradient(90deg, rgba(215, 20, 29, 0.08), transparent 70%); }
  .service h3 { font-size: 1.55rem; }

  .area { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 64px; }
  .pay-card { padding: 40px; }
  .quote-grid { grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
  .footer-row { grid-template-columns: 1fr auto; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .crack path { stroke-dashoffset: 0; }
  .impact { transform: none; }
}

/* ---------- Multi-page additions ---------- */

.nav a.is-current { color: var(--red-hot); }

.btn-dark { background: var(--black); color: #fff; box-shadow: 4px 4px 0 var(--white); }
.btn-dark:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--white); }

/* Inner page header */
.page-head {
  padding: 28px 0 48px;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.035) 38% 46%, transparent 46% 58%, rgba(255, 255, 255, 0.02) 58% 62%, transparent 62%),
    radial-gradient(120% 80% at 80% 0%, #232327 0%, var(--black) 60%);
  border-bottom: 3px solid var(--red);
}
.page-head h1 { font-size: clamp(2.3rem, 9vw, 4rem); }
.page-head-tight { padding: 20px 0 0; border-bottom: 0; background: var(--ink); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--white); text-underline-offset: 4px; }
.crumbs a:hover { color: var(--red-hot); }
.page-head-tight .crumbs { margin-bottom: 0; }

.quote-page { padding-top: 40px; }
.quote-page h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); margin-bottom: 18px; }

/* Service list rows are whole-row links */
.service { position: relative; }
.service h3 a { text-decoration: none; }
.service h3 a::after { content: ""; position: absolute; inset: 0; }
.service .more {
  display: inline-block; margin-top: 12px;
  font-family: var(--display); font-weight: 800; font-size: 0.95rem; color: var(--red);
}
.service:hover h3 a { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.area-link { margin-top: 22px; }

/* Detail pages: copy plus a quote card */
.detail { display: grid; gap: 40px; }
.prose { max-width: 62ch; }
.prose h2 { font-size: clamp(1.5rem, 5vw, 2rem); margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 14px; color: #3a3a40; }
.prose a { font-weight: 600; text-underline-offset: 4px; }
.checks { list-style: none; margin: 18px 0 0; padding: 0; border-top: 2px solid var(--black); }
.checks li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid #d4d4cf; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 1.45em;
  width: 14px; height: 3px; background: var(--red); border-radius: 2px;
}

.quote-card { background: var(--black); color: var(--white); border-radius: var(--radius); padding: 28px 24px; align-self: start; }
.quote-card h2 { font-size: 1.7rem; }
.quote-card p { margin-top: 12px; color: var(--muted); }
.quote-card .btn { margin-top: 22px; width: 100%; }
.quote-card-phone {
  display: block; margin-top: 20px; text-align: center; text-decoration: none; color: var(--white);
  font-family: var(--display); font-stretch: 112%; font-weight: 900; font-size: 1.5rem;
}
.quote-card-phone:hover { color: var(--red-hot); }
.quote-card-note { font-size: 0.9rem; text-align: center; }
.section-light .quote-card :focus-visible { outline-color: var(--white); }

/* Closing call to action */
.cta-band { background: var(--red); color: #fff; padding: 48px 0; }
.cta-row { display: grid; gap: 24px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.cta-actions .btn { flex: 1 1 240px; }
.cta-band .btn-ghost:hover { color: var(--red); }

.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }

@media (min-width: 900px) {
  .page-head { padding: 36px 0 72px; }
  .detail { grid-template-columns: 1fr 360px; gap: 72px; }
  .quote-card { position: sticky; top: 120px; padding: 32px; }
  .cta-row { grid-template-columns: 1fr auto; align-items: center; }
  .cta-actions .btn { flex: 0 0 auto; }
  .footer-links { grid-template-columns: repeat(4, auto); }
  .footer-row { align-items: start; }
}
