/* First Service Mortgage: site styles.
   Edit site.config.json for personal details, not this file, unless you are changing the look.
   Colors, type and spacing all come from the variables directly below. */

:root {
  /* ===== THEME COLORS: change the whole look here ===== */
  --navy: #0B2A5B;          /* headings, CTA band, footer */
  --navy-deep: #081E42;     /* footer */
  --navy-soft: #163A78;
  --royal: #1E5BD8;         /* buttons, links (white on it = 5.9:1; on warm bg = 5.4:1) */
  --royal-hover: #1749B0;
  --tint: #EEF4FF;          /* light blue wash */
  --sky: #BFD6FF;           /* links on dark navy (9.5:1) */
  --sky-hover: #DCE8FF;
  --warm: #FBF8F3;          /* warm off-white for alternating sections */
  --warm-deep: #F4EEE4;
  --sand: #EEDCC0;          /* decorative only */
  --rust: #8F4219;          /* small warm accent text (6.9:1 on --warm) */
  --ink: #1B2433;           /* body text (15.6:1 on white) */
  --ink-soft: #2E3A4F;
  --muted: #4A5568;         /* secondary text (7:1 on white, 6.6:1 on --warm) */
  --line: #E6DED1;          /* thin warm border */
  --line-cool: #CFDAEC;
  --white: #ffffff;
  --focus: #F5B700;
  /* ===================================================== */

  /* 8px spacing scale (root is 16px) */
  --space-1: 0.5rem;   /* 8 */
  --space-2: 1rem;     /* 16 */
  --space-3: 1.5rem;   /* 24 */
  --space-4: 2rem;     /* 32 */
  --space-5: 2.5rem;   /* 40 */
  --space-6: 3rem;     /* 48 */
  --space-8: 4rem;     /* 64 */
  --space-10: 5rem;    /* 80 */
  --section-pad: clamp(var(--space-6), 8vw, 6rem);

  /* one type scale */
  --step--1: clamp(0.88rem, 0.86rem + 0.1vw, 0.94rem);
  --step-0: clamp(1.06rem, 1.02rem + 0.2vw, 1.15rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.35vw, 1.38rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.45rem + 1.2vw, 2.4rem);
  --step-4: clamp(2.1rem, 1.7rem + 2vw, 3.4rem);

  --radius-sm: 10px;
  --radius: 20px;
  --radius-lg: 28px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --shadow-soft: 0 1px 2px rgba(60, 40, 10, 0.04), 0 10px 30px rgba(60, 40, 10, 0.06);
  --shadow: 0 18px 44px rgba(8, 30, 66, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--royal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--royal-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.18;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 0 0.55em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
address { font-style: normal; }

.container { width: min(1160px, calc(100% - 2.5rem)); margin-inline: auto; }
.container.narrow { width: min(760px, calc(100% - 2.5rem)); }
.container.narrow-left { width: min(1160px, calc(100% - 2.5rem)); }
.container.narrow-left > * { max-width: 48rem; }
.text-center { text-align: center; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--white); color: var(--navy);
  padding: var(--space-1) var(--space-2); font-weight: 600; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 0.75rem; }

/* ===================== Header ===================== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; flex-direction: column; align-items: stretch; padding-block: var(--space-1) 0; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 3.5rem; }

.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--navy); flex: none; min-width: 0; }
.brand:hover { color: var(--navy); }
.logo { width: 248px; height: auto; color: inherit; }
.brand-sub { font-size: 0.78rem; color: var(--muted); font-weight: 500; padding-left: 0; white-space: nowrap; line-height: 1.2; }

.nav-toggle {
  display: none; align-items: center; gap: 0.4rem;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.45rem 0.85rem; color: var(--navy); font-weight: 600; cursor: pointer; min-height: 44px;
}
.nav-toggle svg { width: 1.3rem; height: 1.3rem; flex: none; }

.nav-actions { display: flex; align-items: center; gap: var(--space-1); flex: none; }

.site-header .site-nav { display: flex; align-items: center; border-top: 1px solid var(--line); padding: 0.2rem 0 0.35rem; margin-top: var(--space-1); }
.site-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.site-header .site-nav > ul { width: 100%; justify-content: flex-start; gap: 0.15rem; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 550; font-size: 0.95rem;
  padding: 0.4rem 0.65rem; border-radius: 999px; white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--navy); background: var(--warm-deep); }

/* dropdowns */
.has-sub { position: relative; }
.has-sub > a { display: inline-block; }
.sub-toggle {
  display: none; background: none; border: 0; color: inherit; cursor: pointer;
  padding: 0.35rem 0.5rem; font-size: 0.9rem; min-width: 44px; min-height: 44px;
}
.site-nav ul.sub, .site-header .site-nav ul.sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 16rem;
  flex-direction: column; align-items: stretch;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: var(--space-1) 0; z-index: 30; list-style: none; margin: 0;
}
.sub a { display: block; padding: 0.45rem 1rem; border-radius: 0; white-space: nowrap; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--warm); color: var(--navy); }
.has-sub:hover > ul.sub, .has-sub:focus-within > ul.sub, .has-sub.is-open > ul.sub,
.site-header .site-nav .has-sub:hover > ul.sub,
.site-header .site-nav .has-sub:focus-within > ul.sub,
.site-header .site-nav .has-sub.is-open > ul.sub { display: flex; }

/* ===================== Buttons & CTAs ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; border-radius: 999px;
  padding: 0.6rem 1.15rem; min-height: 44px;
  font-weight: 650; font-size: 1rem; line-height: 1.2; cursor: pointer;
  background: var(--navy); color: var(--white);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn svg { width: 1em; height: 1em; flex: none; }
.btn:hover { color: var(--white); background: var(--navy-soft); text-decoration: none; }
.btn-lg { padding: 0.85rem 1.6rem; font-size: 1.06rem; min-height: 3.25rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-accent { background: var(--royal); color: var(--white); box-shadow: 0 6px 16px rgba(30, 91, 216, 0.22); }
.btn-accent:hover { background: var(--royal-hover); color: var(--white); transform: translateY(-1px); }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light:hover { background: var(--warm); color: var(--navy); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { background: transparent; border-color: rgba(220, 232, 255, 0.85); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.cta-set { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin-top: var(--space-3); align-items: center; }
.cta-set--center, .text-center .cta-set { justify-content: center; gap: var(--space-2); }
.cta-set--header { margin-top: 0; gap: var(--space-1); flex-wrap: nowrap; }
.cta-set--header .btn { padding: 0.5rem 1rem; }
.cta-phone { font-weight: 600; color: var(--navy); text-decoration-color: rgba(11, 42, 91, 0.35); }
.cta-phone:hover { color: var(--royal); }
.cta-tertiary { margin-top: var(--space-2); font-size: var(--step--1); color: #D5E3FF; }
.cta-tertiary a { color: var(--sky); }
.cta-tertiary-dark { margin-top: var(--space-1); text-align: center; font-size: var(--step--1); color: var(--muted); }

.eyebrow {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--rust); margin-bottom: var(--space-1);
}
.lead { font-size: var(--step-1); line-height: 1.6; max-width: 40rem; color: var(--ink-soft); }
.intro { font-size: var(--step-0); max-width: 42rem; color: var(--ink-soft); margin-bottom: var(--space-4); }
.text-link { margin-top: var(--space-3); font-weight: 600; }
.text-link a { text-decoration: none; }
.text-link a:hover { text-decoration: underline; }
.section-more { margin-top: var(--space-3); }

/* ===================== Hero ===================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 92% 20%, rgba(30, 91, 216, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(238, 220, 192, 0.45), transparent 70%),
    var(--warm);
  padding: clamp(var(--space-6), 7vw, 5.5rem) 0 clamp(var(--space-6), 8vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  grid-template-areas: "copy art" "copy note";
  grid-template-rows: 1fr auto;
  column-gap: var(--space-8); align-items: center;
}
.hero-copy { grid-area: copy; }
.hero-copy h1 { max-width: 19ch; margin-bottom: var(--space-3); }
.hero .lead { font-size: var(--step-1); margin-bottom: 0; }
.hero-art { grid-area: art; align-self: end; }
.hero-shape { width: 100%; max-width: 420px; margin-left: auto; height: auto; }
.shape-sun { fill: var(--sand); }
.shape-arch { fill: var(--tint); }
.shape-arch-2 { fill: #DCE6F7; }
.shape-line { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.55; }
.hero-note {
  grid-area: note; justify-self: end; position: relative; margin-top: calc(-1 * var(--space-6));
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: var(--space-2) var(--space-3);
  font-size: var(--step--1); color: var(--ink-soft); max-width: 20rem;
}
.hero-note-title { font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; color: var(--navy); margin-bottom: 0.25rem; }
.hero-note a { font-weight: 650; }

/* ===================== Sections ===================== */
.section { padding: var(--section-pad) 0; }
.section-warm, .section-alt { background: var(--warm); border-block: 1px solid var(--line); }
.section-warm + .section-cta, .section-alt + .section-cta { border-top: 0; }
.section-head { max-width: 46rem; margin-bottom: var(--space-4); }
.section-head .intro { margin-bottom: 0; }

.page-header {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 40% 90% at 100% 0%, rgba(30, 91, 216, 0.07), transparent 70%),
    var(--warm);
  border-bottom: 1px solid var(--line);
  padding: clamp(var(--space-5), 6vw, var(--space-8)) 0 clamp(var(--space-5), 6vw, var(--space-8));
}
.page-header::after {
  /* soft decorative arch, no imagery */
  content: ""; position: absolute; right: -60px; bottom: -120px; width: 320px; height: 320px;
  border-radius: 50% 50% 0 0; background: var(--tint); opacity: 0.7; pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { font-size: var(--step-4); max-width: 22ch; }
.answer { max-width: 46rem; }
.breadcrumb { font-size: var(--step--1); margin-bottom: var(--space-2); color: var(--muted); }
.breadcrumb a { color: var(--royal); }

.section-cta {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 50% 80% at 50% 0%, rgba(30, 91, 216, 0.35), transparent 70%), var(--navy);
  color: #E4EDFF; padding: var(--section-pad) 0;
}
.section-cta h2 { color: var(--white); }
.section-cta p { color: #E4EDFF; max-width: 38rem; margin-inline: auto; }
.section-cta a:not(.btn) { color: var(--sky); }

/* ===================== Meet Nick / About ===================== */
.meet, .about-grid { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(var(--space-4), 5vw, var(--space-8)); align-items: center; }
.about-grid { align-items: start; }
.meet-copy { max-width: 40rem; }
.portrait {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg); background: var(--warm-deep);
  box-shadow: var(--shadow-soft);
}
.meet-photo, .about-photo { position: relative; }
.meet-photo::before, .about-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border-radius: var(--radius-lg); background: var(--sand); opacity: 0.55; z-index: -1;
}
.meet-photo picture, .about-photo picture { position: relative; z-index: 0; }
.meet { isolation: isolate; }
.about-grid { isolation: isolate; }

.badges { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-1); }
.badges li {
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: var(--warm); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.3rem 0.85rem; font-size: var(--step--1); font-weight: 600; color: var(--navy); line-height: 1.4;
}
.section-warm .badges li { background: var(--white); }

/* two-column "split" block (why a broker, what to expect) */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(var(--space-4), 6vw, var(--space-10)); align-items: start; }
.split-intro .intro { margin-bottom: 0; }
.split-body p { font-size: var(--step-0); }
.split-body p strong { color: var(--navy); }

/* ===================== Soft cards ===================== */
.help-grid, .grid-programs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.soft-card, .card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-4); box-shadow: var(--shadow-soft);
}
.section-warm .soft-card { background: var(--white); }
.soft-card h3 { margin-bottom: var(--space-1); }
.soft-card p { color: var(--ink-soft); }
.soft-links { list-style: none; padding: var(--space-2) 0 0; margin: var(--space-2) 0 0; border-top: 1px solid var(--line); }
.soft-links li { margin: 0 0 0.35rem; }
.soft-links a { font-weight: 600; text-decoration: none; }
.soft-links a::after { content: " \2192"; }
.soft-links a:hover { text-decoration: underline; }

/* program cards: whole card is clickable via the heading link */
.program-card { position: relative; transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.program-card h3 a, .program-card h2 a { color: var(--navy); text-decoration: none; }
.program-card h3 a::after, .program-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.program-card h2 { font-size: var(--step-1); margin-bottom: var(--space-1); }
.program-card:hover { border-color: #CDBFA8; transform: translateY(-2px); box-shadow: var(--shadow); }
.program-card:hover h3 a, .program-card:hover h2 a { color: var(--royal); text-decoration: underline; }
.program-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.program-card a:focus-visible { outline: none; }
.program-card p { margin: 0; }

/* ===================== Visit card / contact ===================== */
.visit-card {
  background: var(--warm); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-4);
}
.visit-card h2 { font-size: var(--step-2); }
.visit-card address { font-size: var(--step-0); line-height: 1.75; margin: var(--space-2) 0; color: var(--ink); }
.contact-lines { line-height: 1.9; }
.contact-lines a, .visit-card address a { font-weight: 600; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: var(--space-4); align-items: start; }
.contact-details .visit-card .btn { margin-top: var(--space-2); }
.contact-details .badges { margin-top: var(--space-3); }

/* ===================== Prose / program + city ===================== */
.prose h2 { font-size: var(--step-2); margin-top: 1.9em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--rust); }
.drive-note {
  margin: var(--space-4) 0; padding: var(--space-3);
  background: var(--warm); border-left: 4px solid var(--sand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.pill-row, .related { display: flex; flex-wrap: wrap; gap: var(--space-1); list-style: none; padding: 0; margin: 0 0 var(--space-3); }
.pill-row a {
  display: inline-block; padding: 0.4rem 0.95rem; border: 1px solid var(--line);
  background: var(--white); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: var(--step--1); color: var(--navy);
}
.pill-row a:hover { border-color: var(--royal); color: var(--royal); }
.toc { margin-bottom: var(--space-5); }
.toc-label { font-size: var(--step--1); font-weight: 600; color: var(--muted); margin-bottom: var(--space-1); }
.toc .pill-row a { background: var(--warm); }

/* simple area link list */
.link-list { list-style: none; padding: 0; margin: var(--space-4) 0; border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); padding: 0.85rem 0.25rem; text-decoration: none; }
.link-list-title { font-family: var(--font-serif); font-size: var(--step-1); font-weight: 600; color: var(--navy); }
.link-list-note { font-size: var(--step--1); color: var(--muted); }
.link-list a:hover .link-list-title { color: var(--royal); text-decoration: underline; }
.link-list a::after { content: "\2192"; color: var(--royal); margin-left: auto; padding-left: var(--space-2); }
.link-list-note { margin-left: auto; }

/* ===================== FAQ accordion ===================== */
.faq { margin-top: var(--space-3); }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: var(--space-1); transition: box-shadow 0.15s ease;
}
.faq-item[open] { box-shadow: var(--shadow-soft); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  font-weight: 650; color: var(--navy); line-height: 1.45;
  padding: 1rem 3.5rem 1rem 1.25rem; border-radius: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.25rem; line-height: 1; font-weight: 500;
  background: var(--tint); color: var(--royal);
}
.faq-item[open] summary::after { content: "\2212"; background: var(--royal); color: var(--white); }
.faq-item summary:hover { color: var(--royal); }
.faq-item > p { padding: 0 1.25rem 1.15rem; margin: 0; color: var(--ink-soft); }
.faq-group { margin-bottom: var(--space-6); }
.faq-group:last-child { margin-bottom: 0; }
.faq-group h2 { font-size: var(--step-2); scroll-margin-top: 8rem; }
.faq-group .faq { margin-top: var(--space-2); }

/* ===================== Notices / misc ===================== */
.notice {
  background: var(--warm); border: 1px solid var(--line); color: var(--ink-soft);
  border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3);
  margin: var(--space-4) 0 0; font-size: var(--step--1);
}
.notice-title { font-family: var(--font-sans); font-size: 1rem; color: var(--navy); margin-bottom: 0.35rem; }
.muted { color: var(--muted); }
.draft-banner { background: #FFF4DB; color: #5C3D00; padding: 0.75rem 0; border-bottom: 1px solid #EAD7A8; font-size: var(--step--1); }
.checklist { padding-left: 1.2rem; }

/* ===================== Footer ===================== */
.site-footer { background: var(--navy-deep); color: #D5E3FF; padding: var(--space-8) 0 var(--space-4); font-size: 0.95rem; }
.site-footer a { color: var(--sky); }
.site-footer a:hover { color: var(--sky-hover); }
.footer-logo { display: inline-block; color: var(--white); margin-bottom: var(--space-2); }
.footer-logo:hover { color: var(--white); }
.footer-logo .logo { width: 190px; }
.footer-heading {
  font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 0.8rem;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 0.8fr; gap: var(--space-5); margin-bottom: var(--space-5); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.35rem; }
.license-disclosures { margin-top: 0.85rem; font-size: 0.9rem; }
.eho { display: flex; align-items: center; gap: 0.7rem; margin-top: 1rem; color: var(--white); }
.eho-logo { width: 2.4rem; height: 2.4rem; flex: none; }
.footer-legal { border-top: 1px solid rgba(220, 232, 255, 0.15); padding-top: var(--space-3); font-size: 0.88rem; color: #B8C7E0; }
.footer-legal p { margin-bottom: 0.6rem; }

/* ===================== Forms ===================== */
.form-card { padding: clamp(var(--space-3), 4vw, var(--space-5)); }
.contact-form .field, .calc-form .field { margin-bottom: var(--space-2); }
.contact-form label, .calc-form label { display: block; font-weight: 650; margin-bottom: 0.3rem; color: var(--navy); font-size: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.field-row--3 { grid-template-columns: 1fr 1fr 1fr; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; border: 1px solid #CDBFA8; border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem; background: var(--white); min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--focus); border-color: transparent; }
.req { color: var(--rust); font-weight: 600; font-size: 0.85em; }
.opt, .hint { color: var(--muted); font-size: 0.92rem; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; }
.consent input { margin-top: 0.35rem; width: 1.15rem; height: 1.15rem; flex: none; }
.consent label { font-weight: 500; color: var(--ink-soft); font-size: 0.95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 0.8rem; min-height: 1.4em; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
legend { padding: 0; font-weight: 650; color: var(--navy); margin-bottom: 0.4rem; }

/* ===================== Calculators ===================== */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-4); align-items: start; }
.calc-grid + .container { margin-top: var(--space-4); }
.calc-grid + .container .notice { margin-top: 0; }
.input-affix {
  display: flex; align-items: center; border: 1px solid #CDBFA8; border-radius: var(--radius-sm);
  background: var(--white); overflow: hidden;
}
.input-affix span { padding: 0 0.7rem; color: var(--muted); font-weight: 650; }
.input-affix input { border: 0; border-radius: 0; min-width: 0; }
.input-affix input:focus { outline: none; }
.input-affix:focus-within { outline: 3px solid var(--focus); }
.calc-results {
  background: var(--navy); color: #E4EDFF; border-color: transparent;
  position: sticky; top: 9rem;
}
.calc-results h2 { color: var(--white); font-size: var(--step-2); }
.calc-total { font-family: var(--font-serif); font-size: var(--step-4); color: var(--white); margin: 0.2rem 0 1rem; line-height: 1.1; }
.calc-total .per { font-size: 1rem; font-family: var(--font-sans); margin-left: 0.35rem; color: #D5E3FF; }
.calc-breakdown { margin: 0 0 var(--space-3); }
.calc-breakdown div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-top: 1px solid rgba(220, 232, 255, 0.15); }
.calc-breakdown dt { color: #D5E3FF; }
.calc-breakdown dd { margin: 0; font-weight: 650; color: var(--white); }
.calc-results a:not(.btn) { color: var(--sky); }
.calc-results .notice { background: rgba(255, 255, 255, 0.08); color: #E4EDFF; border-color: rgba(220, 232, 255, 0.2); }
.calc-results .btn-accent { border-color: var(--sky); }
.calc-error { color: #FFD0D0; font-weight: 650; }

/* ===================== Responsive ===================== */
@media (max-width: 1080px) {
  .help-grid, .grid-programs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "note"; grid-template-rows: auto; }
  .hero-art { display: none; }
  .hero::after {
    content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px;
    border-radius: 50%; background: var(--sand); opacity: 0.45; pointer-events: none;
  }
  .hero .container { position: relative; z-index: 1; }
  .hero-note { justify-self: stretch; margin-top: var(--space-4); max-width: none; }
  .meet, .about-grid, .split, .contact-grid, .calc-grid, .footer-grid { grid-template-columns: 1fr; }
  .meet-photo, .about-photo { max-width: 300px; }
  .calc-results { position: static; }

  /* header: logo + menu button on row 1, actions on row 2, nav drops down */
  .nav-toggle { display: inline-flex; }
  .header-inner { padding-block: var(--space-1); }
  .header-top { flex-wrap: wrap; row-gap: var(--space-1); }
  .header-top .nav-toggle { margin-left: auto; }
  .header-top .nav-actions { display: flex; width: 100%; order: 3; }
  .cta-set--header .btn { flex: 1 1 0; }
  .site-header .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: var(--space-1) 1.25rem var(--space-2); margin: 0;
    max-height: calc(100vh - 9rem); overflow-y: auto;
  }
  .site-header .site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .site-nav ul, .site-header .site-nav > ul { flex-direction: column; }
  .site-nav a { display: inline-block; padding: 0.6rem 0.65rem; }
  .sub-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .has-sub { display: block; }
  .site-nav ul.sub, .site-header .site-nav ul.sub {
    position: static; border: 0; box-shadow: none; background: transparent;
    padding: 0 0 0.3rem 0.8rem; min-width: 0; width: 100%; display: none;
  }
  .site-header .site-nav .has-sub:hover > ul.sub { display: none; }
  .site-header .site-nav .has-sub.is-open > ul.sub { display: flex; }
  .sub a { white-space: normal; }
}

@media (max-width: 640px) {
  .help-grid, .grid-programs { grid-template-columns: 1fr; }
  .field-row, .field-row--3 { grid-template-columns: 1fr; }
  .logo { width: 200px; }
  .brand-sub { padding-left: 0; font-size: 0.72rem; }
  .soft-card, .card, .visit-card { padding: var(--space-3); }
  .cta-set:not(.cta-set--header) .btn-lg { width: 100%; }
  .cta-set { gap: var(--space-2); }
  .cta-phone { width: 100%; text-align: center; }
  .text-center .cta-phone { text-align: center; }
  .page-header::after { width: 200px; height: 200px; bottom: -100px; right: -70px; }
  .link-list-note { display: none; }
}

/* v2.1: align top-level nav items on one baseline (desktop) */
@media (min-width: 981px) {
  .site-header .site-nav > ul { align-items: center; }
  .site-header .site-nav > ul > li { display: flex; align-items: center; }
  .site-header .site-nav > ul > li > a { display: inline-flex; align-items: center; line-height: 1.4; }
}
