/* =========================================================
   Microsite Template — shared styles
   Plain CSS, no build step. Brand + CTA colors are injected per
   site as CSS variables in <head> (see src/layout.mjs).
   ========================================================= */

:root {
  --brand: #1d4e6f;
  --brand-dark: #14374e;
  --on-brand: #fff;
  --link: #1d4e6f;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --on-accent: #fff;
  --ink: #16202b;
  --ink-soft: #4a5868;
  --line: #e2e7ed;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-dark: #121b25;
  --max: 1180px;
  --narrow: 820px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(16, 24, 40, .08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .22);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, .h3 { line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.8vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; margin-bottom: .6em; }
h3, .h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .4em; letter-spacing: -.01em; }
p { margin-bottom: 1rem; color: var(--ink-soft); }
ul, ol { padding-left: 1.25em; }
.muted { color: var(--ink-soft); font-size: .92rem; }
.center { text-align: center; }
.mt { margin-top: 28px; }
.mt-sm { margin-top: 12px; }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: var(--narrow); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.ico { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 13px 24px; border-radius: 10px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  background: var(--brand); color: var(--on-brand);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--brand-dark); color: var(--on-brand); }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn--accent:hover { background: var(--accent-dark); color: var(--on-accent); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--link); border-color: currentColor; }
.btn--outline:hover { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.btn--outline-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.85); }
.btn--outline-light:hover { background: #fff; color: var(--ink); }
.btn--lg { padding: 16px 30px; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.topbar { background: var(--brand); color: var(--on-brand); font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
@media (max-width: 760px) { .topbar { display: none; } }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; position: relative; }
.nav__logo { display: flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; }
.nav__logo img { max-height: 48px; width: auto; }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-size: .95rem; }
.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; }
.nav__links > li > a:not(.btn) { white-space: nowrap; display: block; padding: 8px 10px; color: var(--ink); font-weight: 600; font-size: .96rem; text-decoration: none; border-radius: 8px; }
.nav__links > li > a:not(.btn):hover, .nav__links a[aria-current="page"] { color: var(--link); background: var(--bg-alt); }
.nav__phone { display: inline-flex !important; align-items: center; gap: 6px; color: var(--link) !important; font-weight: 800 !important; white-space: nowrap; }
.nav__btn { padding: 10px 18px; margin-left: 4px; white-space: nowrap; }
.has-dropdown { position: relative; display: flex; align-items: center; }
.dropdown__toggle { background: none; border: 0; padding: 6px 4px; cursor: pointer; color: var(--ink-soft); font-size: .8rem; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; list-style: none; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.dropdown a:hover { background: var(--bg-alt); color: var(--link); }
.has-dropdown::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px; }
@media (min-width: 1161px) {
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.open .dropdown { display: block; }
}
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav__toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1160px) {
  .nav__toggle { display: block; }
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow); padding: 10px 20px 20px; max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav__links.open { display: flex; }
  .nav__links > li { border-bottom: 1px solid var(--line); }
  .nav__links > li > a:not(.btn) { padding: 14px 4px; }
  .nav__btn { padding: 14px; }
  .has-dropdown { flex-wrap: wrap; justify-content: space-between; }
  .dropdown__toggle { padding: 14px; font-size: 1rem; }
  .dropdown { position: static; box-shadow: none; border: 0; width: 100%; padding: 0 0 10px 10px; }
  .has-dropdown.open .dropdown { display: block; }
  .nav__cta-item { border: 0 !important; padding-top: 12px; }
  .nav__cta-item .btn, .nav__phone { width: 100%; justify-content: center; margin: 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--bg-dark); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,16,24,.88) 0%, rgba(10,16,24,.72) 45%, rgba(10,16,24,.35) 100%); }
.hero__inner { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; display: grid; gap: 40px; align-items: center; }
.hero--form .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); }
@media (max-width: 900px) { .hero--form .hero__inner { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 44px; } }
.hero__eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700; color: #fff; background: rgba(255,255,255,.14); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero h1 { color: #fff; max-width: 20ch; text-wrap: balance; }
.hero__lead { color: rgba(255,255,255,.92); font-size: 1.2rem; max-width: 52ch; margin-top: 16px; }
.hero__reassure { color: rgba(255,255,255,.8); font-size: .9rem; margin-top: 12px; }
.hero__disclosure { color: rgba(255,255,255,.88); font-size: .85rem; margin-top: 10px; max-width: 46ch; }
.hero__disclosure a { color: #fff; text-decoration: underline; }
.split--solo { max-width: 760px; margin: 0 auto; }
.referral-note { background: var(--brand-dark); color: var(--on-brand); font-size: .9rem; line-height: 1.55; border-bottom: 1px solid rgba(255,255,255,.12); }
.referral-note .wrap { padding-top: 18px; padding-bottom: 18px; }
.referral-note p { margin: 0; max-width: 900px; color: rgba(255,255,255,.9); }
.referral-note strong { color: #fff; }
@font-face { font-family: 'Dancing Script'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/dancing-script-700.woff2) format('woff2'); }
.logo-script { font-family: 'Dancing Script', 'Brush Script MT', cursive; font-weight: 700; font-size: 1.85rem; line-height: 1; letter-spacing: 0; color: var(--brand); white-space: nowrap; }
.footer__brand.logo-script { color: #fff; font-size: 1.9rem; font-weight: 700; }
@media (max-width: 420px) { .nav__logo .logo-script { font-size: 1.5rem; } }
.referral-note a { color: inherit; text-decoration: underline; }
.checklist { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); }
.checklist .ico { color: var(--accent); margin-top: .3em; }
.checklist--light li { color: #fff; font-weight: 500; }
.checklist--light .ico { color: #fff; background: var(--accent); border-radius: 50%; padding: 2px; }

/* ---------- trust bar ---------- */
.trustbar { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.trustbar ul { list-style: none; padding: 16px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; }
.trustbar li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.trustbar .ico { color: var(--accent); }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
@media (max-width: 700px) { .section { padding: 52px 0; } }
.section__head { margin-bottom: 32px; }
.section__head.center .section__lead { margin-left: auto; margin-right: auto; }
.section__lead { font-size: 1.12rem; max-width: 65ch; }
.page-head { background: var(--bg-alt); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 12px; }
.prose > * + h2 { margin-top: 40px; }
.prose > * + h3 { margin-top: 26px; }
.prose ul, .prose ol { margin: 0 0 1rem 0; color: var(--ink-soft); }
.prose li { margin-bottom: .45rem; }
.prose-center { max-width: 640px; margin: 0 auto; }
.prose-center .cta-row { justify-content: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__copy { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__copy { order: 0; }
  .split--form-first .split__media { order: -1; }
}

.grid { display: grid; gap: 22px; }
.grid--1 { grid-template-columns: minmax(0, 720px); justify-content: center; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--link); }
.card p:last-child { margin-bottom: 0; }
.card__link { margin-top: auto; font-weight: 700; text-decoration: none; }
.card__link:hover { text-decoration: underline; }
.section--alt .card { box-shadow: 0 1px 2px rgba(16,24,40,.04); }

/* process steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; margin-bottom: 14px; }
.step p { margin-bottom: 0; }
.split__copy .steps { grid-template-columns: 1fr; gap: 12px; }
.split__copy .step { padding: 16px 18px 16px 70px; }
.split__copy .step .step__num { position: absolute; left: 18px; top: 16px; }

/* link lists */
.linklist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 20px; }
.linklist a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; }
.linklist a:hover { border-color: var(--link); color: var(--link); }
.area-meta { list-style: none; padding: 18px 20px; margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 6px; color: var(--ink-soft); }

/* answer-first summary on guides (what AI answer engines quote) */
.answer { font-size: 1.12rem; color: var(--ink); background: var(--bg-alt); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 8px; }

address { font-style: normal; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: .97rem; }
th { background: var(--bg-alt); }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; padding: 18px 28px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; color: var(--accent); font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq__a { padding-bottom: 18px; }
.faq__a p:last-child { margin-bottom: 0; }

/* testimonials */
.quote blockquote p { font-size: 1.05rem; color: var(--ink); }
.quote figcaption { margin-top: auto; }

/* CTA band */
.cta-band { background: var(--brand); color: var(--on-brand); padding: 48px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta-band h2 { color: var(--on-brand); margin-bottom: .3em; }
.cta-band p { color: var(--on-brand); opacity: .9; margin: 0; max-width: 60ch; }
.cta-band .cta-row { margin-top: 0; }

/* ---------- forms ---------- */
.form-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card--hero { box-shadow: var(--shadow-lg); border: 0; }
.form-card__title { font-size: 1.4rem; margin-bottom: 4px; }
.form-card__intro { font-size: .95rem; margin-bottom: 16px; }
.form-card__alt { margin: 14px 0 0; text-align: center; font-size: .95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfd6de; border-radius: 9px; background: #fff;
  font: 1rem var(--font); color: var(--ink); /* 16px+ prevents iOS zoom */
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 20%, transparent); }
.field input:user-invalid { border-color: #c92a2a; }
.field textarea { resize: vertical; min-height: 84px; }
.form-consent { font-size: .78rem; line-height: 1.45; margin: 10px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.contact-list { list-style: none; padding: 0; margin: 22px 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.big-phone { font-size: 1.4rem; font-weight: 800; text-decoration: none; }

/* breadcrumbs */
.breadcrumbs { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .88rem; }
.breadcrumbs ol { list-style: none; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-soft); }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }
.breadcrumbs + .page-head { padding-top: 40px; }

/* team */
.team-card .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.team-card__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; margin-bottom: 14px; }
.team-card .role { color: var(--link); font-weight: 700; font-size: .92rem; margin-bottom: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.78); padding: 60px 0 28px; font-size: .95rem; }
.site-footer p { color: rgba(255,255,255,.78); }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 36px; }
.footer-grid--5 { grid-template-columns: 1.4fr 1fr 1.2fr 1fr 1fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer__brand { color: #fff !important; font-weight: 800; font-size: 1.15rem; }
.footer__h { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer__phone { font-size: 1.15rem; font-weight: 800; color: #fff !important; }
.footer__small { font-size: .82rem; color: rgba(255,255,255,.6) !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.footer-bottom p { margin: 0; color: rgba(255,255,255,.6); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal li { margin: 0; }

/* ---------- mobile sticky call bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -6px 20px rgba(0,0,0,.15); padding-bottom: env(safe-area-inset-bottom); background: #fff; }
  .mobile-bar:has(> a:only-child) { grid-template-columns: 1fr; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 10px; font-weight: 800; text-decoration: none; font-size: 1rem; }
  .mobile-bar__call { background: var(--brand); color: var(--on-brand) !important; }
  .mobile-bar__quote { background: var(--accent); color: var(--on-accent) !important; }
  body { padding-bottom: 58px; }
}

/* call-tracking hook (WhatConverts / CallRail dynamic number insertion) */
.wc-phone { white-space: nowrap; }

/* ghl form + image logos */
.nav__logo img { display: block; height: 40px; width: auto; max-width: min(220px, 70vw); }
.footer__logo { display: inline-block; margin: 0 0 14px; }
.footer__logo img { display: block; height: 40px; width: auto; max-width: 220px; }
.ghl-form { width: 100%; min-height: 989px; }
.ghl-form iframe { display: block; width: 100%; min-height: 989px; border: 0; border-radius: 8px; }

/* AVIF <picture> wrappers behave like the bare <img> they wrap */
picture { display: contents; }
/* Bottom-of-page jump back to the hero form (one form embed per page) */
.form-jump .checklist { display: inline-block; text-align: left; margin: 8px auto 4px; }
.cta-row--center { justify-content: center; }
/* Outbound citations */
.sources ul { padding-left: 1.2em; font-size: .95rem; }
.sources li { margin: .3em 0; }
.reviewed { font-size: .9rem; }
