/* Lubbock Windshield Replacement — aligned with the owner's local-service family:
   warm cream ground, dark ink, Manrope + DM Sans, one restrained glass-blue accent. */
:root {
  --ink: #20383b;
  --ink-deep: #182e31;
  --paper: #f5f2e9;
  --tint: #e8e4d9;
  --muted: #526b6c;
  --accent: #2f6f8f;
  --accent-dark: #245a75;
  --accent-soft: #9cc3d3;
  --line: rgba(32,56,59,.16);
  --line-light: rgba(245,242,233,.2);
  --display: "Manrope", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --gutter: max(5vw, 20px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0; min-height: 100dvh; overflow-x: hidden;
  font-family: var(--body); font-size: 17px; line-height: 1.7;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }

/* top line */
.topline {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--ink); color: rgba(245,242,233,.78);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  padding: 9px var(--gutter);
}

/* header */
.masthead {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 16px var(--gutter); min-height: 80px;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 42px; height: 42px; background: var(--ink); position: relative; flex: none; }
.brand-mark::before { /* windshield outline */
  content: ""; position: absolute; left: 9px; right: 9px; top: 12px; bottom: 12px;
  border: 2px solid var(--paper); border-radius: 10px 10px 2px 2px / 7px 7px 2px 2px;
}
.brand-mark::after { content: ""; position: absolute; left: 15px; top: 17px; width: 9px; height: 2px; background: var(--accent-soft); transform: rotate(-30deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.brand-text em { font-style: normal; font-size: 9.5px; letter-spacing: .17em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-top: 3px; }
.nav-desktop { flex: 1; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 4px 0; font-size: 12px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.nav-list a:hover { color: var(--accent); }
.nav-list a[aria-current="page"] { border-bottom-color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 14px/1 var(--body); letter-spacing: .02em;
  min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 0; cursor: pointer; text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--paper); transform: translateY(-2px); }
.head-call { flex-shrink: 0; font-family: var(--display); font-weight: 800; }
.nav-mobile { display: none; margin-left: auto; position: relative; }
.nav-mobile summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  font: 700 13px var(--body); padding: 11px 14px; border: 1px solid var(--line);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 16px; height: 1px; background: var(--ink); position: relative; transition: transform .25s ease; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -5px; } .burger::after { top: 5px; }
.nav-mobile[open] .burger { background: transparent; }
.nav-mobile[open] .burger::before { transform: translateY(5px) rotate(45deg); }
.nav-mobile[open] .burger::after { transform: translateY(-5px) rotate(-45deg); }
.nav-mobile nav {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(calc(100vw - 32px), 320px);
  max-height: 75vh; overflow: auto;
  background: var(--paper); border: 1px solid var(--line); padding: 10px 16px;
  box-shadow: 0 14px 32px rgba(32,56,59,.14);
}
.nav-list-mobile { list-style: none; margin: 0; padding: 0; }
.nav-list-mobile li + li { border-top: 1px solid var(--line); }
.nav-list-mobile a { display: block; padding: 11px 2px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); }
.nav-list-mobile a[aria-current="page"] { color: var(--accent); }

/* main content */
main { padding: 0 0 24px; }
.sheet { padding: 0 var(--gutter); }
.lg-wrap { max-width: 810px; margin: 0 auto; overflow-wrap: break-word; }
.lg-wrap > :first-child { margin-top: 0; }

/* hero band: full-bleed dark ink behind the page's opening H1, intro and call */
.lg-wrap > h1,
.lg-wrap > h1 + p,
.lg-wrap > h1 + p + .lg-cta {
  background: var(--ink); color: var(--paper);
  box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax);
  margin: 0;
}
.lg-wrap > h1 {
  font-family: var(--display); font-weight: 600; letter-spacing: -.045em; line-height: 1.06;
  font-size: clamp(39px, 5.3vw, 64px); max-width: 890px;
  padding-top: clamp(64px, 9vw, 104px); padding-bottom: 4px;
  position: relative;
}
.lg-wrap > h1::before {
  content: ""; display: block; width: 36px; height: 1px; background: var(--accent-soft); margin-bottom: 26px;
}
.lg-wrap > h1 + p { padding-top: 20px; padding-bottom: 72px; max-width: none; color: rgba(245,242,233,.84); font-size: 17px; line-height: 1.65; }
.lg-wrap > h1 + p a { color: var(--paper); text-decoration-color: var(--accent-soft); }
.lg-wrap > h1 + p:has(+ .lg-cta) { padding-bottom: 0; }
.lg-wrap > h1 + p + .lg-cta { padding: 28px 0 80px; }
.lg-wrap > h1 + p + .lg-cta + * { margin-top: 64px; }
.lg-wrap > h1 + p + :not(.lg-cta) { margin-top: 64px; }

.lg-wrap h2 {
  font-family: var(--display); font-weight: 600; letter-spacing: -.045em; line-height: 1.1;
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 72px 0 18px; padding-top: 28px; border-top: 1px solid var(--line);
}
.lg-wrap h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; font-size: 21px; line-height: 1.25; margin: 32px 0 8px; }
.lg-wrap p { margin: 0 0 19px; }
.lg-wrap strong { font-family: var(--display); font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.lg-wrap a:not(.lg-cta a) { text-decoration-color: var(--accent); }

/* lists as feature rows */
.lg-wrap ul, .lg-wrap ol { margin: 8px 0 28px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.lg-wrap li { position: relative; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); }
.lg-wrap ul > li::before { content: ""; position: absolute; left: 4px; top: 29px; width: 14px; height: 1px; background: var(--accent); }
.lg-wrap ol { counter-reset: step; }
.lg-wrap ol > li { counter-increment: step; padding-left: 52px; }
.lg-wrap ol > li::before {
  content: "0" counter(step); position: absolute; left: 0; top: 17px;
  font: 800 12px/1.6 var(--display); letter-spacing: .1em; color: var(--accent);
}
.lg-wrap li > strong:first-child { display: block; font-size: 18px; letter-spacing: -.025em; margin-bottom: 2px; }
/* Q&A paragraphs that open with a bold question */
.lg-wrap h2 ~ p:has(> strong:first-child) { padding: 18px 0; border-bottom: 1px solid var(--line); margin: 0; color: var(--muted); }
.lg-wrap h2 + p:has(> strong:first-child) { border-top: 0; }
.lg-wrap h2 ~ p:has(> strong:first-child) > strong:first-child { display: block; font-size: 17px; margin-bottom: 6px; color: var(--ink); }
.lg-wrap h2 ~ p:has(> strong:first-child) + :not(p) { margin-top: 28px; }
.lg-wrap > h1 + p:has(> strong:first-child) { padding: 20px 0 0; border: 0; color: rgba(245,242,233,.84); }
.lg-wrap > h1 + p strong { color: var(--paper); }

/* images */
.lg-wrap figure { margin: 44px 0; overflow: hidden; background: var(--tint); }
.lg-wrap img { display: block; width: 100%; height: auto; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.lg-wrap figure:hover img { transform: scale(1.025); }
/* Home: first image sits as a wide band directly under the hero */
.lg-wrap > h1 + p + .lg-cta + figure {
  margin-top: 0; box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax 0 -100vmax);
  background: var(--ink); padding-bottom: 0;
}
.lg-wrap > h1 + p + .lg-cta + figure + p { margin-top: 56px; font-size: 18px; line-height: 1.75; }

/* calls to action */
.lg-wrap .lg-cta { margin: 28px 0; }
.lg-wrap .lg-cta a {
  display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 24px;
  background: var(--accent); color: var(--paper); text-decoration: none;
  font: 700 14px/1 var(--body); letter-spacing: .03em;
  transition: background-color .2s ease, transform .2s ease;
}
.lg-wrap .lg-cta a::after { content: ""; width: 14px; height: 1px; background: currentColor; transition: transform .2s ease; }
.lg-wrap .lg-cta a:hover { background: var(--accent-dark); color: var(--paper); transform: translateY(-2px); }
.lg-wrap .lg-cta a:hover::after { transform: translateX(4px); }
.lg-wrap > .lg-cta:last-child { padding: 36px 0 0; border-top: 1px solid var(--line); }

/* tables */
.table-scroll { overflow-x: auto; margin: 24px 0 28px; border-top: 1px solid var(--ink); }
.lg-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lg-wrap th, .lg-wrap td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.lg-wrap tr:first-child td { background: var(--ink); color: var(--paper); }
.lg-wrap tr:first-child td strong { color: var(--paper); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-family: var(--body); }
.lg-wrap tr:nth-child(even) td { background: rgba(32,56,59,.035); }
.lg-wrap tr:not(:first-child):hover td { background: rgba(47,111,143,.07); }
.lg-wrap td:last-child { text-align: right; white-space: nowrap; }
.lg-wrap tr:not(:first-child) td strong { color: var(--accent-dark); font-size: 16px; }

/* quote form */
.quote { margin: 80px 0 0; background: var(--tint); padding: clamp(56px, 8vw, 96px) var(--gutter); }
.quote-inner { max-width: 1160px; margin: 0 auto; display: grid; gap: 48px; grid-template-columns: .8fr 1.2fr; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.eyebrow::before { content: ""; width: 31px; height: 1px; background: currentColor; }
.quote h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.05em; font-size: clamp(32px, 4vw, 52px); line-height: 1.04; margin: 0 0 18px; }
.quote-note { color: var(--muted); font-size: 15px; }
.quote-note a { color: var(--ink); font-weight: 700; }
.req { color: var(--accent); font-weight: 700; }
.quote-form { background: var(--paper); padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); min-width: 0; }
.wide { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; min-width: 0; min-height: 47px;
  font: 400 15px var(--body); color: var(--ink); background: transparent;
  border: 1px solid rgba(32,56,59,.26); border-radius: 0; padding: 12px 13px; transition: border-color .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.quote-form .btn { justify-self: start; min-height: 52px; padding: 0 26px; }

/* footer */
.foot { background: var(--ink-deep); color: rgba(245,242,233,.7); margin-top: 96px; padding: 68px var(--gutter) 25px; }
.foot-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 45px; padding-bottom: 48px; }
.foot-brand { font: 600 26px/1.15 var(--display); letter-spacing: -.04em; color: var(--paper); margin: 0 0 14px; max-width: 14ch; }
.foot-tag { margin: 0; font-size: 14px; max-width: 330px; }
.foot-facts { margin: 0; display: grid; gap: 16px; align-content: start; }
.foot-facts dt { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--accent-soft); }
.foot-facts dd { margin: 2px 0 0; color: var(--paper); font-size: 14px; overflow-wrap: anywhere; }
.foot a { color: rgba(245,242,233,.88); text-decoration: none; }
.foot a:hover { color: var(--accent-soft); }
.foot-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 13px; align-content: start; }
.foot-copy { max-width: 1180px; margin: 0 auto; padding-top: 19px; border-top: 1px solid rgba(245,242,233,.17); font-size: 11px; letter-spacing: .04em; color: rgba(245,242,233,.56); }

/* sticky call: discreet, mobile only */
.sticky-call { display: none; }
.sticky-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); }
.sticky-call strong { font-family: var(--display); font-weight: 800; }

@media (max-width: 1180px) {
  .nav-desktop, .head-call { display: none; }
  .nav-mobile { display: block; }
  .masthead { min-height: 72px; }
}
@media (max-width: 850px) {
  .quote-inner { grid-template-columns: 1fr; gap: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .topline span:last-child { display: none; }
  .lg-wrap > h1 { font-size: clamp(34px, 11vw, 48px); padding-top: 52px; }
  .lg-wrap > h1 + p { font-size: 15.5px; padding-bottom: 56px; }
  .lg-wrap > h1 + p + .lg-cta { padding-bottom: 56px; }
  .lg-wrap .lg-cta a { display: flex; justify-content: center; }
  .lg-wrap h2 { margin-top: 56px; }
  .quote-form { grid-template-columns: 1fr; }
  .quote-form .btn { justify-self: stretch; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .foot-grid > div:first-child { grid-column: auto; }
  .lg-wrap th, .lg-wrap td { padding: 11px 9px; font-size: 14px; }
  .lg-wrap td:last-child { white-space: normal; }
  .sticky-call {
    display: flex; position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; min-height: 52px;
    align-items: center; justify-content: center; gap: 8px;
    background: var(--accent); color: var(--paper); text-decoration: none;
    font: 600 14px var(--body); border: 1px solid rgba(245,242,233,.3);
    box-shadow: 0 7px 20px rgba(32,56,59,.18);
  }
  .sticky-call:hover { color: var(--paper); background: var(--accent-dark); }
}
@media (max-width: 400px) {
  .masthead { gap: 10px; padding-left: 16px; padding-right: 16px; }
  .sheet { padding: 0 16px; }
  .brand { gap: 9px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark::before { left: 7px; right: 7px; top: 10px; bottom: 10px; }
  .brand-mark::after { left: 12px; top: 14px; }
  .brand-text strong { font-size: 12.5px; }
  .brand-text em { font-size: 8px; letter-spacing: .1em; }
  .nav-mobile summary { padding: 10px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
