/* =========================================================
   Microsite base stylesheet — templates/microsite/microsite.css
   Component names follow wiki/components/component-library.md.
   Per-site brand colors are set in :root (build script can override).
   Mobile-first, no JS required.
   ========================================================= */

:root {
  --navy: #0b2a5b;
  --navy-dark: #061a38;
  --green: #3f7a22;
  --green-dark: #2f5c19;
  --sky: #2f8be0;
  --sky-light: #e8f2fc;
  --gold: #f2b51c;
  --gold-dark: #d99c05;
  --teal: #0f6b73;
  --slate: #5b6573;
  --ink: #1d2533;
  --line: #dfe5ec;
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(11, 42, 91, .08);
  --wrap: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, 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(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.4vw, 2.05rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: .6em 1em; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- Buttons (named by color, never primary/secondary) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .72em 1.25em; border-radius: 999px; font-weight: 700; text-decoration: none; line-height: 1.2; border: 2px solid transparent; transition: background .15s, color .15s, transform .15s; cursor: pointer; font-size: 1rem; }
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: .9em 1.6em; font-size: 1.08rem; }
.btn--sm { padding: .45em .95em; font-size: .93rem; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-dark); color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); color: #fff; }
.btn--teal { background: var(--teal); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.1rem 0 0; }
.inline-cta { margin: -.2em 0 1.2em; }

/* ---------- Header (two-row: white logo bar + navy nav) ---------- */
.site-header { position: relative; z-index: 50; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.header-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.nav__logo img { width: 190px; }
.header-contact { display: none; gap: 1.4rem; align-items: center; }
.header-contact__item { display: flex; flex-direction: column; font-size: .85rem; color: var(--slate); line-height: 1.3; }
.header-contact__item a { color: var(--navy); font-weight: 800; font-size: 1.05rem; text-decoration: none; }
.header-contact__item a:hover { color: var(--sky); }

.site-nav { background: var(--navy); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.nav__toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav__toggle { display: inline-flex; align-items: center; gap: .5em; color: #fff; font-weight: 700; cursor: pointer; padding: .7em 0; }
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after { display: block; width: 22px; height: 2px; background: #fff; position: relative; content: ""; }
.nav__toggle-bars::before { position: absolute; top: -7px; }
.nav__toggle-bars::after { position: absolute; top: 7px; }
.nav__links { list-style: none; margin: 0; padding: 0; display: none; }
.nav__toggle-input:checked ~ .nav__links { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); padding: .5rem 16px 1rem; }
.nav__toggle-input:focus-visible + .nav__toggle { outline: 3px solid var(--gold); }
.nav__links a { display: block; color: #fff; text-decoration: none; font-weight: 600; padding: .65em .2em; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--gold); }
.nav__sub { list-style: none; margin: 0 0 .3rem; padding: 0 0 0 1rem; }
.nav__sub a { font-weight: 500; font-size: .95rem; padding: .45em .2em; }
.nav__call { margin-top: .5rem; }
.nav__links .nav__call a { display: inline-flex; background: var(--gold); color: var(--navy); border-radius: 999px; padding: .55em 1.1em; font-weight: 800; }
.nav__call-mobile { color: var(--gold); font-weight: 800; text-decoration: none; }

@media (min-width: 960px) {
  .header-contact { display: flex; }
  .nav__logo img { width: 230px; }
  .nav__toggle, .nav__call-mobile { display: none; }
  .nav__links { display: flex; align-items: center; gap: .15rem; width: 100%; }
  .nav__links > li { position: relative; }
  .nav__links > li > a { padding: .95em .8em; }
  .nav__links .nav__call { margin: 0 0 0 auto; }
  .nav__sub { display: none; position: absolute; top: 100%; left: 0; min-width: 290px; background: #fff; box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius); padding: .4rem 0; }
  .nav__sub a { color: var(--navy); padding: .6em 1.1em; }
  .nav__sub a:hover { background: var(--sky-light); color: var(--navy); }
  .has-sub:hover .nav__sub, .has-sub:focus-within .nav__sub { display: block; }
  .has-sub > a::after { content: " ▾"; font-size: .8em; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, #eaf4fd 0%, #f7fbff 55%, #eef6e9 100%); padding: 2.6rem 0 2.8rem; }
.hero__eyebrow { display: inline-block; background: var(--navy); color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .38em .85em; border-radius: 999px; margin: 0 0 1rem; }
.hero h1 { margin-bottom: .4em; }
.hero__lead { font-size: 1.12rem; color: var(--slate); max-width: 60ch; }
.hero__checklist { list-style: none; padding: 0; margin: 1.1rem 0 0; }
.hero__checklist li { position: relative; padding-left: 1.9em; margin: .45em 0; font-weight: 600; }
.hero__checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.35em; height: 1.35em; border-radius: 50%; background: var(--green); color: #fff; font-size: .85em; display: grid; place-items: center; line-height: 1; margin-top: .15em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero__split { display: grid; gap: 2rem; align-items: center; }
.hero__photo img { border-radius: 22px; box-shadow: var(--shadow); margin: 0 auto; }
@media (min-width: 900px) {
  .hero { padding: 3.6rem 0 4rem; }
  .hero__split { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .88rem; color: var(--slate); margin: 0 0 1rem; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3em; }
.breadcrumbs li + li::before { content: "›"; margin-right: .3em; color: var(--slate); }
.breadcrumbs a { color: var(--slate); }

/* ---------- Sections ---------- */
.section { padding: 3.2rem 0; }
.section--alt { background: var(--bg-alt); }
.section--center { text-align: center; }
.section--center .section__lead { margin-left: auto; margin-right: auto; }
.section__lead { max-width: 70ch; }
.section h2 + .section__lead { margin-top: -.1rem; }
.section h3 { margin-top: 1.4em; }
.section .grid h3 { margin-top: 0; }
.more-link { font-weight: 700; text-decoration: none; }
.more-link::after { content: " →"; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
@media (min-width: 700px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.1rem; box-shadow: var(--shadow); border-top: 4px solid var(--green); }
.card p:last-child { margin-bottom: 0; }
.card .more-link { display: inline-block; margin-top: .4rem; }
.card--service { border-top-color: var(--sky); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; margin-top: 1.4rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem 1.2rem 4rem; position: relative; box-shadow: var(--shadow); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 1.1rem; top: 1.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps strong { color: var(--navy); }

/* ---------- Link lists (locations, services, nearby) ---------- */
.linklist { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.linklist a { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45em 1em; text-decoration: none; color: var(--navy); font-weight: 600; font-size: .95rem; }
.linklist a:hover { border-color: var(--sky); background: var(--sky-light); }
.linklist--stack { flex-direction: column; gap: .6rem; }
.linklist--stack a { border-radius: var(--radius); display: block; padding: .8em 1.1em; }

/* ---------- Tables (cost guide) ---------- */
.table-wrap { overflow-x: auto; margin: 1.3rem 0; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 480px; }
th, td { text-align: left; padding: .85em 1em; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-weight: 700; }
tbody tr:nth-child(even) { background: #f8fafc; }

/* ---------- FAQ accordion ---------- */
.faq { margin-top: 1.4rem; display: grid; gap: .7rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; font-weight: 700; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq .faq__a { padding: 0 1.2rem 1rem; }
.faq .faq__a p:last-child { margin: 0; }
.faq-page h2 { font-size: 1.35rem; margin-top: 1.8em; }
.faq-page h2:first-child { margin-top: 0; }

/* ---------- Phone strip (preferred CTA band) ---------- */
.phone-strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2.8rem 0; text-align: center; }
.phone-strip .sub { color: var(--slate); max-width: 60ch; margin: 0 auto; }
.phone-strip .btns { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.3rem; }

/* ---------- Image band ---------- */
.image-band img { width: 100%; max-height: 320px; object-fit: cover; object-position: center; }

/* ---------- Forms ---------- */
.form-layout { display: grid; gap: 2rem; }
@media (min-width: 900px) { .form-layout { grid-template-columns: 1fr 1fr; align-items: start; } }
.form-card--teal { background: var(--navy); color: #fff; border-radius: 16px; padding: 1.6rem; box-shadow: var(--shadow); }
.form-card--teal h2, .form-card--teal h3 { color: #fff; margin-bottom: .2em; }
.form-card--teal .italic { font-style: italic; opacity: .85; margin-bottom: 1rem; }
.field { margin-bottom: .95rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; padding: .75em .85em; border-radius: 8px; border: 1px solid #b8c4d3; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.field--row { display: grid; gap: .8rem; }
@media (min-width: 520px) { .field--row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .85rem; opacity: .85; margin-top: .7rem; }
.form-note a { color: #fff; }
.hp { position: absolute; left: -5000px; }
.trust-list { list-style: none; padding: 0; }
.trust-list li { position: relative; padding-left: 1.8em; margin: .6em 0; }
.trust-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin: .5em 0; }

/* ---------- Team ---------- */
.team-card h3 { margin-bottom: .3em; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 75ch; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose .effective { color: var(--slate); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #d6deea; padding: 3rem 0 6rem; font-size: .95rem; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: .8em; }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } .site-footer { padding-bottom: 2rem; } }
.footer__brand img { width: 200px; background: #fff; border-radius: 10px; padding: 8px 10px; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .4em 0; }
.site-footer a { color: #d6deea; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer__phone { color: var(--gold) !important; font-weight: 800; font-size: 1.15rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; }

/* ---------- Sticky mobile call bar ---------- */
.sticky-call { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: .5rem; padding: .6rem 12px calc(.6rem + env(safe-area-inset-bottom)); background: rgba(6, 26, 56, .97); }
.sticky-call .btn { flex: 1; }
@media (min-width: 800px) { .sticky-call { display: none; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
