/* ============================================================================
   Clearview Auto Glass — Toms River, NJ  (windshieldreplacementtomsriver.com)
   DESIGN DNA (rolled fresh — breaks the shared form-right / dark-hero skeleton):
   1. Layout archetype = FULL-BLEED PHOTO HERO with a frosted glassmorphism panel
      on the LEFT holding H1 + form (never a floated white card on the right).
   2. Corner language = large soft glass radii (22px panels / 14px cards) + PILL
      buttons, on TRANSLUCENT blurred surfaces — the glass motif is the signal,
      not the exact radius. Consistent everywhere.
   3. Hero treatment = bright DUOTONE photo under a light frosted wash (not a dark
      hero; not a photoless light hero like Scranton).
   4. Type = Space Grotesk (wide techy display) + Manrope (humanist body). No mono,
      no accent-word-in-H1, no pill-eyebrow-with-pulse-dot.
   5. Section rhythm = 72px mobile / 112px desktop; 1200px container; alternating
      white / cool-glass-tint / ink bands (not 88px, not single-band).
   6. Component personality = frosted glass cards w/ hairline border + blur; solid
      cyan pill primary; nav = translucent blurred sticky, left logo + right call pill.
   7. Signature = "Repair or Replace?" interactive damage checker (chip size +
      location -> guidance + insurance note -> routes to the right service).
   8. Palette = ink #141A1F + glass-cyan #0AB4D8 + cool paper #F4F8FA + white.
      Fonts Space Grotesk + Manrope. (Distinct from navy/copper, teal/amber,
      graphite/brass, slate/brick-rust, anthracite/blueprint-blue.)
   ========================================================================== */

:root {
  --ink: #141A1F;
  --ink-2: #1E2A31;
  --ink-soft: #3A4954;
  --muted: #5E6E79;
  --cyan: #0AB4D8;
  --cyan-deep: #0892B0;
  --cyan-dark: #076f86;
  --cyan-tint: #E8F5F9;
  --cyan-line: #BEE4EE;
  --paper: #F4F8FA;
  --white: #FFFFFF;
  --line: rgba(20, 26, 31, 0.12);
  --line-soft: rgba(20, 26, 31, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-dark: rgba(18, 24, 29, 0.55);
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;
  --pill: 999px;
  --shadow-sm: 0 2px 8px rgba(16, 34, 43, 0.06);
  --shadow-md: 0 14px 40px rgba(16, 34, 43, 0.12);
  --shadow-lg: 0 30px 80px rgba(10, 30, 40, 0.22);
  --wrap: 1200px;
  --gap: clamp(18px, 3vw, 30px);
  --sect: clamp(72px, 9vw, 112px);
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --disp: "Space Grotesk", "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--disp); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--cyan-dark); text-decoration: none; }
img { max-width: 100%; display: block; }
strong { color: var(--ink); font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 34px); }
.section { padding: var(--sect) 0; }
.section--tint { background: var(--cyan-tint); }
.section--ink { background: var(--ink); }
.section--ink h2, .section--ink h3, .section--ink p, .section--ink li { color: #E7EEF2; }
.eyebrow {
  font-family: var(--disp); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cyan-deep); margin: 0 0 0.9rem; display: block;
}
.section--ink .eyebrow { color: var(--cyan); }
.lede { font-size: 1.12rem; max-width: 60ch; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--disp); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: var(--pill); border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease; text-align: center;
}
.btn--primary { background: var(--cyan); color: #04252d; box-shadow: 0 8px 22px rgba(10, 180, 216, 0.35); }
.btn--primary:hover { background: var(--cyan-deep); filter: saturate(1.08); box-shadow: 0 12px 30px rgba(10, 180, 216, 0.45); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--line:hover { border-color: var(--cyan); color: var(--cyan-dark); }
.section--ink .btn--line { color: #E7EEF2; border-color: rgba(255,255,255,0.3); }
.section--ink .btn--line:hover { border-color: var(--cyan); color: #fff; }
.cta-band .btn--line, .soft-cta .btn--line { color: #fff; border-color: rgba(255,255,255,0.45); }
.cta-band .btn--line:hover, .soft-cta .btn--line:hover { border-color: var(--cyan); color: #fff; background: rgba(255,255,255,0.08); }
.btn--lg { padding: 18px 34px; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244, 248, 250, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--disp); font-weight: 700; font-size: 1.12rem; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-family: var(--sans); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan-deep); }
#siteNav { display: flex; align-items: center; gap: 26px; }
#siteNav a { font-weight: 600; font-size: 0.96rem; color: var(--ink-soft); }
#siteNav a:hover { color: var(--cyan-dark); }
.header-cta { display: inline-flex; align-items: center; gap: 8px; }
.header-phone { font-family: var(--disp); font-weight: 700; color: var(--ink); white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: var(--r-sm); width: 44px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---- Hero ---- */
.hero { position: relative; isolation: isolate; padding: clamp(40px, 6vw, 78px) 0 clamp(56px, 7vw, 90px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--ink);
}
.hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(9, 20, 26, 0.86) 0%, rgba(9, 20, 26, 0.55) 46%, rgba(10, 180, 216, 0.18) 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 54px); align-items: center; }
.hero-panel {
  background: var(--glass);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--shadow-lg);
}
.hero-panel .eyebrow { color: var(--cyan-deep); }
.hero-panel h1 { color: var(--ink); }
.hero-panel .lede { color: var(--ink-soft); margin-bottom: 1.2rem; }
.hero-copy { color: #EAF3F6; }
.hero-copy h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.hero-copy p { color: #CFE0E7; }
.hero-badges { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: 12px; }
.hero-badges li { display: flex; gap: 11px; align-items: flex-start; color: #EAF3F6; font-weight: 600; }
.hero-badges svg { width: 22px; height: 22px; flex: none; color: var(--cyan); margin-top: 1px; }

/* trust chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); background: rgba(255,255,255,0.6); border: 1px solid var(--line-soft); border-radius: var(--pill); padding: 7px 13px; }
.chip svg { width: 15px; height: 15px; color: var(--cyan-deep); }

/* ---- Lead form ---- */
.lead-form { display: grid; gap: 12px; margin-top: 1.25rem; }
.lead-form .field { display: grid; gap: 5px; }
.lead-form label { font-size: 0.8rem; font-weight: 700; color: var(--ink); letter-spacing: 0.01em; }
.lead-form input, .lead-form select, .lead-form textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fff; width: 100%;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(10, 180, 216, 0.16); }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.78rem; color: var(--muted); margin: 2px 0 0; }
.form-note a { color: var(--cyan-dark); text-decoration: underline; }
.success-msg { display: none; background: var(--cyan-tint); border: 1px solid var(--cyan-line); border-radius: var(--r-md); padding: 20px; margin-top: 12px; }
.success-msg.show { display: block; }
.success-msg strong { display: block; font-family: var(--disp); font-size: 1.15rem; margin-bottom: 4px; }

/* ---- Service-area strip ---- */
.area-strip { background: var(--ink); color: #DCE7EC; padding: 16px 0; overflow: hidden; }
.area-strip .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 0.9rem; }
.area-strip b { color: #fff; font-family: var(--disp); }
.area-strip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); flex: none; }

/* ---- Grid of cards ---- */
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--cyan-line); }
.card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--cyan-tint); color: var(--cyan-dark); margin-bottom: 15px; }
.card .ic svg { width: 25px; height: 25px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.96rem; margin-bottom: 14px; }
.card-link { font-family: var(--disp); font-weight: 600; font-size: 0.92rem; color: var(--cyan-dark); display: inline-flex; align-items: center; gap: 5px; }
.card-link svg { width: 15px; height: 15px; transition: transform 0.15s ease; }
.card:hover .card-link svg { transform: translateX(3px); }
.card--glass { background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: rgba(255,255,255,0.6); }

.section-head { max-width: 62ch; margin-bottom: clamp(30px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---- Damage checker (signature) ---- */
.checker {
  background: var(--white); border: 1px solid var(--cyan-line); border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow-md);
}
.checker-step { margin-bottom: 22px; }
.checker-step > span { display: block; font-family: var(--disp); font-weight: 600; font-size: 0.95rem; margin-bottom: 11px; color: var(--ink); }
.checker-step > span b { color: var(--cyan-dark); }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt {
  font-family: var(--sans); font-weight: 600; font-size: 0.94rem; color: var(--ink-soft);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--pill);
  padding: 11px 18px; cursor: pointer; transition: all 0.15s ease; display: inline-flex; align-items: center; gap: 8px;
}
.opt:hover { border-color: var(--cyan); color: var(--ink); }
.opt.is-picked { background: var(--ink); color: #fff; border-color: var(--ink); }
.opt.is-picked svg { color: var(--cyan); }
.opt svg { width: 17px; height: 17px; color: var(--muted); }
.checker-result { margin-top: 22px; padding: 22px; border-radius: var(--r-md); border-left: 5px solid var(--cyan); background: var(--cyan-tint); }
.checker-result.is-replace { border-left-color: #E0684C; background: #FCEDE8; }
.checker-result.is-repair { border-left-color: #2FA36B; background: #E9F6EE; }
.checker-result.is-maybe { border-left-color: #E0A83C; background: #FBF2DF; }
.checker-verdict { font-family: var(--disp); font-weight: 700; font-size: 1.2rem; color: var(--ink); margin: 0 0 6px; }
.checker-detail { font-size: 0.98rem; margin: 0 0 14px; }
.checker-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.checker-actions .btn { padding: 12px 20px; font-size: 0.94rem; }
.checker-fineprint { font-size: 0.8rem; color: var(--muted); margin: 0; }

/* ---- Steps / how it works ---- */
.steps { counter-reset: step; display: grid; gap: var(--gap); }
.step { position: relative; padding-left: 66px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0;
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-family: var(--disp); font-weight: 700; font-size: 1.2rem; color: #04252d; background: var(--cyan);
}
.step h3 { margin-bottom: 5px; }
.step p { font-size: 0.96rem; margin: 0; }

/* ---- Split (why-us / content) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split img, .split .split-media { border-radius: var(--r-lg); box-shadow: var(--shadow-md); width: 100%; }
.check-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.99rem; color: var(--ink-soft); }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--cyan-dark); margin-top: 2px; }
.section--ink .check-list svg { color: var(--cyan); }

/* ---- Stats ---- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); text-align: center; }
.stat b { display: block; font-family: var(--disp); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--cyan); letter-spacing: -0.02em; }
.stat span { font-size: 0.92rem; color: var(--muted); font-weight: 600; }
.section--ink .stat span { color: #A9BEC8; }

/* ---- Map ---- */
.map-embed { display: block; width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.area-cols { columns: 2; column-gap: 30px; list-style: none; margin: 1.2rem 0 0; padding: 0; }
.area-cols li { break-inside: avoid; margin-bottom: 10px; }
.area-cols a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-soft); }
.area-cols a:hover { color: var(--cyan-dark); }
.area-cols svg { width: 15px; height: 15px; color: var(--cyan-deep); }

/* ---- FAQ ---- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; position: relative; font-family: var(--disp); font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--cyan-deep); font-weight: 400; transition: transform 0.2s ease; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 16px; font-size: 0.99rem; }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 60%, #123240 100%); border-radius: clamp(18px, 3vw, 30px); padding: clamp(34px, 5vw, 60px); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(10,180,216,0.35), transparent 68%); }
.cta-band h2, .cta-band p { color: #fff; position: relative; }
.cta-band p { color: #C6DAE2; max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; position: relative; }

/* ---- Breadcrumb ---- */
.crumb { font-size: 0.86rem; color: var(--muted); padding: 18px 0 0; }
.crumb a { color: var(--cyan-dark); }
.crumb span { color: var(--ink-soft); }

/* ---- Article ---- */
.article { max-width: 760px; margin: 0 auto; }
.article-meta { font-size: 0.86rem; color: var(--muted); margin-bottom: 1.2rem; }
.article-body h2 { margin-top: 1.8em; }
.article-body h3 { margin-top: 1.4em; }
.article-body ul, .article-body ol { color: var(--ink-soft); padding-left: 1.3em; }
.article-body li { margin-bottom: 0.5em; }
.article-body .callout { background: var(--cyan-tint); border: 1px solid var(--cyan-line); border-radius: var(--r-md); padding: 20px 22px; margin: 1.6em 0; }
.article-body .callout p:last-child { margin-bottom: 0; }
.soft-cta { background: var(--ink); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); text-align: center; margin: 2.4em 0 1em; }
.soft-cta h3, .soft-cta p { color: #fff; }
.soft-cta p { color: #C6DAE2; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #A9BEC8; padding: clamp(48px, 6vw, 72px) 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #A9BEC8; display: block; margin-bottom: 9px; font-size: 0.94rem; }
.site-footer a:hover { color: var(--cyan); }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { color: #90A6B1; font-size: 0.92rem; }
.footer-phone { font-family: var(--disp); font-weight: 700; font-size: 1.3rem; color: #fff !important; margin: 8px 0 !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 22px; font-size: 0.82rem; color: #7D93A0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { display: inline; }

/* ---- Sticky mobile call bar ---- */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,0.14); }
.callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; font-family: var(--disp); font-weight: 700; font-size: 1rem; }
.callbar .cb-call { background: var(--cyan); color: #04252d; }
.callbar .cb-quote { background: var(--ink); color: #fff; }
.callbar svg { width: 19px; height: 19px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { order: -1; }
  .grid-3, .grid-2, .stats { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .area-cols { columns: 1; }
  #siteNav { position: absolute; top: 72px; left: 0; right: 0; background: rgba(244,248,250,0.98); backdrop-filter: blur(14px); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 22px 18px; border-bottom: 1px solid var(--line); display: none; }
  #siteNav.is-open { display: flex; }
  #siteNav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: inline-flex; }
  .header-cta .header-phone { display: none; }
  .callbar { display: grid; }
  body { padding-bottom: 58px; }
}
@media (max-width: 560px) {
  .lead-form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ---- A11y ---- */
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
