/* Bouslog Insurance — site styles
   Mobile-first. Colours from the logo and the previous site (docs/site-plan.md §4.4). */

:root {
  --brand: #2752BB;
  --brand-light: #4064D7;
  --navy: #29355F;
  --navy-dark: #1D2645;
  --accent: #1773B2;
  --tint: #627DD6;

  --text: #1F2433;
  --muted: #4A5470;
  --bg: #FFFFFF;
  --surface: #F4F6FB;
  --surface-2: #E8EDF8;
  --border: #D6DCEA;
  --on-dark: #FFFFFF;
  --on-dark-muted: #D3DAEE;
  --error: #B42318;
  --success: #1E7B45;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(29, 38, 69, .06), 0 6px 20px rgba(29, 38, 69, .08);
  --container: 1180px;
  --gutter: 16px;
  --section: 56px;
  --nav-break: 1000px;
}

@media (min-width: 700px) {
  :root { --gutter: 24px; --section: 80px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: .15em; }
a:hover { color: var(--brand-light); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p, ul, ol { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-light); color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--surface-2); color: var(--navy); }
.btn-outline-light { border-color: rgba(255,255,255,.8); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Office notice banners (scheduled at /admin) ---------- */
.site-banner { color: #fff; font-weight: 600; }
.site-banner-alert { background: #B42318; }
.site-banner-info { background: var(--brand); }
.site-banner-inner { display: flex; align-items: flex-start; gap: 10px; padding-block: 12px; }
.site-banner-inner .icon { width: 1.3em; height: 1.3em; margin-top: .15em; }
.site-banner p { margin: 0; line-height: 1.5; }
.site-banner a { color: #fff; text-decoration: underline; white-space: nowrap; }
.site-banner a:hover { color: #fff; text-decoration-thickness: 2px; }
.site-banner + .site-banner { border-top: 1px solid rgba(255,255,255,.25); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: var(--on-dark-muted); font-size: .875rem; }
.topbar-inner { display: flex; justify-content: flex-end; gap: 24px; min-height: 38px; align-items: center; }
.topbar-item { display: inline-flex; align-items: center; gap: .45em; color: var(--on-dark-muted); text-decoration: none; }
a.topbar-item:hover { color: #fff; text-decoration: underline; }
.topbar-phone { color: #fff; font-weight: 600; }
.topbar-item:first-child { margin-right: auto; }
@media (max-width: 699px) {
  .topbar-address, .topbar-phone { display: none; }
  .topbar-inner { justify-content: center; }
  .topbar-item:first-child { margin-right: 0; }
}

/* ---------- Header & navigation ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 76px; padding-block: 8px; }
.logo { margin-right: auto; display: block; }
.logo img { width: 150px; }
@media (min-width: 700px) { .logo img { width: 190px; } }

.header-call, .nav-toggle {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 52px; min-height: 52px; padding: 4px 8px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--navy); font: 600 .75rem/1 var(--font-sans); text-decoration: none; cursor: pointer;
}
.header-call:hover, .nav-toggle:hover { border-color: var(--brand); color: var(--brand); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 8px var(--gutter) 20px; max-height: calc(100vh - 120px); overflow-y: auto;
}
.nav-list { list-style: none; margin: 0 0 12px; padding: 0; }
.nav-list > li { border-bottom: 1px solid var(--surface-2); }
.nav-list a {
  display: flex; align-items: center; gap: .6em; padding: 12px 4px;
  color: var(--navy); font-weight: 600; text-decoration: none;
}
.nav-list a:hover, .nav-list a[aria-current="page"], .nav-list a.is-active { color: var(--brand); }
.sub-toggle { display: none; }
.sub-menu { list-style: none; margin: 0 0 8px; padding: 0 0 0 12px; }
.sub-menu a { font-weight: 500; padding: 8px 4px; }
.sub-menu .icon { color: var(--accent); }
.nav-cta { width: 100%; }

@media (min-width: 1000px) {
  .header-call, .nav-toggle { display: none; }
  .logo img { width: 200px; }
  .site-nav, .site-nav.is-open {
    display: flex; align-items: center; gap: 20px;
    position: static; padding: 0; border: 0; box-shadow: none; max-height: none; overflow: visible; background: none;
  }
  .nav-list { display: flex; align-items: center; gap: 4px; margin: 0; }
  .nav-list > li { border: 0; position: relative; display: flex; align-items: center; }
  .nav-list > li > a { padding: 10px 12px; border-radius: var(--radius-sm); }
  .nav-list > li > a.is-active { box-shadow: inset 0 -3px 0 var(--brand); border-radius: 0; }
  .has-sub > a { padding-right: 4px !important; }
  .sub-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 40px; padding: 0; border: 0; background: none; color: var(--navy); cursor: pointer; border-radius: var(--radius-sm);
  }
  .sub-toggle .icon { transition: transform .15s; }
  .sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .sub-menu {
    display: none; position: absolute; top: 100%; left: 0; min-width: 270px;
    margin: 0; padding: 8px; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
  }
  .sub-menu a { padding: 10px 12px; border-radius: var(--radius-sm); }
  .sub-menu a:hover { background: var(--surface); }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.is-open .sub-menu { display: block; }
  .nav-cta { width: auto; min-height: 44px; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--surface); border-bottom: 1px solid var(--border); font-size: .9rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding-block: 10px; margin-block: 0; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--navy); font-weight: 600; }

/* ---------- Heroes ---------- */
.home-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(98,125,214,.35), transparent 45%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 45%, var(--brand) 100%);
}
.home-hero::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 460px; height: 560px; opacity: .08;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}
.home-hero-inner { position: relative; z-index: 1; padding-block: 40px 48px; }
@media (min-width: 700px) { .home-hero-inner { padding-block: 48px 56px; } }
@media (min-width: 960px) {
  .home-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .home-hero h1 { max-width: none; font-size: clamp(2.2rem, 1.2rem + 1.9vw, 2.9rem); }
  .home-hero .lead { font-size: 1.125rem; }
  .home-hero .button-row { margin-top: 20px; }
  .home-hero h1 { margin-bottom: 0; }
  .home-hero .hero-body { padding-left: 32px; border-left: 1px solid rgba(255,255,255,.2); }
  .home-hero .hero-body .lead { margin-top: 0; }
}
.home-hero h1 { color: #fff; max-width: 20ch; }
.home-hero .lead { color: var(--on-dark-muted); font-size: 1.25rem; }
.home-hero .button-row { margin-top: 28px; }

.page-hero { background: linear-gradient(180deg, var(--surface) 0%, #fff 100%); border-bottom: 1px solid var(--border); }
.page-hero-inner { padding-block: 40px 44px; }
@media (min-width: 700px) { .page-hero-inner { padding-block: 64px; } }
.page-hero-icon {
  display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; margin-bottom: 16px;
  border-radius: 16px; background: var(--brand); color: #fff;
}
.page-hero-icon .icon { width: 28px; height: 28px; }
.page-hero .button-row { margin-top: 24px; }

/* ---------- Trust strip ---------- */
.trust-strip { background: #fff; border-bottom: 1px solid var(--border); }
.trust-list {
  list-style: none; margin: 0; padding: 20px 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (max-width: 519px) { .trust-list { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .trust-list { grid-template-columns: repeat(4, 1fr); } }
.trust-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.trust-list .icon { width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: var(--surface-2); color: var(--brand); }
.trust-list small { display: block; font-weight: 400; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-alt { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); }
.eyebrow { display: block; margin-bottom: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ---------- Cards ---------- */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 1px 2px rgba(29,38,69,.04); transition: box-shadow .15s, border-color .15s, transform .15s;
}
.card p { color: var(--muted); margin-bottom: 12px; }
.card-icon {
  display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; margin-bottom: 14px;
  border-radius: 12px; background: var(--surface-2); color: var(--brand);
}
.card-icon .icon { width: 26px; height: 26px; }
.card-title { font-size: 1.25rem; margin-bottom: 6px; }
.card-title a { color: var(--navy); text-decoration: none; }
.service-card .card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.service-card:hover { border-color: var(--brand-light); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card:focus-within { border-color: var(--brand); box-shadow: var(--shadow); }
.card-more { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; color: var(--brand); }
.card-more .icon { width: 1em; height: 1em; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 800px) { .feature-list.cols-3 { grid-template-columns: repeat(3, 1fr); } .feature-list.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.feature-list li { display: flex; gap: 14px; }
.feature-list .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--brand); color: #fff; }
.feature-list h3 { font-size: 1.15rem; margin-bottom: 4px; }
.feature-list p { color: var(--muted); margin: 0; }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / 11px;
}
.check-list.cols-2 { display: grid; gap: 0 24px; }
@media (min-width: 600px) { .check-list.cols-2 { grid-template-columns: 1fr 1fr; } }

.section-link { margin: 24px 0 0; font-weight: 600; }
.section-link a { display: inline-flex; align-items: center; gap: .4em; }
.icon-inline { width: 1em; height: 1em; }
.claim-callout { margin: 0; }
.claim-callout h2 { font-size: 1.5rem; }
.steps { margin: 0; padding-left: 1.3em; }
.steps li { margin-bottom: .5em; }
.form-step .hint { font-family: var(--font-sans); font-size: .95rem; font-weight: 400; color: var(--muted); }

/* ---------- Content pages ---------- */
.content-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .content-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; } }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.3em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.callout {
  margin: 1.5em 0; padding: 18px 20px; border-left: 4px solid var(--brand);
  background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.callout p:last-child { margin-bottom: 0; }

.coverage-grid { display: grid; gap: 16px; margin: 1em 0 1.5em; }
@media (min-width: 640px) { .coverage-grid { grid-template-columns: 1fr 1fr; } }
.coverage-grid > div { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.coverage-grid h3 { font-size: 1.1rem; margin: 0 0 6px; }
.coverage-grid p { margin: 0; color: var(--muted); font-size: 1rem; }

.service-aside { display: grid; gap: 20px; }
@media (min-width: 1000px) { .service-aside { position: sticky; top: 24px; } }
.aside-box { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.aside-box:first-child { background: var(--navy); border-color: var(--navy); color: var(--on-dark-muted); }
.aside-box:first-child .aside-title { color: #fff; }
.aside-title { font-size: 1.3rem; }
.aside-or { margin: 12px 0 0; text-align: center; }
.aside-box:first-child a.aside-phone { color: #fff; font-weight: 700; }
.aside-office p { display: flex; gap: 10px; }
.aside-office .icon { color: var(--brand); margin-top: .2em; }

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 16px 48px 16px 18px; font-weight: 600; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; line-height: 1; color: var(--brand);
}
.faq details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 18px 16px; color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Carriers ---------- */
.carrier-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.carrier {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 96px; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
}
.carrier-name { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--navy); line-height: 1.25; }
.carrier-grid-detailed { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.carrier-grid-detailed .carrier { align-items: flex-start; justify-content: flex-start; text-align: left; padding: 24px; }
.carrier-grid-detailed .carrier-name { font-size: 1.35rem; margin-bottom: 8px; }
.carrier-grid-detailed p { color: var(--muted); margin: 0 0 8px; }
.carrier-lines { font-size: .95rem; }
.carrier-website { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-weight: 600; }
.carrier-website .icon { transform: rotate(-45deg); }
.carrier-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 64px; }
.carrier-logo img { max-width: 100%; height: auto; }
.carrier-grid-detailed .carrier-logo { justify-content: flex-start; margin-bottom: 16px; }
.carrier-title { font-family: var(--font-serif); font-size: 1.35rem; color: var(--navy); margin: 0 0 8px; }

/* ---------- Timeline (About) ---------- */
.about-photo { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(41, 53, 95, .12); margin-bottom: 32px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--surface-2); }
.timeline li { position: relative; padding: 0 0 28px 44px; }
.timeline li::before {
  content: ""; position: absolute; left: 3px; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 4px solid var(--brand);
}
.timeline-year { display: block; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--brand); line-height: 1.2; }
.timeline h3 { margin: 4px 0 4px; font-size: 1.15rem; }
.timeline p { margin: 0; color: var(--muted); }

/* ---------- CTA banner ---------- */
.cta-banner { background: linear-gradient(135deg, var(--navy) 0%, var(--brand) 100%); color: var(--on-dark-muted); }
.cta-inner { display: grid; gap: 24px; padding-block: 48px; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; padding-block: 56px; } }
.cta-banner h2 { color: #fff; margin-bottom: .3em; }
.cta-banner p { margin: 0; max-width: 60ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 380px 1fr; gap: 56px; align-items: start; } }
.contact-card { padding: 28px; border-radius: var(--radius); background: var(--navy); color: var(--on-dark-muted); }
.contact-card h2 { color: #fff; font-size: 1.5rem; }
.contact-card address { font-style: normal; }
.contact-list { list-style: none; margin: 0 0 20px; padding: 0; }
.contact-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon { color: #fff; margin-top: .2em; }
.contact-list a { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.contact-list strong { display: block; color: #fff; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }

.map {
  position: relative; margin-top: 20px; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--navy-dark) linear-gradient(135deg, rgba(255,255,255,.06) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.06) 50%, rgba(255,255,255,.06) 75%, transparent 75%) 0 0 / 24px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map p { margin: 0; font-size: .9rem; }
.map a { color: #fff; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
/* Side-by-side fields: if one label has a hint line, push both inputs to the bottom so they line up. */
.form-row > div.field { display: flex; flex-direction: column; }
.form-row > div.field > :is(input, select, textarea) { margin-top: auto; }
.field label, .field legend { display: block; margin-bottom: 6px; font-weight: 600; color: var(--navy); }
.field label.choice { display: flex; margin-bottom: 0; }
.field .hint { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }
.req { color: var(--error); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid #9AA4BF; border-radius: var(--radius-sm); background: #fff;
  font: inherit; color: var(--text);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(39,82,187,.3); border-color: var(--brand); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--error); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.choice {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; cursor: pointer; font-weight: 500;
}
.choice:hover { border-color: var(--brand-light); }
.choice input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; flex: none; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--surface); }
.choice .icon { color: var(--brand); }
.choice-inline { display: flex; flex-wrap: wrap; gap: 10px; }
.field-error { margin: 6px 0 0; color: var(--error); font-size: .95rem; font-weight: 600; }
.field input[type="file"] { display: block; width: 100%; padding: 10px; font: inherit; font-size: .95rem; background: #fff; border: 1px dashed var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.field input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; font: inherit; font-weight: 600; color: var(--brand); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.upload-list { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 8px; }
.upload-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
.upload-list .icon { flex: none; color: var(--brand); }
.upload-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.upload-name .hint { display: inline; }
.upload-remove { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.form-alert { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--error); background: #FEF3F2; color: var(--error); }
.form-alert ul { margin: 8px 0 0; padding-left: 1.2em; }
.form-alert a { color: var(--error); }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }
.form-panel > .form-note { margin-bottom: 24px; }
.form-panel { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
@media (min-width: 700px) { .form-panel { padding: 36px; } }
.form-step { font-size: 1.2rem; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--border); }
.form-step:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Thank you / 404 ---------- */
.message-page { text-align: center; max-width: 680px; margin-inline: auto; }
.message-icon {
  display: inline-flex; width: 72px; height: 72px; align-items: center; justify-content: center; margin-bottom: 20px;
  border-radius: 50%; background: var(--surface-2); color: var(--success);
}
.message-icon .icon { width: 36px; height: 36px; }
.message-page .button-row { justify-content: center; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: var(--on-dark-muted); font-size: .98rem; }
.footer-grid { display: grid; gap: 36px; padding-block: 56px 40px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1.2fr 1fr 1fr; } }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--on-dark-muted); }
.wordmark { margin: 0; font-family: var(--font-serif); font-size: 1.9rem; font-style: italic; font-weight: 700; line-height: 1.1; }
.wordmark a { text-decoration: none; color: #fff; }
.wordmark span { display: block; font-family: var(--font-sans); font-style: normal; font-size: .85rem; font-weight: 700; letter-spacing: .35em; color: #8FB5E3; margin-top: 4px; text-transform: uppercase; }
.footer-tagline { margin: 8px 0 16px; font-size: .85rem; letter-spacing: .08em; color: #8FB5E3; }
.footer-heading { font-family: var(--font-sans); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer address { font-style: normal; margin-bottom: 14px; }
.footer-list, .footer-links { list-style: none; margin: 0; padding: 0; }
.footer-list li { display: flex; gap: 10px; margin-bottom: 10px; }
.footer-list .icon { margin-top: .25em; color: #8FB5E3; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: #fff; }
.footer-social { display: inline-flex; align-items: center; gap: .5em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: .875rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 18px; }
.footer-bottom p { margin: 0; }

/* ---------- Mobile call / quote bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 -4px 16px rgba(29,38,69,.15);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--navy);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: .5em; min-height: 56px;
  font-weight: 700; text-decoration: none; color: #fff;
}
.mobile-bar-call { background: var(--navy); }
@media (max-width: 419px) { .mobile-bar-number { display: none; } }
.mobile-bar-quote { background: var(--brand); }
body { padding-bottom: 56px; }
@media (min-width: 1000px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
