/* The Heichel Team — site styles
   Palette and type follow the original yourwaymortgage.com design:
   deep teal and warm gold, Century Gothic-style headings and Bebas Neue labels.
   Design system: warm off-white pages, one sand-colored alternate section, teal for emphasis,
   a single line-icon set (src/icons.mjs) and generous spacing. */

:root {
  --teal: #12505b;
  --teal-dark: #0c3a42;
  --teal-ink: #0f4650;
  --gold: #edc87c;
  --gold-hover: #e4b95e;
  --gold-text: #8a6414; /* gold that passes contrast on light backgrounds */
  --paper: #fbf8f3;   /* page background */
  --sand: #f3ece1;    /* the one alternate section color */
  --sand-deep: #e9dfcf;
  --mist: var(--sand);
  --mist-soft: #f7f2ea;
  --teal-tint: #e3eff0;
  --ink: #2c2f36;
  --muted: #555b64;
  --line: #e6ddcf;
  --white: #fff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 18px 40px -18px rgba(44, 40, 30, 0.28);
  --shadow-sm: 0 1px 2px rgba(44, 40, 30, .06), 0 6px 18px -10px rgba(44, 40, 30, .18);
  --font-script: 'Mrs Saint Delafield', 'Brush Script MT', cursive;
  --font-head: 'Century Gothic', 'Questrial', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-body: 'Mulish', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-label: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--teal); line-height: 1.18; margin: 0 0 .5em; font-weight: 400; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--teal); color: #fff; padding: .6rem 1rem; z-index: 1000; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.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; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 860px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(44px, 6vw, 76px) 0; }
.bg-sand { background: var(--sand); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: .3em; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.h4 { font-size: 1.15rem; }
.bg-teal { background: var(--teal); color: #fff; }
.bg-teal h1, .bg-teal h2, .bg-teal h3, .bg-teal h4 { color: #fff; }
.bg-teal a:not(.btn) { color: var(--gold); }
.bg-mist { background: var(--mist); }
.bg-mist-soft { background: var(--mist-soft); }
.center { text-align: center; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 46em; }
.center .lede { margin-left: auto; margin-right: auto; }
.bg-teal .lede { color: rgba(255,255,255,.88); }
.eyebrow { font-family: var(--font-label); font-size: 1.15rem; letter-spacing: .06em; color: var(--gold-text); text-transform: uppercase; margin: 0 0 .35em; display: block; }
.bg-teal .eyebrow { color: var(--gold); }
.label { font-family: var(--font-label); letter-spacing: .04em; text-transform: uppercase; font-size: 1.25rem; color: var(--teal); }
.rule { border: 0; border-top: 2px solid var(--gold); margin: 1rem 0 2.5rem; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-rev > :first-child { order: 2; }
@media (max-width: 960px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split-rev > :first-child { order: 0; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .9em 1.6em; border-radius: 6px; font-family: var(--font-head); font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s; line-height: 1.2; text-align: center; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.btn-gold { background: var(--gold); color: var(--teal-dark); }
.btn-gold:hover { background: var(--gold-hover); color: var(--teal-dark); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); color: #fff; }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--teal); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.center .btn-row { justify-content: center; }
.arrow::after { content: '→'; font-family: var(--font-body); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 86px; }
.brand img { width: 168px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav li { position: relative; }
.nav a, .nav button.nav-top { display: flex; align-items: center; padding: .6em .8em; font-family: var(--font-head); font-size: .98rem; line-height: 1.4; white-space: nowrap; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: 6px; }
.nav a:hover, .nav button.nav-top:hover, .nav a[aria-current="page"] { color: var(--teal); background: var(--mist-soft); }
.nav button.nav-top::after { content: ''; display: inline-block; width: .42em; height: .42em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -.25em 0 0 .5em; }
.subnav { position: absolute; top: 100%; left: 0; min-width: 250px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: none; }
.nav li:hover > .subnav, .nav li:focus-within > .subnav, .nav li.open > .subnav { display: block; }
.subnav a { font-size: .95rem; padding: .5em .8em; }
.header-phone { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 2px solid var(--teal); border-radius: 6px; padding: 8px 10px; color: var(--teal); cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 4px 0; }
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 86px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 20px 40px; overflow-y: auto; display: none; }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; }
  .subnav { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 8px 14px; }
  .nav button.nav-top::after { display: none; }
  .nav a, .nav button.nav-top { font-size: 1.1rem; padding: .7em .4em; }
  .header-phone { margin-top: 16px; }
  .brand img { width: 140px; }
}

.page-hero { background: var(--sand); padding: clamp(52px, 7vw, 88px) 0; text-align: center; }
.page-hero h1 { margin: 0; }
.page-hero .lede { margin: .8rem auto 0; color: var(--muted); }
.page-hero-teal { background: var(--teal); }
.page-hero-teal h1 { color: var(--gold); }
.page-hero-teal .lede { color: rgba(255,255,255,.9); }
.page-hero-photo { position: relative; background-size: cover; background-position: center; color: #fff; text-align: left; }
.page-hero-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,58,66,.92), rgba(12,58,66,.6)); }
.page-hero-photo > * { position: relative; }
.page-hero-photo h1 { color: #fff; }
.page-hero-photo .lede { color: rgba(255,255,255,.92); margin-left: 0; }
.page-hero-photo .eyebrow { color: var(--gold); }

/* Breadcrumbs */
.breadcrumbs { font-size: .88rem; color: var(--muted); padding: 14px 0 0; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4em; }
.breadcrumbs li + li::before { content: '/'; margin-right: .4em; color: var(--slate); }
.breadcrumbs a { color: var(--muted); }
.page-hero .breadcrumbs, .page-hero-photo .breadcrumbs { padding: 0 0 18px; }
.page-hero .breadcrumbs ol { justify-content: center; }
.page-hero-photo .breadcrumbs, .page-hero-photo .breadcrumbs a, .page-hero-teal .breadcrumbs, .page-hero-teal .breadcrumbs a { color: rgba(255,255,255,.8); }

/* Quick answer box (answer-first summary for readers and answer engines) */
.answer { background: var(--mist-soft); border-left: 5px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; margin: 0 0 2rem; }
.answer .label { display: block; font-size: 1.1rem; margin-bottom: .2em; }
.answer p { margin: 0; font-size: 1.12rem; }
.facts { width: 100%; border-collapse: collapse; margin: 0 0 2rem; font-size: 1rem; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.facts caption { text-align: left; font-family: var(--font-label); font-size: 1.25rem; letter-spacing: .04em; color: var(--teal); padding-bottom: .4em; }
.facts th, .facts td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 38%; color: var(--teal); font-weight: 700; background: var(--mist-soft); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.reviewed { font-size: .9rem; color: var(--muted); margin-top: 1rem; }

/* Check lists */
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding-left: 1.9em; margin-bottom: .55em; }
.checks li::before { content: ''; position: absolute; left: .2em; top: .45em; width: .55em; height: .95em; border-right: 2.5px solid var(--gold-text); border-bottom: 2.5px solid var(--gold-text); transform: rotate(40deg); }
.bg-teal .checks li::before { border-color: var(--gold); }
.xs li::before { content: '✕'; border: 0; transform: none; top: 0; left: 0; color: var(--gold-text); font-weight: 700; width: auto; height: auto; }

/* Cards */
.card { background: #fff; border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.card-teal { background: var(--teal); color: #fff; box-shadow: none; }
.card-teal h3 { color: #fff; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .2s, box-shadow .2s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.fit { font-size: .97rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .8em; margin-top: 1em; }
.fit strong { color: var(--teal); }
.more { font-family: var(--font-head); color: var(--teal); text-decoration: none; display: inline-flex; gap: .4em; align-items: center; margin-top: .6em; }
.more::after { content: '›'; font-size: 1.3em; line-height: 1; }


/* Badge list */
.quiz-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 1.4rem; padding: 0; list-style: none; font-family: var(--font-label); letter-spacing: .05em; font-size: 1.15rem; color: var(--teal); }
.quiz-badges li::before { content: '✓ '; color: var(--gold-text); }

/* Forms */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .92rem; font-weight: 700; margin-bottom: 4px; color: inherit; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 6px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(18,80,91,.15); }
.req { color: #b4322b; }
.bg-teal .req, .site-footer .req { color: var(--gold); }
.form-note { font-size: .85rem; opacity: .85; margin: 0; }
.form-status { font-weight: 700; margin: 0; }
.form-status[data-state="ok"] { color: #1d7a4b; }
.bg-teal .form-status[data-state="ok"], .site-footer .form-status[data-state="ok"] { color: var(--gold); }
.form-status[data-state="err"] { color: #b4322b; }
.hp { position: absolute; left: -9999px; }

/* Reviews */
/* Reviews slider: native horizontal scroll with snap; buttons and dots come from main.js */
.slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 8px; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: var(--radius-lg); }
@media (max-width: 1080px) { .slider-track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 620px) { .slider-track { grid-auto-columns: 88%; } }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.slider-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--teal); background: #fff; color: var(--teal); font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; transition: background .2s, color .2s; }
.slider-btn:hover:not(:disabled) { background: var(--teal); color: #fff; }
.slider-btn:disabled { opacity: .35; cursor: default; }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: var(--mist); cursor: pointer; }
.slider-dots button[aria-current="true"] { background: var(--teal); width: 26px; border-radius: 5px; }
.slider:not(.is-ready) .slider-controls { display: none; }
.review { background: var(--mist-soft); border-radius: var(--radius-lg); padding: 24px; margin: 0; display: flex; flex-direction: column; scroll-snap-align: start; }
.review:nth-child(even) { background: var(--mist); }
.review blockquote { margin: 0 0 1em; font-size: 1rem; flex: 1; max-height: 11.9em; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--slate) transparent; overscroll-behavior: contain; }
.review blockquote:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.review blockquote::-webkit-scrollbar { width: 5px; }
.review blockquote::-webkit-scrollbar-thumb { background: var(--slate); border-radius: 3px; }
.review blockquote p { margin: 0; }
.review blockquote.is-scrollable { -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.review blockquote.is-scrollable.at-end { -webkit-mask-image: none; mask-image: none; }
.review figcaption { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--gold); padding-left: 10px; }
.review figcaption strong { display: block; color: var(--ink); }
.stars { color: #c48a0f; letter-spacing: 2px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; align-items: start; }
.faq-1 { grid-template-columns: 1fr; }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.faq summary { cursor: pointer; padding: 16px 18px 16px 52px; position: relative; list-style: none; font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border: 1.5px solid var(--teal); border-radius: 50%; display: grid; place-items: center; color: var(--teal); font-size: 1.1rem; line-height: 1; }
.faq details[open] summary::before { content: '–'; }
.faq details[open] summary { color: var(--teal); }
.faq .faq-a { padding: 0 20px 18px 52px; color: var(--muted); }
.faq .faq-a p:last-child { margin: 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; background: #fff; border-radius: var(--radius-lg); padding: 18px; box-shadow: 0 0 0 1px var(--line); }
.step img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .step { grid-template-columns: 1fr; } }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.member { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--teal-dark); margin: 0; }
.member img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.member figcaption { position: absolute; inset: auto 0 0 0; padding: 60px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; }
.member strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.member span { font-family: var(--font-label); letter-spacing: .05em; font-size: 1.05rem; }

/* Media helpers */
.rounded { border-radius: var(--radius-lg); }
.shadow { box-shadow: var(--shadow); }
.cover { width: 100%; object-fit: cover; }

/* Banner / CTA strips */
.banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.banner h2 { margin: 0; }
.banner h2 em { font-style: normal; color: var(--gold); }
.cta-strip { background: var(--teal); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-strip h2 { color: #fff; margin: 0 0 .2em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-strip p { margin: 0; opacity: .9; }

/* Award list */
.award-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.award-list li { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 0 0 1px var(--line); }
.award-list strong { display: block; color: var(--teal); font-family: var(--font-head); font-weight: 400; font-size: 1.1rem; }
.award-list p { margin: .3em 0 0; color: var(--muted); font-size: .97rem; }
.award-badges { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center; }
.award-badges img { height: 110px; width: auto; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }

/* Blog */
.post-card { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.post-card img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.post-card h3 a { text-decoration: none; }
.post-meta { font-size: .9rem; color: var(--muted); margin-bottom: .6em; }
@media (max-width: 700px) { .post-card { grid-template-columns: 1fr; } }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius-lg); margin: 1.5rem 0; }
.toc { background: var(--mist-soft); border-radius: var(--radius); padding: 18px 24px; margin: 0 0 2rem; }
.toc ol { margin: .4em 0 0; }

/* Embeds */
.embed-frame { width: 100%; border: 0; border-radius: var(--radius); background: #fff; }
.calendly-box { min-width: 280px; height: 700px; background: #fff; border-radius: var(--radius); }
.calendly-fallback { padding: 24px; text-align: center; }

/* Footer */
.footer-features { background: var(--teal); color: #fff; padding: 56px 0 8px; }
.footer-features h3 { font-family: var(--font-label); letter-spacing: .05em; color: #fff; font-size: 1.45rem; margin-bottom: .4em; }
.footer-features ul { list-style: none; padding: 0; margin: 0; font-size: .95rem; color: rgba(255,255,255,.88); }
.footer-features li { padding-left: 1.2em; position: relative; margin-bottom: .35em; }
.footer-features li::before { content: '•'; position: absolute; left: 0; color: var(--gold); }
.footer-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.15); margin-bottom: 40px; }
.footer-tools a { color: #fff; text-decoration: none; display: block; padding: 18px 20px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); }
.footer-tools a:hover { background: rgba(255,255,255,.06); }
.footer-tools strong { font-family: var(--font-label); letter-spacing: .05em; font-size: 1.35rem; display: block; font-weight: 400; }
.footer-tools span { color: rgba(255,255,255,.85); }
@media (max-width: 760px) { .footer-tools { grid-template-columns: 1fr; } }
.site-footer { background: var(--teal); color: rgba(255,255,255,.9); padding: 0 0 32px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h2 { font-family: var(--font-label); letter-spacing: .05em; color: #fff; font-size: 1.5rem; border-bottom: 2px solid var(--gold); padding-bottom: .4em; margin-bottom: 1em; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr .9fr; gap: 36px; padding-top: 48px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { width: 180px; margin-bottom: 14px; }
.social { display: flex; gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); }
.social a:hover { background: rgba(255,255,255,.22); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55em; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; }
.site-footer .field label { color: #fff; }
.site-footer .btn-light { background: var(--mist); color: var(--teal); width: 100%; }
.legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 28px; text-align: center; font-size: .82rem; color: rgba(255,255,255,.78); }
.legal .awards-strip { width: 100%; max-width: 520px; height: auto; margin: 0 auto 20px; }
.legal .ehl { width: 200px; margin: 16px auto 0; }
.legal p { max-width: 1000px; margin: 0 auto .8em; }
.nav .header-phone { border: 2px solid var(--teal); padding: .6em 1.1em; margin-left: 10px; display: inline-flex; color: var(--teal); }
.nav .header-phone:hover { background: var(--teal); color: #fff; }
@media (max-width: 1080px) { .nav .header-phone { margin-left: 0; justify-content: center; } }
.bg-teal .card:not(.card-teal) h2, .bg-teal .card:not(.card-teal) h3, .bg-teal .card:not(.card-teal) h4 { color: var(--teal); }
.bg-teal .card:not(.card-teal) a:not(.btn) { color: var(--teal); }
.loan-photo { aspect-ratio: 4 / 3; }
.lede.center { margin-left: auto; margin-right: auto; }
.page-hero-photo .breadcrumbs ol, .page-hero-teal.left .breadcrumbs ol { justify-content: flex-start; }

/* Single-line fields share one height so inputs, selects and buttons line up */
.field input, .field select { height: 48px; padding-top: 0; padding-bottom: 0; line-height: normal; }

/* Refi watchlist card on the home page */
.refi-card { box-shadow: var(--shadow); color: var(--ink); }
.refi-card .field label { color: var(--teal); }
.refi-card .form { grid-template-columns: 1fr auto; align-items: end; column-gap: 14px; }
.refi-card .form > .form-row, .refi-card .form-note, .refi-card .form-status { grid-column: 1 / -1; }
.refi-card .btn { height: 48px; padding-top: 0; padding-bottom: 0; }
.refi-card .form-note { color: var(--muted); opacity: 1; order: 1; }
.refi-card .form-status { order: 2; }
.refi-card .form-status:empty { display: none; }
@media (max-width: 620px) { .refi-card .form { grid-template-columns: 1fr; } .refi-card .btn { width: 100%; } }

/* Review rating summary */
.rating-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; margin-bottom: 28px; }
.rating-big { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 1.05rem; }
.rating-num { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; color: var(--teal); }
.rating-big .stars { font-size: 1.3rem; }
.rating-sources { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; font-size: .95rem; color: var(--muted); }
.rating-sources strong { color: var(--ink); }
.rating-summary .form-note { flex-basis: 100%; color: var(--muted); }

/* ===== Icons ===== */
.icon { flex: none; }
.icon-badge { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--teal-tint); color: var(--teal); flex: none; }
.icon-badge .icon { width: 26px; height: 26px; }

/* ===== Home hero (Kris-first) ===== */
.hero-k { position: relative; overflow: hidden; background-size: cover; background-position: center; }
.hero-k::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.85) 55%, rgba(255,255,255,.55) 100%); }
.hero-k > * { position: relative; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 8px 20px 40px; list-style: none; margin: 0 auto; }
.stats li { text-align: center; font-family: var(--font-label); letter-spacing: .05em; color: var(--teal); font-size: 1.05rem; line-height: 1.25; text-transform: uppercase; }
.stats strong { display: block; font-size: 2rem; color: var(--teal-dark); font-weight: 400; }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.hero-k-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero-k h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.05; margin-bottom: .4em; }
.hero-k .lede { color: var(--ink); font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.signature { font-family: var(--font-script); font-size: clamp(2.6rem, 4.5vw, 3.4rem); line-height: 1; color: var(--teal); margin: .2em 0 .1em; transform: rotate(-3deg); transform-origin: left; }
.trust-row { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: .95rem; color: var(--muted); }
.trust-row li { display: flex; align-items: center; gap: 8px; }
.trust-row .icon { color: var(--gold-text); width: 20px; height: 20px; }
.trust-row strong { color: var(--ink); }
.hero-k-photo { position: relative; margin: 0; isolation: isolate; }
.hero-k-photo img { width: 100%; aspect-ratio: 7 / 8; object-fit: cover; object-position: 50% 30%; border-radius: 28px 28px 28px 120px; box-shadow: var(--shadow); }
.hero-k-photo::before { content: ''; position: absolute; inset: 24px -18px -18px 24px; border: 2px solid var(--gold); border-radius: 28px 28px 28px 120px; z-index: -1; }
.hero-badge { position: absolute; left: -22px; bottom: 36px; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); font-size: .92rem; line-height: 1.35; }
.hero-badge .icon { color: var(--teal); }
.hero-badge a { font-weight: 700; text-decoration: none; }
@media (max-width: 900px) {
  .hero-k-inner { grid-template-columns: 1fr; }
  .hero-k-photo { max-width: 440px; margin: 8px auto 0; }
  .hero-badge { left: 8px; bottom: 16px; }
  .hero-k-photo::before { inset: 14px -8px -10px 14px; }
}


/* ===== Goal cards (original photo-tile layout) ===== */
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1080px) { .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
.goal-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.goal-card img { border-radius: 6px; aspect-ratio: 1; object-fit: cover; width: 100%; margin-bottom: 14px; transition: transform .25s; }
.goal-card:hover img { transform: scale(1.03); }
.goal-card .label { display: block; font-size: 1.35rem; line-height: 1.1; color: var(--ink); }
.goal-card .goal-desc { display: block; font-size: .92rem; line-height: 1.5; color: var(--muted); margin-top: 6px; flex: 1; }
.goal-card .more { font-size: .95rem; }

/* ===== Photos ===== */
.photo-frame { margin: 0; }
.photo-frame img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; }
.photo-frame figcaption, .photo-credit { font-size: .78rem; color: var(--muted); margin-top: 8px; }
.photo-frame figcaption a, .photo-credit a { color: inherit; }
.page-hero-photo .photo-credit { position: relative; color: rgba(255,255,255,.75); margin: 0; padding-bottom: 10px; text-align: right; }
.page-hero-photo .photo-credit a { color: rgba(255,255,255,.85); }

/* ===== City cards ===== */
.city-card { display: block; position: relative; border-radius: var(--radius-lg); overflow: hidden; color: #fff; text-decoration: none; box-shadow: var(--shadow-sm); }
.city-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.city-card-lg img { aspect-ratio: 16 / 9; }
.city-card:hover img { transform: scale(1.04); }
.city-card > span { position: absolute; inset: auto 0 0 0; padding: 48px 18px 16px; background: linear-gradient(transparent, rgba(8, 30, 35, .82)); }
.city-card strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.4rem; }
.city-card span span { font-size: .9rem; opacity: .92; }

/* ===== Local + glossary pages ===== */
.card.program { margin-bottom: 14px; }
.card.program h4 { margin-bottom: .3em; font-size: 1.1rem; }
.card.program h4 a { text-decoration: none; }
.card.program p { margin: 0; color: var(--muted); font-size: .97rem; }
.glossary-list { margin: 0; display: grid; gap: 4px; }
.glossary-list > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.glossary-list dt { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 4px; }
.glossary-list dt a { text-decoration: none; }
.glossary-list dd { margin: 0; color: var(--muted); }
.term-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.term-chips a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; font-size: .95rem; }
.term-chips a:hover { border-color: var(--teal); }
.card.example { background: var(--teal-tint); border: 0; box-shadow: none; margin: 1.5rem 0; }
.card.example p { margin: 0; }
.credit-list { list-style: none; padding: 0; display: grid; gap: 18px; }
.credit-list li { display: flex; gap: 18px; align-items: center; }
.credit-list img { width: 160px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); flex: none; }
@media (max-width: 560px) { .credit-list li { flex-direction: column; align-items: flex-start; } }

/* ===== Kris Q&A ===== */
.qa-list { display: grid; gap: 22px; }
.qa { background: #fff; border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.qa h3 { font-size: 1.25rem; margin-bottom: .6em; }
.qa blockquote { margin: 0; padding-left: 18px; border-left: 3px solid var(--gold); font-size: 1.08rem; }
.qa blockquote p { margin: 0; }
.card.example h2 { margin-bottom: .3em; }
