/* L and C Collision — colors and font come from the logo guide (LandC-Logo-Guide.pdf). */
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-800.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  --blue: #0b2a78;
  --blue-deep: #071d57;
  --bright: #3d63d6;
  --bright-hover: #2f52bd;
  --sky: #6b8ff0;
  --sky-soft: #e8eefc;
  --ink: #14213d;
  --text: #2c3a52;
  --muted: #5d6a80;
  --line: #e1e7f2;
  --soft: #f4f7fc;
  --white: #fff;
  --star: #f5a623;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 42, 120, .06), 0 8px 24px rgba(11, 42, 120, .08);
  --head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--white); }
img, svg { display: block; max-width: 100%; }
a { color: var(--bright); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.icon { width: 22px; height: 22px; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 1rem; padding: 14px 24px; border-radius: 10px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; line-height: 1.2; }
.btn-primary { background: var(--bright); color: var(--white); }
.btn-primary:hover { background: var(--bright-hover); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--sky-soft); }
.btn-outline-white { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-outline-white:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--line); color: var(--blue); background: var(--white); }
.btn-outline:hover { border-color: var(--bright); }
.btn-sm { padding: 10px 16px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand img { width: 128px; height: auto; }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-family: var(--head); font-weight: 700; font-size: .93rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--bright); border-color: var(--bright); }
.nav-phone-mobile { display: none; }
.header-cta { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.main-nav + .header-cta { margin-left: 0; }
.header-phone { display: flex; align-items: center; gap: 6px; color: var(--blue); font-family: var(--head); font-weight: 800; text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--blue); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }

/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%); color: #dfe7fb; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 76px 0 84px; }
.hero h1 { color: var(--white); }
.hero .lead { font-size: 1.2rem; max-width: 34em; color: #d3ddf7; }
.eyebrow { display: inline-block; font-family: var(--head); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; }
.hero .eyebrow { color: #9fb6f7; }
.hero-tag { font-family: var(--head); font-weight: 800; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.25; color: var(--sky); margin: -4px 0 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding: 0; list-style: none; font-size: .95rem; }
.trust li { display: flex; align-items: center; gap: 8px; color: #e7edfc; }
.trust .icon { color: var(--sky); width: 20px; height: 20px; }
.stars { display: inline-flex; gap: 1px; color: var(--star); }
.star { width: 17px; height: 17px; }

.hero-card { background: var(--white); color: var(--text); border-radius: 18px; padding: 28px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.hero-card h2 { font-size: 1.35rem; margin-bottom: 4px; }
.hero-card > p { color: var(--muted); font-size: .97rem; }
.steps-mini { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 14px; }
.steps-mini li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
.steps-mini .n { width: 38px; height: 38px; border-radius: 10px; background: var(--sky-soft); color: var(--bright); display: grid; place-items: center; }
.steps-mini b { display: block; color: var(--ink); font-family: var(--head); font-size: .98rem; }
.steps-mini span { font-size: .92rem; color: var(--muted); }
.hero-card .btn { width: 100%; }
.hero-card .or { text-align: center; font-size: .9rem; color: var(--muted); margin: 12px 0 0; }
.hero-card .or a { font-weight: 700; color: var(--blue); }

/* page hero (inner pages) */
.page-hero { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%); color: #d3ddf7; padding: 60px 0 56px; position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { font-size: 1.15rem; max-width: 38em; margin: 0; }

/* sections */
.section { padding: 84px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.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); border-radius: var(--radius); padding: 26px; }
.card-link { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; display: flex; flex-direction: column; }
.card-link:hover { border-color: var(--sky); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin: 16px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card .more { margin-top: auto; padding-top: 14px; color: var(--bright); font-family: var(--head); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.card .more .icon { width: 16px; height: 16px; }
.icon-tile { width: 52px; height: 52px; border-radius: 12px; background: var(--sky-soft); color: var(--bright); display: grid; place-items: center; }
.icon-tile .icon { width: 26px; height: 26px; }

/* insurance band */
.insurance-band { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.insurer-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.insurer-list li { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; font-family: var(--head); font-weight: 700; color: var(--blue); text-align: center; }
.insurer-note { font-size: .92rem; color: var(--muted); margin-top: 14px; }
.check-list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--bright); margin-top: 2px; }

/* process steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: var(--white); font-family: var(--head); font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 1.08rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* why us */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 36px; }
.why-item { display: grid; grid-template-columns: 52px 1fr; gap: 16px; }
.why-item h3 { margin: 4px 0 4px; font-size: 1.08rem; }
.why-item p { margin: 0; color: var(--muted); font-size: .96rem; }

/* reviews */
.rating-head { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 10px; font-family: var(--head); font-weight: 700; color: var(--ink); }
.rating-head .big { font-size: 1.9rem; font-weight: 800; }
.rating-head .star { width: 22px; height: 22px; }
.review { display: flex; flex-direction: column; }
.review blockquote { margin: 12px 0 18px; font-size: 1rem; color: var(--text); }
.review footer { margin-top: auto; font-family: var(--head); font-weight: 700; color: var(--ink); font-size: .95rem; }
.review footer span { display: block; font-family: var(--body); font-weight: 400; color: var(--muted); font-size: .85rem; }
.center-cta { text-align: center; margin-top: 32px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--bright) 0%, var(--blue) 100%); color: #e3eafc; border-radius: 22px; padding: 52px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { margin: 0; font-size: 1.1rem; }
.cta-band .btn-row { justify-content: flex-end; }

/* location */
.location { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 18px; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.info-list .icon-tile { width: 44px; height: 44px; }
.info-list .icon-tile .icon { width: 22px; height: 22px; }
.info-list b { display: block; font-family: var(--head); color: var(--ink); }
.info-list a { color: var(--text); }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours li:last-child { border-bottom: 0; }
.hours li span:first-child { font-weight: 600; color: var(--ink); }
.photo-ph { border: 2px dashed #c3cfe8; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #f7f9fd, #f7f9fd 12px, #eef2fa 12px, #eef2fa 24px); display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px; min-height: 260px; font-size: .95rem; }
.photo-ph .icon { width: 36px; height: 36px; margin: 0 auto 8px; color: var(--sky); }

/* services page */
.service-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service-row:last-child { border-bottom: 0; }
.service-row:nth-child(even) .photo-ph { order: -1; }
.service-row .icon-tile { margin-bottom: 14px; }
.service-row p { color: var(--text); }
.service-row .photo-ph { min-height: 220px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.jump a { background: rgba(255, 255, 255, .1); color: var(--white); border: 1px solid rgba(255, 255, 255, .25); border-radius: 30px; padding: 7px 14px; text-decoration: none; font-size: .9rem; font-weight: 600; }
.jump a:hover { background: rgba(255, 255, 255, .2); }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--head); font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--bright); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* forms */
.form-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--head); font-weight: 700; font-size: .92rem; color: var(--ink); }
.field .opt { font-family: var(--body); font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #cfd8ea; border-radius: 10px; background: var(--white); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bright); outline: none; box-shadow: 0 0 0 3px rgba(61, 99, 214, .15); }
.field textarea { min-height: 120px; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 8px; border: 1.5px solid #cfd8ea; border-radius: 10px; padding: 10px 16px; font-family: var(--body); font-weight: 500; cursor: pointer; }
.radio-row input { width: auto; accent-color: var(--bright); }
.drop { border: 2px dashed #b9c8ec; border-radius: 14px; background: var(--soft); padding: 26px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; position: relative; }
.drop:hover, .drop.drag { border-color: var(--bright); background: var(--sky-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop .icon { width: 38px; height: 38px; color: var(--bright); margin: 0 auto 8px; }
.drop b { font-family: var(--head); color: var(--ink); display: block; }
.drop span { font-size: .9rem; color: var(--muted); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.book-choices { max-width: 900px; margin: 0 auto; }
.location .btn-row { margin-top: 4px; }
.field-hint { grid-column: 1 / -1; margin: -8px 0 0; font-size: .9rem; color: var(--muted); }
.field-hint.warn { color: #a61b1b; }
.form-note { font-size: .88rem; color: var(--muted); margin: 16px 0 0; }
.form-error { background: #fdecec; color: #a61b1b; border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; display: none; }
.form-error.show { display: block; }
.hp { position: absolute; left: -5000px; }
.side-box { background: var(--soft); border-radius: 16px; padding: 26px; margin-bottom: 18px; }
.side-box h3 { margin-top: 0; }
.side-box ul { padding-left: 20px; margin: 0; }
.side-box li { margin: 6px 0; }
.notice { background: var(--sky-soft); border-left: 4px solid var(--bright); border-radius: 10px; padding: 16px 20px; color: var(--ink); }

/* thank you / 404 */
.center-page { text-align: center; padding: 110px 0; }
.center-page .icon-tile { margin: 0 auto 20px; width: 72px; height: 72px; border-radius: 50%; }
.center-page .icon-tile .icon { width: 36px; height: 36px; }
.center-page p { max-width: 32em; margin: 0 auto 28px; color: var(--muted); font-size: 1.1rem; }
.center-page .btn-row { justify-content: center; }

/* footer */
.site-footer { background: #0a1a44; color: #aebbd9; padding: 64px 0 0; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #dbe3f7; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr .9fr; gap: 36px; padding-bottom: 44px; }
.footer-tag { margin-top: 16px; max-width: 22em; }
.footer-h { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.hours-footer li { padding: 4px 0; border: 0; font-size: .9rem; }
.hours-footer li span:first-child { color: #dbe3f7; font-weight: 500; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.mobile-bar { display: none; }
.footer-areas { font-size: .88rem; color: #b9c6e6; margin-top: 14px; }
.footer-areas a { color: #dbe3f7; }
.page-hero .eyebrow a { color: inherit; text-decoration: none; }
.page-hero .eyebrow a:hover { text-decoration: underline; }

.quote-card { background: var(--soft); box-shadow: none; }
.quote-card h3 { margin-top: 0; }
.quote-card .check-list { margin: 14px 0 22px; }

/* text pages (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text); }

/* accident guide */
.guide { max-width: 860px; display: grid; gap: 18px; }
.guide-step { position: relative; padding-left: 78px; }
.guide-step .n { position: absolute; left: 24px; top: 26px; width: 36px; height: 36px; border-radius: 50%; background: var(--bright); color: var(--white); font-family: var(--head); font-weight: 800; display: grid; place-items: center; }
.guide-step h2 { font-size: 1.3rem; margin-top: 0; }
.guide-step .check-list { margin-bottom: 0; }
.guide-note { color: var(--muted); font-size: .9rem; }
.print-only { display: none; }
@media print {
  .site-header, .site-footer, .mobile-bar, .no-print, .roofline, .scroll-progress, .skip { display: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  body { font-size: 10pt; line-height: 1.4; }
  .page-hero { background: none; color: #000; padding: 0 0 8px; }
  .page-hero p { font-size: 10.5pt; }
  .guide-step h2 { font-size: 13pt; margin-bottom: 4px; }
  .guide .check-list { gap: 3px; margin-top: 4px; }
  .page-hero h1 { color: #000; font-size: 22pt; }
  .page-hero .eyebrow { color: #000; }
  .section { padding: 0; }
  .guide { display: block; margin-top: 0; }
  .guide-step { margin-bottom: 5px; }
  .page-hero + .section, .guide { padding-top: 0 !important; }
  @page { margin: .35in .5in; }
  .page-hero .wrap > p { margin-bottom: 0; }
  .guide-step { box-shadow: none; border: 1px solid #999; break-inside: avoid; padding: 8px 16px 8px 62px; }
  .guide-step .n { top: 9px; left: 16px; width: 30px; height: 30px; }
  .print-only p { margin: 0; }
  .guide-note { display: none; }
  .page-hero { padding: 0 !important; }
  .page-hero h1 { margin-bottom: 4px; }
  .print-only { display: block; }
  body { padding: 0; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------------------------- motion
   Everything here is decoration: content is fully usable without it, and
   "reduce motion" users get none of it (see the media query at the end). */

/* hero roofline: the logo's car line draws itself on load */
.roofline { position: absolute; left: -8%; right: -8%; bottom: -4px; width: 116%; height: 62%; pointer-events: none; z-index: 0; }
.page-hero .roofline { left: auto; right: -4%; width: 64%; height: 92%; }
.roofline path { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.roofline .line-main { stroke-width: 1.6; opacity: .2; }
.roofline .line-echo { stroke-width: .8; opacity: .09; }
.js .roofline .line-main { stroke-dashoffset: 1; animation: draw 2.2s .25s cubic-bezier(.65, 0, .35, 1) forwards; }
.js .roofline .line-echo { stroke-dashoffset: 1; animation: draw 2.6s .55s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* hero entrance: copy and card slide in one after another */
.js .hero-copy > *, .js .hero-card, .js .page-hero .wrap > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-copy > :nth-child(2), .js .page-hero .wrap > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3), .js .page-hero .wrap > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4), .js .page-hero .wrap > :nth-child(4) { animation-delay: .24s; }
.js .hero-copy > :nth-child(5) { animation-delay: .32s; }
.js .hero-card { animation-name: rise-card; animation-duration: 1s; animation-delay: .35s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes rise-card { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.steps-mini li { transition: transform .25s; }
.hero-card:hover .steps-mini li:nth-child(1) { transform: translateX(4px); }
.hero-card:hover .steps-mini li:nth-child(2) { transform: translateX(4px); transition-delay: .05s; }
.hero-card:hover .steps-mini li:nth-child(3) { transform: translateX(4px); transition-delay: .1s; }

/* scroll reveal: site.js adds .in when an item scrolls into view; --d staggers siblings */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
/* items waiting to slide in from the side must not widen the page on phones */
html, body { overflow-x: clip; }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].in { opacity: 1; transform: none; }
.no-anim [data-reveal] { opacity: 1 !important; transform: none !important; }
/* once revealed, hover moves should feel instant again */
.js .card-link.in { transition: border-color .15s, box-shadow .2s, transform .2s; transition-delay: 0s; }

/* header: shrinks and gains a shadow once you scroll */
.site-header { transition: box-shadow .25s; }
.header-inner { transition: height .25s; }
.brand img { transition: width .25s; }
.scrolled .site-header { box-shadow: 0 6px 20px rgba(11, 42, 120, .08); }
.scrolled .header-inner { height: 64px; }
.scrolled .brand img { width: 110px; }

/* reading progress */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; background: linear-gradient(90deg, var(--sky), var(--bright)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* hover: service cards, icons, buttons */
.card-link .icon-tile, .why-item .icon-tile, .card .icon-tile { transition: background .25s, color .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.card-link:hover .icon-tile { background: var(--bright); color: var(--white); transform: rotate(-6deg) scale(1.08); }
.card-link .more .icon { transition: transform .2s; }
.card-link:hover .more .icon { transform: translateX(4px); }
.why-item:hover .icon-tile { background: var(--bright); color: var(--white); transform: translateY(-3px); }
.btn { transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(61, 99, 214, .35); }
.btn-white:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.review { transition: transform .25s, box-shadow .25s; }
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.insurer-list li { transition: border-color .2s, transform .2s, color .2s; }
.insurer-list li:hover { border-color: var(--sky); color: var(--bright); transform: translateY(-2px); }
.steps li::before { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), background .25s; }
.steps li:hover::before { transform: scale(1.12); background: var(--bright); }
.rating-head .star { transition: transform .3s; }
.js .rating-head.in .star { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.js .rating-head.in .star:nth-child(2) { animation-delay: .08s; }
.js .rating-head.in .star:nth-child(3) { animation-delay: .16s; }
.js .rating-head.in .star:nth-child(4) { animation-delay: .24s; }
.js .rating-head.in .star:nth-child(5) { animation-delay: .32s; }
@keyframes pop { from { transform: scale(0); } }

/* before/after slider: --pos is where the divider sits (set by site.js from the range input) */
@property --pos { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.compare-card { margin: 0; }
.compare { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--soft); border: 1px solid var(--line); touch-action: pan-y; user-select: none; }
.compare-after, .compare-before { position: absolute; inset: 0; }
.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare img { width: 100%; height: 100%; object-fit: cover; }
.compare-ph { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; font-family: var(--head); font-weight: 700; font-size: .9rem; }
.compare-ph .icon { width: 32px; height: 32px; }
.compare-before .compare-ph { padding-right: 50%; }
.compare-after .compare-ph { padding-left: 50%; }
.compare-before .compare-ph { background: repeating-linear-gradient(45deg, #2b3a5c, #2b3a5c 12px, #31416a 12px, #31416a 24px); color: #b9c6e6; }
.compare-after .compare-ph { background: repeating-linear-gradient(45deg, #f7f9fd, #f7f9fd 12px, #eaf0fc 12px, #eaf0fc 24px); color: var(--bright); }
.compare-tag { position: absolute; top: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; font-family: var(--head); font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.tag-before { left: 12px; background: rgba(7, 29, 87, .85); color: var(--white); }
.tag-after { right: 12px; background: var(--white); color: var(--blue); box-shadow: var(--shadow); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--white); box-shadow: 0 0 0 1px rgba(11, 42, 120, .15); z-index: 2; pointer-events: none; }
.compare-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d63d6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: 0 2px 10px rgba(7, 29, 87, .3); transition: transform .15s; }
.compare:hover .compare-handle::after, .compare:focus-within .compare-handle::after { transform: scale(1.1); }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; -webkit-appearance: none; appearance: none; }
.compare:focus-within { outline: 3px solid var(--sky); outline-offset: 2px; }
.compare.hint { animation: hint 1.6s ease-in-out .2s; }
@keyframes hint { 0%, 100% { --pos: 50%; } 30% { --pos: 30%; } 65% { --pos: 68%; } }
.compare-card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 2px 0; }
.compare-card figcaption b { font-family: var(--head); color: var(--ink); font-size: .98rem; line-height: 1.3; }
.compare-card figcaption a { font-size: .85rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.gallery { gap: 28px 24px; }
.featured-work .compare-card figcaption { padding-top: 10px; }
.featured-work .check-list { margin: 18px 0 24px; }
.photo-credits { margin-top: 36px; font-size: .82rem; color: var(--muted); }
.photo-credits summary { cursor: pointer; font-weight: 600; }
.photo-credits ul { margin: 10px 0 0; padding-left: 18px; }
.photo-credits a { color: var(--muted); }

.extra { text-align: center; }
.more-services { display: block; columns: 3; column-gap: 28px; max-width: 980px; margin: 0 auto 32px; }
.more-services li { break-inside: avoid; margin-bottom: 10px; }
.mechanical { display: flex; gap: 18px; align-items: flex-start; max-width: 980px; margin: 0 auto; }
.mechanical h3 { margin-top: 0; }
.mechanical p { margin-bottom: 0; }
.extra .icon-tile { margin-inline: auto; }
.center-cta.btn-row { justify-content: center; }
.btn .star { width: 18px; height: 18px; color: var(--star); }

/* responsive */
@media (max-width: 1060px) {
  .main-nav { gap: 16px; }
  .header-phone span { display: none; }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-4 > :last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd card out fills the last row */
  .why { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; margin-right: -8px; }
  .header-phone { display: none; }
  .main-nav + .header-cta { margin-left: auto; }
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; box-shadow: 0 12px 24px rgba(11, 42, 120, .1); }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav-open .main-nav { display: flex; }
  .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .nav-phone-mobile { display: flex !important; align-items: center; gap: 8px; color: var(--blue) !important; border-bottom: 0 !important; }
  .hero-inner, .insurance-band, .cta-band, .location, .form-layout, .service-row { grid-template-columns: 1fr; }
  .hero-inner { padding: 48px 0 56px; gap: 32px; }
  .cta-band { padding: 36px 28px; }
  .cta-band .btn-row { justify-content: flex-start; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .more-services { columns: 2; }
  .service-row:nth-child(even) .photo-ph { order: 0; }
  .section { padding: 64px 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .header-inner { height: 66px; gap: 12px; }
  .main-nav { top: 66px; }
  .brand img { width: 104px; }
  .header-cta .btn-sm { padding: 9px 12px; font-size: .85rem; }
  .grid-4, .grid-3, .grid-2, .steps, .why, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .more-services { columns: 1; }
  .mechanical { flex-direction: column; }
  .insurer-list { grid-template-columns: 1fr 1fr; }
  .hero-card, .form-card { padding: 22px; }
  .btn-row .btn { flex: 1 1 100%; }
  .section { padding: 52px 0; }
  .cta-band { border-radius: 16px; }
  .mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--blue); box-shadow: 0 -4px 16px rgba(0, 0, 0, .15); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 10px; color: var(--white); font-family: var(--head); font-weight: 700; font-size: .78rem; text-decoration: none; }
  .mobile-bar a:first-child { background: var(--bright); }
  .mobile-bar a + a { border-left: 1px solid rgba(255, 255, 255, .12); }
  .mobile-bar .icon { width: 20px; height: 20px; }
}
@media (max-width: 900px) { .page-hero .roofline { width: 110%; right: -20%; height: 70%; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .roofline path { stroke-dashoffset: 0; }
  .scroll-progress { display: none; }
}
