/* Montgomery Appraisal: site styles
 *
 * Brand: the logo's navy, cool fog-white, and one accent (monarch orange, for
 * Pacific Grove's monarch butterflies). Headings in Libre Caslon (the face of
 * American deeds and records), body in Public Sans.
 *
 * Signature: typed documents. The typewriter face appears only on things that
 * are documents: the summary plate, Ted's signature block and the stamps.
 * The hero summary plate (.report) is a white
 * form with printed rules, set entirely in one typewriter face (Courier
 * Prime). A rubber stamp (.stamp, .form-stamp) lands on the plate, on Ted's
 * signature block, and on the order form once it's sent. Interactive forms
 * use plain, clearly clickable inputs (.order-card, .input). All caps only
 * where a real form or stamp would use them.
 */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Libre Caslon Display"; src: url("../fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/courier-prime-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/courier-prime-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --navy: #1e3866;        /* logo navy */
  --navy-deep: #142a4e;   /* footer, hover */
  --ink: #12203b;         /* body text */
  --slate: #4a5871;       /* secondary text */
  --fog: #eef2f6;         /* quiet section background */
  --rule: #c5cfdb;        /* hairlines on light backgrounds */
  --paper: #ffffff;
  --monarch: #ec8a2f;     /* the one accent */
  --on-navy: #ffffff;
  --on-navy-muted: #c3cfe2;
  --rule-on-navy: rgba(255, 255, 255, 0.22);

  /* Document pieces */
  --card: #ffffff;                          /* form card */
  --print: rgba(30, 56, 102, 0.28);         /* printed form lines */
  --typed: #1d2330;                         /* typewriter ribbon */
  --stamp: #2a4790;                         /* stamp-pad ink */

  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --type: "Courier Prime", "Courier New", Courier, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
  --radius: 3px;
  --card-radius: 4px;
  --header-h: 76px;
}
@media (max-width: 1080px) { :root { --header-h: 68px; } }
/* Big monitors: let the content area grow with the screen. */
@media (min-width: 1800px) { :root { --container: 1440px; } }
@media (min-width: 2300px) { :root { --container: 1680px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--monarch); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; font-weight: 600; }
.skip-link:focus { top: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 0.95rem; font-weight: 400; line-height: 1.3; color: var(--slate); }
/* Small house mark (roof apex, eaves at 38%) in place of a dash. */
.eyebrow::before {
  content: ""; flex: none; width: 8px; height: 9px; transform: translateY(-1px);
  background: var(--monarch); clip-path: polygon(50% 0, 100% 38%, 100% 100%, 0 100%, 0 38%);
}
.h1 { font-family: var(--display); font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1.02; letter-spacing: -0.012em; }
.h2 { font-family: var(--display); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.008em; }
.h3 { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }
.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--slate); max-width: 38em; }
.prose > * + * { margin-top: 1em; }
.prose { color: var(--slate); max-width: 40em; }
.prose strong { color: var(--ink); font-weight: 600; }
.stars { color: var(--monarch); letter-spacing: 0.12em; }
.stack { display: grid; gap: 18px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--navy); color: #fff; }
.button--primary:hover { background: var(--navy-deep); }
.button--accent { background: var(--monarch); color: var(--ink); }
.button--accent:hover { background: #f29d4c; }
.button--outline { border-color: currentColor; color: var(--navy); background: transparent; }
.button--outline:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.button--outline-light { border-color: rgba(255, 255, 255, 0.6); color: #fff; background: transparent; }
.button--outline-light:hover { background: #fff; border-color: #fff; color: var(--navy); }
.button svg { width: 18px; height: 18px; flex: none; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: var(--navy);
  border-bottom: 2px solid var(--monarch); padding-bottom: 2px;
}
.text-link:hover { color: var(--ink); }
.text-link::after {
  content: ""; flex: none; width: 0.85em; height: 0.85em; margin-left: 14px;
  background: currentColor; transition: transform 0.2s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M3.5 12.5 12 4M5 3.5h7.5V11'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M3.5 12.5 12 4M5 3.5h7.5V11'/%3E%3C/svg%3E") center / contain no-repeat;
}
.text-link:hover::after { transform: translate(2px, -2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex: none; }
.lockup img { width: 54px; height: auto; }
/* The wordmark is set in caps because the logo is. */
.lockup__name { display: grid; font-family: var(--serif); font-size: 0.98rem; line-height: 1.15; letter-spacing: 0.14em; text-transform: uppercase; }
.lockup__name span + span { border-top: 1px solid currentColor; padding-top: 2px; margin-top: 2px; font-size: 0.8em; letter-spacing: 0.24em; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { position: relative; text-decoration: none; font-weight: 500; font-size: 0.97rem; color: var(--ink); padding: 6px 0; white-space: nowrap; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--monarch); transform: scaleX(0); transform-origin: left; transition: transform 0.2s; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header__actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); font-weight: 600; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; color: var(--monarch); }
.site-header .button { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .site-header__inner { gap: 16px; }
  .lockup img { width: 46px; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: 4px;
    border: 1.5px solid var(--rule); border-radius: var(--radius); background: #fff; color: var(--navy); cursor: pointer;
  }
  .menu-toggle svg { width: 22px; height: 22px; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 20px;
    background: #fff; border-bottom: 1px solid var(--rule); box-shadow: 0 18px 30px -20px rgba(18, 32, 59, 0.35);
  }
  .site-header[data-open] .site-nav { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--fog); font-size: 1.05rem; }
  .site-nav a::after { display: none; }
  .site-header__actions { margin-left: auto; gap: 10px; }
}
@media (max-width: 640px) {
  .site-header .button { display: none; }
  .header-phone { padding: 0 12px; min-height: 44px; border: 1.5px solid var(--rule); border-radius: var(--radius); }
  .header-phone__number { display: none; }
  .lockup__name { font-size: 0.86rem; }
}
@media (max-width: 360px) {
  .site-header__inner { gap: 10px; }
  .lockup { gap: 8px; }
  .lockup img { width: 40px; }
  .lockup__name { font-size: 0.8rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--flush-top { padding-top: 0; }
.section--fog { background: var(--fog); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy .eyebrow { color: var(--on-navy-muted); }
.section--navy .prose, .section--navy .lead { color: var(--on-navy-muted); }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--flush { margin-bottom: 0; }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 64px; align-items: start; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
/* Full screen height. The photo (house in the lower right, sky above) always
   shows at the hero's full height, pinned to the right edge, so the house is
   never cropped: on wide screens its left edge fades into the navy, on
   narrower ones its left side runs off-screen. A navy fade on the left carries
   the text; the summary plate sits in the sky above the house. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid;
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  padding-block: clamp(40px, 5vw, 72px);
  background: var(--navy-deep); color: #fff;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img {
  position: absolute; right: 0; bottom: 0; height: 100%; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20, 42, 78, 0.97) 0%, rgba(20, 42, 78, 0.92) 34%, rgba(20, 42, 78, 0.6) 47%, rgba(20, 42, 78, 0) 60%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 48px; align-items: center; }
.hero__copy { max-width: min(560px, 42vw); }
.hero .lead { max-width: 25em; }
.hero .eyebrow { color: var(--on-navy-muted); }
.hero .eyebrow::before { display: none; }
.hero__title { margin-top: 24px; font-size: clamp(2.8rem, 5.6vw, 5.2rem); line-height: 1; }
.hero .lead { margin-top: 28px; font-size: 1.25rem; color: #dbe3f0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero .report { align-self: start; }
.hero .report .stamp { right: -38px; top: -46px; width: 128px; }

@media (min-width: 961px) and (max-height: 820px) {
  .hero { padding-block: 32px; }
  .hero .form-head__note { display: none; }
  .hero .report__cell { padding: 6px 14px 7px; }
  .hero .report .stamp { top: -28px; }
}
@media (min-width: 961px) and (max-height: 700px) {
  .hero { padding-block: 18px; }
  .hero .report__cell { padding: 4px 14px 5px; }
  .hero .form-head { padding-block: 8px 6px; }
  .hero .report .stamp { top: -12px; width: 104px; }
}
@media (min-width: 1800px) {
  .hero__copy { max-width: 680px; }
  .hero__title { font-size: clamp(5.2rem, 4.6vw, 6.6rem); }
  .hero .lead { font-size: 1.4rem; }
}

@media (max-width: 960px) {
  /* Stacked: text and plate on navy; the photo fills the bottom, framed on the
     house, and the plate overlaps its sky. */
  .hero { --photo-h: clamp(300px, 100vw, 540px); display: block; padding-block: 48px calc(var(--photo-h) - min(190px, 34vw)); }
  .hero::before { display: none; }
  .hero__bg { inset: auto 0 0 0; height: var(--photo-h); }
  .hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--navy-deep) 0%, rgba(20, 42, 78, 0.55) 20%, rgba(20, 42, 78, 0) 42%); }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .report { justify-self: stretch; max-width: 560px; }
  .hero .report .stamp { top: auto; right: 8px; bottom: 6px; width: 92px; }
  .hero__copy { max-width: none; }
}

/* ---------- Printed form card (signature) ---------- */
.report {
  position: relative; color: var(--typed); font-family: var(--type);
  background: var(--card);
  border: 1px solid rgba(30, 56, 102, 0.5); border-radius: 2px;
  box-shadow: 0 24px 50px -24px rgba(5, 14, 32, 0.55);
}
.form-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 11px 14px 9px; border-bottom: 2px solid var(--navy); }
/* Caps for the form's own title, as printed forms do. */
.form-head__title { font-size: 1rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy); }
.form-head__note { font-size: 0.88rem; color: var(--slate); }
/* Ruled grids: the container's background shows through 1px gaps as the lines. */
.report__cells { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--print); }
.report__cell { padding: 11px 14px 13px; background: var(--card); }
.report__cell--wide { grid-column: 1 / -1; }
.report__label { display: block; font-family: var(--type); font-size: 0.86rem; line-height: 1.3; color: var(--slate); }
.report__value { display: block; margin: 4px 0 0; font-family: var(--type); font-size: 1.06rem; line-height: 1.3; color: var(--typed); }
.typed { font-family: var(--type); color: var(--typed); }

/* Summary plate in the hero: the entries type in and the stamp lands once it is
   in view (site.js adds .js and .is-visible). */
.report--summary .report__cell { padding: 8px 14px 9px; }
.report--summary .report__value { font-size: 0.95rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .report--summary .report__value { clip-path: inset(0 100% 0 0); }
  .js .report--summary .stamp { opacity: 0; }
  .report--summary.is-visible .report__value { animation: type-in 0.6s steps(16, end) both; }
  .report--summary.is-visible .report__cell:nth-child(1) .report__value { animation-delay: 0.1s; }
  .report--summary.is-visible .report__cell:nth-child(2) .report__value { animation-delay: 0.45s; }
  .report--summary.is-visible .report__cell:nth-child(3) .report__value { animation-delay: 0.8s; animation-duration: 0.9s; animation-timing-function: steps(28, end); }
  .report--summary.is-visible .report__cell:nth-child(4) .report__value { animation-delay: 1.45s; animation-duration: 0.3s; animation-timing-function: steps(4, end); }
  .report--summary.is-visible .report__cell:nth-child(5) .report__value { animation-delay: 1.65s; animation-duration: 0.3s; animation-timing-function: steps(4, end); }
  .report--summary.is-visible .stamp { animation: stamp-in 0.32s cubic-bezier(0.3, 1.5, 0.5, 1) 2.05s both; }
}
@media (max-width: 960px) { .report--summary .report__value { font-size: 0.92rem; } }
@media (max-width: 520px) { .report--summary .report__cells { grid-template-columns: 1fr; } }
@keyframes type-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes stamp-in {
  from { opacity: 0; transform: scale(1.6) rotate(var(--stamp-turn, -12deg)); }
  to { opacity: var(--stamp-opacity, 0.9); transform: scale(1) rotate(var(--stamp-turn, -12deg)); }
}

/* ---------- Rubber stamp ---------- */
.stamp {
  --stamp-turn: -12deg; --stamp-opacity: 0.9;
  position: absolute; display: block; height: auto; aspect-ratio: 1;
  color: var(--stamp); opacity: var(--stamp-opacity);
  transform: rotate(var(--stamp-turn)); mix-blend-mode: multiply;
  pointer-events: none; overflow: visible;
}

/* ---------- Callout ---------- */
.callout { border-bottom: 1px solid var(--rule); padding-block: 14px; }
.callout p { font-size: 0.95rem; line-height: 1.5; color: var(--slate); text-align: center; text-wrap: balance; }
.callout a { padding-block: 8px; font-weight: 600; color: var(--navy); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--monarch); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* ---------- Purpose grid ---------- */
.purpose-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; }
.purpose-grid li { display: flex; }
.purpose {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  width: 100%; min-height: 150px; padding: 20px 22px 20px;
  border-radius: var(--card-radius); text-decoration: none; color: var(--ink); background: var(--fog);
  transition: background-color 0.2s, color 0.2s;
}
.purpose__name { display: block; margin-top: 4px; font-family: var(--serif); font-size: 1.22rem; line-height: 1.25; }
.purpose__arrow { align-self: flex-end; width: 20px; height: 20px; color: var(--monarch); transition: transform 0.2s; }
.purpose:hover { background: var(--navy); color: #fff; }
.purpose__label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--slate); }
.purpose:hover .purpose__label { color: var(--on-navy-muted); }
.purpose:hover .purpose__arrow { transform: translateX(4px); }
@media (max-width: 960px) { .purpose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .purpose { min-height: 0; gap: 14px; padding: 14px 14px 12px; }
  .purpose__name { font-size: 1.05rem; }
}

/* ---------- Appraiser (Ted) ---------- */
.appraiser { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.appraiser__photo { position: relative; margin: 0; }
.appraiser__photo::before { content: ""; position: absolute; inset: 28px -28px -28px 28px; background: var(--fog); border-radius: var(--radius); z-index: -1; }
.appraiser__photo img { width: 100%; border-radius: var(--radius); }
.appraiser__body { display: grid; gap: 22px; justify-items: start; }
/* Typed signature block with the office stamp over it, like a certified letter. */
.signature { position: relative; margin: 6px 0 4px; padding-right: 64px; font-family: var(--type); font-size: 1.02rem; line-height: 1.5; color: var(--typed); }
.signature strong { font-weight: 700; }
.signature .stamp { --stamp-turn: -9deg; right: -54px; top: 50%; width: 140px; margin-top: -70px; }
@media (max-width: 1000px) {
  .signature .stamp { right: -8px; width: 112px; margin-top: -56px; }
}
@media (max-width: 860px) {
  .appraiser { grid-template-columns: 1fr; }
  .appraiser__photo { max-width: 420px; margin-right: 28px; }
}

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(40px, 6vw, 88px); }
.review { margin: 0; }
.review blockquote { margin: 18px 0 0; font-family: var(--serif); font-size: 1.16rem; line-height: 1.6; color: #fff; }
.review figcaption { margin-top: 22px; font-size: 0.95rem; color: var(--on-navy-muted); }
.review figcaption strong { color: #fff; font-weight: 600; }
.reviews-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 40px; }
@media (max-width: 860px) {
  .reviews { grid-template-columns: 1fr; }
  .review blockquote { font-size: 1.04rem; }
}

/* ---------- Feature points ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.split__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__media { order: -1; } }
.points { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 32px 48px; margin: 40px 0 28px; list-style: none; }
.points--cards { gap: 16px; }
.points--3 { --cols: 3; }
.points--cards .point { padding: 24px 24px 26px; border-radius: var(--card-radius); background: var(--fog); }
.section--fog .points--cards .point { background: var(--paper); }
.point h3 { margin-bottom: 10px; }
.point p { color: var(--slate); }
.point__lead { color: var(--ink) !important; font-weight: 500; }
.points--3 .point { display: flex; flex-direction: column; }
.point__foot { margin-top: auto; padding-top: 20px; font-size: 0.95rem; }
.point__foot a { font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--monarch); white-space: nowrap; }
/* Short lists with a small square bullet. */
.bullet-list { display: grid; gap: 10px; margin-top: 16px; list-style: none; color: var(--slate); }
.bullet-list li { position: relative; padding-left: 22px; }
.bullet-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px;
  border-radius: 1.5px; background: var(--monarch);
}
/* Label above each line (Objective, Mission, Responsibility). */
.terms { display: grid; gap: 16px; margin: 16px 0 0; }
.terms dt { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.terms dd { margin: 3px 0 0; color: var(--slate); }
@media (max-width: 860px) { .points { grid-template-columns: 1fr; } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 12px; }

/* ---------- Order form ---------- */
.order { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 960px) { .order { grid-template-columns: 1fr; } }
.order__aside { display: grid; gap: 22px; }
.order__aside .text-link { justify-self: start; }
.order-card {
  position: relative; overflow: hidden;
  padding: clamp(20px, 3vw, 32px);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--card-radius);
  box-shadow: 0 22px 48px -32px rgba(5, 14, 32, 0.45);
}
.order-card fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; min-width: 0; margin: 0; padding: 0; border: 0; }
.order-card fieldset + fieldset { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rule); }
.order-card legend { float: left; width: 100%; grid-column: 1 / -1; padding: 0; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); }
.input { display: grid; gap: 7px; align-content: start; }
.input--wide { grid-column: 1 / -1; }
.input__label { font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.input__hint { font-weight: 400; color: var(--slate); }
.input input, .input select, .input textarea {
  width: 100%; min-height: 50px; margin: 0; padding: 11px 14px;
  border: 1.5px solid #b6c1cf; border-radius: 3px; background: #fff; color: var(--ink);
  font: 400 1.02rem/1.4 var(--sans); appearance: none; -webkit-appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input input:hover, .input select:hover, .input textarea:hover { border-color: #8696ad; }
.input input:focus, .input select:focus, .input textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(236, 138, 47, 0.4); }
.input select { padding-right: 44px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231e3866' stroke-width='1.8'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.input textarea { min-height: 130px; resize: vertical; }
.order-card__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); }
.order-card__footer p { font-size: 0.95rem; color: var(--slate); }
.form-message { display: none; padding: 18px 20px; border-radius: var(--radius); font-weight: 500; }
.form-message--done { margin-top: 14px; background: #e8f1ea; color: #1f4d2c; border: 1px solid #b9d4c0; }
.form-message--fail { margin-top: 14px; background: #fbeee4; color: #7a3b0c; border: 1px solid #efc9a8; }
@media (max-width: 560px) {
  .order-card fieldset { grid-template-columns: 1fr; }
  .order-card__footer .button { width: 100%; }
}

/* "Received" stamp, shown once the order goes through. */
.form-stamp {
  --stamp-turn: -8deg; --stamp-opacity: 0.88;
  position: absolute; left: 50%; top: 50%; z-index: 2; display: none;
  margin: -58px 0 0 -150px; width: 300px; padding: 10px 14px 9px;
  border: 4px double currentColor; border-radius: 6px;
  color: var(--stamp); opacity: var(--stamp-opacity); transform: rotate(var(--stamp-turn));
  font-family: var(--type); text-align: center; mix-blend-mode: multiply; pointer-events: none;
  filter: url(#ink);
}
.form-stamp__word { display: block; font-size: 2.4rem; font-weight: 700; line-height: 1.05; letter-spacing: 0.14em; }
.form-stamp__date { display: block; margin-top: 4px; padding-top: 4px; border-top: 1.5px solid currentColor; font-size: 1rem; font-weight: 700; }
.form-stamp__by { display: block; font-size: 0.9rem; }
[data-received] .form-stamp { display: block; }
[data-received] .input input, [data-received] .input select { background-color: #f6f8fb; color: var(--slate); }
[data-received] .order-card__footer .button { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  [data-received] .form-stamp { animation: stamp-in 0.32s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); padding-block: 64px 32px; font-size: 0.97rem; }
.site-footer a { text-decoration: none; color: #fff; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--monarch); text-underline-offset: 4px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; }
.site-footer .lockup { color: #fff; }
.site-footer__tag { margin-top: 18px; max-width: 26em; }
.site-footer h2 { margin-bottom: 12px; font-family: var(--sans); font-size: 0.95rem; font-weight: 700; color: #fff; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
/* Town and city pages: one row of links under the columns, wrapping as needed. */
.site-footer__areas { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; margin-top: 44px; }
.site-footer .site-footer__areas h2 { margin: 0; }
.site-footer .site-footer__areas ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule-on-navy); font-size: 0.88rem; }
.site-footer__bottom ul { display: flex; gap: 20px; }
@media (max-width: 1080px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

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

[data-received] .input select { pointer-events: none; }

/* =====================================================================
   Inner pages
   ===================================================================== */

/* ---------- Page hero ---------- */
.page-hero { background: var(--navy-deep); color: #fff; padding-block: clamp(56px, 7vw, 96px) clamp(56px, 7vw, 88px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 64px; align-items: center; }
.page-hero .eyebrow { color: var(--on-navy-muted); }
.page-hero .eyebrow::before { background: var(--monarch); }
.page-hero__title { margin-top: 18px; max-width: 18ch; font-size: clamp(2.4rem, 4.8vw, 4.2rem); line-height: 1.04; }
.page-hero .lead { margin-top: 20px; color: #dbe3f0; }
.page-hero .hero__actions { margin-top: 32px; }
.page-hero .report { width: 430px; }
.page-hero .report .stamp { right: -30px; top: -40px; width: 116px; }
@media (max-width: 1040px) { .page-hero .report .stamp { right: -16px; } }
@media (max-width: 960px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero .report { width: auto; max-width: 560px; }
  .page-hero .report .stamp { top: auto; right: 8px; bottom: 6px; width: 88px; }
}
@media (max-width: 520px) { .page-hero .report__cells { grid-template-columns: 1fr; } }

/* ---------- Article with a sidebar card ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 80px); align-items: start; }
.article { max-width: 700px; }
.article > * + * { margin-top: 1.05em; }
.article h2 { margin-top: 1.9em; font-family: var(--display); font-size: clamp(1.75rem, 2.8vw, 2.25rem); line-height: 1.15; color: var(--ink); }
.article h2:first-child { margin-top: 0; }
.article h3 { margin-top: 1.6em; font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; color: var(--ink); }
.article p, .article li { color: var(--slate); }
.article strong { color: var(--ink); font-weight: 600; }
.article a { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--monarch); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article ul { display: grid; gap: 10px; list-style: none; }
.article ul li { position: relative; padding-left: 22px; }
.article ul li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; border-radius: 1.5px; background: var(--monarch); }
.article .note { font-size: 0.97rem; }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; padding-top: 22px; border-top: 3px solid var(--navy); }
.aside-card h2 { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; }
.aside-card p { color: var(--slate); font-size: 0.97rem; }
.aside-card .button { width: 100%; }
.aside-card__phone { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); text-decoration: none; }
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 860px; border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-top: 5px; background: var(--monarch); transition: transform 0.2s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M6 0h2v14H6zM0 6h14v2H0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M6 0h2v14H6zM0 6h14v2H0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:focus-visible { outline-offset: -3px; }
.faq__answer { padding: 0 40px 22px 0; color: var(--slate); }

/* ---------- Call-to-action band ---------- */
.cta-band { background: var(--navy); color: #fff; padding-block: clamp(56px, 7vw, 88px); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta-band .lead { margin-top: 12px; color: var(--on-navy-muted); }
.cta-band .hero__actions { margin-top: 0; }

/* ---------- Cards with a small label (myth/reality, policies) ---------- */
.card-label { display: block; margin-top: 14px; font-size: 0.8rem; font-weight: 700; color: var(--navy); }
.card-label:first-child { margin-top: 0; }
.point .card-label + p { margin-top: 4px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: stretch; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 32px; align-content: start; padding-right: clamp(0px, 3vw, 32px); }
.contact-card { display: grid; gap: 6px; align-content: start; }
.contact-card h2 { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.contact-card__value { font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.contact-card__value:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--monarch); text-underline-offset: 4px; }
.contact-card p:not(.contact-card__value) { font-size: 0.95rem; color: var(--slate); }
.map-card { position: relative; display: block; min-height: 300px; overflow: hidden; border-radius: var(--card-radius); background: var(--fog); color: var(--ink); text-decoration: none; }
.map-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-card__label {
  position: absolute; left: 16px; bottom: 16px; display: grid; gap: 2px; max-width: calc(100% - 32px);
  padding: 14px 18px; border-radius: 3px; background: #fff; box-shadow: 0 12px 30px -16px rgba(5, 14, 32, 0.5);
}
.map-card__label strong { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; }
.map-card__label .text-link { justify-self: start; margin-top: 4px; font-size: 0.95rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact-cards { grid-template-columns: 1fr; } }

/* ---------- Groups of link tiles (areas, related pages) ---------- */
.tile-group + .tile-group { margin-top: 40px; }
.tile-group h3 { margin-bottom: 16px; }
.purpose-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .purpose-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 404 ---------- */
.not-found { min-height: calc(70vh - var(--header-h)); display: grid; align-content: center; }

/* ---------- Figures in articles ---------- */
.article figure { margin: 2em 0; }
.article figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--card-radius); }
.article .see-also { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 0.8em; }
.article .see-also a { text-decoration: none; }
.not-found .h1 { margin-top: 18px; }
.not-found .lead { margin-top: 20px; }
.not-found .actions { margin-top: 32px; }

/* ---------- Numbered steps (a real sequence) ---------- */
.article ol.steps { display: grid; gap: 14px; padding: 0; list-style: none; counter-reset: step; }
.article ol.steps li { position: relative; padding-left: 44px; counter-increment: step; color: var(--slate); }
.article ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 28px; height: 28px; color: var(--navy); font-family: var(--serif); font-size: 1.15rem; line-height: 1.3;
}
.section--fog .purpose { background: var(--paper); }
.section--fog .purpose:hover { background: var(--navy); }

/* ---------- Link lists (services by area, cities, related) ---------- */
.link-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 64px); list-style: none; }
.link-list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.link-list li { border-top: 1px solid var(--rule); }
.link-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; text-decoration: none; color: var(--ink); }
.link-list__name { font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; transition: color 0.15s; }
.link-list__meta { flex: none; font-size: 0.9rem; color: var(--slate); }
.link-list a:hover .link-list__name { color: var(--navy); text-decoration: underline; text-decoration-color: var(--monarch); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 1080px) { .link-list--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .link-list, .link-list--3 { grid-template-columns: 1fr; } }
.contact-card--wide { grid-column: 1 / -1; order: 3; }
.contact-card--wide .contact-card__value { overflow-wrap: normal; }
@media (max-width: 380px) { .contact-card--wide .contact-card__value { font-size: 1.05rem; } }
