/* =========================================================
   Sewer Line Repair Littleton, CO  |  Homepage styles
   Edit colours, type and spacing in :root below.
   ========================================================= */

:root {
  /* Brand colours (from the design reference: royal blue, red accent, white, light grey) */
  --blue: #1a3ad6;
  --blue-dark: #1230b3;
  --navy: #0b1a4a;
  --red: #e63946;
  --red-dark: #c92d39;
  --ink: #1b2340;
  --muted: #5b6480;
  --line: #dde3f2;
  --grey: #f4f6fb;
  --white: #ffffff;

  /* Type */
  --font: "Outfit", "Segoe UI", Arial, sans-serif;
  --fs-h1: clamp(2rem, 4.2vw, 3.25rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3: 1.2rem;
  --fs-body: 1rem;

  /* Spacing */
  --section: clamp(3.5rem, 7vw, 6rem);
  --gap: 1.5rem;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 26, 74, 0.08);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy); font-weight: 700; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-grey { background: var(--grey); }
.section-navy { background: var(--navy); color: #dfe6f7; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--red); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6rem;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.center { text-align: center; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.center .lead { margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
:focus-visible { outline: 3px solid #ffb400; outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--grey); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------------- Top bar ---------------- */
.topbar { background: var(--navy); color: #cfd8f3; font-size: .85rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar a { color: #fff; }
.topbar .btn { padding: .35rem 1rem; font-size: .8rem; border-radius: 4px; }
@media (max-width: 720px) { .topbar .hide-sm { display: none; } }

/* ---------------- Header ---------------- */
.header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line); min-height: var(--header-h);
  box-shadow: 0 2px 12px rgba(11,26,74,.05);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--navy); font-size: 1.1rem; line-height: 1.1; }
.logo:hover { text-decoration: none; }
.logo .mark { width: 42px; height: 42px; flex: none; }
.logo small { display: block; font-weight: 600; font-size: .68rem; color: var(--red); letter-spacing: .16em; text-transform: uppercase; margin-top: .2rem; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--ink); font-weight: 500; padding: .5rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--blue); border-color: var(--blue); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: .8rem; }
.phone-pill {
  display: inline-flex; align-items: center; gap: .6rem; background: var(--blue); color: #fff;
  padding: .45rem .9rem .45rem .45rem; border-radius: 999px; font-weight: 700; text-decoration: none !important;
}
.phone-pill .ico { width: 34px; height: 34px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.phone-pill small { display: block; font-size: .65rem; font-weight: 500; opacity: .85; line-height: 1; }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; place-items: center;
}
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--navy); position: relative; transition: .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--navy); transition: .2s; }
.menu-btn span::before { top: -7px; } .menu-btn span::after { top: 7px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-btn { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-110%); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .8rem; }
  .header-cta .btn { display: none; }
  .phone-pill span.txt { display: none; }
  .phone-pill { padding: .3rem; }
}

/* ---------------- Hero ---------------- */
.hero { background: var(--grey); position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; min-height: 560px; padding-block: 3rem; }
.hero h1 { margin-bottom: .8rem; }
.hero blockquote { margin: 0 0 1.2rem; padding-left: 1rem; border-left: 4px solid var(--red); color: var(--muted); font-style: italic; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.hero-img { position: relative; }
.hero-img img { width: 100%; aspect-ratio: 900 / 640; border-radius: 16px; box-shadow: var(--shadow); object-fit: cover; }
.hero-badge {
  position: absolute; left: -14px; bottom: 24px; background: #fff; border-radius: 12px; padding: .8rem 1rem;
  box-shadow: var(--shadow); display: flex; gap: .7rem; align-items: center; font-size: .9rem; max-width: 260px;
}
.hero-badge .num { font-size: 1.6rem; font-weight: 700; color: var(--blue); line-height: 1; }
.trust-row { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.6rem; font-size: .88rem; color: var(--muted); }
.trust-row li { list-style: none; display: flex; align-items: center; gap: .4rem; }
.trust-row ul { display: contents; }
.trust-row svg { width: 16px; height: 16px; color: var(--blue); }
.placeholder-chip { background: #fff3cd; color: #7a5a00; border: 1px dashed #d9b84a; padding: 0 .4rem; border-radius: 4px; font-size: .8rem; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; min-height: 0; }
  .hero-img { order: -1; }
  .hero-badge { left: 12px; bottom: 12px; }
}

/* Stat bar */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats ul { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; margin: 0; padding: 0; }
.stats li { padding: 1.3rem 1rem; text-align: center; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats b { display: block; font-size: 1.7rem; color: var(--blue); line-height: 1.1; }
.stats span { font-size: .82rem; color: var(--muted); }
@media (max-width: 900px) { .stats ul { grid-template-columns: repeat(3, 1fr); } .stats li:nth-child(4) { border-left: 0; } }
@media (max-width: 560px) { .stats ul { grid-template-columns: repeat(2, 1fr); } .stats li:nth-child(odd) { border-left: 0; } .stats li:nth-child(4) { border-left: 1px solid var(--line); } }

/* ---------------- About / intro ---------------- */
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about .container.values-wrap { display: block; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .9rem; }
.about-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; aspect-ratio: 4 / 3; }
.about-grid img:first-child { grid-row: 1 / 3; aspect-ratio: auto; }
.check-box { background: var(--blue); color: #fff; border-radius: 10px; padding: 1rem 1.2rem; margin: 1.2rem 0; }
.check-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.check-box li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.check-box svg { width: 20px; height: 20px; flex: none; margin-top: .15rem; }
.about-foot { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
@media (max-width: 900px) { .about .container { grid-template-columns: 1fr; } }

/* Values row */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3.5rem; }
.values article { display: flex; gap: 1rem; }
.values .ico { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--grey); display: grid; place-items: center; color: var(--blue); }
.values .ico svg { width: 28px; height: 28px; }
.values h3 { margin-bottom: .3rem; font-size: 1.05rem; }
.values p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 800px) { .values { grid-template-columns: 1fr; } }

/* ---------------- Warning signs ---------------- */
.signs-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2.2rem; }
.cards-blue { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card-blue { background: var(--blue); color: #fff; border-radius: 10px; padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; min-height: 200px; transition: transform .2s ease; }
.card-blue:hover { transform: translateY(-4px); }
.card-blue .ico { width: 44px; height: 44px; color: #fff; opacity: .95; }
.card-blue h3 { color: #fff; margin: 0; font-size: 1.1rem; }
.card-blue p { margin: 0; font-size: .93rem; opacity: .9; }
.card-call { background: #fff; color: var(--navy); border: 1px solid var(--line); justify-content: center; }
.card-call h3 { color: var(--navy); }
.card-call .phone-pill { align-self: flex-start; margin-top: .6rem; }
@media (max-width: 900px) { .signs-head { grid-template-columns: 1fr; } .cards-blue { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards-blue { grid-template-columns: 1fr; } }

/* ---------------- Services ---------------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service img { aspect-ratio: 5 / 3; object-fit: cover; width: 100%; }
.service .body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.service h3 { margin: 0; font-size: 1.1rem; }
.service h3 a { color: var(--navy); }
.service p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.service .more { font-weight: 600; font-size: .9rem; }
.service-note { margin-top: 1.4rem; font-size: .92rem; color: var(--muted); }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 2.5rem; font-size: .95rem; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.spec-table th, .spec-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { background: var(--navy); color: #fff; font-weight: 600; }
.spec-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
@media (max-width: 960px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------------- CTA band ---------------- */
.band { background: linear-gradient(100deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; }
.band .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-block: 2.6rem; }
.band h2 { color: #fff; margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.band .eyebrow { color: #ffd166; }
.band .eyebrow::before { background: #ffd166; }
.band .actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------------- Local facts (replaces projects gallery) ---------------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.fact { background: #fff; border-radius: 12px; padding: 1.4rem; border: 1px solid var(--line); }
.fact b { display: block; font-size: 2rem; color: var(--red); line-height: 1; margin-bottom: .5rem; }
.fact h3 { font-size: 1rem; margin-bottom: .3rem; }
.fact p { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 960px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* Weather + pipe age */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.two-col ul { padding-left: 1.1em; }
.two-col li { margin-bottom: .6rem; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ---------------- Process ---------------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.step { text-align: center; padding: 0 .5rem; }
.step .circle {
  width: 96px; height: 96px; margin: 0 auto 1rem; border-radius: 50%; background: var(--grey);
  display: grid; place-items: center; color: var(--blue); position: relative; border: 2px dashed #c9d4f5;
}
.step .circle svg { width: 40px; height: 40px; }
.step .circle b { position: absolute; top: -6px; right: -6px; background: var(--red); color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: .8rem; display: grid; place-items: center; }
.step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }
.process-note { max-width: 70ch; margin: 2.2rem auto 0; text-align: center; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ---------------- Before you authorise work ---------------- */
.trust-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.trust-list li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.trust-list svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: .1rem; }
.compare { width: 100%; border-collapse: collapse; margin-top: 2rem; background: #fff; font-size: .93rem; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: .75rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th { background: var(--blue); color: #fff; }
@media (max-width: 900px) { .trust-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust-list { grid-template-columns: 1fr; } }

/* ---------------- Service area ---------------- */
.area .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
.zip-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0; }
.zip-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-weight: 600; font-size: .9rem; color: var(--navy); }
.zip-list li.po { background: var(--grey); font-weight: 500; color: var(--muted); }
.district { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.district th, .district td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; }
.district th { background: var(--navy); color: #fff; }
.district td:last-child { white-space: nowrap; font-weight: 600; }
.hoods { columns: 2; column-gap: 2rem; padding-left: 1.1em; font-size: .95rem; }
@media (max-width: 900px) { .area .container { grid-template-columns: 1fr; } .hoods { columns: 1; } }

/* ---------------- FAQ ---------------- */
.faq-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.accordion { display: grid; gap: .7rem; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.acc-btn {
  width: 100%; text-align: left; background: none; border: 0; padding: 1rem 3rem 1rem 1.2rem; font: inherit; font-weight: 600; color: var(--navy);
  cursor: pointer; position: relative; font-size: 1rem;
}
.acc-btn::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue); transition: transform .2s; }
.acc-btn[aria-expanded="true"]::after { transform: translateY(-50%) rotate(45deg); }
.acc-btn[aria-expanded="true"] { background: var(--navy); color: #fff; }
.acc-btn[aria-expanded="true"]::after { color: #fff; }
.acc-panel { padding: 0 1.2rem; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; color: var(--muted); font-size: .95rem; }
.acc-panel[data-open="true"] { padding: 1rem 1.2rem 1.2rem; }
.acc-panel p:last-child { margin: 0; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------------- Contact / form ---------------- */
.contact { background: var(--navy); color: #dfe6f7; }
.contact .container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.contact h2 { color: #fff; }
.contact .side img { border-radius: 14px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.contact .side .info { display: grid; gap: .6rem; margin-top: 1.4rem; font-size: .95rem; }
.contact .side .info a { color: #fff; font-weight: 600; }
.form { display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; color: #fff; }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 8px; border: 1px solid #2a3b6e; background: #10224f; color: #fff; font: inherit;
}
.field input::placeholder, .field textarea::placeholder { color: #8f9bbd; }
.field input:focus, .field textarea:focus { outline: 3px solid #ffb400; outline-offset: 1px; }
.field .err { display: none; color: #ffb4b4; font-size: .82rem; margin-top: .3rem; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #ff8a8a; }
.form-note { font-size: .85rem; color: #aab6d8; }
.form-status { display: none; background: #fff3cd; color: #7a5a00; border-radius: 8px; padding: .9rem 1rem; font-size: .92rem; }
.form-status.show { display: block; }
@media (max-width: 900px) { .contact .container { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

/* ---------------- Blog ---------------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post { position: relative; border-radius: 12px; overflow: hidden; background: var(--navy); min-height: 320px; display: flex; align-items: flex-end; }
.post img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .4s ease; }
.post:hover img { transform: scale(1.04); }
.post .body { position: relative; padding: 1.4rem; color: #fff; background: linear-gradient(to top, rgba(11,26,74,.95), rgba(11,26,74,.1)); width: 100%; }
.post .tag { display: inline-block; background: var(--red); font-size: .72rem; padding: .2rem .6rem; border-radius: 4px; margin-bottom: .6rem; font-weight: 600; }
.post h3 { color: #fff; font-size: 1.05rem; margin: 0 0 .4rem; }
.post p { margin: 0; font-size: .9rem; opacity: .9; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }

/* ---------------- Footer ---------------- */
.footer { background: var(--navy); color: #aab6d8; font-size: .93rem; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer a { color: #dfe6f7; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 1rem; }
.footer .logo small { color: #ff8a93; }
.footer-bottom { border-top: 1px solid #22346b; padding-block: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.footer .blue-block { background: var(--blue); color: #fff; border-radius: 10px; padding: 1.2rem; margin-top: 1.2rem; }
.footer .blue-block b { display: block; color: #fff; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------------- Mobile call bar ---------------- */
.mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line);
  padding: .6rem .8rem; gap: .6rem; box-shadow: 0 -4px 16px rgba(11,26,74,.1);
}
.mobile-bar .btn { flex: 1; padding: .8rem; }
@media (max-width: 720px) { .mobile-bar { display: flex; } body { padding-bottom: 72px; } }

/* ---------------- Reveal animation ---------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Back to top */
.to-top { position: fixed; right: 18px; bottom: 90px; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; border: 0; display: none; place-items: center; cursor: pointer; z-index: 40; box-shadow: var(--shadow); }
.to-top.show { display: grid; }
@media (min-width: 721px) { .to-top { bottom: 24px; } }


/* =========================================================
   MULTI PAGE ADDITIONS
   ========================================================= */
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--navy); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: .5rem; }
.tb-phone { font-weight: 600; }

/* Nav with dropdowns */
.nav-list { list-style: none; display: flex; align-items: center; gap: 1.4rem; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a, .sub-toggle { color: var(--ink); font-weight: 500; padding: .6rem 0; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; }
.nav-list > li > a:hover, .sub-toggle:hover, .nav-list > li > a[aria-current="page"], .has-sub.active > .sub-toggle { color: var(--blue); border-color: var(--blue); text-decoration: none; }
.sub-toggle::after { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: .45rem; position: relative; top: -3px; transition: transform .2s; }
.sub-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); top: 1px; }
.sub { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(11,26,74,.14); padding: 1.2rem 1.4rem; display: none; z-index: 60; }
.sub.mega { display: none; grid-template-columns: repeat(2, minmax(210px, 1fr)); gap: .4rem 2rem; width: max-content; max-width: 640px; }
.has-sub.open > .sub { display: grid; }
.sub ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.sub a { display: block; padding: .38rem .5rem; border-radius: 6px; color: var(--ink); font-size: .93rem; }
.sub a:hover { background: var(--grey); color: var(--blue); text-decoration: none; }
.sub-h { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red); font-weight: 600; margin: 0 0 .4rem .5rem; }
.sub-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .7rem !important; font-weight: 600; color: var(--blue) !important; }
.nav-cta { margin-left: .2rem; }
@media (min-width: 1101px) { .has-sub:hover > .sub { display: grid; } .has-sub:hover > .sub::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; } }
@media (max-width: 1100px) {
  .nav { overflow-y: auto; max-height: calc(100vh - var(--header-h)); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a, .sub-toggle { display: block; width: 100%; text-align: left; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .sub, .sub.mega { position: static; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: .2rem 0 .8rem .8rem; width: auto; max-width: none; grid-template-columns: 1fr; }
  .has-sub:hover > .sub { display: none; }
  .has-sub.open > .sub { display: grid; }
  .nav-cta { margin: .9rem 0 0; } .nav-cta .btn { width: 100%; }
}
@media (max-width: 1100px) { .header-cta .phone-pill .txt { display: none; } .header-cta .phone-pill { padding: .3rem; } }

/* Inner page hero */
.page-hero { background: linear-gradient(180deg, var(--grey) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.page-hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; padding-block: 2.2rem 2.8rem; }
.page-hero.no-img .container { grid-template-columns: 1fr; }
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); margin-bottom: .7rem; }
.page-hero .lead { font-size: 1.05rem; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.page-hero-img img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); }
@media (max-width: 900px) { .page-hero .container { grid-template-columns: 1fr; } .page-hero-img { max-width: 520px; } }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0 0 1rem; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .3rem; color: #9aa3b8; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--navy); font-weight: 600; }

/* Body + sidebar */
.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; padding-block: 3rem 4rem; align-items: start; }
.page-body.wide { grid-template-columns: minmax(0, 820px); justify-content: center; }
@media (max-width: 980px) { .page-body { grid-template-columns: 1fr; } }
.prose { min-width: 0; font-size: 1.04rem; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-top: 2.4rem; padding-top: .2rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; font-size: 1.18rem; }
.prose p, .prose li { color: #2a3352; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--blue); font-weight: 700; }
.prose blockquote { margin: 1.4rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--red); background: var(--grey); border-radius: 0 10px 10px 0; }
.prose .answer { background: #eef3ff; border-left: 4px solid var(--blue); padding: .9rem 1.1rem; border-radius: 0 10px 10px 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose h2 + p > strong:only-child { display: block; }
.table-wrap { overflow-x: auto; margin: 1.4rem 0; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
table.data th { background: var(--navy); color: #fff; text-align: left; padding: .7rem .9rem; font-weight: 600; }
table.data td { padding: .7rem .9rem; border-top: 1px solid var(--line); vertical-align: top; }
table.data tr:nth-child(even) td { background: #fafbfe; }
.toc { background: var(--grey); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.3rem; margin-bottom: 2rem; }
.toc-h { font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 2rem; font-size: .93rem; }
.toc li { break-inside: avoid; margin-bottom: .3rem; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1.2rem; }
@media (max-width: 980px) { .sidebar { position: static; } }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem; }
.side-h { font-size: 1.05rem; margin-bottom: .7rem; }
.side-cta { background: var(--navy); color: #dfe6f7; border: 0; }
.side-cta .side-h { color: #fff; }
.side-cta .btn { width: 100%; margin-top: .4rem; }
.side-tel { display: block; text-align: center; color: #fff !important; font-weight: 700; margin-top: .8rem; font-size: 1.1rem; }
.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.side-list a { display: block; padding: .45rem .2rem; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .93rem; }
.side-list a:hover { color: var(--blue); }
.side-more { display: inline-block; margin-top: .7rem; font-weight: 600; font-size: .9rem; }
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-list a { display: inline-block; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--navy); }
.chip-list a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0; }
.related-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.related-list a { display: flex; justify-content: space-between; gap: .6rem; align-items: center; padding: 1rem 1.1rem; background: var(--grey); border-radius: 10px; color: var(--navy); font-weight: 600; text-decoration: none !important; height: 100%; transition: background .15s, transform .15s; }
.related-list a:hover { background: #e3e9fb; transform: translateY(-2px); }
.sources { margin-top: 2rem; border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1.1rem; font-size: .9rem; }
.sources summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.sources ul { margin: .8rem 0 0; }

/* Services hub cards reuse .service */
.services-grid .service picture img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; height: auto; }

/* Blog hub */
.blog-tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.blog-tools input { flex: 1 1 280px; max-width: 420px; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .45rem .9rem; font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; color: var(--navy); min-height: 40px; }
.chip.active, .chip:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.blog-count { color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card[hidden] { display: none; }
.post-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card .body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.post-card .tag { align-self: flex-start; background: #eef3ff; color: var(--blue); font-size: .74rem; font-weight: 600; padding: .2rem .6rem; border-radius: 4px; }
.post-title { font-size: 1.06rem; margin: 0; }
.post-title a { color: var(--navy); }
.post-card p { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.post-card .more { font-weight: 600; font-size: .9rem; }
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post { isolation: isolate; }
.post .stretched { color: #fff; }
.post .stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post picture, .post picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Contact form card on inner pages */
.form-card { background: var(--navy); color: #dfe6f7; border-radius: 16px; padding: 2rem; margin-top: 2.5rem; }
.form-card h2 { color: #fff; margin-top: 0; }

/* Homepage picture elements */
.hero-img picture img, .about-grid picture img, .service picture img, .contact .side picture img { width: 100%; height: auto; }
.about-grid picture { display: block; }
.about-grid picture:first-child { grid-row: 1 / 3; }
.about-grid picture:first-child img { height: 100%; object-fit: cover; }
.hero-img img { aspect-ratio: auto; }

.narrow { max-width: 760px; }
.quick-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 1.5rem 0; }
.quick-links a { display: inline-block; padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; }
.f-h { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.zip-cols { grid-template-columns: repeat(3, auto) !important; gap: .4rem 1rem !important; }
.blue-block a { color: #fff !important; font-size: 1.25rem; font-weight: 700; }
.sub a, .sub a:hover { border: 0 !important; }
.nav-cta .btn { border-bottom: 2px solid transparent; }
/* fixes after visual test */
.nav-list > li > a.btn { background: var(--red); color: #fff; border-bottom: 0; padding: .7rem 1.3rem; text-align: center; }
.nav-list > li > a.btn:hover { background: var(--red-dark); color: #fff; }
@media (max-width: 1100px) {
  .header .container { position: relative; }
  .nav { position: absolute; top: 100%; left: -1.25rem; right: -1.25rem; inset: 100% -1.25rem auto -1.25rem; max-height: calc(100vh - 120px); }
}
.footer-bottom { padding-right: 64px; }


/* =========================================================
   v3: premium photo hero, inner photo heroes, figures
   ========================================================= */
.hero.hero-photo { background: var(--navy); color: #fff; isolation: isolate; min-height: clamp(560px, 82vh, 760px); display: flex; align-items: stretch; }
.hero-photo .hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #22314f; }
.hero-photo .hero-media picture, .hero-photo .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo .hero-media img { object-fit: cover; object-position: 70% 55%; transform-origin: 70% 60%; animation: heroZoom 26s ease-in-out infinite alternate; will-change: transform; }
.hero-photo .hero-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8,18,52,.92) 0%, rgba(8,18,52,.78) 38%, rgba(8,18,52,.28) 70%, rgba(8,18,52,.12) 100%),
              linear-gradient(0deg, rgba(8,18,52,.55) 0%, rgba(8,18,52,0) 40%); }
.hero-photo .container { position: relative; display: grid; grid-template-columns: minmax(0, 640px) 1fr; align-items: center; gap: 2rem; min-height: inherit; padding-block: clamp(3rem, 8vh, 5.5rem); }
.hero-photo .hero-copy { max-width: 640px; }
.hero-photo .eyebrow { color: #ffd166; }
.hero-photo h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -.01em; margin: .35rem 0 1rem; text-wrap: balance; }
.hero-photo .lead { color: #e3e9fb; font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 34em; }
.hero-photo .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(4px); display: inline-flex; align-items: center; gap: .5rem; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.hero-points { list-style: none; padding: 0; margin: 1.7rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; font-size: .95rem; color: #dfe6fb; }
.hero-points li { display: flex; align-items: center; gap: .45rem; }
.hero-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat; }
.hero-card { justify-self: end; align-self: end; max-width: 260px; background: rgba(255,255,255,.96); color: var(--ink); border-radius: 16px; padding: 1.2rem 1.3rem; box-shadow: 0 20px 50px rgba(0,0,0,.25); display: grid; gap: .3rem; font-size: .92rem; }
.hero-card .num { font-size: 2.4rem; font-weight: 700; color: var(--blue); line-height: 1; }
.hero-card a { font-weight: 600; margin-top: .3rem; }
.hero-in { animation: heroIn .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.09) translateX(-1.2%); } }
@media (prefers-reduced-motion: reduce) {
  .hero-in { animation: none; }
  .hero-photo .hero-media img, .hero-inner-photo .phi-bg img { animation: none; }
}
@media (max-width: 900px) {
  .hero.hero-photo { min-height: 0; }
  .hero-photo .container { grid-template-columns: 1fr; padding-block: 3.2rem 2.4rem; }
  .hero-photo .hero-media img { object-position: 74% 50%; }
  .hero-photo .hero-shade { background: linear-gradient(180deg, rgba(8,18,52,.55) 0%, rgba(8,18,52,.82) 45%, rgba(8,18,52,.94) 100%); }
  .hero-card { justify-self: start; max-width: none; width: 100%; grid-template-columns: auto 1fr; align-items: center; column-gap: 1rem; }
  .hero-card .num { grid-row: span 2; }
  .hero-photo .actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 420px) { .hero-photo h1 { font-size: 2.1rem; } }

/* inner service hero with full bleed photo */
.page-hero.hero-inner-photo { position: relative; isolation: isolate; background: var(--navy); color: #fff; border-bottom: 0; overflow: hidden; }
.hero-inner-photo .phi-bg, .hero-inner-photo .phi-bg picture, .hero-inner-photo .phi-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner-photo .phi-bg { z-index: -2; }
.hero-inner-photo .phi-bg img { object-fit: cover; animation: heroZoom 30s ease-in-out infinite alternate; }
.hero-inner-photo .phi-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,18,52,.93) 0%, rgba(8,18,52,.8) 45%, rgba(8,18,52,.35) 100%); }
.hero-inner-photo .container { grid-template-columns: minmax(0, 720px); padding-block: clamp(2.5rem, 7vw, 4.8rem); }
.hero-inner-photo h1, .hero-inner-photo .lead { color: #fff; }
.hero-inner-photo .lead { color: #e3e9fb; }
.hero-inner-photo .eyebrow { color: #ffd166; }
.hero-inner-photo .crumbs, .hero-inner-photo .crumbs a { color: #cfd8f5; }
.hero-inner-photo .btn-outline { color: #fff; border-color: rgba(255,255,255,.75); }
.hero-inner-photo .btn-outline:hover { background: #fff; color: var(--navy); }
@media (max-width: 900px) { .hero-inner-photo .phi-shade { background: linear-gradient(180deg, rgba(8,18,52,.7), rgba(8,18,52,.92)); } }

/* split hero photo + caption */
.page-hero-img { margin: 0; }
.page-hero-img img { width: 100%; height: auto; aspect-ratio: 49 / 30; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }
.page-hero-img figcaption, .featured figcaption { font-size: .78rem; color: var(--muted); margin-top: .45rem; }

/* article hero + featured image */
.art-hero .page-hero-text { max-width: 860px; }
.art-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .2rem 0 .6rem; font-size: .85rem; color: var(--muted); }
.art-meta span:first-child { color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.prose .featured { margin: 0 0 1.8rem; }
.prose .featured img { width: 100%; height: auto; aspect-ratio: 49 / 30; object-fit: cover; border-radius: 14px; }
.prose .diagram { margin: 2rem 0; background: var(--grey); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.prose .diagram img { width: 100%; height: auto; border-radius: 10px; background: #fff; }
.prose .diagram figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }

/* cards with photos: keep crops consistent */
.service picture img, .post-card picture img, .post .post-img img, .posts picture img { aspect-ratio: 5 / 3; object-fit: cover; width: 100%; height: auto; }
.about-grid picture img { aspect-ratio: 4 / 3; object-fit: cover; }
.contact .side picture img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #ffb703; outline-offset: 2px; }
.form-status.ok { border-color: #2a9d8f; background: #e9f7f5; color: #135c53; }
.phone-pill .txt, .tb-phone { white-space: nowrap; }
@media (max-width: 1380px) { .phone-pill .txt small { display: none; } }
@media (max-width: 600px) { .topbar .container > span:first-child { display: none; } .topbar .container { justify-content: space-between; } }
.hero-inner-photo .page-hero-text a:not(.btn) { color: #ffd166; }
.hero-inner-photo .crumbs [aria-current], .hero-inner-photo .crumbs li:last-child { color: #fff; }
@media (max-width: 900px) {
  .hero.hero-photo { display: block; background: var(--navy); }
  .hero-photo .hero-media { position: relative; inset: auto; height: clamp(220px, 56vw, 380px); z-index: 0; }
  .hero-photo .hero-shade { inset: 0 0 auto 0; height: clamp(220px, 56vw, 380px); background: linear-gradient(180deg, rgba(8,18,52,0) 55%, rgba(11,26,74,1) 100%); z-index: 1; }
  .hero-photo .container { padding-block: 1.4rem 2.4rem; margin-top: -2.2rem; z-index: 2; }
}

/* =========================================================
   v4: header, dropdowns, mobile drawer, buttons, sticky CTA
   ========================================================= */
.header { position: sticky; top: 0; z-index: 80; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 76px; }
.logo { flex: none; }
.logo .mark { width: 44px; height: 44px; }
.logo > span { font-size: 1.05rem; }
.nav-head, .nav-foot, .nav-close { display: none; }

/* desktop nav */
@media (min-width: 1101px) {
  .nav { position: static; display: block; background: none; transform: none; opacity: 1; visibility: visible; max-height: none; overflow: visible; padding: 0; box-shadow: none; }
  .nav-list { display: flex; align-items: center; gap: .25rem; }
  .nav-list > li { position: relative; }
  .nav-list > li > a, .sub-toggle { display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .7rem; border-radius: 8px; border: 0 !important; color: var(--ink); font: inherit; font-weight: 500; background: none; cursor: pointer; transition: background .15s, color .15s; }
  .nav-list > li > a:hover, .sub-toggle:hover, .has-sub.open > .sub-toggle { background: var(--grey); color: var(--blue); text-decoration: none; }
  .nav-list > li > a[aria-current="page"], .has-sub.active > .sub-toggle { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 8px 8px 0 0; }
  .sub-toggle::after { display: none; }
  .chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
  .sub-toggle[aria-expanded="true"] .chev { transform: rotate(-135deg) translate(-2px, 0); }
  .sub { position: absolute; top: 100%; left: 0; transform: none; display: block; visibility: hidden; opacity: 0; pointer-events: none;
         margin-top: 0; padding: 14px 0 0; background: none; border: 0; box-shadow: none; z-index: 90; transition: opacity .15s ease, visibility .15s; width: max-content; max-width: calc(100vw - 32px); }
  .sub::before { content: none; }
  .sub > .sub-cols, .sub > .sub-all { background: #fff; }
  .sub-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 0 1.6rem; padding: 1.3rem 1.4rem 1rem; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: 0 18px 40px rgba(11,26,74,.12); }
  .sub-areas .sub-cols { grid-auto-columns: minmax(220px, 250px); }
  .sub-all { display: flex !important; align-items: center; gap: .4rem; padding: .85rem 1.9rem !important; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; font-weight: 600; color: var(--blue) !important; box-shadow: 0 18px 40px rgba(11,26,74,.12); margin: 0 !important; }
  .sub-all:hover { background: var(--grey) !important; text-decoration: none; }
  .has-sub.open > .sub { visibility: visible; opacity: 1; pointer-events: auto; }
  html:not(.js) .has-sub:hover > .sub, html:not(.js) .has-sub:focus-within > .sub { visibility: visible; opacity: 1; pointer-events: auto; }
  .header-cta { display: flex; align-items: center; gap: .6rem; }
}
.sub-h { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--red); font-weight: 700; margin: 0 0 .5rem; padding: 0 .55rem; }
.sub ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.sub a { display: block; padding: .42rem .55rem; border-radius: 7px; color: var(--ink); font-size: .93rem; line-height: 1.35; white-space: normal; border: 0 !important; }
.sub a:hover, .sub a:focus-visible { background: var(--grey); color: var(--blue); text-decoration: none; }
.sub a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.sub li.child a { padding-left: 1.5rem; font-size: .88rem; color: var(--muted); position: relative; }
.sub li.child a::before { content: ""; position: absolute; left: .7rem; top: 50%; width: 6px; height: 1px; background: currentColor; }
.sub li.child a:hover { color: var(--blue); }
@media (min-width: 1101px) and (max-width: 1320px) { .head-btn { display: none !important; } }

/* phone pill (compact) */
.phone-pill { display: inline-flex; align-items: center; gap: .55rem; padding: .35rem 1rem .35rem .35rem; border-radius: 999px; background: var(--blue); color: #fff !important; font-weight: 700; white-space: nowrap; text-decoration: none !important; transition: background .15s; }
.phone-pill:hover { background: var(--blue-dark); }
.phone-pill .ico { width: 34px; height: 34px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; }
.phone-pill .ico svg { width: 16px; height: 16px; }

/* mobile drawer */
@media (max-width: 1100px) {
  .header-cta .head-btn { display: none; }
  .phone-pill .txt { display: none; }
  .phone-pill { padding: .3rem; }
  .menu-btn { display: grid; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); height: 100vh; height: 100dvh; max-height: none; background: #fff; z-index: 120;
         display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 0 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
         transform: translateX(100%); visibility: hidden; opacity: 1; transition: transform .25s ease, visibility .25s; box-shadow: -20px 0 50px rgba(11,26,74,.25); }
  .nav.open { transform: none; visibility: visible; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(8,18,52,.45); z-index: 110; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  body.menu-open .nav-backdrop { opacity: 1; visibility: visible; }
  body.menu-open { overflow: hidden; }
  .nav-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: sticky; top: 0; background: #fff; padding: .9rem 0; border-bottom: 1px solid var(--line); z-index: 2; }
  .nav-head .logo > span { font-size: .98rem; }
  .nav-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; flex: none; }
  .nav-close:hover { background: var(--grey); }
  .nav-list { display: block; padding: .4rem 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li > a, .sub-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: .8rem .2rem; font: inherit; font-size: 1.05rem; font-weight: 600; color: var(--navy); background: none; border: 0 !important; text-align: left; cursor: pointer; }
  .nav-list > li > a[aria-current="page"], .has-sub.active > .sub-toggle { color: var(--blue); }
  .nav-list > li > a:hover { text-decoration: none; color: var(--blue); }
  .sub-toggle::after { display: none; }
  .chev { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; margin-right: .4rem; }
  .sub-toggle[aria-expanded="true"] .chev { transform: rotate(-135deg); }
  .sub { display: none; position: static; transform: none; box-shadow: none; border: 0; padding: 0 0 .8rem .4rem; width: auto; max-width: none; background: none; }
  .has-sub.open > .sub { display: block; }
  .sub-cols { display: grid; gap: .9rem; }
  .sub a { min-height: 44px; display: flex; align-items: center; padding: .5rem .8rem; font-size: 1rem; }
  .sub li.child a { padding-left: 1.9rem; font-size: .95rem; }
  .sub-h { margin: .3rem 0 .2rem; padding: 0 .8rem; }
  .sub-all { display: flex !important; align-items: center; min-height: 44px; padding: .5rem .8rem !important; font-weight: 600; color: var(--blue) !important; margin-top: .4rem; border-top: 0 !important; }
  .nav-foot { display: grid; gap: .7rem; padding-top: 1.2rem; margin-top: auto; }
  .nav-foot .btn { width: 100%; }
}
@media (min-width: 1101px) { .nav-backdrop { display: none; } .menu-btn { display: none; } }

/* ---------- buttons: one consistent system ---------- */
.btn { min-height: 46px; line-height: 1.2; transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease; transform: none !important; text-decoration: none !important; }
.btn svg { flex: none; width: 18px; height: 18px; }
.btn:hover { box-shadow: 0 6px 16px rgba(11,26,74,.16); }
.btn:active { box-shadow: none; filter: brightness(.94); }
.btn:focus-visible { outline: 3px solid #ffb400; outline-offset: 3px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-red, .btn-red:visited { background: var(--red); border-color: var(--red); color: #fff !important; }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff !important; }
.btn-blue, .btn-blue:visited { background: var(--blue); border-color: var(--blue); color: #fff !important; }
.btn-blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff !important; }
.btn-white, .btn-white:visited { background: #fff; border-color: #fff; color: var(--navy) !important; }
.btn-white:hover { background: #eef2ff; border-color: #eef2ff; color: var(--navy) !important; }
.btn-outline, .btn-outline:visited { background: transparent; border-color: var(--navy); color: var(--navy) !important; }
.btn-outline:hover { background: var(--navy); border-color: var(--navy); color: #fff !important; }
.btn-ghost, .btn-ghost:visited { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.8); color: #fff !important; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--navy) !important; }
/* outline buttons on dark backgrounds */
:is(.section-navy, .contact, .side-cta, .form-card, .footer, .band, .hero-inner-photo, .hero-photo) .btn-outline { border-color: rgba(255,255,255,.8); color: #fff !important; }
:is(.section-navy, .contact, .side-cta, .form-card, .footer, .band, .hero-inner-photo, .hero-photo) .btn-outline:hover { background: #fff; border-color: #fff; color: var(--navy) !important; }
.service .more, .post-card .more, .related-list a, .side-more { transition: color .15s; }
.chip { transition: background .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active, .chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- sticky CTA ---------- */
.mobile-bar { display: none !important; }
.sticky-cta { position: fixed; z-index: 70; display: flex; transition: transform .3s ease, opacity .3s ease; }
.sticky-cta a { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 700; text-decoration: none !important; white-space: nowrap; transition: background .15s; }
.sticky-cta svg { width: 20px; height: 20px; flex: none; }
.sc-call { background: var(--blue); color: #fff !important; }
.sc-call:hover { background: var(--blue-dark); }
.sc-quote { background: var(--red); color: #fff !important; }
.sc-quote:hover { background: var(--red-dark); }
.sticky-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
body.menu-open .sticky-cta, body.menu-open .to-top { visibility: hidden; }
@media (max-width: 720px) {
  .sticky-cta { left: 0; right: 0; bottom: 0; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 20px rgba(11,26,74,.12); }
  .sticky-cta a { flex: 1; min-height: 50px; border-radius: 12px; font-size: 1rem; }
  .sc-d { display: none; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
}
@media (min-width: 721px) {
  .sticky-cta { right: 20px; bottom: 20px; border-radius: 999px; overflow: hidden; box-shadow: 0 12px 30px rgba(11,26,74,.25); }
  .sticky-cta a { min-height: 48px; padding: 0 1.1rem; font-size: .93rem; }
  .sc-m { display: none; }
  .sticky-cta.is-hidden { transform: translateY(24px); }
  .to-top { bottom: 82px !important; right: 24px !important; }
  .footer-bottom { padding-right: 0; }
  .footer { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { .sticky-cta, .nav, .nav-backdrop, .sub { transition: none !important; } }

.nav .logo { padding: 0; border: 0 !important; }
.nav .nav-foot .btn { padding: .85rem 1.5rem; border-width: 2px; border-style: solid; }
.nav .nav-foot .btn-red, .nav .nav-foot .btn-red:hover { border-color: var(--red); }
.nav .nav-foot .btn-outline, .nav .nav-foot .btn-outline:hover { border-color: var(--navy); }
.header .logo { min-width: 0; flex: 0 1 auto; }
.header .logo > span { min-width: 0; }
@media (max-width: 520px) {
  .header .container { gap: .5rem; min-height: 68px; }
  .logo .mark { width: 38px; height: 38px; }
  .logo > span { font-size: .9rem; }
  .logo small { font-size: .56rem; letter-spacing: .1em; }
  .menu-btn { width: 44px; height: 44px; }
}
.two-col { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0,1fr); } }
.two-col, .prose { overflow-wrap: anywhere; }
@media (max-width: 1100px) { .nav > * { flex-shrink: 0; } }
@media (max-width: 1100px) { .nav .has-sub.open > .sub, .nav .has-sub.open:hover > .sub { display: block; visibility: visible; opacity: 1; } }
@media (min-width: 1101px) { .header .logo { flex: none; } .header .logo > span { white-space: nowrap; } }
@media (min-width: 1101px) and (max-width: 1479px) { .head-btn { display: none !important; } }
@media (min-width: 1101px) and (max-width: 1200px) { .nav-list > li > a, .sub-toggle { padding: .55rem .5rem; } .header .logo > span { font-size: .95rem; } }
@media (min-width: 1101px) {
  .sub { display: none; }
  .has-sub.open > .sub { display: block; animation: subIn .16s ease; }
  html:not(.js) .has-sub:hover > .sub, html:not(.js) .has-sub:focus-within > .sub { display: block; }
}
@keyframes subIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .has-sub.open > .sub { animation: none; } }
@media (max-width: 1100px) { .menu-btn { order: 3; } .header-cta { order: 2; margin-left: auto; } }
@media (max-width: 720px) { .sticky-cta a { font-size: .95rem; padding: 0 .6rem; } .sc-quote { flex: 1.35 !important; } }

/* =====================================================================
   v5 DESIGN SYSTEM  (type, colour, buttons, header, homepage, motion)
   Everything below overrides earlier layers.
   ===================================================================== */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --navy: #0b1d4f; --navy-2: #12296a; --navy-ink: #081538;
  --blue: #1d4ed8; --blue-dark: #1a40b5; --sky: #8ccbff;
  --red: #e5383b; --red-dark: #c4282b;
  --ink: #142041; --muted: #53607e; --line: #e2e7f1; --line-2: #cfd7e8;
  --grey: #f4f6fa; --tint: #f5f7fb; --blue-tint: #edf2fe;
  --font-head: "Archivo", "Segoe UI", Arial, sans-serif;
  --font-body: "Public Sans", "Segoe UI", Arial, sans-serif;
  --font: var(--font-body);
  --fs-h1: clamp(2.3rem, 1.55rem + 3.1vw, 3.85rem);
  --fs-h2: clamp(1.7rem, 1.28rem + 1.7vw, 2.55rem);
  --fs-h3: clamp(1.08rem, 1.02rem + .25vw, 1.22rem);
  --fs-body: 1.0625rem;
  --section: clamp(4rem, 2.6rem + 5.5vw, 7rem);
  --radius: 14px; --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11,29,79,.06), 0 2px 8px rgba(11,29,79,.05);
  --shadow: 0 12px 32px -12px rgba(11,29,79,.22);
  --shadow-lg: 0 24px 60px -20px rgba(11,29,79,.35);
  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 76px;
}

body { font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.65; color: var(--ink); font-feature-settings: "kern" 1; }
h1, h2, h3, h4, .f-h { font-family: var(--font-head); color: var(--navy); text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 760; line-height: 1.04; letter-spacing: -.022em; }
h2 { font-size: var(--fs-h2); font-weight: 720; line-height: 1.1; letter-spacing: -.016em; margin-bottom: .55em; }
h3 { font-size: var(--fs-h3); font-weight: 650; line-height: 1.3; letter-spacing: -.005em; }
p { text-wrap: pretty; }
strong, b { font-weight: 650; }
.lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.fine { font-size: .9rem; color: var(--muted); line-height: 1.55; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #f5a524; outline-offset: 3px; border-radius: 4px; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.2rem); }
.section-head.center { margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.section-head.split > div { max-width: 640px; }
.section-head .lead, .section-head p:last-child { margin-bottom: 0; }
.section-tint { background: var(--tint); }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: flex; align-items: center; gap: .6rem; width: fit-content; max-width: 100%;
  font-family: var(--font-body); font-size: .8rem; font-weight: 650; letter-spacing: .085em; text-transform: uppercase;
  line-height: 1.35; color: var(--blue); margin: 0 0 .9rem;
}
.eyebrow::before { content: ""; flex: none; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: .9; }
.center > .eyebrow, .section-head.center .eyebrow { margin-inline: auto; }
.eyebrow-light, .contact .eyebrow, .band .eyebrow, .hero-inner-photo .eyebrow, .section-navy .eyebrow { color: var(--sky) !important; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff; --bd: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .78rem 1.35rem; border-radius: 10px; border: 2px solid var(--bd) !important;
  background: var(--bg) !important; color: var(--fg) !important;
  font-family: var(--font-body); font-size: .98rem; font-weight: 650; line-height: 1.2; letter-spacing: .005em;
  text-decoration: none !important; white-space: nowrap; cursor: pointer; transform: none !important; filter: none !important;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .2s ease;
}
.btn .ic { flex: none; width: 18px; height: 18px; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover { box-shadow: 0 8px 18px -8px rgba(11,29,79,.45); }
.btn:hover .arr { transform: translateX(3px); }
.btn:active { box-shadow: none; }
.btn:focus-visible { outline: 3px solid #f5a524; outline-offset: 3px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-lg { min-height: 54px; padding: .9rem 1.6rem; font-size: 1.03rem; }
.btn-primary, .btn-red { --bg: var(--red); --bd: var(--red); --fg: #fff; }
.btn-primary:hover, .btn-red:hover { --bg: var(--red-dark); --bd: var(--red-dark); }
.btn-blue { --bg: var(--blue); --bd: var(--blue); }
.btn-blue:hover { --bg: var(--blue-dark); --bd: var(--blue-dark); }
.btn-secondary, .btn-outline { --bg: transparent; --bd: var(--line-2); --fg: var(--navy); }
.btn-secondary:hover, .btn-outline:hover { --bg: var(--navy); --bd: var(--navy); --fg: #fff; }
.btn-white { --bg: #fff; --bd: #fff; --fg: var(--navy); }
.btn-white:hover { --bg: #e9efff; --bd: #e9efff; --fg: var(--navy); }
.btn-ghost { --bg: rgba(255,255,255,.06); --bd: rgba(255,255,255,.55); --fg: #fff; }
.btn-ghost:hover { --bg: #fff; --bd: #fff; --fg: var(--navy); }
:is(.section-navy, .contact, .side-cta, .form-card, .footer, .band, .hero-inner-photo, .hero-photo, .hero-v5) .btn-outline,
:is(.section-navy, .contact, .side-cta, .form-card, .footer, .band, .hero-inner-photo, .hero-photo, .hero-v5) .btn-secondary { --bg: transparent; --bd: rgba(255,255,255,.55); --fg: #fff; }
:is(.section-navy, .contact, .side-cta, .form-card, .footer, .band, .hero-inner-photo, .hero-photo, .hero-v5) .btn-outline:hover,
:is(.section-navy, .contact, .side-cta, .form-card, .footer, .band, .hero-inner-photo, .hero-photo, .hero-v5) .btn-secondary:hover { --bg: #fff; --bd: #fff; --fg: var(--navy); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; color: var(--blue); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow .arr { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .arr { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- top bar + header ---------- */
.topbar { background: var(--navy-ink); color: #c4cfee; font-size: .84rem; }
.topbar .container { min-height: 38px; }
.tb-item, .tb-phone { display: inline-flex; align-items: center; gap: .45rem; }
.tb-item .ic { color: var(--sky); }
.tb-phone { color: #fff !important; font-weight: 650; }
.tb-phone:hover { text-decoration: underline; }
.header { box-shadow: none; border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.header.scrolled, .header.is-stuck { box-shadow: 0 6px 24px -14px rgba(11,29,79,.35); }
.header .container { min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; flex: none; line-height: 0; border: 0 !important; padding: 0 !important; }
.logo img { display: block; height: 46px; width: auto; max-width: none; }
.footer .logo img { height: 48px; }
.nav-head .logo img { height: 40px; }
@media (min-width: 1101px) {
  .nav-list > li > a, .sub-toggle { font-family: var(--font-body); font-size: .97rem; font-weight: 560; color: var(--ink); padding: .55rem .75rem; }
  .nav-list > li > a[aria-current="page"], .has-sub.active > .sub-toggle { box-shadow: inset 0 -2px 0 var(--red); color: var(--navy); }
  .sub-cols { border-radius: 14px 14px 0 0; }
  .sub-h { color: var(--blue); letter-spacing: .08em; }
}
.phone-pill { font-family: var(--font-body); background: var(--navy) !important; }
.phone-pill:hover { background: var(--navy-2) !important; }
.phone-pill .ico { background: var(--red); }
@media (max-width: 1100px) { .logo img { height: 40px; } }
@media (max-width: 400px) { .logo img { height: 34px; } }

/* ---------- HERO (home) ---------- */
.hero-v5 { position: relative; isolation: isolate; background: var(--navy-ink); color: #fff; overflow: hidden; }
.hero-v5 .hero-media, .hero-v5 .hero-media picture, .hero-v5 .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-v5 .hero-media { z-index: -2; overflow: hidden; }
.hero-v5 .hero-media img { object-fit: cover; object-position: 74% 58%; animation: heroSettle 1.8s var(--ease) both; transform-origin: 70% 60%; }
.hero-v5 .hero-shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,21,56,.96) 0%, rgba(8,21,56,.9) 30%, rgba(8,21,56,.55) 55%, rgba(8,21,56,.12) 80%),
    linear-gradient(0deg, rgba(8,21,56,.55) 0%, rgba(8,21,56,0) 35%); }
.hero-v5 .hero-inner { display: flex; align-items: center; min-height: clamp(560px, 78vh, 740px); padding-block: clamp(3.5rem, 7vw, 6rem) clamp(5.5rem, 9vw, 7.5rem); }
.hero-v5 .hero-copy { max-width: 640px; }
.hero-v5 h1 { color: #fff; margin: 0 0 1.1rem; font-size: clamp(2.45rem, 1.5rem + 3.6vw, 4.1rem); }
.hero-lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem); line-height: 1.6; color: #dbe3f8; max-width: 56ch; margin: 0 0 1.9rem; }
.hero-v5 .hero-points { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .95rem; color: #e6ecfb; }
.hero-v5 .hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-v5 .hero-points .ic { color: #6ee7a8; }
.hero-v5 .hero-points li::before { content: none; }
@keyframes heroSettle { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-in { animation: heroIn .8s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-inner-photo .phi-bg img, .hero-photo .hero-media img { animation: heroSettle 1.8s var(--ease) both !important; }
@media (max-width: 760px) {
  .hero-v5 { display: flex; flex-direction: column; }
  .hero-v5 .hero-media { position: relative; inset: auto; height: 250px; order: -1; z-index: 0; }
  .hero-v5 .hero-media img { object-position: 76% 62%; }
  .hero-v5 .hero-shade { inset: 0 0 auto 0; height: 250px; background: linear-gradient(0deg, var(--navy-ink) 0%, rgba(8,21,56,0) 45%); z-index: 1; }
  .hero-v5 .hero-inner { min-height: 0; padding-block: .5rem 4.8rem; position: relative; z-index: 2; margin-top: -2.2rem; }
  .hero-v5 .actions .btn { flex: 1 1 100%; }
  .hero-v5 .hero-points { flex-direction: column; gap: .5rem; }
}

/* ---------- facts strip ---------- */
.facts-strip { position: relative; z-index: 3; margin-top: -3.6rem; }
.facts-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.facts-strip li { padding: 1.35rem 1.25rem; display: flex; flex-direction: column; gap: .3rem; }
.facts-strip li + li { border-left: 1px solid var(--line); }
.facts-strip b { font-family: var(--font-head); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); font-weight: 720; color: var(--navy); line-height: 1.1; letter-spacing: -.01em; }
.facts-strip span { font-size: .87rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 1000px) {
  .facts-strip ul { grid-template-columns: repeat(2, 1fr); }
  .facts-strip li + li { border-left: 0; }
  .facts-strip li { border-top: 1px solid var(--line); }
  .facts-strip li:nth-child(-n+2) { border-top: 0; }
  .facts-strip li:nth-child(even) { border-left: 1px solid var(--line); }
  .facts-strip li:last-child { grid-column: 1 / -1; border-left: 0; }
}

/* ---------- about ---------- */
.about-v5 { padding-top: calc(var(--section) * .9); }
.about-grid-v5 { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.about-media { position: relative; padding: 0 2.2rem 2.4rem 0; }
.about-media .am-main img { width: 100%; aspect-ratio: 5 / 4.4; object-fit: cover; border-radius: 18px; }
.about-media .am-sub { position: absolute; right: 0; bottom: 0; width: 44%; }
.about-media .am-sub img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; border: 6px solid #fff; box-shadow: var(--shadow); }
.am-note { position: absolute; left: 1rem; top: 1rem; right: 46%; margin: 0; display: flex; gap: .5rem; align-items: flex-start; background: rgba(255,255,255,.94); color: var(--navy); font-size: .86rem; font-weight: 600; line-height: 1.4; padding: .7rem .85rem; border-radius: 10px; box-shadow: var(--shadow-sm); }
.am-note .ic { flex: none; color: var(--red); margin-top: 1px; }
.about-copy p { max-width: 60ch; }
.callout { border-left: 3px solid var(--blue); background: var(--blue-tint); padding: 1rem 1.2rem; border-radius: 0 10px 10px 0; color: var(--navy); font-weight: 500; }
.about-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.6rem; }
.pillars { list-style: none; margin: clamp(3rem, 5vw, 4.5rem) 0 0; padding: 2rem 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.pillars li { display: flex; gap: 1rem; align-items: flex-start; }
.pillars h3 { margin: .1rem 0 .4rem; }
.pillars p { margin: 0; color: var(--muted); font-size: .97rem; }
.pi, .si, .step-ic, .cp-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-tint); color: var(--blue); }
@media (max-width: 900px) {
  .about-grid-v5 { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 1.4rem; }
}
@media (max-width: 520px) { .about-media { padding: 0 1rem 1.6rem 0; } .am-note { right: 1rem; } .about-media .am-sub { width: 40%; } }

/* ---------- warning signs ---------- */
.signs-v5 { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.signs-intro { position: sticky; top: calc(var(--header-h) + 24px); }
.urgent-card { margin-top: 1.8rem; background: var(--navy); color: #d9e1f6; border-radius: 16px; padding: 1.5rem 1.6rem; }
.urgent-card h3 { color: #fff; margin: 0 0 .5rem; }
.urgent-card p { font-size: .97rem; margin: 0 0 1.2rem; }
.sign-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.sign-list li { display: flex; gap: 1.1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.4rem; }
.sign-list h3 { margin: .15rem 0 .35rem; }
.sign-list p { margin: 0; color: var(--muted); font-size: .97rem; }
.si { background: #fdecec; color: var(--red); }
@media (max-width: 900px) { .signs-v5 { grid-template-columns: 1fr; } .signs-intro { position: static; } }

/* ---------- services ---------- */
.svc-v5 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.svc-v5 .service { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: none; transform: none; transition: box-shadow .25s ease, border-color .25s ease; }
.svc-v5 .service picture { display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.svc-v5 .service img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc-v5 .service .body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.4rem; }
.svc-v5 .service h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.svc-v5 .service h3 a { color: var(--navy); text-decoration: none; }
.svc-v5 .service p { color: var(--muted); font-size: .97rem; margin: 0 0 1.1rem; }
.svc-v5 .more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; color: var(--blue); font-size: .95rem; }
.svc-v5 .more .arr { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.svc-v5 .service:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.svc-v5 .service:hover img { transform: scale(1.04); }
.svc-v5 .service:hover .more .arr { transform: translateX(3px); }
.svc-v5 .service:hover h3 a { color: var(--blue); }
.svc-v5 .service:focus-within { outline: 3px solid #f5a524; outline-offset: 3px; }
.svc-v5 .service .stretched:focus-visible { outline: none; }
@media (max-width: 1000px) { .svc-v5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .svc-v5 { grid-template-columns: 1fr; } }
.table-title { margin: clamp(3rem, 5vw, 4rem) 0 1rem; font-size: 1.2rem; }
.table-wrap { border-radius: 14px; border: 1px solid var(--line); overflow-x: auto; background: #fff; box-shadow: none; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap th { background: var(--navy); color: #fff; font-family: var(--font-body); font-weight: 650; text-align: left; padding: .85rem 1.1rem; font-size: .88rem; letter-spacing: .01em; }
.table-wrap td { padding: .85rem 1.1rem; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap tbody tr:nth-child(even) td { background: #fafbfd; }
.table-wrap td a { font-weight: 600; }
.service-note, .process-note { color: var(--muted); font-size: .95rem; max-width: 72ch; margin: 1rem 0 0; }
.process-note { margin: 2.2rem auto 0; text-align: center; }

/* ---------- CTA band ---------- */
.band-v5 { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 100% 0%, #1f3f9e 0%, var(--navy) 55%, var(--navy-ink) 100%); color: #d6def5; padding-block: clamp(3rem, 6vw, 4.5rem); }
.band-v5::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 340px; height: 340px; border-radius: 50%; border: 44px solid rgba(255,255,255,.05); pointer-events: none; }
.band-v5 .container { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; }
.band-v5 h2 { color: #fff; margin: 0 0 .5rem; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }
.band-v5 p:not(.eyebrow) { margin: 0; max-width: 56ch; }
@media (max-width: 860px) { .band-v5 .container { grid-template-columns: 1fr; } }

/* ---------- Littleton facts ---------- */
.facts { gap: 1.2rem; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; box-shadow: none; }
.fact b { font-family: var(--font-head); font-size: 2rem; font-weight: 740; color: var(--blue); letter-spacing: -.02em; line-height: 1.05; display: block; margin-bottom: .5rem; }
.fact h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.fact p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------- process ---------- */
.process-v5 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: none; position: relative; }
.process-v5::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 47px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); }
.step-v5 { position: relative; text-align: center; padding: 0 .4rem; }
.step-n { display: block; font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--red); margin-bottom: .6rem; }
.step-n::before { content: "Step "; }
.step-ic { position: relative; width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1.1rem; background: #fff; border: 2px solid var(--blue); color: var(--blue); box-shadow: 0 0 0 8px #fff; }
.step-v5 h3 { margin: 0 0 .4rem; }
.step-v5 p { margin: 0 auto; color: var(--muted); font-size: .96rem; max-width: 30ch; }
@media (max-width: 900px) {
  .process-v5 { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin-inline: auto; }
  .process-v5::before { left: 27px; right: auto; top: 30px; bottom: 30px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 8px, transparent 8px 14px); }
  .step-v5 { text-align: left; display: grid; grid-template-columns: 56px 1fr; column-gap: 1.1rem; padding: 0 0 1.8rem; }
  .step-ic { grid-row: 1 / span 3; margin: 0; }
  .step-n { margin: .2rem 0 .2rem; }
  .step-v5 p { margin: 0; max-width: none; }
}

/* ---------- before you sign ---------- */
.sign-head { max-width: 780px; }
.trust-v5 { list-style: none; padding: 0; margin: 2rem 0 2.2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.trust-v5 li { display: flex; gap: .7rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; font-size: .96rem; line-height: 1.45; }
.trust-v5 .ic { flex: none; color: #15935a; margin-top: 1px; }
@media (max-width: 900px) { .trust-v5 { grid-template-columns: 1fr; } }

/* ---------- service area ---------- */
.area-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.area-head h2 { margin: 0; }
.area-head p { color: var(--muted); margin: 0; }
.area-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.area-groups { display: grid; gap: 1.6rem; }
.area-group h3 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.area-group ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.area-group li { position: relative; padding: .9rem 1.1rem; }
.area-group li + li { border-top: 1px solid var(--line); }
.area-group a { display: flex; align-items: center; gap: .7rem; color: var(--navy); font-weight: 650; text-decoration: none; }
.area-group a::after { content: ""; position: absolute; inset: 0; }
.area-group a .arr { margin-left: auto; width: 16px; height: 16px; color: var(--blue); transition: transform .2s var(--ease); }
.area-group li:hover { background: var(--tint); }
.area-group li:hover .arr { transform: translateX(3px); }
.area-group li:hover .zn { color: var(--blue); }
.area-group li:focus-within { outline: 3px solid #f5a524; outline-offset: -3px; }
.area-group a:focus-visible { outline: none; }
.zc { flex: none; font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: var(--blue); background: var(--blue-tint); border-radius: 6px; padding: .2rem .45rem; }
.area-group p { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.po-note { margin: 0; }
.district-card { background: var(--tint); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; position: sticky; top: calc(var(--header-h) + 24px); }
.district-card h3 { margin-top: 0; }
.district-card .table-wrap { margin: 1rem 0; }
.district-card td:last-child { white-space: nowrap; font-weight: 600; color: var(--navy); }
@media (max-width: 960px) { .area-head, .area-body { grid-template-columns: 1fr; } .district-card { position: static; } }

/* ---------- FAQ ---------- */
.faq-wrap { gap: clamp(2rem, 5vw, 5rem); }
.faq-intro .actions, .faq-intro { display: block; }
.faq-intro .btn { margin: .6rem 1.2rem .6rem 0; }
.accordion { display: grid; gap: .7rem; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.acc-item:has(.acc-btn[aria-expanded="true"]) { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.acc-h { margin: 0; font-size: 1rem; }
.acc-btn { font-family: var(--font-head) !important; font-size: 1.03rem !important; font-weight: 620 !important; color: var(--navy) !important; background: #fff !important; padding: 1.1rem 3.4rem 1.1rem 1.3rem !important; line-height: 1.4; text-align: left; width: 100%; border: 0; cursor: pointer; position: relative; }
.acc-btn:hover { color: var(--blue) !important; }
.acc-btn::after { content: "" !important; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; right: 1.1rem !important; transition: transform .25s var(--ease), background-color .2s ease !important; }
.acc-btn[aria-expanded="true"]::after { transform: translateY(-50%) rotate(45deg) !important; background-color: #fdecec; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5383b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
.acc-panel { color: var(--muted); font-size: .98rem; line-height: 1.65; padding: 0 1.3rem !important; transition: max-height .35s var(--ease), padding .35s var(--ease) !important; }
.acc-panel[data-open="true"] { padding: 0 1.3rem 1.2rem !important; }
html:not(.js) .acc-panel { max-height: none !important; padding: 0 1.3rem 1.2rem !important; }

/* ---------- contact ---------- */
.contact { background: radial-gradient(100% 120% at 0% 0%, var(--navy-2) 0%, var(--navy) 45%, var(--navy-ink) 100%); }
.contact h2 { color: #fff; }
.contact-points { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-points li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-points .cp-ic { background: rgba(140,203,255,.12); color: var(--sky); width: 42px; height: 42px; }
.contact-points b { display: block; color: #fff; font-size: .95rem; }
.contact-points a { color: #fff; font-weight: 650; font-size: 1.15rem; }
.contact-points span { color: #c3cdea; font-size: .95rem; }
.contact .form { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: clamp(1.3rem, 3vw, 2rem); }
.field label { font-family: var(--font-body); font-weight: 600; font-size: .88rem; color: #e6ecfb; }
.field input, .field textarea { font-family: var(--font-body); font-size: 1rem; border-radius: 10px; min-height: 48px; }
.form-note { color: #b9c4e4 !important; font-size: .86rem !important; }
.contact .form .btn { width: 100%; }

/* ---------- guides ---------- */
.posts-v5 { gap: 1.5rem; }
.posts-v5 .post { display: flex; flex-direction: column; align-items: stretch; min-height: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: box-shadow .25s ease, border-color .25s ease; }
.posts-v5 .post picture { position: relative !important; inset: auto !important; display: block; aspect-ratio: 16 / 10; overflow: hidden; height: auto !important; }
.posts-v5 .post picture img { position: static !important; width: 100%; height: 100% !important; object-fit: cover; opacity: 1; transition: transform .6s var(--ease); }
.posts-v5 .post .body { background: none; color: var(--ink); padding: 1.2rem 1.35rem 1.4rem; }
.posts-v5 .post .tag { background: var(--blue-tint); color: var(--blue); font-size: .75rem; font-weight: 650; letter-spacing: .02em; border-radius: 6px; padding: .2rem .55rem; margin-bottom: .7rem; }
.posts-v5 .post h3 { color: var(--navy); font-size: 1.12rem; margin: 0 0 .45rem; }
.posts-v5 .post .stretched { color: var(--navy); text-decoration: none; }
.posts-v5 .post p { color: var(--muted); opacity: 1; font-size: .95rem; }
.posts-v5 .post:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.posts-v5 .post:hover img { transform: scale(1.04); }
.posts-v5 .post:hover .stretched { color: var(--blue); }
.posts-v5 .post:focus-within { outline: 3px solid #f5a524; outline-offset: 3px; }
.posts-v5 .post .stretched:focus-visible { outline: none; }
@media (max-width: 900px) and (min-width: 621px) { .posts-v5 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- footer ---------- */
.footer { background: var(--navy-ink); color: #a9b5d6; font-size: .94rem; }
.footer .f-h { font-family: var(--font-head); color: #fff; font-size: 1rem; font-weight: 650; letter-spacing: .01em; }
.footer ul { list-style: none; padding: 0; }
.footer a { color: #c9d3ef; text-decoration: none; transition: color .15s ease; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .blue-block { background: var(--navy-2); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; }
.footer .blue-block b { font-size: .88rem; font-weight: 600; color: #c9d3ef; }
.footer .blue-block a { font-family: var(--font-head); font-size: 1.4rem !important; }
.f-contact, .f-contact a { display: inline-flex; align-items: center; gap: .45rem; }
.f-contact .ic { color: var(--sky); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); color: #8d9ac0; font-size: .86rem; }

/* ---------- sticky CTA ---------- */
.sticky-cta a { font-family: var(--font-body); font-weight: 650; }
@media (max-width: 720px) { .sticky-cta a { border-radius: 10px !important; } }
.to-top { background: var(--navy) !important; }

/* ---------- inner pages: shared refinements ---------- */
.page-hero h1 { font-size: clamp(2.05rem, 1.5rem + 2.3vw, 3.2rem); }
.hero-inner-photo .page-hero-text a:not(.btn) { color: var(--sky); }
.prose { font-size: 1.0625rem; line-height: 1.72; }
.prose > p, .prose > ul, .prose > ol { max-width: 72ch; }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); letter-spacing: -.012em; }
.prose h3 { font-size: 1.17rem; }
.side-cta, .side-card { border-radius: 16px !important; }
.crumbs { font-size: .88rem; }

/* ---------- motion ---------- */
.reveal-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-ready .reveal.in { opacity: 1; transform: none; }
.reveal-ready .reveal.stagger { opacity: 1; transform: none; }
.reveal-ready .reveal.stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-ready .reveal.stagger.in > * { opacity: 1; transform: none; }
.reveal.stagger.in > :nth-child(2) { transition-delay: .07s; }
.reveal.stagger.in > :nth-child(3) { transition-delay: .14s; }
.reveal.stagger.in > :nth-child(4) { transition-delay: .21s; }
.reveal.stagger.in > :nth-child(5) { transition-delay: .28s; }
.reveal.stagger.in > :nth-child(n+6) { transition-delay: .35s; }
.js .reveal:not(.in) { opacity: 1; transform: none; }
.reveal-ready .reveal:not(.in) { opacity: 0; transform: translateY(16px); }
.reveal-ready .reveal.stagger:not(.in) { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal, .reveal-ready .reveal.stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-v5 .hero-media img, .hero-in { animation: none !important; }
}
.table-wrap table { margin: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.table-wrap tr:last-child td { border-bottom: 0; }
.sign-head { max-width: none; }
.sign-head h2, .sign-head .lead { max-width: 800px; }
#before-you-sign .table-wrap { margin-top: 0; }
@media (max-width: 640px) {
  .table-wrap:has(table.stack) { border: 0; background: none; overflow: visible; border-radius: 0; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .35rem 0; margin-bottom: .7rem; }
  table.stack td { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: .8rem; border: 0 !important; padding: .5rem 1rem !important; background: none !important; }
  table.stack td::before { content: attr(data-label); font-size: .78rem; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding-top: .15rem; }
  table.stack td:first-child { font-weight: 650; color: var(--navy); }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .hero-v5 .hero-shade { background: linear-gradient(90deg, rgba(8,21,56,.96) 0%, rgba(8,21,56,.9) 45%, rgba(8,21,56,.6) 75%, rgba(8,21,56,.4) 100%), linear-gradient(0deg, rgba(8,21,56,.55) 0%, rgba(8,21,56,0) 35%); }
}
@media (max-width: 900px) { .topbar .hide-sm { display: none; } .about-media { max-width: 620px; } }
.band:not(.band-v5) { background: radial-gradient(120% 140% at 100% 0%, #1f3f9e 0%, var(--navy) 55%, var(--navy-ink) 100%); color: #d6def5; }
.band:not(.band-v5) h2 { color: #fff; }

/* =====================================================================
   v6: split hero with slow zoom, related sections
   ===================================================================== */
.hero-v5 { background: var(--navy-ink); }
.hero-v5 .hero-media img { animation: heroDrift 14s cubic-bezier(.25,.6,.3,1) both !important; transform-origin: 78% 58%; object-position: 88% 60%; will-change: transform; }
@keyframes heroDrift { from { transform: scale(1.16) translate3d(1.5%, 0, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
@media (min-width: 1001px) {
  .hero-v5 .hero-media { left: 42%; border-radius: 0; }
  .hero-v5 .hero-shade { background:
      linear-gradient(90deg, var(--navy-ink) 0%, var(--navy-ink) 42%, rgba(8,21,56,.72) 50%, rgba(8,21,56,.18) 66%, rgba(8,21,56,0) 80%),
      linear-gradient(0deg, rgba(8,21,56,.6) 0%, rgba(8,21,56,0) 30%); }
  .hero-v5 .hero-copy { max-width: 600px; }
  .hero-v5::before { content: ""; position: absolute; z-index: 0; left: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(29,78,216,.35), rgba(29,78,216,0) 70%); pointer-events: none; }
  .hero-v5 .hero-inner { position: relative; z-index: 1; }
}
.hero-badge { position: absolute; right: clamp(1.25rem, 4vw, 3rem); bottom: 5.4rem; z-index: 2; display: flex; align-items: center; gap: .7rem;
  background: rgba(255,255,255,.95); color: var(--navy); border-radius: 12px; padding: .7rem 1rem .7rem .7rem; box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 600; line-height: 1.3; max-width: 290px; }
.hero-badge .hb-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--blue-tint); color: var(--blue); }
.hero-badge small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
@media (max-width: 1000px) { .hero-badge { display: none; } }
@media (max-width: 760px) { .hero-v5 .hero-media { height: 260px; } .hero-v5 .hero-shade { height: 260px; } .hero-v5 .hero-media img { object-position: 84% 62%; } }
@media (prefers-reduced-motion: reduce) { .hero-v5 .hero-media img { animation: none !important; transform: none; } }

.related-v6 { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line); display: grid; gap: 1.8rem; }
.related-v6 h2 { font-size: 1.25rem; margin: 0 0 .8rem; }
.related-v6 .related-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }
.related-v6 .related-list a { display: flex; align-items: center; justify-content: space-between; gap: .8rem; height: 100%; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); font-weight: 600; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, color .2s ease; }
.related-v6 .related-list a span { color: var(--blue); transition: transform .2s var(--ease); }
.related-v6 .related-list a:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); color: var(--blue); }
.related-v6 .related-list a:hover span { transform: translateX(3px); }
.hero-badge { left: auto !important; }
@media (min-width: 1001px) {
  .hero-v5 .hero-media { left: 50%; }
  .hero-v5 .hero-media img { object-position: 100% 62%; transform-origin: 90% 70%; }
  .hero-v5 .hero-shade { background:
      linear-gradient(90deg, var(--navy-ink) 0%, var(--navy-ink) 50%, rgba(8,21,56,.75) 54%, rgba(8,21,56,.25) 66%, rgba(8,21,56,0) 78%),
      linear-gradient(0deg, rgba(8,21,56,.55) 0%, rgba(8,21,56,0) 30%); }
}
@media (max-width: 760px) {
  .hero-v5 .hero-media picture { position: absolute; inset: 0; }
  .hero-v5 .hero-media img { position: absolute; inset: auto; right: 0; top: -96px; width: 200%; height: auto; max-width: none; object-fit: fill; transform-origin: 80% 50%; }
}
@media (min-width: 1001px) {
  .hero-v5 .hero-media picture { position: absolute; top: 0; bottom: 0; right: 0; left: auto; width: 200%; height: 100%; }
  .hero-v5 .hero-media img { object-position: 100% 55%; transform-origin: 75% 60%; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .hero-v5 .hero-media picture { position: absolute; top: 0; bottom: 0; right: 0; left: auto; width: 170%; height: 100%; }
  .hero-v5 .hero-media img { object-position: 100% 55%; }
}
@media (min-width: 1001px) { .hero-v5 .hero-media img { object-position: 100% 80%; } }

/* ---------- v7: Guides dropdown + FAQ hub ---------- */
[id] { scroll-margin-top: calc(var(--header-h) + 28px); }
@media (min-width: 1101px) {
  .sub-guides .sub-cols { grid-auto-columns: minmax(200px, 250px); }
  .sub-guides .sub-col:first-child a[href$="#faqs"] { font-weight: 650; color: var(--blue); }
}
.faq-hub { padding-block: var(--section); }
.faq-hub-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq-hub-intro { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-jump ul { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .35rem; border-left: 2px solid var(--line); }
.faq-jump a { display: block; padding: .35rem 0 .35rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); font-weight: 550; text-decoration: none; transition: color .15s ease, border-color .15s ease; }
.faq-jump a:hover, .faq-jump a:focus-visible { color: var(--blue); border-left-color: var(--blue); }
.faq-ask { margin-top: 2rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; }
.faq-ask h3 { margin: 0 0 .4rem; }
.faq-ask p { color: var(--muted); font-size: .97rem; }
.faq-groups { display: grid; gap: 2.4rem; }
.faq-group h3 { font-size: 1.15rem; margin: 0 0 .9rem; display: flex; align-items: center; gap: .6rem; }
.faq-group h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--red); }
.faq-group .acc-h { margin: 0; font-size: 1rem; }
.faq-more { display: inline-block; margin-left: .3rem; font-weight: 650; }
@media (max-width: 900px) { .faq-hub-grid { grid-template-columns: 1fr; } .faq-hub-intro { position: static; } }
.faq-hub h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
@media (min-width: 99999px) {
  .sticky-cta { right: 20px !important; bottom: 24px !important; left: auto !important; flex-direction: column; gap: 10px; border-radius: 0 !important; overflow: visible !important; box-shadow: none !important; background: none !important; }
  .sticky-cta a { position: relative; width: 54px; height: 54px; min-height: 0 !important; padding: 0 !important; border-radius: 50% !important; box-shadow: 0 10px 24px -8px rgba(11,29,79,.5); }
  .sticky-cta a svg { width: 22px; height: 22px; }
  .sticky-cta .sc-m, .sticky-cta .sc-d { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sticky-cta a::after { content: attr(data-tip); position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%); opacity: 0; pointer-events: none; background: var(--navy); color: #fff; font-size: .85rem; font-weight: 600; padding: .45rem .7rem; border-radius: 8px; white-space: nowrap; transition: opacity .18s ease, transform .18s ease; }
  .sticky-cta a:hover::after, .sticky-cta a:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
  .to-top { right: 25px !important; bottom: 158px !important; }
}
.wx-wrap { margin-top: clamp(2.5rem, 5vw, 3.5rem); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.wx-wrap h3 { margin-bottom: 1rem; }
.wx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.wx-list li { display: flex; gap: .9rem; align-items: flex-start; margin: 0; }
.wx-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--blue); }
.wx-list strong { display: block; color: var(--navy); margin-bottom: .15rem; }
.wx-t { display: block; color: var(--muted); font-size: .96rem; line-height: 1.55; }

/* tablet and small laptop: compact bottom bar so floating buttons never sit on content */
@media (min-width: 721px) {
  .sticky-cta { left: 0 !important; right: 0 !important; bottom: 0 !important; border-radius: 0 !important; overflow: visible !important; justify-content: center; gap: 10px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96) !important; box-shadow: 0 -6px 20px rgba(11,26,74,.12) !important; backdrop-filter: blur(6px); }
  .sticky-cta a { flex: 0 1 280px; min-height: 48px; border-radius: 10px !important; padding: 0 1rem !important; }
  .sticky-cta .sc-m { display: none; }
  .sticky-cta .sc-d { display: inline; }
  .sticky-cta.is-hidden { transform: translateY(110%); }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
}
.inline-q { font-size: 1.08rem; margin: 1.4rem 0 .5rem; color: var(--navy); }
.inline-qa { max-width: 760px; margin-top: 2.4rem; padding: 1.2rem 1.4rem; border-left: 3px solid var(--blue); background: var(--blue-tint); border-radius: 0 12px 12px 0; }
.inline-qa .inline-q { margin-top: 0; }
.inline-qa p { margin: 0; color: var(--ink); }
.inline-qa.center { margin-inline: auto; text-align: left; }
.urgent-steps { margin: .4rem 0 1.2rem; padding-left: 1.2rem; display: grid; gap: .45rem; font-size: .95rem; }
.urgent-steps li::marker { color: var(--sky); font-weight: 700; }
.pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } }

/* v12: sticky contact bar always on */
.sticky-cta { visibility: visible !important; }
.sticky-cta .sc-quote .sc-m { display: none; }
@media (max-width: 720px) { .sticky-cta .sc-quote .sc-m { display: inline; } .sticky-cta .sc-quote .sc-d { display: none; } }
@media (min-width: 721px) {
  .sticky-cta { z-index: 75; }
  .sticky-cta .sc-call .sc-m { display: none; }
  .sticky-cta .sc-call .sc-d { display: inline; position: static; width: auto; height: auto; clip: auto; }
  .sticky-cta .sc-call .sc-d::before { content: "Call "; }
  .sticky-cta a::after { content: none !important; }
}
body.menu-open .sticky-cta { visibility: hidden !important; }
@media (min-width: 1001px) { .hero-badge { bottom: 7.2rem; } }

/* =====================================================================
   v13 DESIGN SYSTEM: palette #102A43 / #0759C7 / #06469E / #EFF6FC / #475569,
   Manrope headings + Inter body, button system, article TOC, diagrams
   ===================================================================== */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --navy: #102A43; --navy-2: #1B3A5C; --navy-ink: #0B1F33;
  --blue: #0759C7; --blue-dark: #06469E; --sky: #9CC8F5;
  --red: #E8590C; --red-dark: #C2410C;
  --ink: #1F2D3D; --muted: #475569; --line: #DCE4EE; --line-2: #C3D0DF;
  --grey: #F4F7FA; --tint: #EFF6FC; --blue-tint: #EFF6FC; --warm-tint: #FFF3EA;
  --font-head: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --fs-h1: clamp(2.05rem, 1.35rem + 2.4vw, 3.2rem);
  --fs-h2: clamp(1.65rem, 1.2rem + 1.5vw, 2.6rem);
  --fs-h3: clamp(1.1rem, 1.04rem + .25vw, 1.25rem);
  --radius: 14px; --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16,42,67,.06), 0 2px 8px rgba(16,42,67,.05);
  --shadow: 0 14px 32px -14px rgba(16,42,67,.28);
  --shadow-lg: 0 26px 60px -22px rgba(16,42,67,.38);
  --t: 200ms;
}
body { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .f-h, .acc-btn { font-family: var(--font-head) !important; }
h1 { font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
h2 { font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
h3 { font-weight: 700; letter-spacing: -.01em; }
.lead { color: var(--muted); }
p, li { color: inherit; }
.section-tint, .faq-hub { background: var(--tint); }

/* eyebrow */
.eyebrow { color: var(--blue); font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.eyebrow::before { width: 20px; background: var(--red); opacity: 1; }
.eyebrow-light, .contact .eyebrow, .band .eyebrow, .hero-inner-photo .eyebrow, .section-navy .eyebrow, .hero-v5 .eyebrow { color: var(--sky) !important; }

/* buttons */
.btn { font-family: var(--font-body); font-weight: 650; border-radius: 10px; transition: background-color var(--t) ease, border-color var(--t) ease, color var(--t) ease, box-shadow var(--t) ease, transform var(--t) ease !important; }
.btn:hover { transform: translateY(-1px) !important; box-shadow: 0 10px 22px -10px rgba(16,42,67,.5); }
.btn:active { transform: translateY(0) !important; box-shadow: none; filter: brightness(.96) !important; }
.btn:focus-visible { outline: 3px solid #F59F00; outline-offset: 3px; }
.btn-primary, .btn-red, .btn-blue { --bg: var(--blue); --bd: var(--blue); --fg: #fff; }
.btn-primary:hover, .btn-red:hover, .btn-blue:hover { --bg: var(--blue-dark); --bd: var(--blue-dark); }
.btn-secondary, .btn-outline { --bg: #fff; --bd: var(--blue); --fg: var(--blue); }
.btn-secondary:hover, .btn-outline:hover { --bg: var(--tint); --bd: var(--blue-dark); --fg: var(--blue-dark); }
.btn-white { --fg: var(--navy); }
.link-arrow, .more, .faq-more, .side-more { color: var(--blue) !important; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline-color: #F59F00; }

/* header */
.topbar { background: var(--navy-ink); }
.header { border-bottom-color: var(--line); }
.logo img { height: 44px; }
@media (min-width: 1101px) {
  .nav-list > li > a, .sub-toggle { font-family: var(--font-body); font-weight: 600; font-size: .95rem; color: var(--navy); border-radius: 8px; transition: background-color var(--t) ease, color var(--t) ease; }
  .nav-list > li > a:hover, .sub-toggle:hover, .has-sub.open > .sub-toggle { background: var(--tint); color: var(--blue); }
  .nav-list > li > a[aria-current="page"], .has-sub.active > .sub-toggle { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }
  .sub-h { color: var(--muted) !important; }
  .sub a:hover, .sub a:focus-visible { background: var(--tint); color: var(--blue); }
  .sub-all { color: var(--blue) !important; }
}
.phone-pill { background: var(--blue) !important; transition: background-color var(--t) ease; }
.phone-pill:hover { background: var(--blue-dark) !important; }
.phone-pill .ico { background: rgba(255,255,255,.18) !important; }
.nav-list .sub-h { color: var(--muted); }

/* hero */
.hero-v5, .hero-v5 .hero-shade { --hs: 11, 31, 51; }
@media (min-width: 1001px) {
  .hero-v5 .hero-shade { background: linear-gradient(90deg, var(--navy-ink) 0%, var(--navy-ink) 50%, rgba(11,31,51,.75) 54%, rgba(11,31,51,.22) 66%, rgba(11,31,51,0) 78%), linear-gradient(0deg, rgba(11,31,51,.55) 0%, rgba(11,31,51,0) 30%) !important; }
}
@media (max-width: 760px) { .hero-v5 .hero-shade { background: linear-gradient(0deg, var(--navy-ink) 0%, rgba(11,31,51,0) 45%) !important; } }
.hero-v5 h1 { font-size: clamp(2.15rem, 1.3rem + 3.3vw, 4rem); letter-spacing: -.03em; }
.hero-v5 .hero-points .ic { color: #7DD3A7; }
.hero-badge .hb-ic { background: var(--tint); color: var(--blue); }

/* section headings */
h2 { font-size: var(--fs-h2); }
.section-head .lead { font-size: 1.1rem; }

/* cards: subtle lift + zoom */
.svc-v5 .service, .posts-v5 .post, .post-card { transition: box-shadow var(--t) ease, border-color var(--t) ease, transform var(--t) ease; }
.svc-v5 .service:hover, .posts-v5 .post:hover, .post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.svc-v5 .more, .posts-v5 .post .tag { color: var(--blue); }
.posts-v5 .post .tag, .post-card .tag { background: var(--tint); color: var(--blue); }
.si { background: var(--warm-tint); color: var(--red); }
.pi, .step-ic, .cp-ic, .wx-ic { color: var(--blue); }
.step-ic { border-color: var(--blue); }
.step-n { color: var(--red); }
.zc { background: var(--tint); color: var(--blue); }
.callout, .inline-qa { background: var(--tint); border-left-color: var(--blue); }
.fact b { color: var(--blue); }
.urgent-card { background: var(--navy); }
.band-v5, .band:not(.band-v5) { background: radial-gradient(120% 140% at 100% 0%, #1D4E89 0%, var(--navy) 55%, var(--navy-ink) 100%) !important; }
.contact { background: radial-gradient(100% 120% at 0% 0%, var(--navy-2) 0%, var(--navy) 45%, var(--navy-ink) 100%) !important; }
.table-wrap th { background: var(--navy); }
.acc-btn::after { background-color: var(--tint) !important; }
.acc-btn[aria-expanded="true"]::after { background-color: var(--warm-tint) !important; }
.acc-btn:hover { color: var(--blue) !important; }
.footer { background: var(--navy-ink); }
.footer .blue-block { background: var(--navy-2); }

/* sticky bar */
.sc-call { background: var(--blue) !important; }
.sc-call:hover { background: var(--blue-dark) !important; }
.sc-quote { background: var(--navy) !important; }
.sc-quote:hover { background: var(--navy-2) !important; }
.to-top { background: var(--navy) !important; }

/* guides index cards: consistent 16:10 thumbnails */
.post-card .post-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px 14px 0 0; }
.post-card .post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-img img { transform: scale(1.04); }
.post-card { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.post-title { font-family: var(--font-head); font-size: 1.12rem; line-height: 1.35; }
.post-title a { color: var(--navy); text-decoration: none; }
.post-title a:hover { color: var(--blue); }

/* articles */
.prose { font-size: 1.125rem; line-height: 1.75; color: var(--ink); }
.prose > p, .prose > ul, .prose > ol, .prose > .answer { max-width: 70ch; }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.95rem); margin-top: 2.4rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.prose .answer { background: var(--tint); border-left: 3px solid var(--blue); padding: .9rem 1.1rem; border-radius: 0 10px 10px 0; }
.prose .featured img { border-radius: 16px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; }
.art-meta span { color: var(--sky); }
.crumbs a { color: var(--sky); }
.diagram { margin: 2rem 0; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; max-width: 760px; }
.diagram svg { display: block; width: 100%; height: auto; border-radius: 10px; }
.diagram figcaption { margin-top: .7rem; font-size: .9rem; color: var(--muted); }

/* table of contents */
.page-body { align-items: start; }
.sidebar-toc { position: static !important; align-self: stretch; }
.side-sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1rem; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: .5rem; }
.toc-side { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1rem 1rem; }
.toc-h { font-family: var(--font-head); font-weight: 800; font-size: .95rem; color: var(--navy); margin: 0 0 .6rem; letter-spacing: 0; text-transform: none; }
.toc-side ol, .toc-m ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-left: 2px solid var(--line); }
.toc-side li, .toc-m li { counter-increment: toc; }
.toc-side a, .toc-m a { display: flex; gap: .55rem; padding: .42rem .6rem .42rem .85rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); font-size: .92rem; line-height: 1.4; text-decoration: none; transition: color var(--t) ease, border-color var(--t) ease, background-color var(--t) ease; }
.toc-side a::before, .toc-m a::before { content: counter(toc, decimal-leading-zero); font-size: .75rem; font-weight: 700; color: var(--line-2); padding-top: .12rem; transition: color var(--t) ease; }
.toc-side a:hover, .toc-m a:hover { color: var(--blue); background: var(--tint); }
.toc-side a.is-active, .toc-m a.is-active { color: var(--blue); border-left-color: var(--blue); font-weight: 650; background: var(--tint); }
.toc-side a.is-active::before, .toc-m a.is-active::before { color: var(--blue); }
.toc-m { display: none; margin: 1.4rem 0 1.8rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.toc-m summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; padding: .8rem 1.1rem; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 800; color: var(--navy); }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform var(--t) ease; margin-right: .2rem; }
.toc-m[open] summary::after { transform: rotate(-135deg); }
.toc-m-n { margin-left: auto; font-family: var(--font-body); font-weight: 500; font-size: .85rem; color: var(--muted); }
.toc-m nav { padding: 0 1rem 1rem; }
.toc-m summary:focus-visible { outline: 3px solid #F59F00; outline-offset: 2px; border-radius: 12px; }
@media (max-width: 980px) {
  .toc-m { display: block; }
  .sidebar-toc .toc-side { display: none; }
  .side-sticky { position: static; max-height: none; overflow: visible; }
}
.more-links { margin-top: 1.6rem !important; padding-top: 0 !important; border-top: 0 !important; }
.side-cta { background: var(--navy) !important; }
.side-cta .btn { width: 100%; }
.side-tel { color: #fff !important; font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .svc-v5 .service:hover, .posts-v5 .post:hover, .post-card:hover { transform: none !important; }
  .post-card:hover .post-img img, .svc-v5 .service:hover img, .posts-v5 .post:hover img { transform: none !important; }
}
.side-sticky { align-content: start; }
.prose > p > strong:only-child { font-weight: 600; color: var(--navy); }
.prose > p:first-of-type > strong:only-child { display: block; font-size: 1.2rem; line-height: 1.6; font-weight: 600; }

/* ===== v14: mobile heroes show the photo below the call to action ===== */
@media (max-width: 760px) {
  .hero-v5 .hero-media { order: 2; position: relative; height: auto; aspect-ratio: 16 / 10; width: min(1200px, 100% - 2.5rem); margin: 0 auto 1.6rem; border-radius: 14px; overflow: hidden; }
  .hero-v5 .hero-media picture, .hero-v5 .hero-media img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; top: 0 !important; object-fit: cover; object-position: 78% 60% !important; }
  .hero-v5 .hero-shade { display: none; }
  .hero-v5 .hero-inner { margin-top: 0; padding-block: 1.8rem 1.4rem; }
}
@media (max-width: 900px) {
  .page-hero.hero-inner-photo { display: flex; flex-direction: column; }
  .hero-inner-photo .phi-bg { order: 2; position: relative; inset: auto; z-index: 0; width: min(1200px, 100% - 2.5rem); max-width: 640px; aspect-ratio: 49 / 30; height: auto; margin: 0 0 1.8rem max(1.25rem, (100% - 1200px) / 2); border-radius: 14px; overflow: hidden; }
  .hero-inner-photo .phi-bg img { animation: none !important; }
  .hero-inner-photo .phi-shade { display: none; }
  .hero-inner-photo .container { padding-block: 1.8rem 1.4rem; width: min(1200px, 100% - 2.5rem); }
}
/* visible keyboard focus everywhere */
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
/* service heroes: wide service banner directly under the header, heading and CTA right below it */
.page-hero.hero-split { display: flex; flex-direction: column; padding: 0; background: linear-gradient(135deg, #081538 0%, #0b1d4f 60%, #12296a 100%); }
.page-hero.hero-split .phi-bg.hero-banner { order: 0; position: relative; inset: auto; z-index: 0; display: block; width: 100%; max-width: none; height: clamp(220px, 30vw, 430px); aspect-ratio: auto; margin: 0; border-radius: 0; box-shadow: none; overflow: hidden; background: #c9d9ee; }
.page-hero.hero-split .hero-banner picture { position: absolute; inset: 0; display: block; }
.page-hero.hero-split .hero-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos-d, 50% 70%); opacity: 1 !important; transform: none !important; animation: none !important; filter: none !important; }
.page-hero.hero-split .phi-shade { display: none !important; }
.page-hero.hero-split .container { order: 1; width: min(1200px, 100% - 2.5rem); margin: 0 auto; padding-block: clamp(1.5rem, 3vw, 2.6rem) clamp(1.8rem, 3.4vw, 3rem); }
.page-hero.hero-split h1 { font-size: clamp(1.9rem, 1.2rem + 2vw, 3rem); overflow-wrap: break-word; max-width: 22ch; }
.page-hero.hero-split .container { display: block; }
.page-hero.hero-split .page-hero-text { display: flex; flex-direction: column; max-width: none; }
.page-hero.hero-split .page-hero-text .actions { order: 3; margin-top: .4rem; }
.page-hero.hero-split .page-hero-text .lead { order: 4; margin-top: 1.2rem; margin-bottom: 0; }
@media (min-width: 901px) {
  .page-hero.hero-split .page-hero-text { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 4rem); align-items: start; }
  .page-hero.hero-split .page-hero-text > * { grid-column: 1; }
  .page-hero.hero-split .page-hero-text .lead { grid-column: 2; grid-row: 2 / span 3; align-self: center; margin-top: 0; }
}
@media (max-width: 760px) {
  .page-hero.hero-split .phi-bg.hero-banner { height: 66vw; }
  .page-hero.hero-split .hero-banner img { object-position: var(--pos-m, 60% 60%); }
}
/* small phones: let long button labels and grid items wrap instead of overflowing */
@media (max-width: 400px) {
  .btn { white-space: normal; text-align: center; }
  .hero-copy, .area-groups, .area-group, .area-group a { min-width: 0; }
  .area-groups { grid-template-columns: minmax(0, 1fr) !important; }
  .area-group a { overflow-wrap: anywhere; }
}
@media (max-width: 960px) { .area-head, .area-body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 360px) { .sticky-cta { gap: .4rem !important; padding-inline: .5rem !important; } .sticky-cta a { padding-inline: .55rem !important; font-size: .88rem !important; gap: .35rem !important; min-width: 0; } .sticky-cta a svg { width: 16px; height: 16px; } }
.nav-list .sub-toggle.is-current { color: var(--blue); border-bottom-color: var(--blue); }
.nav .sub a[aria-current="page"] { color: var(--blue); font-weight: 700; }

/* ===== Service pages use the homepage hero (.hero-v5) with their own photo and focal point ===== */
.svc-hero .hero-media picture { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; left: 0 !important; right: auto !important; top: 0 !important; }
.svc-hero .hero-media img { position: absolute !important; inset: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover !important; object-position: var(--pos-d, 50% 50%) !important; transform-origin: 50% 50%; }
.svc-hero .hero-crumbs { margin: 0 0 1rem; font-size: .85rem; }
.svc-hero .hero-crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .4rem; list-style: none; padding: 0; margin: 0; color: #c9d6f2; }
.svc-hero .hero-crumbs li + li::before { content: "\203A"; margin-right: .4rem; color: #8ea3cf; }
.svc-hero .hero-crumbs a { color: #c9d6f2; text-decoration: none; }
.svc-hero .hero-crumbs a:hover { color: #fff; text-decoration: underline; }
.svc-hero .hero-crumbs [aria-current] { color: #fff; }
.svc-hero h1 { overflow-wrap: break-word; hyphens: manual; }
.svc-hero .hero-lead { max-width: 34em; }
@media (max-width: 760px) {
  .svc-hero .hero-media img { object-position: var(--pos-m, 50% 50%) !important; }
}
.prose .svc-intro { font-size: 1.08rem; color: var(--ink, #1f2937); }
@media (min-width: 1001px) { .svc-hero .hero-media { width: auto !important; right: 0 !important; } }
