/* ==========================================================================
   MORGAN MORTGAGE GROUP — shared stylesheet
   Source of truth: design_handoff_mmg_redesign/ (owner-pinned Claude Design
   handoff). Warm off-white ground, navy ink, one green. Bricolage Grotesque
   headings, Instrument Sans body. Pills 999px · bands 28px · cards 22px ·
   steps 18px · inputs 12px · card images 14px.
   ========================================================================== */

:root {
  --ground:        #FBFAF6;
  --ink:           #10314F;
  --green:         #1E9E56;
  --green-hover:   #178146;
  --green-lift:    #25b665;   /* hover on navy bands */
  --green-text:    #178146;
  --green-tint:    #E9F4EC;
  --band-tint:     #EDF3EE;
  --text-2:        #5E7189;
  --muted:         #8B99AB;
  --body-tint:     #4A6076;
  --card-border:   #ECE9E1;
  --input-border:  #DDE3EA;
  --outline:       #C9D3DF;
  --nav-hover:     #F0EDE5;
  --on-navy-link:  #C8D4E0;
  --on-navy-p:     #A8BACC;
  --on-navy-label: #7FCB9E;
  --on-navy-faint: #7893AE;
  --navy-divider:  #24486B;

  --r-pill:  999px;
  --r-band:  28px;
  --r-card:  22px;
  --r-inner: 18px;
  --r-input: 12px;
  --r-img:   14px;

  --font-head: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1080px;
  --gutter: 28px;
  --ease: 150ms ease;

  /* navy top band height default; js/main.js re-measures it from the page hero */
  --top-h: 820px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  position: relative; isolation: isolate;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  accent-color: var(--green);
  caret-color: var(--green);
}
/* Navy top band: a full-width navy block with rounded bottom corners (the footer's top corners,
   mirrored) behind the utility strip, sticky header, and hero. Solid navy gradient plus a soft
   glow behind the headline; no fade. Height --top-h is measured from the hero by js/main.js. */
body::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: -1;
  height: var(--top-h);
  background:
    radial-gradient(1100px 560px at 50% 150px, rgba(47,110,168,.50), rgba(47,110,168,0) 70%),
    linear-gradient(180deg, #0C2740 0%, #10314F 55%, #10314F 100%);
  border-radius: 0 0 var(--r-band) var(--r-band);
}

h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; color: inherit; }
p { margin: 0; }
a { color: var(--green-text); text-decoration: none; transition: color var(--ease), background-color var(--ease), border-color var(--ease), box-shadow var(--ease); }
a:hover { color: var(--ink); }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(30,158,86,.25); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
[id] { scroll-margin-top: 96px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; }

/* --------------------------------------------------------------------------
   Utility strip + sticky header
   -------------------------------------------------------------------------- */
.util-strip {
  display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between;
  padding: 10px var(--gutter); font-size: 12.5px; color: var(--on-navy-p);
}
.util-strip a { color: inherit; white-space: nowrap; }
.util-strip a:hover { color: #fff; }
/* Company name + NMLS ID, required in the header by the licensing contact. */
.util-id { white-space: nowrap; letter-spacing: .01em; }
@media (max-width: 560px) {
  .util-strip { justify-content: center; gap: 4px 14px; font-size: 12px; }
  .util-id { white-space: normal; text-align: center; }
}

.site-header {
  position: sticky; top: 0; z-index: 20;
  /* Transparent at the top so it sits on the navy gradient with no box; js/main.js adds
     .is-scrolled once the page moves, which brings in the dark translucent bar. */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease;
}
.site-header.is-scrolled {
  background: rgba(16,49,79,.88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom-color: rgba(255,255,255,.08);
}
.header-inner {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  padding: 10px var(--gutter);
}
.brand { display: inline-flex; align-items: center; color: var(--ink); }
.brand img { height: 48px; width: auto; }
.wordmark { font-family: var(--font-head); font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.wordmark:hover { color: var(--green-text); }
.wordmark .dot { color: var(--green); }

.nav { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  font-size: 15px; font-weight: 500; color: #E6EEF6; border-radius: var(--r-pill);
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.10); color: #fff; }
/* About dropdown — native <details> so it works without JS and stays keyboard
   accessible; js/main.js only adds close-on-outside-click and Escape. */
.nav-menu { position: relative; }
.nav-menu > summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px;
  font-size: 15px; font-weight: 500; color: #E6EEF6; border-radius: var(--r-pill);
  cursor: pointer; list-style: none; user-select: none; white-space: nowrap;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg); transition: transform var(--ease);
}
.nav-menu[open] > summary::after { transform: rotate(-135deg); margin-top: 2px; }
.nav-menu > summary:hover, .nav-menu[open] > summary { background: rgba(255,255,255,.10); color: #fff; }
.nav-menu > summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.nav-menu-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 190px;
  display: grid; padding: 8px; border-radius: var(--r-inner);
  background: #fff; border: 1px solid var(--card-border); box-shadow: 0 12px 34px rgba(16,49,79,.18);
}
.nav-menu-panel a {
  display: block; padding: 10px 12px; border-radius: var(--r-input);
  font-size: 14.5px; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.nav-menu-panel a:hover { background: var(--nav-hover); color: var(--ink); }
.nav-menu-panel a[aria-current="page"] { color: var(--green-text); font-weight: 600; }

/* Long-form legal / policy pages */
.doc { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }
.doc .updated { font-size: 13.5px; color: var(--muted); margin: -8px 0 4px; }
.doc h2 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin: 40px 0 12px; }
.doc h3 { font-size: 21px; font-weight: 700; color: var(--ink); margin: 26px 0 8px; font-family: var(--font-body); }
.doc p, .doc li { font-size: 16px; line-height: 1.75; color: var(--body-tint); }
.doc p { margin-bottom: 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.doc li { margin-bottom: 7px; }
.doc a { color: var(--green-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.doc a:hover { text-decoration-color: currentColor; }
.doc strong { color: var(--ink); }
.doc .doc-contact { margin-top: 34px; padding: 22px 24px; border: 1px solid var(--card-border); border-radius: var(--r-card); background: #fff; }
.doc .doc-contact p { margin-bottom: 4px; }

/* Centered card pair (e.g. the Licenses "Company" row after the individual card was removed) */
.grid-2c { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); justify-content: center; gap: 20px; }

/* Licences table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--card-border); border-radius: var(--r-card); background: #fff; }
.lic-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.lic-table th, .lic-table td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--card-border); }
.lic-table thead th { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--ground); }
.lic-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.lic-table tbody td { color: var(--text-2); }
.lic-table tbody tr:last-child th, .lic-table tbody tr:last-child td { border-bottom: 0; }
.pend-tag { display: inline-block; padding: 4px 12px; border-radius: var(--r-pill); background: var(--nav-hover); color: var(--body-tint); font-size: 12.5px; font-weight: 600; }
.lic-note { margin-top: 16px; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 70ch; }

.header-inner .btn-cta {
  display: inline-flex; align-items: center; min-height: 44px; margin-left: 12px; padding: 10px 24px;
  background: var(--green); color: #fff; font-size: 15px; font-weight: 600; border-radius: var(--r-pill); white-space: nowrap;
}
.header-inner .btn-cta:hover { background: var(--green-hover); color: #fff; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-pill); font-weight: 600; white-space: nowrap; border: 0; text-align: center; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); color: #fff; }
.on-navy .btn-primary:hover { background: var(--green-lift); }
.btn-outline { border: 1.5px solid var(--outline); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-hero { padding: 18px 40px; font-size: 17px; }
.btn-section { padding: 16px 34px; font-size: 16px; }
.btn-small { padding: 14px 30px; font-size: 15px; }

/* --------------------------------------------------------------------------
   Hero (all pages)
   -------------------------------------------------------------------------- */
.hero {
  padding: 80px var(--gutter) 40px; text-align: center; color: #fff;
  display: flex; flex-direction: column; align-items: center;
}
/* Homepage hero: fill the first screen as one open field of navy, content centered,
   so the chat box is the whole first viewport and everything else is below the fold. */
.hero:not(.sub) {
  min-height: calc(100svh - 128px);
  justify-content: center;
  padding-top: 40px; padding-bottom: 56px; gap: 4px;
}
.hero.sub { padding-bottom: 48px; }
/* Breathing room between the rounded navy band and the first content block on sub-pages
   (the home page hero is .hero, not .hero.sub, and keeps its overlapping photo band). */
.hero.sub + * { padding-top: clamp(34px, 4.5vw, 56px); }
.hero .lead { color: var(--on-navy-link); }
.hero .micro { color: var(--on-navy-p); }
.hero .btn-outline { border-color: rgba(255,255,255,.45); color: #fff; }
.hero .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.07); color: #fff; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(30,158,86,.22); color: var(--on-navy-label);
  font-size: 13.5px; font-weight: 600; padding: 8px 18px; border-radius: var(--r-pill); margin-bottom: 28px; white-space: nowrap;
}
.hero.sub .badge { margin-bottom: 24px; }
.hero h1 { font-size: 72px; font-weight: 700; letter-spacing: -.03em; line-height: 1.02; margin: 0 0 20px; max-width: 16ch; text-wrap: balance; }
.hero.sub h1 { margin-bottom: 18px; }
.hero h1.w17 { max-width: 17ch; }
/* Sofia's name highlighted in the hero headline — introduces her, Better-style. */
.hero-sofia { color: var(--green-lift); }
.lead { font-size: 19px; line-height: 1.6; color: var(--text-2); max-width: 46ch; margin: 0 0 32px; text-wrap: pretty; }
.lead.w50 { max-width: 50ch; }
.hero.sub .lead { margin-bottom: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-bottom: 14px; }
.micro { font-size: 13.5px; color: var(--on-navy-p); }
.hero .micro { color: var(--on-navy-p); }
.hero-browse { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); white-space: nowrap; }
.hero-browse:hover { color: #fff; text-decoration-color: #fff; }

/* Hero chat box — the front-and-center entry into Sofia */
.hero-chat {
  width: min(640px, 100%); margin: 4px auto 16px; text-align: left;
  background: #fff; border-radius: var(--r-band); padding: 8px;
  box-shadow: 0 24px 60px rgba(16,49,79,.4);
}
.hero-chat-form { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; }
.hero-chat-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.hero-chat-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--font-body); font-size: 16px; color: var(--ink); }
.hero-chat-input::placeholder { color: var(--text-2); }
.hero-chat-send { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--green); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color var(--ease); }
.hero-chat-send:hover { background: var(--green-hover); }
.hero-chat-send svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 8px 6px; border-top: 1px solid var(--card-border); margin-top: 4px; }
.hero-chip { border: 1.5px solid var(--input-border); background: #fff; color: var(--ink); border-radius: var(--r-pill); padding: 8px 16px; font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color var(--ease), background-color var(--ease); }
.hero-chip:hover { border-color: var(--green); background: var(--green-tint); color: var(--green-text); }

/* Centered "front and center" mode when Sofia is opened from the hero */
.sofia-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(16,49,79,.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity var(--ease); }
.sofia-backdrop.is-show { opacity: 1; pointer-events: auto; }
.sofia-panel.is-center { right: auto; bottom: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); height: min(680px, calc(100vh - 48px)); }
@media (max-width: 640px) {
  .hero-chat-chips { justify-content: center; }
  .sofia-panel.is-center { left: 0; top: 0; transform: none; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}

/* --------------------------------------------------------------------------
   Home sections
   -------------------------------------------------------------------------- */
.band-sec { padding: 24px var(--gutter) 56px; }
.band { position: relative; border-radius: var(--r-band); overflow: hidden; max-width: var(--wrap); margin: 0 auto; background: var(--band-tint); }
/* 15% keeps headroom above the family's faces; the band crops vertically only,
   so the horizontal framing lives in the image file itself. */
.band img { width: 100%; height: 420px; object-fit: cover; object-position: center 15%; }
.band-pills { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill {
  background: rgba(251,250,246,.94); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 10px 20px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--ink);
}

.sec { padding: 0 var(--gutter) 72px; max-width: var(--wrap); margin: 0 auto; }
.sec.why { padding-top: 32px; }
.h2 { font-size: 44px; font-weight: 700; letter-spacing: -.025em; line-height: 1.05; text-wrap: balance; }
.h2.center { text-align: center; margin-bottom: 36px; }
.sec-intro { text-align: center; margin-bottom: 36px; }
.sec-intro .h2 { margin-bottom: 10px; }
.sec-intro p { font-size: 16px; color: var(--text-2); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card { background: #fff; border: 1px solid var(--card-border); border-radius: var(--r-card); padding: 28px; }
.card h3 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 8px; }
.card p { font-size: 14.5px; line-height: 1.6; color: var(--text-2); }

.tile {
  display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--card-border); border-radius: var(--r-card);
  padding: 26px; color: var(--ink); box-shadow: 0 1px 2px rgba(16,49,79,.04);
}
.tile:hover { border-color: var(--green); box-shadow: 0 6px 20px rgba(16,49,79,.08); color: var(--ink); }
.tile-name { font-family: var(--font-head); font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.tile-down { font-size: 13px; font-weight: 600; color: var(--green-text); }
.tile-best { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.tile-more { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 6px; }

.process {
  background: var(--band-tint); border-radius: var(--r-band); padding: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
}
.process .h2 { max-width: 18ch; margin-bottom: 16px; text-wrap: pretty; }
.process .copy { font-size: 16px; line-height: 1.65; color: var(--body-tint); max-width: 44ch; margin-bottom: 28px; }
.steps { display: grid; gap: 12px; }
.step { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: var(--r-inner); padding: 18px 22px; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px;
  background: var(--green-tint); color: var(--green-text); border-radius: var(--r-pill); font-weight: 700; font-size: 15px;
}
.step-n.done { background: var(--green); color: #fff; }
.step h4 { font-size: 16.5px; font-weight: 600; margin-bottom: 2px; font-family: var(--font-body); }
.step p { font-size: 14px; color: var(--text-2); line-height: 1.55; }

.quote { margin: 0; background: #fff; border: 1px solid var(--card-border); border-radius: var(--r-card); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.quote blockquote { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ink); text-wrap: pretty; }
.quote figcaption { margin-top: auto; }
.quote .name { font-weight: 700; font-size: 14.5px; }
.quote .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }

.poster { background: var(--ink); border-radius: var(--r-band); padding: 72px 56px; text-align: center; color: var(--ground); }
.poster .h2 { color: var(--ground); margin: 0 auto 14px; max-width: 18ch; }
.poster .h2.big { font-size: 52px; letter-spacing: -.03em; line-height: 1.02; }
.poster .h2.w22 { max-width: 22ch; }
.poster p { font-size: 16px; color: var(--on-navy-p); margin: 0 auto 30px; max-width: 44ch; line-height: 1.65; }
.poster p.w48 { max-width: 48ch; margin-bottom: 28px; }

/* --------------------------------------------------------------------------
   Loan programs page
   -------------------------------------------------------------------------- */
.detail { padding: 0 var(--gutter) 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.detail h2 { font-size: 34px; font-weight: 700; letter-spacing: -.025em; line-height: 1.05; margin-bottom: 12px; }
.detail .body { font-size: 15.5px; line-height: 1.7; color: var(--body-tint); margin-bottom: 22px; text-wrap: pretty; }
.specs { background: #fff; border: 1px solid var(--card-border); border-radius: var(--r-card); padding: 26px 28px; }
.label { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.specs .label { margin-bottom: 14px; }
.specs ul { display: grid; gap: 10px; }
.specs li { font-size: 14.5px; line-height: 1.5; color: var(--ink); display: flex; gap: 10px; align-items: flex-start; }
.specs li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; stroke: var(--green); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */
.mission { padding: 0 var(--gutter) 72px; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.mission .label { color: var(--green-text); margin-bottom: 14px; }
.mission p { font-size: 16.5px; line-height: 1.75; text-wrap: pretty; }
.mission p + p { margin-top: 16px; color: var(--body-tint); }
.mission img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--r-band); }

/* The team grid sizes to however many people there are, so two cards centre
   instead of hanging left with an empty third column. */
#teamGrid { grid-template-columns: repeat(auto-fit, minmax(280px, 330px)); justify-content: center; }
.member { background: #fff; border: 1px solid var(--card-border); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; }
.member-photo { width: 100%; height: 240px; object-fit: cover; object-position: top; border-radius: var(--r-img); margin-bottom: 18px; }
.member-avatar {
  width: 100%; height: 240px; border-radius: var(--r-img); margin-bottom: 18px;
  background: var(--green-tint); color: var(--green-text); display: grid; place-items: center;
  font-family: var(--font-head); font-size: 56px; font-weight: 700; letter-spacing: -.02em;
}
.member h3 { font-size: 21px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 2px; }
.member .role { font-size: 13px; font-weight: 600; color: var(--green-text); margin-bottom: 10px; }
.member .bio { font-size: 14px; line-height: 1.6; color: var(--text-2); margin-bottom: 14px; }
.member .contact { font-size: 13.5px; color: var(--body-tint); display: grid; gap: 2px; margin-top: auto; }
.member .contact a { color: inherit; }
.member .contact a:hover { color: var(--green-text); }
.member .contact .nmls { color: var(--muted); }
.team-note { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 14px; padding: 24px; }

.info-card { background: #fff; border: 1px solid var(--card-border); border-radius: var(--r-card); padding: 24px; }
.info-card .label { margin-bottom: 8px; }
.info-card .big { font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.info-card .big a { color: inherit; }
.info-card .val { font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; word-break: normal; }
.info-card .val a { color: inherit; font-size: 14px; }
.info-card .val a:hover, .info-card .big a:hover { color: var(--green-text); }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-grid { padding: 0 var(--gutter) 72px; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--card-border); border-radius: var(--r-band); padding: 36px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 20px; }
.field { display: block; }
.field > span, .group-label { display: block; font-size: 13px; font-weight: 600; color: var(--body-tint); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--input-border); border-radius: var(--r-input);
  background: var(--ground); font-size: 15px; color: var(--ink); transition: border-color var(--ease), box-shadow var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%2310314F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; border: 1.5px solid var(--input-border); background: #fff; padding: 9px 16px; font-size: 13.5px; font-weight: 500; color: var(--ink); border-radius: var(--r-pill); cursor: pointer; transition: border-color var(--ease), background-color var(--ease); }
.chip:hover { border-color: var(--green); background: var(--green-tint); }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.chip:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.chip-selected { margin-top: 10px; font-size: 13px; color: var(--text-2); }
.chip-selected strong { color: var(--green-text); }
.group { margin-bottom: 20px; }
.comments { display: block; margin-bottom: 20px; }
.privacy { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; max-width: 60ch; }
.privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.privacy a:hover { color: var(--green-text); }
.btn-submit { padding: 16px 36px; font-size: 16px; }
.rail { display: grid; gap: 16px; }
.rail .info-card .label { margin-bottom: 6px; }
.rail .info-card .big { margin-bottom: 2px; }
.rail .info-card .sub { font-size: 13px; color: var(--text-2); }
.rail .info-card .val { margin-bottom: 2px; }
.navy-card { background: var(--ink); border-radius: var(--r-card); padding: 24px; color: var(--ground); }
.navy-card .label { color: var(--on-navy-label); margin-bottom: 8px; }
.navy-card p { font-size: 14px; line-height: 1.65; color: var(--on-navy-link); }

/* --------------------------------------------------------------------------
   Disclosure + footer
   -------------------------------------------------------------------------- */
.disclosure { padding: 20px var(--gutter); font-size: 12px; line-height: 1.6; color: var(--muted); max-width: var(--wrap); margin: 0 auto; }
.site-footer { background: var(--ink); color: var(--ground); border-radius: var(--r-band) var(--r-band) 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px 40px; padding: 48px 32px; max-width: var(--wrap); margin: 0 auto; }
.foot-brand img { height: 96px; width: auto; margin-bottom: 12px; }
.foot-brand .wordmark { font-size: 20px; color: var(--ground); display: inline-block; margin-bottom: 10px; }
.foot-brand p { font-size: 14px; line-height: 1.65; color: var(--on-navy-p); }
.foot-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-navy-label); margin-bottom: 14px; }
.foot-links { display: grid; gap: 8px; font-size: 14px; }
.foot-links a { color: var(--on-navy-link); }
.foot-links a:hover { color: #fff; }
.foot-contact { display: grid; gap: 8px; font-size: 14px; color: var(--on-navy-link); }
.foot-contact a { color: inherit; }
.foot-contact a:hover { color: #fff; }
.foot-contact .email { word-break: break-all; }
.foot-contact .faint { color: var(--on-navy-faint); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding: 16px 32px; border-top: 1px solid var(--navy-divider); font-size: 12px; color: var(--on-navy-p); max-width: var(--wrap); margin: 0 auto; }
.foot-bottom a { color: inherit; }
.foot-bottom a:hover { color: #fff; }
.foot-bottom .sep { margin: 0 6px; }

/* --------------------------------------------------------------------------
   Responsive — handoff design breakpoint ~640px (430px mobile design),
   plus one tablet step so 4-col grids never squeeze.
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
  .detail, .mission, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 42px; }
  .lead { font-size: 16px; }
  .h2, .detail h2 { font-size: 30px; }
  .poster { padding: 44px 28px; }
  .poster .h2.big { font-size: 34px; }
  .process { padding: 28px 22px; }
  .form-card { padding: 24px 20px; }
  .band img { height: 260px; }
  .band-pills { position: static; padding: 12px 14px 16px; }
  .grid-4, .grid-3, .foot-grid { grid-template-columns: 1fr; }
  .brand img { height: 40px; }
  .header-inner { padding: 10px 20px; gap: 6px 0; }
  .brand { order: 1; }
  .header-inner .btn-cta { order: 2; margin-left: auto; padding: 9px 18px; font-size: 14.5px; min-height: 40px; }
  .nav { order: 3; width: 100%; margin-left: -10px; }
  .nav a { padding: 6px 10px; min-height: 40px; font-size: 14.5px; }
  .util-strip, .hero, .band-sec, .sec, .detail, .mission, .contact-grid, .disclosure { padding-left: 20px; padding-right: 20px; }
  .mission img { height: 240px; }
  .foot-grid { padding: 40px 24px; }
  .foot-bottom { padding: 16px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

/* ==========================================================================
   Sofia — floating chat assistant (lead capture)
   ========================================================================== */
.sofia-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 1000;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 16px; border: 0; border-radius: var(--r-pill);
  background: var(--green); color: #fff; cursor: pointer;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(16,49,79,.28); transition: background-color var(--ease), transform var(--ease);
}
.sofia-launcher:hover { background: var(--green-hover); }
.sofia-launcher:active { transform: translateY(1px); }
.sofia-launcher svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sofia-launcher.is-hidden { display: none; }
/* Own class (not the site's .label) so it stays white — no uppercase/grey collision. */
.sofia-launcher-label { color: #fff; font-weight: 600; letter-spacing: 0; text-transform: none; }

.sofia-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 1001;
  display: none; flex-direction: column; overflow: hidden;
  width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 40px));
  background: #fff; border-radius: var(--r-band); border: 1px solid var(--card-border);
  box-shadow: 0 24px 60px rgba(16,49,79,.35);
}
.sofia-panel.is-open { display: flex; }

.sofia-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--ink); color: #fff; }
.sofia-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 19px; flex: none; }
.sofia-id { flex: 1; min-width: 0; }
.sofia-id .name { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.sofia-id .role { font-size: 12.5px; color: var(--on-navy-p); }
.sofia-id .role::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green-lift); margin-right: 6px; vertical-align: 1px; }
.sofia-close { border: 0; background: transparent; color: #fff; cursor: pointer; padding: 6px; border-radius: var(--r-input); line-height: 0; }
.sofia-close:hover { background: rgba(255,255,255,.12); }
.sofia-close svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* Close = end chat: confirm prompt over the panel so an accidental close can't wipe a live conversation. */
.sofia-confirm { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 22px; background: rgba(16,49,79,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sofia-confirm[hidden] { display: none; }
.sofia-confirm-card { width: 100%; max-width: 300px; background: #fff; border: 1px solid var(--card-border); border-radius: var(--r-band); box-shadow: 0 20px 44px rgba(16,49,79,.3); padding: 22px 20px; text-align: center; }
.sofia-confirm-title { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--ink); }
.sofia-confirm-text { margin: 8px 0 18px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.sofia-confirm-actions { display: flex; flex-direction: column; gap: 8px; }
.sofia-confirm-keep, .sofia-confirm-end { width: 100%; padding: 11px 14px; border-radius: var(--r-input); font-family: var(--font-body); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.sofia-confirm-keep { border: 1.5px solid var(--input-border); background: #fff; color: var(--ink); }
.sofia-confirm-keep:hover { background: var(--ground); }
.sofia-confirm-end { border: 0; background: var(--ink); color: #fff; }
.sofia-confirm-end:hover { background: var(--green-hover); }

/* Consent gate — SMS / phone opt-in, shown over the panel before the first message. */
.sofia-cm { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 16px; background: rgba(16,49,79,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sofia-cm[hidden] { display: none; }
.sofia-cm-card { width: 100%; max-width: 380px; max-height: 100%; overflow-y: auto; background: #fff; border: 1px solid var(--card-border); border-radius: var(--r-band); box-shadow: 0 20px 44px rgba(16,49,79,.3); padding: 20px 18px; }
.sofia-cm-title { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--ink); }
.sofia-cm-lead { margin: 8px 0 4px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.sofia-cm-lead a { color: var(--green-text); text-decoration: underline; text-underline-offset: 2px; }
.sofia-cm-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-top: 1px solid var(--card-border); margin-top: 14px; }
.sofia-cm-row + .sofia-cm-row { margin-top: 0; }
.sofia-cm-copy { flex: 1; min-width: 0; }
.sofia-cm-h { font-size: 14.5px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.sofia-cm-copy p { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 0; }
.sofia-toggle { flex: none; width: 46px; height: 26px; margin-top: 2px; border: 0; border-radius: var(--r-pill); background: var(--input-border); position: relative; cursor: pointer; transition: background var(--ease); }
.sofia-toggle[aria-checked="true"] { background: var(--green); }
.sofia-toggle-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform var(--ease); box-shadow: 0 1px 3px rgba(16,49,79,.35); }
.sofia-toggle[aria-checked="true"] .sofia-toggle-knob { transform: translateX(20px); }
.sofia-cm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; border-top: 1px solid var(--card-border); padding-top: 16px; }
.sofia-cm-actions button { flex: 1; min-width: 120px; padding: 11px 12px; border-radius: var(--r-input); font-family: var(--font-body); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.sofia-cm-save, .sofia-cm-reject { border: 1.5px solid var(--input-border); background: #fff; color: var(--ink); }
.sofia-cm-save:hover, .sofia-cm-reject:hover { background: var(--ground); }
.sofia-cm-accept { border: 0; background: var(--green); color: #fff; }
.sofia-cm-accept:hover { background: var(--green-hover); }

.sofia-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--ground); scroll-behavior: smooth; }
.sofia-msg { max-width: 82%; padding: 11px 15px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.sofia-msg.bot { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--card-border); border-radius: var(--r-inner); }
.sofia-msg.me { align-self: flex-end; background: var(--green); color: #fff; border-radius: var(--r-inner); }
.sofia-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 14px 16px; background: #fff; border: 1px solid var(--card-border); border-radius: var(--r-inner); }
.sofia-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: sofia-pulse 1.2s infinite ease-in-out; }
.sofia-typing span:nth-child(2) { animation-delay: .18s; }
.sofia-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes sofia-pulse { 0%, 70%, 100% { opacity: .3; } 35% { opacity: 1; } }

.sofia-foot { border-top: 1px solid var(--card-border); padding: 12px 14px; background: #fff; }
.sofia-form { display: flex; align-items: flex-end; gap: 8px; }
.sofia-input { flex: 1; resize: none; border: 1.5px solid var(--input-border); border-radius: var(--r-input); padding: 10px 12px; font-family: var(--font-body); font-size: 15px; line-height: 1.4; max-height: 96px; background: var(--ground); color: var(--ink); }
.sofia-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.sofia-send { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--green); color: #fff; cursor: pointer; display: grid; place-items: center; }
.sofia-send:hover { background: var(--green-hover); }
.sofia-send:disabled { opacity: .45; cursor: default; }
.sofia-send svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sofia-consent { margin: 8px 2px 0; font-size: 12px; line-height: 1.45; color: var(--muted); text-align: center; }
.sofia-consent a, .sofia-consent-manage { color: var(--green-text); text-decoration: underline; text-underline-offset: 2px; }
.sofia-consent-manage { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }

@media (max-width: 460px) {
  .sofia-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .sofia-launcher { right: 14px; bottom: 14px; }
  .sofia-launcher-label { display: none; }
  .sofia-launcher { padding: 14px; }
}
