/* ==========================================================
   Mortgage Loans Approved — shared stylesheet
   ========================================================== */
:root {
  --navy: #122b1e;
  --navy-dark: #122b1e;
  --green: #122b1e;
  --green-dark: #122b1e;
  --green-light: #e9f0ea;
  --text: #33414f;
  --muted: #66737f;
  --border: #e3e8ec;
  --bg-soft: #f7f5eb;
  --page-bg: #fdfcf8;
  --white: #ffffff;
  --gold: #122b1e;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(15, 42, 68, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', 'Poppins Fallback', sans-serif; color: var(--text); background: var(--page-bg); line-height: 1.6; font-size: 15px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.section-title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; margin-bottom: 12px; }
.section-sub { color: var(--muted); }
.script { font-family: 'Caveat', cursive; }
.center { text-align: center; }
.section { padding: 90px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 6px; font-weight: 600; font-size: 14px; font-family: inherit; transition: all .2s ease; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
header .container { max-width: 1280px; }
header { position: sticky; top: 0; z-index: 100; background: var(--page-bg); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 108px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { height: 90px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; color: var(--navy); }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { position: relative; padding: 42px 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.nav-item > a:hover, .nav-item.active > a { color: var(--green); }
.nav-item.active > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 34px; height: 2px; background: var(--green); }
.nav-item .fa-chevron-down { font-size: 9px; }
.dd-toggle { display: none; }
.dropdown { position: absolute; top: 100%; left: -18px; min-width: 240px; background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--green); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 16px 40px rgba(15,42,68,.14); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease; }
.dropdown.wide { display: grid; grid-template-columns: 1fr 1fr; min-width: 460px; }
.dropdown a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.dropdown a:hover, .dropdown a.current { background: var(--green-light); color: var(--green); }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-actions .search { color: var(--navy); font-size: 16px; background: none; border: none; cursor: pointer; }
.header-partner { display: flex; flex-direction: column; align-items: center; gap: 3px; flex-shrink: 0; }
.header-partner img { display: block; width: auto; height: 36px; }
.header-partner span { color: var(--navy); font-size: 10px; font-weight: 600; line-height: 1; white-space: nowrap; }
@media (max-width: 480px) {
  .nav { gap: 10px; }
  .nav-actions { gap: 10px; }
  header .logo-img { height: 44px; }
  .header-partner img { height: 24px; }
  .header-partner span { font-size: 8px; }
}
.site-search-form { position: absolute; right: 24px; top: calc(100% + 8px); display: flex; gap: 8px; padding: 10px; background: var(--white); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); z-index: 110; }
.site-search-form[hidden] { display: none; }
.site-search-form input { width: min(280px, 65vw); padding: 10px 12px; border: 1px solid var(--border); border-radius: 5px; font: inherit; }
.site-search-form button { border: 0; border-radius: 5px; padding: 0 14px; color: var(--white); background: var(--green); cursor: pointer; }
/* Autocomplete list under the header search box */
.search-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; max-height: min(420px, 70vh); overflow-y: auto; padding: 6px; background: var(--white); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); }
.search-suggest[hidden] { display: none; }
.search-suggest a { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 6px; color: var(--navy); font-size: 14px; line-height: 1.35; }
.search-suggest a:hover, .search-suggest a.is-active { background: var(--green-light); }
.search-suggest mark { background: #f3e6c4; color: inherit; border-radius: 2px; }
.search-suggest-title { font-weight: 500; }
.search-suggest-type { color: var(--muted); font-size: 11.5px; letter-spacing: .02em; }
.search-suggest-empty { padding: 9px 10px; color: var(--muted); font-size: 13px; }
.search-suggest a.search-suggest-all { margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 6px 6px; color: #1d4a34; font-size: 13px; font-weight: 600; }

/* Site search results page */
.search-page { padding: 56px 0 80px; }
.search-page-form { display: flex; gap: 10px; max-width: 760px; margin: 0 auto 28px; }
.search-page-form input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); color: var(--navy); font: inherit; font-size: 16px; }
.search-page-form input:focus { outline: none; border-color: #c9a24e; box-shadow: 0 0 0 3px rgba(201,162,78,.22); }
.search-page-form .btn { height: 52px; }
.search-count { max-width: 760px; margin: 0 auto 18px; color: var(--muted); font-size: 14px; }
.search-count strong { color: var(--navy); }
.search-results { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; padding: 0; list-style: none; }
.search-result { padding: 20px 22px; border: 1px solid var(--border); border-left: 3px solid #c9a24e; border-radius: 10px; background: var(--white); transition: box-shadow .2s ease, transform .2s ease; }
.search-result:hover { box-shadow: 0 10px 28px rgba(18,43,30,.08); transform: translateY(-1px); }
.search-result-type { display: inline-block; margin-bottom: 6px; color: #8a6a2c; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.search-result h2 { margin: 0 0 6px; font-size: 18px; line-height: 1.35; }
.search-result h2 a { color: var(--navy); }
.search-result h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.search-result p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.search-result mark { padding: 0 2px; border-radius: 3px; background: rgba(201,162,78,.28); color: inherit; }
.search-empty { max-width: 760px; margin: 0 auto; padding: 24px; border: 1px dashed var(--border); border-radius: 10px; text-align: center; }
.search-empty p { margin-bottom: 14px; color: var(--muted); }
.search-empty-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.search-empty-links a { padding: 8px 16px; border: 1px solid var(--border); border-radius: 99px; background: var(--white); color: var(--navy); font-size: 13px; font-weight: 500; }
.search-empty-links a:hover { border-color: #c9a24e; }
@media (max-width: 600px) { .search-page-form { flex-direction: column; } .search-page-form .btn { justify-content: center; } }

/* HTML sitemap (/sitemap) */
.sitemap-page { padding: 56px 0 80px; }
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; align-items: start; }
.sitemap-group { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.sitemap-group h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px; color: var(--navy); }
.sitemap-group h2 i { color: #c9a24e; font-size: 16px; }
.sitemap-group ul { list-style: none; margin: 0; padding: 0; }
.sitemap-group li { padding: 6px 0; border-top: 1px solid var(--border); font-size: 14px; line-height: 1.45; }
.sitemap-group li:first-child { border-top: 0; }
.sitemap-group a { color: var(--text); }
.sitemap-group a:hover { color: var(--navy); text-decoration: underline; }
.menu-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--navy); cursor: pointer; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--navy); color: var(--white); padding: 70px 0 64px; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,210,122,.25) 0%, rgba(255,210,122,0) 70%); }
.page-hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(32px, 4.5vw, 48px); font-weight: 800; margin-bottom: 12px; max-width: 760px; }
.page-hero p.lead { font-size: 17px; opacity: .88; max-width: 680px; }
.page-hero .hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.page-hero .hero-icon { position: absolute; right: 24px; bottom: -10px; font-size: 180px; color: rgba(255,255,255,.06); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; margin-bottom: 18px; opacity: .85; }
.breadcrumb a:hover { color: #9fe0bd; }
.breadcrumb .sep { opacity: .5; }

/* ---------- Home hero ---------- */
.hero { position: relative; background: linear-gradient(90deg, #ffffff 0%, #ffffff 38%, rgba(255,255,255,0) 62%), var(--hero-photo, url('https://images.unsplash.com/photo-1511895426328-dc8714191300?auto=format&fit=crop&w=1600&q=80')) right center / cover no-repeat, #dfe9f1; padding: 90px 0 70px; overflow: hidden; }
.hero-content { max-width: 540px; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(36px, 5vw, 54px); font-weight: 800; margin-bottom: 12px; }
.hero h1 span { color: var(--green); }
.hero .lead { font-size: 20px; font-weight: 600; color: var(--navy); margin-bottom: 18px; }
.hero p { color: var(--text); margin-bottom: 30px; }
.hero .hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hero-feature { display: flex; align-items: flex-start; gap: 10px; min-width: 0; font-size: 12px; }
.hero-feature i { color: var(--green); font-size: 18px; margin-top: 3px; }
.hero-feature strong { display: block; color: var(--navy); font-size: 13px; }
.hero-feature span { color: var(--muted); }
.hero-tagline { position: absolute; top: 40px; right: 6%; z-index: 2; padding: 10px 16px; border: 1px solid rgba(255,255,255,.72); border-radius: 12px; background: rgba(255,255,255,.78); box-shadow: 0 8px 24px rgba(15,42,68,.14); backdrop-filter: blur(5px); font-size: 34px; color: var(--navy); line-height: 1.1; transform: rotate(-4deg); text-align: center; }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.solutions { padding: 90px 0; text-align: center; }
.solutions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 44px 0 36px; }
.solution-card { display: block; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 18px; box-shadow: var(--shadow); transition: all .25s ease; text-align: center; }
.solution-card:hover { transform: translateY(-6px); border-color: var(--green); }
.solution-card i { font-size: 30px; color: var(--green); margin-bottom: 14px; }
.solution-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.solution-card p { font-size: 13px; color: var(--muted); }
.solution-card .more { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--green); }
.info-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.info-card .icon-circle { margin-bottom: 18px; }
.info-card h3 { font-size: 18px; margin-bottom: 8px; }
.info-card p { color: var(--muted); font-size: 14px; }
.icon-circle { width: 60px; height: 60px; border-radius: 50%; background: var(--green-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-circle i { font-size: 24px; color: var(--green); }

/* ---------- Calculators band ---------- */
/* The list column is only as wide as the longest calculator name needs; the live calculator gets the rest. */
.calculators { position: relative; display: grid; grid-template-columns: minmax(250px, 310px) minmax(0, 1fr); grid-template-areas: "head head" "content live"; gap: 32px 28px; align-items: start; max-width: 1180px; margin: 0 auto; padding: 32px 20px; background: var(--page-bg); }
.calc-section-head { grid-area: head; max-width: 760px; margin: 0 auto -4px; text-align: center; }
.calc-section-head .section-title { margin-bottom: 8px; }
.calc-section-head p:last-child { margin: 0; color: var(--muted); }
/* Gold divider centred in the gap between the list and the live calculator. */
.calc-content { position: relative; }
.calc-content::after { content: ''; position: absolute; top: 0; bottom: 0; right: -14px; width: 1px; background: #ac8843; opacity: .72; pointer-events: none; }
.calc-live { grid-area: live; min-width: 0; }
.calc-inline-panel { position: relative; min-width: 0; min-height: 372px; overflow: hidden; border: 1px solid #cfc6b0; border-radius: 12px; background: var(--white); box-shadow: 0 10px 30px rgba(18,43,30,.10); scroll-margin-top: 128px; }
.calc-inline-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.calc-inline-toolbar h3 { margin: 0; font-size: 15px; font-weight: 600; }
.calc-inline-full-page { flex: 0 0 auto; color: var(--navy); font-size: 12px; text-underline-offset: 3px; }
.calc-body { transition: opacity .35s ease; }
.calc-inline-panel.is-loading .calc-body { opacity: 0; }
.calc-inline-panel .calc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.calc-inline-panel .calc-form { min-width: 0; padding: 14px 16px; }
.calc-inline-panel .calc-form h2 { display: none; }
.calc-inline-panel .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.calc-inline-panel .form-group.full { grid-column: 1 / -1; }
.calc-inline-panel .form-group label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 500; }
.calc-inline-panel .range-row { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.calc-inline-panel .range-row input[type=range] { flex: 1; min-width: 0; width: auto; height: 4px; padding: 0; border: 0; box-shadow: none; accent-color: var(--navy); }
.calc-inline-panel .input-prefix, .calc-inline-panel .input-suffix { position: static; display: flex; flex: 0 0 auto; align-items: center; height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); }
.calc-inline-panel .range-row .input-prefix { width: 130px; }
.calc-inline-panel .input-prefix span, .calc-inline-panel .input-suffix span { position: static; color: var(--muted); font-size: 12px; transform: none; }
.calc-inline-panel .calc-form input[type=number], .calc-inline-panel .calc-form .money-input { width: 100%; min-width: 0; height: 100%; padding: 0 4px; border: 0; outline: 0; background: transparent; color: var(--navy); font: 13px 'Poppins', sans-serif; }
.calc-inline-panel .calc-form select { width: 100%; height: 34px; padding: 0 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); color: var(--navy); font: 13px 'Poppins', sans-serif; }
.calc-inline-panel .input-prefix:focus-within, .calc-inline-panel .input-suffix:focus-within, .calc-inline-panel .calc-form select:focus-visible { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(18,43,30,.12); }
.calc-inline-panel .calc-results { display: flex; min-width: 0; flex-direction: column; padding: 16px 18px; background: var(--navy); color: var(--white); }
.calc-inline-panel .calc-results h2 { margin: 0; color: var(--white); font-size: 12px; font-weight: 500; opacity: .8; }
.calc-inline-panel .result-main { margin: 2px 0; color: #6fdba5; font-size: 30px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.calc-inline-panel .result-sub { margin-bottom: 0; color: var(--white); font-size: 10px; line-height: 1.4; opacity: .65; }
.calc-inline-panel .result-rows { display: grid; gap: 0; margin: 12px 0 10px; border-top: 0; }
.calc-inline-panel .result-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 0; color: var(--white); font-size: 12px; }
.calc-inline-panel .result-row span { opacity: .8; }
.calc-inline-panel .result-row strong { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.calc-inline-panel .calc-results .btn-wrap { margin-top: auto; padding-top: 14px; gap: 8px; justify-content: center; }
.calc-inline-panel .calc-results .btn { margin-top: 0; padding: 9px 14px; font-size: 12px; font-weight: 600; }
.calc-inline-panel .alert { margin-top: 8px; font-size: 11px; }
.calc-inline-panel .table-wrap { max-height: 168px; overflow: auto; margin: 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
.calc-inline-panel .sched { grid-column: 1 / -1; border-top: 1px solid var(--border); }
.calc-inline-panel .sched summary { display: flex; justify-content: space-between; padding: 10px 16px; cursor: pointer; font-size: 12px; font-weight: 500; list-style: none; }
.calc-inline-panel .sched summary::after { content: 'Show'; color: var(--muted); }
.calc-inline-panel .sched[open] summary::after { content: 'Hide'; }
.calc-inline-panel .sched summary::-webkit-details-marker { display: none; }
.calc-inline-panel .data { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.calc-inline-panel .data th, .calc-inline-panel .data td { padding: 6px 12px; text-align: right; white-space: nowrap; }
.calc-inline-panel .data th:first-child, .calc-inline-panel .data td:first-child { text-align: left; }
.calc-inline-panel .data thead th { position: sticky; top: 0; background: var(--bg-soft); }
.calc-inline-panel .data tbody tr:nth-child(even) { background: #faf8f3; }
.calc-loader { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(255,255,255,.96); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.calc-inline-panel.is-loading .calc-loader { opacity: 1; visibility: visible; }
.calc-loader p { margin: 0; color: var(--muted); font-size: 12px; }
.calc-spinner { width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--navy); border-radius: 50%; animation: calc-spin .8s linear infinite; }
.calc-bar { width: 140px; height: 4px; overflow: hidden; border-radius: 4px; background: var(--border); }
.calc-bar i { display: block; width: 0; height: 100%; background: var(--navy); }
.is-loading .calc-bar i { animation: calc-fill 2s ease-in-out forwards; }
@keyframes calc-spin { to { transform: rotate(360deg); } }
@keyframes calc-fill { to { width: 100%; } }
.calc-inline-error { padding: 20px; color: #c0392b; font-size: 13px; }
.calc-content { grid-area: content; display: flex; flex-direction: column; justify-content: flex-start; padding: 0; }
.calc-content .eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 11px; }
.calc-content .section-title { margin: 0 0 6px; font-size: 28px; line-height: 1.15; }
.calc-content p { max-width: 44ch; margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.calc-list { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 13px; }
.calc-list li { display: flex; align-items: center; list-style: none; }
.calc-list li::marker { content: none; }
.calc-list li > i { display: none; }
.calc-list a { flex: 1; padding: 9px 12px; border: 1px solid #cfc6b0; border-radius: 8px; background: var(--white); color: var(--navy); transition: border-color .2s, background .2s, color .2s; }
.calc-list a:hover { border-color: var(--navy); }
.calc-list a.current { border-color: var(--navy); background: var(--navy); color: var(--white); }
.calc-content .btn { align-self: center; margin-top: 10px;}
@media (max-width: 900px) {
  .calculators { grid-template-columns: 1fr; grid-template-areas: "head" "content" "live"; }
  .calc-content::after { display: none; }
  .calc-inline-panel .calc-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .calculators { gap: 24px; padding: 24px 16px; }
  .calc-content .btn { align-self: center; }
  .calc-inline-panel .form-grid { grid-template-columns: 1fr; }
  .calc-inline-panel .calc-form, .calc-inline-panel .calc-results { padding: 16px; }
  .calc-inline-toolbar { align-items: flex-start; }
  .calc-inline-toolbar h3 { font-size: 14px; }
  .calc-inline-full-page { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .calc-spinner { animation-duration: 2s; } .calc-body { transition: none; } }

/* ---------- Locations band ---------- */
.locations { position: relative; padding: 90px 0; background: linear-gradient(90deg, #ffffff 0%, #ffffff 35%, rgba(255,255,255,.2) 60%, rgba(255,255,255,0) 100%), url('https://images.unsplash.com/photo-1517090504586-fde19ea6066f?auto=format&fit=crop&w=1800&q=80') center / cover no-repeat, #c9d9e6; }
.locations .container { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.locations-text { max-width: 480px; }
.locations-text p { color: var(--text); margin-bottom: 28px; }
.locations-card { background: var(--white); border-radius: var(--radius); padding: 24px 30px; box-shadow: 0 12px 40px rgba(15,42,68,.18); min-width: 240px; }
.locations-card li { display: flex; align-items: center; gap: 12px; padding: 5px 0; font-size: 14px; color: var(--navy); }
.locations-card li a:hover { color: var(--green); }
.locations-card i { color: var(--green); font-size: 13px; width: 14px; }

/* ---------- Home mortgage rates ---------- */
.rates-section { padding: 76px 0; background: var(--bg-soft); }
.rates-section-head { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.rates-section-head .section-title { margin-bottom: 8px; }
.rates-section-head > p:last-child { color: var(--muted); }
.rates-strip { max-width: 1180px; margin: 0 auto 14px; padding: 6px 18px; border-radius: 12px; background: var(--navy); color: var(--white); overflow-x: auto; }
.rates-strip-table { width: 100%; min-width: 0; border-collapse: collapse; table-layout: fixed; }
.rates-strip-table th, .rates-strip-table td { padding: 14px 14px; border: 0; background: none; text-align: center; vertical-align: middle; }
.rates-strip-table th:first-child { width: 150px; }
.rates-strip-table tbody th, .rates-strip-table tbody td { border-top: 1px solid rgba(255,255,255,.12); }
.rates-strip-table th:not(:first-child), .rates-strip-table td { border-left: 1px solid rgba(255,255,255,.15); }
.rates-strip-table th { color: var(--white); font-size: 14px; font-weight: 600; }
.rates-strip-table thead th:not(:first-child) { font-size: 13px; font-weight: 600; opacity: .8; }
.rates-strip-table td { color: #6fdba5; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rates-strip-table td.is-text { color: rgba(255,255,255,.65); font-size: 13px; font-weight: 500; }
.rates-note { max-width: 1180px; margin: 0 auto 32px; color: var(--muted); font-size: 11px; text-align: center; }
@media (max-width: 600px) {
  .rates-section { padding: 54px 0; }
  .rates-section .container { padding: 0 16px; }
  .rates-strip { padding: 4px 12px; }
  .rates-strip-table th, .rates-strip-table td { padding: 12px 8px; }
  .rates-strip-table th:first-child { width: 76px; }
  .rates-strip-table th { font-size: 12px; }
  .rates-strip-table td { font-size: 17px; }
  .rates-strip-table td.is-text { font-size: 11px; }
}

/* ---------- Why ---------- */
.why { padding: 90px 0; text-align: center; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.why-icon { width: 78px; height: 78px; border-radius: 50%; background: var(--green-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.why-icon i { font-size: 30px; color: var(--green); }
.why-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.why-item p { color: var(--muted); font-size: 14px; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-soft); padding: 90px 0; }
.testimonials .container { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: center; }
.testimonials h2 { font-size: clamp(32px, 4vw, 44px); font-weight: 800; margin-bottom: 16px; }
.testimonials p.desc { color: var(--muted); margin-bottom: 28px; }
.slider { position: relative; }
.slide-card { background: var(--white); border-radius: var(--radius); padding: 40px 70px; box-shadow: var(--shadow); min-height: 230px; }
.slide { display: none; animation: fade .4s ease; }
.slide.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stars { color: var(--gold); margin-bottom: 12px; letter-spacing: 2px; }
.slide blockquote { font-size: 17px; color: var(--navy); margin-bottom: 20px; }
.author { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.author strong { display: block; color: var(--navy); font-size: 15px; }
.author span { color: var(--muted); font-size: 13px; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); color: var(--navy); cursor: pointer; transition: all .2s; }
.slider-btn:hover { background: var(--green); color: var(--white); border-color: var(--green); }
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #c8d1d8; border: none; cursor: pointer; }
.dot.active { background: var(--green); width: 22px; border-radius: 4px; }

/* ---------- News / blog cards ---------- */
.news { padding: 90px 0; }
.news-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; background: var(--white); display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-6px); }
.news-img { height: 200px; background-size: cover; background-position: center; background-color: #d5dee5; }
.news-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 20px; background: var(--green-light); color: var(--green); font-size: 11.5px; font-weight: 600; }
.news-body h3 { font-size: 17px; font-weight: 600; margin: 8px 0 10px; }
.news-body p { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.read-more { font-size: 13px; font-weight: 600; color: var(--navy); margin-top: auto; }
.read-more:hover { color: var(--green); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip { padding: 8px 18px; border-radius: 30px; border: 1px solid var(--border); background: var(--white); font-family: inherit; font-size: 13px; font-weight: 500; color: var(--navy); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.active { background: var(--green); border-color: var(--green); color: var(--white); }
.news-list-item { display: grid; grid-template-columns: 240px 1fr; gap: 26px; border-bottom: 1px solid var(--border); padding: 26px 0; }
.news-list-item .news-img { height: 160px; border-radius: var(--radius); }
.news-list-item h3 { font-size: 20px; margin: 8px 0 10px; }
.news-list-item p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }

/* ---------- CTA ---------- */
.cta { position: relative; background: var(--navy); color: var(--white); padding: 80px 0; overflow: hidden; }
.cta .container { display: flex; justify-content: space-between; align-items: center; gap: 40px; position: relative; z-index: 2; }
.cta h2 { color: var(--white); font-size: clamp(28px, 3.5vw, 38px); font-weight: 700; margin-bottom: 10px; }
.cta p { opacity: .85; margin-bottom: 28px; }
.cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-right { display: flex; align-items: center; justify-content: center; }
.cta-tagline { font-size: 36px; line-height: 1.1; transform: rotate(-6deg); color: var(--white); }
.cta-mark-stage { position: relative; width: 220px; height: 190px; isolation: isolate; }
.cta-mortgage-mark { position: absolute; z-index: 1; width: 132px; height: 165px; left: 44px; top: 12px; overflow: visible; filter: drop-shadow(0 8px 18px rgba(172,136,67,.14)); transition: transform .3s ease, filter .3s ease; }
.cta-mortgage-mark .mark-halo { transform-origin: 60px 74px; transition: transform .35s ease, fill .35s ease; }
.cta-float { position: absolute; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #d4ad55; border: 1px solid rgba(212,173,85,.55); background: rgba(18,43,30,.88); box-shadow: 0 5px 16px rgba(0,0,0,.16); transition: color .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease; animation: cta-float-drift 4.8s ease-in-out infinite; }
.cta-float-rate { left: 0; top: 32px; padding: 7px 10px; border-radius: 20px; font-size: 10px; font-weight: 600; animation-delay: -.8s; }
.cta-float-dollar { right: 4px; top: 24px; width: 30px; height: 30px; border-radius: 50%; font-size: 17px; font-weight: 700; animation-delay: -2s; }
.cta-float-percent { left: 12px; bottom: 22px; width: 27px; height: 27px; border-radius: 50%; font-size: 13px; font-weight: 700; animation-delay: -3.1s; }
.cta-float-bank { right: 0; bottom: 31px; width: 34px; height: 34px; border-radius: 50%; font-size: 13px; animation-delay: -1.4s; }
.cta-mark-stage:hover .cta-mortgage-mark { transform: translateY(-4px) scale(1.045); filter: drop-shadow(0 14px 22px rgba(172,136,67,.32)); }
.cta-mark-stage:hover .mark-halo { transform: scale(1.08); fill: rgba(172,136,67,.2); }
.cta-mark-stage:hover .cta-float { color: #18382a; background: #d4ad55; border-color: #f0d78e; box-shadow: 0 8px 22px rgba(212,173,85,.28); }
.cta-mark-stage:hover .cta-float-rate { transform: translate(-3px,-3px); }
.cta-mark-stage:hover .cta-float-dollar { transform: translate(3px,-4px); }
.cta-mark-stage:hover .cta-float-percent { transform: translate(-3px,3px); }
.cta-mark-stage:hover .cta-float-bank { transform: translate(3px,3px); }
@keyframes cta-float-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@media (prefers-reduced-motion: reduce) {
  .cta-float { animation: none; }
  .cta-mortgage-mark, .cta-float, .cta-mortgage-mark .mark-halo { transition: none; }
}

/* ---------- Content layout ---------- */
.content-layout > *, .split > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.content-layout { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; }
.contact-layout { grid-template-columns: minmax(0, 1fr) 380px; }
.prose h2 { font-size: 28px; margin: 0 0 16px; }
.prose h3 { font-size: 20px; margin: 30px 0 12px; }
.prose p { margin-bottom: 16px; }
.prose ul.check, ul.check { margin: 10px 0 22px; display: grid; gap: 10px; }
ul.check li { display: flex; gap: 12px; align-items: flex-start; }
ul.check li::before { content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--green); margin-top: 1px; }
ul.check.two-col { grid-template-columns: 1fr 1fr; }
.prose blockquote { border-left: 4px solid var(--green); background: var(--green-light); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; color: var(--navy); font-weight: 500; }
.prose ol { padding-left: 22px; margin-bottom: 16px; }
.prose ol li { margin-bottom: 8px; }
.sidebar { display: grid; gap: 24px; position: sticky; top: 100px; }
.side-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.side-box h3 { font-size: 17px; margin-bottom: 14px; }
.side-box.dark { background: var(--navy); color: var(--white); border: none; }
.side-box.dark h3 { color: var(--white); }
.side-box.dark p { opacity: .85; font-size: 14px; margin-bottom: 18px; }
.side-links li { border-bottom: 1px solid var(--border); }
.side-links li:last-child { border-bottom: none; }
.side-links a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 14px; color: var(--navy); }
.side-links a:hover, .side-links a.current { color: var(--green); }
.side-links a i { font-size: 11px; }
.feature-row { display: flex; gap: 18px; align-items: flex-start; }
.feature-row h3 { font-size: 17px; margin-bottom: 4px; }
.feature-row p { color: var(--muted); font-size: 14px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-img { border-radius: 14px; min-height: 400px; background-size: cover; background-position: center; background-color: #d5dee5; box-shadow: var(--shadow); position: relative; }
.split-img .badge-float { position: absolute; left: -24px; bottom: 30px; background: var(--white); border-radius: var(--radius); padding: 18px 22px; box-shadow: 0 12px 40px rgba(15,42,68,.18); display: flex; align-items: center; gap: 14px; }
.badge-float strong { display: block; font-size: 26px; color: var(--green); line-height: 1; }
.badge-float span { font-size: 12.5px; color: var(--muted); }

/* Stats */
.stats { background: var(--navy); color: var(--white); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat strong { display: block; font-size: 40px; font-weight: 800; color: #7fd3a6; line-height: 1.1; }
.stat span { font-size: 14px; opacity: .85; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 22px 24px; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: -16px; left: 22px; background: var(--green); color: var(--white); font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 20px; }
.step h3 { font-size: 16px; margin: 6px 0 8px; }
.step p { font-size: 13.5px; color: var(--muted); }
.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 29px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; display: flex; gap: 26px; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-num { width: 60px; height: 60px; border-radius: 50%; background: var(--green); color: var(--white); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--white); }
.timeline-body { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; flex: 1; box-shadow: var(--shadow); }
.timeline-body h3 { font-size: 18px; margin-bottom: 6px; }
.timeline-body p { color: var(--muted); font-size: 14px; }
.timeline-body .duration { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--green); }

/* Team */
.team-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: center; transition: transform .25s; }
.team-card:hover { transform: translateY(-6px); }
.team-photo { height: 220px; background: linear-gradient(135deg, var(--navy) 0%, #1b4a5e 100%); display: flex; align-items: center; justify-content: center; }
.team-photo span { width: 110px; height: 110px; border-radius: 50%; background: var(--white); color: var(--navy); font-size: 34px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 4px solid #7fd3a6; }
.team-body { padding: 22px; }
.team-body h3 { font-size: 18px; }
.team-body .role { color: var(--green); font-size: 13px; font-weight: 600; margin: 4px 0 10px; }
.team-body p { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.team-socials { display: flex; justify-content: center; gap: 8px; }
.team-socials a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--navy); }
.team-socials a:hover { background: var(--green); border-color: var(--green); color: var(--white); }

/* Accordion */
.accordion { display: grid; gap: 12px; }
.acc-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.acc-btn { width: 100%; text-align: left; background: none; border: none; padding: 18px 22px; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; }
.acc-btn i { transition: transform .25s; color: var(--green); }
.acc-item.open .acc-btn i { transform: rotate(45deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-panel p { padding: 0 22px 20px; color: var(--muted); font-size: 14px; }
.faq-cat { margin-bottom: 44px; }
.faq-cat h2 { font-size: 22px; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.faq-cat h2 i { color: var(--green); }

/* Reviews */
.rating-summary { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); margin-bottom: 44px; }
.rating-big { text-align: center; }
.rating-big strong { display: block; font-size: 56px; font-weight: 800; color: var(--navy); line-height: 1; }
.rating-big .stars { font-size: 20px; margin: 10px 0 4px; }
.rating-big span { color: var(--muted); font-size: 13px; }
.rating-bars { display: grid; gap: 8px; }
.rating-bar { display: grid; grid-template-columns: 50px 1fr 40px; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.rating-bar .bar { height: 8px; background: var(--bg-soft); border-radius: 4px; overflow: hidden; }
.rating-bar .bar span { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.review-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.review-card blockquote { color: var(--navy); font-size: 14.5px; margin-bottom: 20px; flex: 1; }
.review-card .tag { margin-bottom: 12px; align-self: flex-start; }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 36px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea { font-family: inherit; font-size: 14px; padding: 12px 14px; border: 1px solid #cdd6dd; border-radius: 6px; background: var(--white); color: var(--text); transition: border-color .2s, box-shadow .2s; width: 100%; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,122,77,.15); }
.form-group input.invalid, .form-group select.invalid, .form-group textarea.invalid { border-color: #c0392b; }
.field-error { font-size: 12px; color: #c0392b; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }
.input-prefix input { padding-left: 28px; }
.input-suffix { position: relative; }
.input-suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check-row input, .form-group .check-row input { width: auto; flex-shrink: 0; margin-top: 4px; accent-color: var(--green); }
.form-note { font-size: 12px; color: var(--muted); margin-top: 14px; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success i { font-size: 54px; color: var(--green); margin-bottom: 16px; }
.form-success h3 { font-size: 24px; margin-bottom: 8px; }
.form-success p { color: var(--muted); }
form.sent { display: none; }
form.sent + .form-success { display: block; }
button.is-sending, button.is-sending:hover { opacity: .75; cursor: wait; transform: none; }
button:disabled { pointer-events: none; }
.ajax-error { margin: 0 0 12px; }

/* Multi-step apply */
.progress { display: flex; justify-content: space-between; position: relative; margin-bottom: 36px; }
.progress::before { content: ''; position: absolute; top: 18px; left: 0; right: 0; height: 3px; background: var(--border); }
.progress-fill { position: absolute; top: 18px; left: 0; height: 3px; background: var(--green); transition: width .3s; }
.progress-step { position: relative; z-index: 1; text-align: center; font-size: 12px; color: var(--muted); font-weight: 500; flex: 1; }
.progress-step span { width: 38px; height: 38px; border-radius: 50%; background: var(--white); border: 3px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; font-weight: 700; color: var(--muted); transition: all .3s; }
.progress-step.done span, .progress-step.current span { border-color: var(--green); background: var(--green); color: var(--white); }
.progress-step.current { color: var(--navy); font-weight: 600; }
.form-step { display: none; }
.form-step.active { display: block; animation: fade .35s ease; }
.form-step h3 { font-size: 22px; margin-bottom: 6px; }
.form-step > p { color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.option-card { position: relative; }
.option-card input { position: absolute; opacity: 0; }
.option-card label { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; text-align: center; font-size: 14px; font-weight: 600; color: var(--navy); transition: all .2s; height: 100%; }
.option-card label i { font-size: 26px; color: var(--green); }
.option-card input:checked + label { border-color: var(--green); background: var(--green-light); }
.option-card input:focus-visible + label { box-shadow: 0 0 0 3px rgba(31,122,77,.25); }
.step-actions { display: flex; justify-content: space-between; margin-top: 30px; gap: 12px; }
.step-error { color: #c0392b; font-size: 13px; margin-top: 14px; display: none; }

/* Contact */
.contact-cards { display: grid; gap: 18px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.contact-card > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.contact-card h3 { font-size: 16px; margin-bottom: 4px; }
.contact-card p, .contact-card a { color: var(--muted); font-size: 14px; }
.contact-card a:hover { color: var(--green); }
.map-wrap { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); height: 380px; background: #d5dee5; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Calculators */
.calc-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.calc-form { padding: 36px; }
.calc-form h2 { font-size: 22px; margin-bottom: 22px; }
.calc-results { background: var(--navy); color: var(--white); padding: 36px; display: flex; flex-direction: column; }
.calc-results h2 { color: var(--white); font-size: 18px; font-weight: 600; opacity: .9; margin-bottom: 8px; }
.result-main { font-size: clamp(36px, 4.5vw, 48px); font-weight: 800; color: #7fd3a6; line-height: 1.1; margin-bottom: 4px; }
.result-sub { font-size: 13px; opacity: .75; margin-bottom: 26px; }
.result-rows { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.15); }
.result-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 14px; }
.result-row span { opacity: .8; }
.result-row strong { text-align: right; }
.result-note { font-size: 12px; opacity: .7; margin-top: 18px; }
.calc-results .btn { margin-top: auto; align-self: center; }
.calc-results .btn-wrap { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.calc-results .btn-wrap .btn { margin-top: 0; }
/* Buttons on dark green panels: the default green button would blend into the background. */
.calc-results .btn-primary, .side-box.dark .btn-primary, .cta .btn-primary { border-color: #c9a24e; background: #c9a24e; color: #10241a; box-shadow: 0 6px 18px rgba(201,162,78,.28); }
.calc-results .btn-primary:hover, .side-box.dark .btn-primary:hover, .cta .btn-primary:hover { border-color: #dbb65f; background: #dbb65f; color: #10241a; }
.calc-results .btn-outline-light, .side-box.dark .btn-outline-light, .cta .btn-outline-light { border-color: rgba(255,255,255,.75); color: var(--white); }
.calc-results .btn-outline-light:hover, .side-box.dark .btn-outline-light:hover, .cta .btn-outline-light:hover { background: var(--white); color: var(--navy); }

/* "Email me this report" box under the payment and refinance calculators */
.calc-report { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: center; margin-top: 28px; padding: 30px 36px; background: var(--white); border: 1px solid var(--border); border-top: 4px solid #c9a24e; border-radius: 14px; box-shadow: var(--shadow); }
.calc-report-intro { display: flex; gap: 16px; align-items: flex-start; }
.calc-report-icon { display: grid; flex-shrink: 0; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--green-light); color: var(--navy); font-size: 20px; }
.calc-report h2 { font-size: 20px; margin-bottom: 6px; }
.calc-report-intro p { color: var(--muted); font-size: 14px; }
.calc-report-submit { justify-content: flex-end; }
.calc-report-consent { margin-top: 14px; }
.calc-report .form-note { margin-top: 8px; }
.calc-report-status { margin-top: 10px; font-size: 14px; font-weight: 600; }
.calc-report-status:empty { display: none; }
.calc-report-status.is-success { color: #1f7a4d; }
.calc-report-status.is-error { color: #c0392b; }
@media (max-width: 900px) { .calc-report { grid-template-columns: 1fr; gap: 20px; padding: 24px 20px; } }
@media (max-width: 600px) { .calc-report .form-grid { grid-template-columns: 1fr; } }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-top: 16px; background: rgba(245,179,1,.15); color: #ffe39a; display: none; }
.alert.show { display: block; }
.range-row { display: flex; gap: 12px; align-items: center; }
.range-row input[type=range] { flex: 1; accent-color: var(--green); padding: 0; border: none; box-shadow: none; }
.range-row .input-suffix, .range-row .input-prefix { width: 130px; flex-shrink: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); margin-top: 40px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.data th { background: var(--bg-soft); color: var(--navy); text-align: right; padding: 12px 16px; font-weight: 600; font-size: 13px; }
table.data td { padding: 11px 16px; border-top: 1px solid var(--border); text-align: right; font-variant-numeric: tabular-nums; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data tbody tr:hover { background: #fafcfd; }

/* Guides */
.guide-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: all .25s; }
.guide-card:hover { transform: translateY(-6px); border-color: var(--green); }
.guide-card .icon-circle { margin-bottom: 18px; }
.guide-card h3 { font-size: 18px; margin-bottom: 8px; }
.guide-card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; flex: 1; }
.guide-card .meta { font-size: 12px; color: var(--muted); display: flex; gap: 14px; margin-bottom: 14px; }

/* Article */
.article-head { max-width: 820px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; opacity: .85; margin-top: 18px; align-items: center; }
.article-cover { height: 420px; border-radius: 14px; background-size: cover; background-position: center; background-color: #d5dee5; margin-bottom: 40px; box-shadow: var(--shadow); }
.article-cover { display: block; width: 100%; object-fit: cover; }
.author-box { display: flex; gap: 18px; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 40px; background: var(--bg-soft); }
.author-box .avatar { width: 64px; height: 64px; font-size: 20px; }
.author-box strong { color: var(--navy); }
.author-box p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.share { display: flex; gap: 10px; align-items: center; margin-top: 30px; font-size: 14px; font-weight: 600; color: var(--navy); }
/* Same look as the footer social icons (.socials): solid brand-colour circles, white icons. */
.share a { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--white); text-decoration: none; display: flex; align-items: center; justify-content: center; font-size: 15px; transition: transform .2s, box-shadow .2s; }
.share a:hover, .share a:focus-visible { color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
.share a.share-facebook { background: #1877f2; }
.share a.share-linkedin { background: #0a66c2; }
.share a.share-x { background: #000; }
.share a.share-email { background: var(--navy); }
.toc li a { display: block; padding: 7px 0; font-size: 14px; color: var(--muted); border-left: 2px solid var(--border); padding-left: 14px; }
.toc li a:hover { color: var(--green); border-color: var(--green); }
.toc li a.active { color: var(--green); border-color: var(--green); font-weight: 600; }
/* Blog posts: only the "In This Article" box follows the reader down the page (the whole
   sidebar is taller than the screen, so it could never stick). The list scrolls inside it. */
.sidebar.has-toc { position: static; align-self: stretch; align-content: start; }
.toc-box { position: sticky; top: 100px; z-index: 2; display: flex; flex-direction: column; max-height: min(480px, calc(100vh - 130px)); }
.toc-box .toc { overflow-y: auto; overscroll-behavior: contain; margin-right: -12px; padding-right: 12px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.toc-box ~ * { position: relative; z-index: 1; }
.cms-body h2[id] { scroll-margin-top: 142px; }
.newsletter { display: flex; gap: 10px; margin-top: 6px; flex-direction: column; }
.newsletter input { font-family: inherit; font-size: 14px; padding: 12px 14px; border-radius: 6px; border: none; }

/* Neighbourhood pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 9px 18px; border-radius: 30px; background: var(--white); border: 1px solid var(--border); font-size: 14px; color: var(--navy); display: inline-flex; gap: 8px; align-items: center; }
.pill i { color: var(--green); font-size: 12px; }
a.pill:hover { border-color: var(--green); color: var(--green); }
.location-card { display: flex; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: all .25s; }
.location-card:hover { border-color: var(--green); transform: translateY(-4px); }
.location-card h3 { font-size: 17px; }
.location-card p { color: var(--muted); font-size: 13px; }
.location-card .arrow { margin-left: auto; color: var(--green); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination a, .pagination span { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--navy); }
.pagination .current { background: var(--green); border-color: var(--green); color: var(--white); }
.pagination a:hover { border-color: var(--green); color: var(--green); }

/* ---------- Footer ---------- */
footer { background: var(--white); padding: 70px 0 0; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; gap: 30px; padding-bottom: 50px; }
.footer-brand p { font-size: 13px; color: var(--muted); margin: 14px 0 18px; }
.footer-brand .logo-img { height: 90px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.footer-partner { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 18px; }
.footer-partner img { display: block; width: auto; height: 44px; }
.footer-partner span { color: var(--navy); font-size: 12px; font-weight: 600; line-height: 1; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: transform .2s, box-shadow .2s; }
.socials a:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
/* Each network's own brand colour */
.socials .social-facebook { background: #1877f2; }
.socials .social-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.socials .social-linkedin { background: #0a66c2; }
.socials .social-youtube { background: #ff0000; }
.socials .social-x { background: #000; }
footer h4 { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
footer ul li { margin-bottom: 8px; font-size: 13px; color: var(--muted); }
footer ul li a:hover { color: var(--green); }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list i { color: var(--navy); margin-top: 4px; width: 14px; }
.contact-list li > a, .contact-list li > span { min-width: 0; overflow-wrap: anywhere; }
.footer-bottom { background: var(--navy); color: rgba(255,255,255,.8); font-size: 13px; padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { margin-left: 20px; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .nav-links { gap: 16px; font-size: 13.5px; }

}
@media (max-width: 1200px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 108px; left: 0; right: 0; max-height: calc(100vh - 108px); overflow-y: auto; background: var(--white); flex-direction: column; align-items: stretch; padding: 12px 24px 24px; gap: 0; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--border); }
  .nav-item > a { padding: 14px 0; flex: 1; }
  .nav-item.active > a::after { display: none; }
  .nav-item > a .fa-chevron-down { display: none; }
  .dd-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: none; border: none; color: var(--navy); cursor: pointer; }
  .dd-toggle i { transition: transform .2s; font-size: 12px; }
  .nav-item.open .dd-toggle i { transform: rotate(180deg); }
  .dropdown, .dropdown.wide { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-radius: 0; min-width: 0; width: 100%; padding: 0 0 10px 10px; display: none; grid-template-columns: 1fr; }
  .nav-item:hover .dropdown { display: none; }
  .nav-item.open .dropdown, .nav-item.open:hover .dropdown { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero { background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.88) 100%), var(--hero-photo, url('https://images.unsplash.com/photo-1511895426328-dc8714191300?auto=format&fit=crop&w=1200&q=80')) center / cover no-repeat; padding: 60px 0; }
  .hero-tagline { display: none; }
  .solutions-grid, .why-grid, .grid-4, .steps, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .news-grid { grid-template-columns: 1fr 1fr; }
  .calculators { grid-template-columns: 1fr; grid-template-areas: "head" "content" "live"; }
  .calc-live { padding: 24px; }
  .calc-content { padding: 50px 24px; }
  .locations { background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.8)), url('https://images.unsplash.com/photo-1517090504586-fde19ea6066f?auto=format&fit=crop&w=1200&q=80') center / cover; }
  .locations .container, .cta .container { flex-direction: column; align-items: flex-start; }
  .testimonials .container, .split, .content-layout, .calc-wrap, .rating-summary { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .split-img .badge-float { left: 16px; }
  .sidebar { position: static; }
  .toc-box { position: static; max-height: 360px; }
  .section { padding: 70px 0; }
  .steps { row-gap: 34px; }
}
@media (max-width: 760px) {
  .hero-features { grid-template-columns: 1fr; gap: 14px; }
}
/* Phones show a smaller logo, so the header bar shrinks with it. */
@media (max-width: 480px) {
  .nav { height: 72px; }
  .nav-links { top: 72px; max-height: calc(100vh - 72px); }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .nav-actions .btn { display: none; }
  .solutions-grid, .why-grid, .news-grid, .calc-list, .grid-2, .grid-3, .grid-4, .steps, .form-grid, .option-grid, ul.check.two-col { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .slide-card { padding: 34px 24px 60px; }
  .slider-btn { top: auto; bottom: 14px; transform: none; }
  .slider-btn.prev { left: calc(50% - 46px); }
  .slider-btn.next { right: calc(50% - 46px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-right { display: flex; align-self: center; margin-top: -8px; }
  .cta-mark-stage { transform: scale(.9); transform-origin: center top; }
  .footer-bottom a { margin: 0 16px 0 0; }
  .form-card, .calc-form, .calc-results { padding: 24px 18px; }
  .calc-live { padding: 18px 14px; }
  .calc-inline-panel .calc-form, .calc-inline-panel .calc-results { padding: 18px 14px; }
  .news-list-item { grid-template-columns: 1fr; }
  .article-cover { height: 240px; }
  .progress-step { font-size: 0; }
  .range-row { flex-direction: column; align-items: stretch; }
  .range-row .input-suffix, .range-row .input-prefix { width: 100%; }
  .page-hero .hero-icon { display: none; }
}

/* ==========================================================
   Mortgage solution page template
   ========================================================== */
.solution-page [id] { scroll-margin-top: 128px; }
.sol-hero { padding: 56px 0 64px; }
.sol-hero-grid { display: grid; grid-template-columns: 1fr 420px; gap: 50px; align-items: center; }
.sol-eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #9fe0bd; margin-bottom: 10px; }
.sol-hero h1 { font-size: clamp(30px, 4vw, 44px); }
.sol-trust-line { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.sol-trust-line li { display: flex; gap: 8px; align-items: center; padding: 8px 14px; border: 1px solid #AC8843; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--white); font-size: 13.5px; font-weight: 600; }
.sol-trust-line i { color: #d8b66f; font-size: 15px; }

/* Quiz */
.quiz-card { background: var(--white); color: var(--text); border-radius: 14px; padding: 26px; box-shadow: 0 20px 50px rgba(0,0,0,.25); position: relative; }
.quiz-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.quiz-title { font-weight: 700; color: var(--navy); font-size: 17px; }
.quiz-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.quiz-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 18px; }
.quiz-bar span { display: block; height: 100%; width: 100%; background: var(--green); transition: width .3s; }
.quiz-step { border: none; margin: 0 0 18px; padding: 0; min-width: 0; }
.quiz-step legend { font-weight: 600; color: var(--navy); font-size: 15px; margin-bottom: 12px; padding: 0; }
.quiz-step .form-group { margin-bottom: 12px; }
.quiz-enhanced .quiz-step { display: none; margin: 0; }
.quiz-enhanced .quiz-step.active { display: block; animation: fade .3s ease; }
.quiz-options { display: grid; gap: 8px; }
.quiz-option { position: relative; display: block; cursor: pointer; }
.quiz-option input { position: absolute; opacity: 0; }
.quiz-option span { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 2px solid var(--border); border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--navy); transition: all .15s; }
.quiz-option span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #b9c4cc; flex-shrink: 0; transition: all .15s; }
.quiz-option:hover span { border-color: #9fcbb3; }
.quiz-option input:checked + span { border-color: var(--green); background: var(--green-light); }
.quiz-option input:checked + span::before { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3px var(--white); }
.quiz-option input:focus-visible + span { box-shadow: 0 0 0 3px rgba(31,122,77,.25); }
.quiz-note { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }
.quiz-back { background: none; border: none; color: var(--muted); font: 500 13px 'Poppins', sans-serif; cursor: pointer; margin-top: 14px; display: inline-flex; gap: 6px; align-items: center; }
.quiz-back:hover { color: var(--navy); }
.quiz-back[hidden] { display: none; }

/* Layout with sticky "On this page" */
.sol-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 50px; align-items: start; padding-top: 50px; padding-bottom: 80px; }
.sol-main { min-width: 0; display: flex; flex-direction: column; gap: 64px; }
.sol-toc { position: sticky; top: 100px; }
.sol-toc-inner { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--white); box-shadow: var(--shadow); }
.sol-toc-title { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.sol-toc .toc { margin-bottom: 18px; }
.sol-toc .toc li a { padding: 6px 0 6px 14px; font-size: 13.5px; }
.sol-toc .toc li a.active { color: var(--green); border-color: var(--green); font-weight: 600; }
.sol-toc-call { display: flex; justify-content: center; gap: 8px; align-items: center; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--navy); }
.sol-toc-call:hover { color: var(--green); }
.sol-h2 { font-size: clamp(24px, 2.8vw, 30px); font-weight: 700; margin-bottom: 12px; }
.sol-h3 { font-size: 20px; margin-bottom: 18px; text-align: center; }
.sol-intro { color: var(--muted); margin-bottom: 26px; max-width: 720px; }

/* Example box */
.example-box { margin-top: 26px; border: 2px solid var(--green); border-radius: 12px; overflow: hidden; background: var(--white); }
.example-title { background: var(--green-light); color: var(--green-dark); font-weight: 600; padding: 14px 20px; display: flex; gap: 10px; align-items: center; }
.example-box dl { padding: 6px 20px; }
.example-row { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.example-row:last-child { border-bottom: none; }
.example-row dd { font-weight: 600; color: var(--navy); text-align: right; font-variant-numeric: tabular-nums; }
.example-row.is-total dt, .example-row.is-total dd { color: var(--green); font-weight: 700; font-size: 16px; }
.example-note { font-size: 12px; color: var(--muted); padding: 0 20px 14px; }

/* Process: numbered steps joined by a line */
.sol-process { list-style: none; padding: 0; margin: 0; }
.sol-process li { position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding-bottom: 26px; }
.sol-process li:last-child { padding-bottom: 0; }
.sol-process li:not(:last-child)::before { content: ""; position: absolute; top: 44px; bottom: 0; left: 21px; width: 2px; background: var(--border); }
.sol-process-num { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--white); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.sol-process li:last-child .sol-process-num { background: var(--white); color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.sol-process h3 { font-size: 17px; margin: 10px 0 6px; }
.sol-process p { font-size: 14.5px; color: var(--muted); margin: 0; max-width: 62ch; }

/* Calculator & numbers */
.savings-calc .calc-field { margin-bottom: 20px; }
.calc-link { margin-top: 24px; text-align: center; }

/* Advisor */
.advisor { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; background: var(--bg-soft); border-radius: 14px; padding: 32px; }
.advisor-photo { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.advisor-photo img { width: 100%; height: 100%; object-fit: cover; }
.advisor-photo span { width: 110px; height: 110px; border-radius: 50%; background: var(--white); color: var(--navy); font-size: 34px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 4px solid #7fd3a6; }
.advisor-role { color: var(--green); font-weight: 600; font-size: 14px; margin: -6px 0 14px; }
.credentials { display: grid; gap: 8px; margin-top: 6px; }
.credentials li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--navy); }
.credentials i { color: var(--gold); margin-top: 3px; }

/* Required documents */
.doc-grid { gap: 20px; }
.doc-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.doc-card h3 { font-size: 16px; margin-bottom: 12px; }
.doc-card ul.check { display: grid; gap: 8px; font-size: 14px; }
.doc-card:only-child { grid-column: 1 / -1; }

/* Disclaimers */
.sol-disclaimer { border-top: 1px solid var(--border); padding-top: 26px; font-size: 12.5px; color: var(--muted); }
.sol-disclaimer .sol-h3 { font-size: 15px; margin-bottom: 10px; text-align: left; }
.sol-disclaimer p { margin-bottom: 10px; }
.sol-disclaimer p:last-child { margin-bottom: 0; }

/* Situations */
.situation-grid { gap: 20px; }
.situation-card { padding: 24px; }
.situation-card .icon-circle { width: 50px; height: 50px; margin-bottom: 14px; }
.situation-card .icon-circle i { font-size: 20px; }
.situation-card h3 { font-size: 16px; }

/* Sticky bottom bar */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--white); border-top: 1px solid var(--border); box-shadow: 0 -6px 24px rgba(15,42,68,.12); padding: 10px 0; transform: translateY(110%); transition: transform .3s ease; }
.sticky-cta.show { transform: none; }
.sticky-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.sticky-cta-text { font-weight: 600; color: var(--navy); font-size: 14px; }
.sticky-cta-buttons { display: flex; gap: 10px; margin-left: auto; }
.sticky-cta .btn { padding: 10px 18px; }
body.has-sticky-cta footer .footer-bottom { padding-bottom: 84px; }

/* Main hero button stands out against the dark hero */
.sol-hero .hero-buttons .btn-primary { background: #c9a24e; color: #10241a; font-weight: 700; box-shadow: 0 8px 22px rgba(201,162,78,.35); }
.sol-hero .hero-buttons .btn-primary:hover { background: #dbb65f; color: #10241a; }

/* Enquiry popup (reuses the homepage form) */
.enquiry-dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 14px; background: #fff; overflow: auto; box-shadow: 0 28px 70px rgba(0,0,0,.35); }
.enquiry-dialog::backdrop { background: rgba(10,25,17,.65); }
html:has(.enquiry-dialog[open]) { overflow: hidden; }
.enquiry-dialog .quick-enquiry-card { border-bottom: 0; }
.enquiry-dialog .quick-enquiry-body { position: relative; padding: 28px; }
.enquiry-dialog h2 { margin: 0 32px 4px 0; color: #10241a; font-size: 24px; }
.enquiry-sub { margin-bottom: 18px; color: #53665b; font-size: 14px; }
.enquiry-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--bg-soft); color: #10241a; font-size: 16px; cursor: pointer; }
.enquiry-close:hover { background: #c9a24e; }
.enquiry-dialog .quick-enquiry-card form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.enquiry-dialog .quick-enquiry-card .form-group:nth-of-type(4), .enquiry-dialog .quick-enquiry-card .form-group.is-message { grid-column: 1 / -1; }
.enquiry-dialog .quick-enquiry-card .form-group textarea { height: 90px; min-height: 90px; resize: vertical; }
.enquiry-dialog .quick-enquiry-card .quick-enquiry-submit { order: 1; grid-column: 1 / -1; width: 100%; margin: 0; }
@media (max-width: 640px) {
  .enquiry-dialog .quick-enquiry-body { padding: 22px 16px; }
  .enquiry-dialog .quick-enquiry-card form { grid-template-columns: 1fr; }
}

/* Thank-you page */
.thank-you-card { max-width: 620px; margin: 0 auto; text-align: center; padding: 50px 36px; }
.thank-you-card > i { font-size: 60px; color: var(--green); margin-bottom: 18px; }
.thank-you-card h1 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.thank-you-card p { color: var(--muted); margin-bottom: 26px; }
.thank-you-card .hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (max-width: 1100px) {
  .sol-hero-grid { grid-template-columns: 1fr 380px; gap: 32px; }
  .sol-layout { grid-template-columns: 1fr; }
  .sol-toc { display: none; }
}
@media (max-width: 860px) {
  .sol-hero-grid { grid-template-columns: 1fr; }
  .quiz-card { max-width: 520px; }
  .advisor { grid-template-columns: 1fr; }
  .advisor-photo { max-width: 240px; }
  .sol-process li { grid-template-columns: 36px 1fr; column-gap: 14px; padding-bottom: 22px; }
  .sol-process li:not(:last-child)::before { top: 36px; left: 17px; }
  .sol-process-num { width: 36px; height: 36px; font-size: 15px; }
  .sol-process h3 { font-size: 16px; margin-top: 6px; }
}
@media (max-width: 600px) {
  .sol-hero { padding: 40px 0 44px; }
  .quiz-card { padding: 20px 16px; }
  .sol-main { gap: 50px; }
  .advisor { padding: 22px 18px; }
  .sticky-cta-text { display: none; }
  .sticky-cta-buttons { width: 100%; }
  .sticky-cta-buttons .btn { flex: 1; justify-content: center; padding: 10px 8px; }
  .example-row { flex-direction: column; gap: 2px; }
  .example-row dd { text-align: left; }
}

/* ---------- CMS content (admin-managed pages and blog posts) ---------- */
/* The banner is a real <img> (so it can have alt text); the dark gradient over it is drawn by ::after. */
.page-hero-banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-banner::before { z-index: 1; }
.page-hero.has-banner::after { background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(110deg, rgba(10,31,51,.94) 0%, rgba(15,42,68,.82) 55%, rgba(27,74,94,.6) 100%); background-size: 22px 22px, 100% 100%; }
.cms-centered { max-width: 860px; }
.cms-intro + .section { padding-top: 0; }
.cms-body > :last-child { margin-bottom: 0; }
.cms-body h4 { font-size: 17px; margin: 24px 0 10px; }
.cms-body ul:not([class]) { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.cms-body ul:not([class]) li { margin-bottom: 6px; }
.cms-body a:not(.btn):not(.pill):not([class^="share-"]) { color: var(--green); text-decoration: underline; }
.cms-body .btn { margin-top: 6px; }
.cms-body hr { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }
.cms-body blockquote p:last-child { margin-bottom: 0; }
.cms-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.cms-body figure { margin: 26px 0; }
.cms-body figure.image { display: table; clear: both; text-align: center; margin-left: auto; margin-right: auto; }
.cms-body figure.image img { display: block; margin: 0 auto; }
.cms-body figure.image.image_resized { max-width: 100%; display: block; box-sizing: border-box; }
.cms-body figure.image.image_resized img { width: 100%; }
.cms-body figcaption { display: table-caption; caption-side: bottom; padding: 8px 4px 0; font-size: 13px; color: var(--muted); text-align: center; }
.cms-body .image-style-side, .cms-body .image-style-align-right { float: right; margin: 6px 0 16px 26px; max-width: 50%; }
.cms-body .image-style-align-left { float: left; margin: 6px 26px 16px 0; max-width: 50%; }
.cms-body .image-style-block-align-left { margin-left: 0; }
.cms-body .image-style-block-align-right { margin-right: 0; }
.cms-body .image-inline { display: inline-flex; max-width: 100%; }
.cms-body figure.table { display: block; overflow-x: auto; margin: 24px 0; }
.cms-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cms-body th, .cms-body td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; vertical-align: top; }
.cms-body thead th, .cms-body th { background: var(--bg-soft); color: var(--navy); font-weight: 600; }
.cms-body figure.media { display: block; }
.cms-body figure.media iframe, .cms-body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.cms-body .text-tiny { font-size: .7em; } .cms-body .text-small { font-size: .85em; } .cms-body .text-big { font-size: 1.4em; } .cms-body .text-huge { font-size: 1.8em; }
.cms-body::after { content: ''; display: table; clear: both; }
ul.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 26px; }
ul.pill-list li { padding: 9px 18px; border-radius: 30px; background: var(--white); border: 1px solid var(--border); font-size: 14px; color: var(--navy); display: inline-flex; gap: 8px; align-items: center; }
ul.pill-list li::before { content: '\f3c5'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--green); font-size: 12px; }
.cms-body ul.pill-list li a { color: inherit; text-decoration: none; }
.cms-centered ul.pill-list { justify-content: center; }
.cms-centered > h2, .cms-centered > p:first-of-type { text-align: center; }
.news-meta a.tag:hover { background: var(--green); color: var(--white); }
.article-meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.draft-note { margin-top: 16px; display: inline-flex; gap: 8px; align-items: center; background: rgba(255,210,122,.18); border: 1px solid rgba(255,210,122,.5); padding: 8px 14px; border-radius: 8px; font-size: 13px; }
.author-box .avatar-img { object-fit: cover; padding: 0; background: var(--bg-soft); }
.author-box strong a { color: inherit; }
.author-box .author-role { display: block; font-size: 13px; color: var(--green); font-weight: 600; margin-top: 2px; }
.author-links { display: flex; gap: 8px; margin-top: 10px; }
.author-links a { width: 32px; height: 32px; border-radius: 50%; background: var(--white); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--navy); font-size: 13px; }
.author-links a:hover { background: var(--green); border-color: var(--green); color: var(--white); }
/* Inside a blog post the article's green link colour (.cms-body a) would win, hiding the icon on the green hover circle. */
.cms-body .author-links a:not(.btn):not(.pill) { color: var(--navy); text-decoration: none; }
.cms-body .author-links a:not(.btn):not(.pill):hover, .cms-body .author-links a:not(.btn):not(.pill):focus-visible { color: var(--white); }
@media (max-width: 760px) {
  .cms-body .image-style-side, .cms-body .image-style-align-right, .cms-body .image-style-align-left { float: none; margin: 20px auto; max-width: 100%; }
}
.team-photo img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid #7fd3a6; background: var(--white); }
.form-alert { display: flex; gap: 10px; align-items: center; background: #fbeceb; color: #c0392b; border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; font-weight: 500; font-size: 14px; }

/* Home hero: a bold, full-width brand moment */
.home-hero { min-height: 100vh; display: grid; grid-template-columns: 1fr; align-items: stretch; padding: 0 24px; background: radial-gradient(ellipse at 50% 38%, #21432f 0%, #142b1f 58%, #0e2017 100%); }
.hero-interaction-canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.home-hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(650px, 1.2fr); gap: 0; align-items: center; width: 100%; max-width: none; margin: 0 auto; }
.home-hero-art { position: relative; min-height: calc(100vh - 36px); overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.home-hero .container { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); align-items: center; gap: clamp(32px, 6vw, 90px); }
.home-hero .hero-content { max-width: 760px; }
.home-hero h1 { color: var(--white); font-size: clamp(40px, 5.5vw, 64px); letter-spacing: -.04em; }
.home-hero h1 span { color: #e9f0ea; }
.home-hero .lead, .home-hero p { color: rgba(255,255,255,.84); }
.home-hero .hero-buttons { margin-bottom: 40px; }
.home-hero .btn-primary,
.home-hero .btn-outline { background: var(--white); color: #AC8843; border-color: var(--white); }
.home-hero .btn-primary:hover,
.home-hero .btn-outline:hover { background: var(--green-light); color: #AC8843; border-color: var(--green-light); }
.home-hero .hero-feature i { color: #e9f0ea; }
.home-hero .hero-feature strong { color: var(--white); }
.home-hero .hero-feature span { color: rgba(255,255,255,.72); }
.home-hero .hero-tagline { display: none; }
.home-hero-side { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 18px; padding: 60px 64px 60px 0; }
.mortgage-motion { position: absolute; z-index: -1; inset: -42px -35px; pointer-events: none; background: radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(172,136,67,.14), transparent 42%); transition: background-position .12s ease-out; }
.mortgage-motion-home { position: absolute; right: 18%; top: 0; color: rgba(172,136,67,.22); font-size: 100px; animation: mortgage-float 5s ease-in-out infinite; transition: color .25s ease, filter .25s ease; }
.mortgage-motion-coin { position: absolute; right: 4%; top: 35%; width: 50px; height: 50px; display: grid; place-items: center; border: 2px solid rgba(172,136,67,.5); border-radius: 50%; color: #AC8843; font-size: 20px; animation: mortgage-float 4s ease-in-out -1.5s infinite; transition: box-shadow .25s ease, border-color .25s ease; }
@keyframes mortgage-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.quick-enquiry-card { position: relative; width: 100%; max-width: 430px; padding: 28px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: #fbfcfb; color: #10241a; box-shadow: 0 20px 50px rgba(0,0,0,.35); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.home-hero-video-wrap { grid-column: 1; grid-row: 1; width: 100%; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; background: #10241a; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.quick-enquiry-card { grid-column: 2; grid-row: 1; }
.home-hero-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.home-hero-side:hover .quick-enquiry-card { transform: translateY(-4px); border-color: rgba(172,136,67,.48); box-shadow: 0 28px 70px rgba(0,0,0,.28); }
.home-hero-side:hover .mortgage-motion-home { color: rgba(172,136,67,.38); filter: drop-shadow(0 8px 18px rgba(172,136,67,.18)); }
.home-hero-side:hover .mortgage-motion-coin { border-color: #AC8843; box-shadow: 0 0 24px rgba(172,136,67,.24); }
.quick-enquiry-card h2 { color: #10241a; font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.quick-enquiry-card > p { color: #6b7a70; font-size: 13px; margin-bottom: 18px; }
.quick-enquiry-fields { display: block; }
.quick-enquiry-card .form-group { gap: 0; margin-bottom: 10px; }
.quick-enquiry-card .form-group label { font-size: 12px; margin: 12px 0 6px; color: #10241a; }
.quick-enquiry-card .form-group input, .quick-enquiry-card .form-group textarea { width: 100%; height: 40px; padding: 12px; border: 1px solid #d5ddd7; border-radius: 6px; background: #fff; font-size: 14px; }
.quick-enquiry-card .form-group textarea { height: 76px; min-height: 76px; resize: vertical; }
.quick-enquiry-consent { display: flex; align-items: center; gap: 8px; color: #6b7a70; font-size: 12px; line-height: 1.4; margin: 14px 0; }
.quick-enquiry-consent input { flex: 0 0 auto; width: auto; margin: 0; accent-color: var(--green); }
.quick-enquiry-card .btn { margin-top: 0; padding: 14px 24px; background: #fff; color: #b08a3e; border: 0; }
.quick-enquiry-success { text-align: center; padding: 28px 8px; }
.quick-enquiry-success > i { color: var(--green); font-size: 38px; margin-bottom: 12px; }
.quick-enquiry-success p { color: var(--muted); }
.site-cursor-canvas { position: fixed; inset: 0; z-index: 9990; width: 100%; height: 100%; pointer-events: none; }
.site-cursor-tag, .site-cursor-home { position: fixed; left: 0; top: 0; z-index: 9992; pointer-events: none; opacity: 0; will-change: transform; }
.site-cursor-tag { padding: 5px 11px; border-radius: 99px; background: #c9a24e; color: #142b1f; font-size: 12px; font-weight: 600; white-space: nowrap; transition: opacity .2s ease; }
.site-cursor-home { width: 42px; height: 42px; display: block; opacity: .96; filter: drop-shadow(0 2px 5px rgba(201,162,78,.38)); transition: opacity .2s ease, filter .2s ease; }
.site-cursor-home svg { width: 100%; height: 100%; overflow: visible; transition: transform .2s ease; }
.site-cursor-home .cursor-arrow { fill: #c9a24e; stroke: #72551e; stroke-width: .7; stroke-linejoin: round; }
.site-cursor-home .cursor-chain, .site-cursor-home .cursor-roof, .site-cursor-home .cursor-door { fill: none; stroke: #c9a24e; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.site-cursor-home .cursor-roof { stroke-width: 1.5; }
.site-cursor-home .cursor-house { fill: rgba(201,162,78,.22); stroke: #c9a24e; stroke-width: 1.2; stroke-linejoin: round; }
.site-cursor-home .cursor-chain-pin { fill: #72551e; }
.site-cursor-home .cursor-key-hole { fill: #c9a24e; }
.site-cursor-home.is-button { filter: drop-shadow(0 2px 8px rgba(201,162,78,.65)); }
.site-cursor-home.is-button svg { transform: scale(1.14); }
.site-cursor-out { opacity: 0 !important; }
.site-cursor-hidden { opacity: 0 !important; }
@media (hover: hover) and (pointer: fine) { body.site-cursor-active, body.site-cursor-active a, body.site-cursor-active button, body.site-cursor-active [role="button"] { cursor: none; } body.site-cursor-active input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]), body.site-cursor-active textarea { cursor: text; } body.site-cursor-active input[type="checkbox"], body.site-cursor-active input[type="radio"], body.site-cursor-active input[type="range"], body.site-cursor-active select { cursor: pointer; } }
@media (prefers-reduced-motion: reduce) { .mortgage-motion-home, .mortgage-motion-coin { animation: none; } .quick-enquiry-card { transition: none; } }
@media (prefers-reduced-motion: reduce), (hover: none) { .site-cursor-canvas, .site-cursor-tag, .site-cursor-home { display: none; } }
@media (max-width: 900px) {
  .home-hero { min-height: 0; padding: 16px 20px 32px; }
  .home-hero-layout { grid-template-columns: 1fr; gap: 0; }
  .home-hero-art { min-height: min(78vh, 720px); }
  .home-hero-side { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding: 20px 12px 32px; }
}
@media (max-width: 600px) {
  .home-hero { padding: 10px 12px 24px; }
  .home-hero-art { min-height: 680px; }
  .home-hero-side { grid-template-columns: 1fr; }
  .home-hero-video-wrap { grid-column: 1; grid-row: 1; }
  .quick-enquiry-card { grid-column: 1; grid-row: 2; }
  .quick-enquiry-card { max-width: none; }
  .home-hero-video-wrap { max-width: none; margin: 0; }
  .quick-enquiry-card { padding: 22px 18px; }
}

/* Floating website FAQ assistant */
.chatbot { position: fixed; right: 24px; bottom: 24px; z-index: 120; font-family: inherit; }
.chatbot-toggle { display: flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 14px 20px; background: var(--navy); color: var(--white); box-shadow: 0 8px 28px rgba(18,43,30,.25); font: 600 14px 'Poppins', sans-serif; cursor: pointer; }
.chatbot-toggle i { font-size: 18px; }
.chatbot-toggle:hover { background: #1c3d2b; }
.chatbot-panel { position: absolute; right: 0; bottom: 68px; width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100vh - 120px)); background: var(--white); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 18px 60px rgba(18,43,30,.22); overflow: hidden; display: flex; flex-direction: column; }
.chatbot-panel[hidden] { display: none; }
.chatbot-panel .chatbot-header { position: static; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; background: var(--navy); color: var(--white); }
.chatbot-header strong, .chatbot-header span { display: block; }
.chatbot-header strong { font-size: 15px; }
.chatbot-header span { margin-top: 3px; color: rgba(255,255,255,.72); font-size: 11px; }
.chatbot-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--white); font-size: 16px; cursor: pointer; }
.chatbot-messages { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; overflow-y: auto; background: #fdfcf8; }
.chatbot-message { max-width: 90%; padding: 11px 14px; border-radius: 13px; font-size: 13px; line-height: 1.55; white-space: pre-line; }
.chatbot-message.bot { background: var(--white); border: 1px solid var(--border); color: var(--text); border-top-left-radius: 4px; }
.chatbot-message.user { align-self: flex-end; background: var(--navy); color: var(--white); border-top-right-radius: 4px; }
.chatbot-links { display: grid; gap: 6px; max-width: 90%; }
.chatbot-links a { color: var(--navy); font-size: 12px; text-decoration: underline; }
.chatbot-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); }
.chatbot-form textarea { flex: 1; resize: none; max-height: 100px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; color: var(--text); font: 13px 'Poppins', sans-serif; outline-color: var(--navy); }
.chatbot-form button { width: 40px; height: 40px; flex: 0 0 40px; border: 0; border-radius: 10px; background: var(--navy); color: var(--white); cursor: pointer; }
.chatbot-form button:disabled { opacity: .5; cursor: wait; }
.chatbot-contact { display: flex; justify-content: space-between; align-items: center; padding: 0 18px 14px; color: var(--navy); font-size: 12px; font-weight: 600; }
.chatbot .chatbot-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; }
@media (max-width: 480px) {
  .chatbot { right: 14px; bottom: 14px; }
  .chatbot-panel { right: -4px; bottom: 62px; height: min(560px, calc(100vh - 96px)); }
}

/* WhatsApp and call tabs: fixed to the right edge, vertically centred, below the header and the open chat panel. */
.contact-tabs { position: fixed; right: 0; top: 50%; z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; transform: translateY(-50%); }
.contact-tab { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 12px 0 0 12px; color: var(--white); font-size: 28px; box-shadow: 0 8px 28px rgba(18,43,30,.25); transition: width .2s ease, background .2s ease; }
.contact-tab:hover, .contact-tab:focus-visible { width: 62px; color: var(--white); }
.contact-tab-whatsapp { background: #25d366; }
.contact-tab-whatsapp:hover, .contact-tab-whatsapp:focus-visible { background: #1ebe5b; }
.contact-tab-call { background: var(--navy); font-size: 22px; }
.contact-tab-call:hover, .contact-tab-call:focus-visible { background: #1c3d2b; }
.contact-tab-enquiry { background: #c9a24e; font-size: 22px; }
.contact-tab-enquiry, .contact-tab-enquiry:hover, .contact-tab-enquiry:focus-visible { color: #10241a; }
.contact-tab-enquiry:hover, .contact-tab-enquiry:focus-visible { background: #dbb65f; }
.contact-tabs-links { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.contact-tabs-toggle, .contact-tabs-prompt { display: none; }
/* Phones: one message icon. The prompt appears after 8 seconds; tapping either slides the two tabs in below. */
@media (max-width: 760px) {
  .contact-tab { width: 46px; height: 46px; font-size: 24px; }
  .contact-tab-call, .contact-tab-enquiry { font-size: 19px; }
  .contact-tab:hover, .contact-tab:focus-visible { width: 46px; }
  .contact-tabs-toggle { display: flex; padding: 0; border: 0; background: var(--navy); font-size: 22px; cursor: pointer; }
  .contact-tabs-toggle:hover, .contact-tabs-toggle:focus-visible { background: #1c3d2b; }
  .contact-tabs-prompt.show { display: block; position: absolute; right: calc(100% + 10px); top: 50%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); color: var(--navy); font: 600 13px 'Poppins', sans-serif; white-space: nowrap; cursor: pointer; box-shadow: 0 8px 28px rgba(18,43,30,.25); transform: translateY(-50%); animation: contact-prompt-pop 5s ease both; }
  .contact-tabs-links { position: absolute; right: 0; top: calc(100% + 8px); visibility: hidden; transition: visibility 0s .4s; }
  .contact-tabs-links .contact-tab { opacity: 0; transform: translateX(100%); transition: transform .3s ease, opacity .3s ease, background .2s ease; }
  .contact-tabs-links .contact-tab:nth-child(2) { transition-delay: .1s; }
  .contact-tabs-links .contact-tab:nth-child(3) { transition-delay: .2s; }
  .contact-tabs.open .contact-tabs-links { visibility: visible; transition-delay: 0s; }
  .contact-tabs.open .contact-tabs-links .contact-tab { opacity: 1; transform: none; }
}
@keyframes contact-prompt-pop {
  0%, 80%, 100% { opacity: 0; transform: translate(12px, -50%); }
  8%, 72% { opacity: 1; transform: translate(0, -50%); }
}

/* Keep public site button labels and icons in the brand gold. */
.btn, .btn-primary, .btn-outline, .btn-outline-light { color: #AC8843; }

/* Homepage hero: the intro video spans the full width edge to edge. When its natural height is taller
   than the screen it is capped at the screen height and trimmed equally top and bottom. --video-w/h start
   at 16:9 (the intro video) and are replaced with the real size once the video loads. Our own play/sound
   buttons sit inside the visible area, so trimming never hides them. */
.home-hero { display: block; min-height: 0; padding: 0; overflow: hidden; }
.home-hero-layout, .home-hero-art, .home-hero-vimeo-list { display: block; width: 100%; max-width: none; min-height: 0; height: auto; margin: 0; padding: 0; overflow: visible; }
.home-hero-vimeo { --video-w: 16; --video-h: 9; position: relative; width: 100%; height: min(calc(100vw * var(--video-h) / var(--video-w)), 100vh); height: min(calc(100vw * var(--video-h) / var(--video-w)), 100svh); overflow: hidden; background: #0e2017; }
.home-hero-vimeo iframe, .home-hero-vimeo video, .hero-video-poster { position: absolute; top: 50%; left: 0; display: block; width: 100%; height: calc(100vw * var(--video-h) / var(--video-w)); border: 0; transform: translateY(-50%); pointer-events: none; }
.home-hero-vimeo video, .hero-video-poster { object-fit: cover; }
.home-hero-vimeo video { opacity: 0; transition: opacity .6s ease; }
.home-hero-vimeo.is-playing video { opacity: 1; }
/* Once the video has started, the cover image is removed from underneath it, waiting for the .6s
   fade-in to finish first. Otherwise it shows through whenever the browser is a moment late
   redrawing the video, e.g. when scrolling quickly back up to the top. */
.home-hero-vimeo.is-playing .hero-video-poster { visibility: hidden; transition: visibility 0s .6s; }
.hero-video-controls { position: absolute; left: clamp(12px, 2.5vw, 28px); bottom: clamp(12px, 2.5vw, 28px); z-index: 2; display: flex; gap: 10px; }
.hero-video-controls[hidden] { display: none; }
.hero-video-btn { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(201,162,78,.75); border-radius: 50%; background: rgba(14,32,23,.72); color: #f3e6c4; font-size: 16px; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s ease, color .2s ease, transform .2s ease; }
.hero-video-btn:hover { background: #c9a24e; color: #10241a; transform: scale(1.06); }
.hero-video-btn:focus-visible { outline: 2px solid #c9a24e; outline-offset: 3px; }

/* Edge-to-edge white form band directly under the video. */
.home-hero-side { position: relative; display: block; width: 100%; margin: 0; padding: 0; }
.quick-enquiry-card,
.home-hero-side:hover .quick-enquiry-card { display: block; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-top: 3px solid #c9a24e; border-radius: 0; outline: 0; background: #fff; color: #10241a; box-shadow: none; transform: none; }

.quick-enquiry-body { min-width: 0; padding: clamp(22px, 2.5vw, 32px) clamp(16px, 4vw, 64px); }
/* One row on desktop: name, email, phone, message, send. Consent sits underneath. */
.quick-enquiry-card form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr) auto; align-items: start; gap: 14px 16px; }
.quick-enquiry-card .form-group { display: block; min-width: 0; margin: 0; }
.quick-enquiry-card .form-group label { display: block; margin: 0 0 6px; color: #183d2b; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.quick-enquiry-card .form-group label .optional { color: #8a978f; font-weight: 400; }
.quick-enquiry-card .form-group input,
.quick-enquiry-card .form-group textarea { display: block; width: 100%; height: 46px; padding: 10px 14px; box-sizing: border-box; border: 1px solid #d6dccf; border-radius: 8px; box-shadow: none; background: #fafbf8; color: #10241a; font: inherit; font-size: 14px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.quick-enquiry-card .form-group textarea { height: 46px; min-height: 46px; padding-top: 12px; line-height: 1.4; resize: none; }
.quick-enquiry-card .form-group input:focus,
.quick-enquiry-card .form-group textarea:focus { outline: none; border-color: #c9a24e; background: #fff; box-shadow: 0 0 0 3px rgba(201,162,78,.22); }
.quick-enquiry-card .field-error { display: block; margin-top: 5px; }

/* Both checkboxes on one row; they wrap on narrow screens and any error goes underneath. */
.quick-enquiry-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 32px; }
.quick-enquiry-foot .field-error { order: 1; flex-basis: 100%; margin-top: 0; }
.quick-enquiry-consent { display: flex; align-items: flex-start; gap: 9px; margin: 0; color: #53665b; font-size: 12.5px; line-height: 1.5; cursor: pointer; }
.quick-enquiry-consent input { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: #1d4a34; }
.quick-enquiry-card .quick-enquiry-submit { justify-content: center; height: 46px; margin: 24px 0 0; padding: 0 26px; border: 0; border-radius: 8px; background: #c9a24e; color: #10241a; font-weight: 700; box-shadow: 0 8px 20px rgba(201,162,78,.3); }
.quick-enquiry-card .quick-enquiry-submit:hover { background: #dbb65f; color: #10241a; transform: translateY(-1px); }

.quick-enquiry-success { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 24px 8px; text-align: center; }
.quick-enquiry-success > i { margin-bottom: 12px; color: #1d4a34; font-size: 40px; }
.quick-enquiry-success h2 { margin: 0 0 6px; color: #10241a; font-size: 22px; }
.quick-enquiry-success p { margin: 0; color: #53665b; }

/* Too narrow for one row: three fields, then message and send. */
@media (max-width: 1100px) {
  .quick-enquiry-card form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-enquiry-card .form-group.is-message { grid-column: 1 / 3; }
}
@media (max-width: 640px) {
  .hero-video-btn { width: 40px; height: 40px; font-size: 14px; }
  .quick-enquiry-body { padding: 20px 16px 24px; }
  .quick-enquiry-card form { grid-template-columns: 1fr; gap: 14px; }
  .quick-enquiry-card .form-group.is-message { grid-column: 1; }
  .quick-enquiry-card .form-group input, .quick-enquiry-card .form-group textarea { height: 48px; font-size: 16px; }
  .quick-enquiry-card .form-group textarea { height: 110px; min-height: 110px; resize: vertical; }
  .quick-enquiry-card .quick-enquiry-submit { order: 1; width: 100%; height: 48px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video-btn, .quick-enquiry-card .quick-enquiry-submit { transition: none; }
}

/* ---------- Home: company introduction (main H1) ---------- */
.home-about { position: relative; padding: 80px 0 90px; }
/* Torn-paper edge: the white enquiry band above appears to tear off into this section.
   A repeating SVG strip of white "paper" with a soft shadow under its jagged edge. */
.home-about::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 30px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='30' viewBox='0 0 160 30'%3E%3Cdefs%3E%3Cfilter id='b' x='-5%25' y='-20%25' width='110%25' height='160%25'%3E%3CfeGaussianBlur stdDeviation='1.6'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M0 0H160V12L153 16L147 10L139 17L132 12L124 19L118 11L110 15L103 8L96 14L88 11L81 18L74 12L66 16L59 9L52 15L45 11L37 18L30 12L22 16L15 9L8 14L0 12Z' fill='rgba(16,36,26,.16)' transform='translate(0 4)' filter='url(%23b)'/%3E%3Cpath d='M0 0H160V12L153 16L147 10L139 17L132 12L124 19L118 11L110 15L103 8L96 14L88 11L81 18L74 12L66 16L59 9L52 15L45 11L37 18L30 12L22 16L15 9L8 14L0 12Z' fill='%23ffffff'/%3E%3C/svg%3E") repeat-x top left / 160px 30px;
}
@media (max-width: 640px) { .home-about::before { height: 22px; background-size: 118px 22px; } }
.home-about-h1 { max-width: 900px; margin: 0 auto 48px; text-align: center; font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.02em; }
.home-about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 56px; align-items: center; }
.home-about-heading { margin-bottom: 20px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; }
.home-about-copy .cms-body a:not(.btn):not(.pill) { color: #1d4a34; font-weight: 500; text-decoration: none; border-bottom: 1px solid #dbb65f; }
.home-about-copy .cms-body a:not(.btn):not(.pill):hover { color: var(--navy); border-bottom-color: currentColor; }
.home-about-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 22px; font-weight: 600; }
.home-about-links span { color: var(--muted); font-weight: 400; }
.home-about-links a { color: #1d4a34; border-bottom: 2px solid #dbb65f; }
.home-about-links a:hover { color: var(--navy); border-bottom-color: var(--navy); }

/* Points sit on an arc around the centre circle: --a is each point's angle. */
.about-orbit { --cx: 130px; --cy: 240px; --ring: 125px; --reach: 210px; position: relative; width: 100%; max-width: 540px; height: 480px; }
.about-orbit-ring { position: absolute; left: calc(var(--cx) - var(--ring)); top: calc(var(--cy) - var(--ring)); width: calc(var(--ring) * 2); height: calc(var(--ring) * 2); overflow: visible; animation: orbit-spin 60s linear infinite; }
.about-orbit-ring circle { fill: none; stroke: #b9c7bd; stroke-width: 1.4; stroke-dasharray: 1 5; stroke-linecap: round; }
.about-orbit-core { position: absolute; left: var(--cx); top: var(--cy); z-index: 2; display: grid; place-items: center; width: 180px; height: 180px; padding: 22px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f1f4ef 100%); box-shadow: 0 18px 40px rgba(18, 43, 30, .16), inset 0 0 0 8px #fff; text-align: center; }
.about-orbit-core span { color: var(--navy); font-size: 19px; font-weight: 700; line-height: 1.25; }
.about-orbit-points li { position: absolute; left: var(--cx); top: var(--cy); width: 0; height: 0; }
.about-orbit-dot, .about-orbit-item { position: absolute; left: 0; top: 0; }
.about-orbit-dot { width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 3px solid #1d4a34; border-radius: 50%; background: #fff; transform: rotate(var(--a)) translateX(var(--ring)) rotate(calc(-1 * var(--a))); }
.about-orbit-points li:nth-child(even) .about-orbit-dot { border-color: #dbb65f; }
.about-orbit-item { display: flex; align-items: center; gap: 12px; width: max-content; transform: rotate(var(--a)) translateX(var(--reach)) rotate(calc(-1 * var(--a))) translate(-32px, -50%); }
.about-orbit-icon { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border: 5px solid #fff; border-radius: 50%; background: #1d4a34; color: #fff; font-size: 22px; box-shadow: 0 10px 24px rgba(18, 43, 30, .22); animation: orbit-pop .6s calc(var(--i) * .12s) both, orbit-float 4s calc(var(--i) * .5s) ease-in-out infinite; }
.about-orbit-points li:nth-child(even) .about-orbit-icon { background: #dbb65f; color: #10241a; }
.about-orbit-label { max-width: 150px; color: var(--navy); font-size: 14px; font-weight: 600; line-height: 1.3; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-pop { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes orbit-float { 50% { translate: 0 -5px; } }

@media (max-width: 960px) {
  .home-about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-orbit { margin: 0 auto; }
}
@media (max-width: 600px) {
  .home-about { padding: 56px 0 64px; }
  .home-about-h1 { margin-bottom: 32px; }
  .about-orbit { display: flex; flex-direction: column; align-items: center; gap: 28px; height: auto; }
  .about-orbit-ring, .about-orbit-dot { display: none; }
  .about-orbit-core { position: static; width: 150px; height: 150px; transform: none; }
  .about-orbit-points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; width: 100%; }
  .about-orbit-points li, .about-orbit-item { position: static; width: auto; height: auto; transform: none; }
  .about-orbit-icon { width: 52px; height: 52px; font-size: 18px; }
  .about-orbit-label { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .about-orbit-ring, .about-orbit-icon { animation: none; }
}

/* ---------- Our Team: broker & lender form ---------- */
.join-split { align-items: start; }
.partner-types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 22px; padding: 0; border: 0; }
.partner-type { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid #cdd6dd; border-radius: 10px; background: var(--white); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.partner-type input { position: absolute; opacity: 0; pointer-events: none; }
.partner-type > i { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--green-light); color: #1d4a34; font-size: 17px; transition: background .2s, color .2s; }
.partner-type b { display: block; color: var(--navy); font-size: 14px; line-height: 1.3; }
.partner-type small { color: var(--muted); font-size: 12px; }
.partner-type:hover { border-color: #1d4a34; }
.partner-type:has(input:checked) { border-color: #1d4a34; background: #f4f8f4; box-shadow: 0 0 0 3px rgba(29, 74, 52, .12); }
.partner-type:has(input:checked) > i { background: #1d4a34; color: var(--white); }
.partner-type:has(input:focus-visible) { outline: 2px solid #dbb65f; outline-offset: 2px; }
.form-group label .optional { color: var(--muted); font-weight: 400; }
/* Only the chosen type's questions show; the server ignores the others. */
.partner-fields { display: contents; }
.partner-lender, .partner-form:has(input[value="lender"]:checked) .partner-broker { display: none; }
.partner-form:has(input[value="lender"]:checked) .partner-lender { display: contents; }
@media (max-width: 600px) {
  .partner-types, .partner-form .form-grid { grid-template-columns: 1fr; }
}

/* ---------- About Us: funded highlight ---------- */
.funded-intro { padding: 64px 0; background: var(--page-bg); text-align: center; }
.funded-intro .container { max-width: 820px; }
.funded-intro h2 { margin-bottom: 16px; line-height: 1.15; }
.funded-figure { display: block; color: #1d4a34; font-size: clamp(40px, 7vw, 64px); font-weight: 800; letter-spacing: -1px; }
.funded-label { display: block; margin-top: 4px; color: #a88128; font-size: clamp(20px, 3vw, 28px); font-weight: 700; }
.funded-intro p { margin: 0 auto; max-width: 680px; color: var(--muted); font-size: 17px; }
.milestones .section-head .section-sub + .section-sub { margin-top: 12px; }
@media (max-width: 600px) { .funded-intro { padding: 44px 0; } .funded-intro p { font-size: 16px; } }

/* ---------- About Us: milestones timeline ---------- */
.milestones { position: relative; overflow: hidden; background: radial-gradient(circle at 12% 18%, rgba(219, 182, 95, .12) 0, transparent 40%), radial-gradient(circle at 88% 82%, rgba(29, 74, 52, .08) 0, transparent 45%), var(--bg-soft); }
.journey { position: relative; max-width: 1000px; margin: 50px auto 0; }
.journey-track { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; border-radius: 4px; background: #dfe5df; }
.journey-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(#1d4a34, #dbb65f); transform-origin: top; }
.journey-list { position: relative; display: grid; gap: 34px; }
.journey-item { display: grid; grid-template-columns: 1fr 84px 1fr; align-items: center; }
.journey-node { grid-column: 2; grid-row: 1; justify-self: center; position: relative; z-index: 1; display: grid; place-items: center; width: 60px; height: 60px; border: 5px solid var(--white); border-radius: 50%; background: #1d4a34; color: #dbb65f; font-size: 21px; box-shadow: 0 8px 22px rgba(18, 43, 30, .25); }
.journey-node::after { content: ''; position: absolute; inset: -9px; border: 2px solid rgba(219, 182, 95, .55); border-radius: 50%; opacity: 0; }
.journey-card { grid-row: 1; position: relative; padding: 24px 26px; border: 1px solid var(--border); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.journey-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(18, 43, 30, .14); }
.journey-card::before { content: ''; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border: inherit; background: inherit; transform: rotate(45deg); }
.journey-item:nth-child(odd) .journey-card { grid-column: 1; text-align: right; }
.journey-item:nth-child(odd) .journey-card::before { right: -8px; border-width: 1px 1px 0 0; }
.journey-item:nth-child(even) .journey-card { grid-column: 3; }
.journey-item:nth-child(even) .journey-card::before { left: -8px; border-width: 0 0 1px 1px; }
.journey-year { display: block; margin-bottom: 2px; color: #a88128; font-family: 'Caveat', cursive; font-size: 28px; font-weight: 700; line-height: 1.1; }
.journey-card h3 { margin-bottom: 8px; font-size: 19px; }
.journey-card p { margin: 0; color: var(--muted); font-size: 14px; }
.journey-extras { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.journey-item:nth-child(odd) .journey-extras { justify-content: flex-end; }
.journey-badge { padding: 6px 14px; border-radius: 30px; background: #1d4a34; color: var(--white); font-size: 13px; font-weight: 600; }
.journey-tag { padding: 5px 12px; border: 1px solid #dbb65f; border-radius: 30px; color: var(--navy); font-size: 12px; font-weight: 600; }
/* The latest milestone stands out. */
.journey-item:last-child .journey-card { border-color: transparent; background: linear-gradient(135deg, #1d4a34, #122b1e); }
.journey-item:last-child .journey-card h3 { color: var(--white); }
.journey-item:last-child .journey-card p { color: rgba(255, 255, 255, .8); }
.journey-item:last-child .journey-year { color: #dbb65f; }
.journey-item:last-child .journey-badge { background: #dbb65f; color: #10241a; }
.journey-item:last-child .journey-tag { color: var(--white); }
.journey-item:last-child .journey-node { background: #dbb65f; color: #10241a; }
.journey-item:last-child .journey-node::after { opacity: 1; animation: journey-pulse 2s ease-out infinite; }

/* Scroll animation (main.js adds .is-animated, then .is-visible per item). */
.journey.is-animated .journey-fill { transform: scaleY(0); transition: transform .15s linear; }
.journey.is-animated .journey-node { transform: scale(0); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.journey.is-animated .journey-card { opacity: 0; transition: opacity .6s ease .15s, transform .6s ease .15s, box-shadow .25s; }
.journey.is-animated .journey-item:nth-child(odd) .journey-card { transform: translateX(-50px); }
.journey.is-animated .journey-item:nth-child(even) .journey-card { transform: translateX(50px); }
.journey.is-animated .journey-item.is-visible .journey-node { transform: scale(1); }
.journey.is-animated .journey-item.is-visible .journey-node::after { animation: journey-pulse 1.2s ease-out .3s; }
.journey.is-animated .journey-item.is-visible:last-child .journey-node::after { animation: journey-pulse 2s ease-out .3s infinite; }
.journey.is-animated .journey-item.is-visible .journey-card { opacity: 1; transform: none; }
.journey.is-animated .journey-item.is-visible .journey-card:hover { transform: translateY(-4px); }
@keyframes journey-pulse { from { opacity: 1; transform: scale(.85); } to { opacity: 0; transform: scale(1.5); } }

@media (max-width: 760px) {
  .journey { margin-top: 36px; }
  .journey-track { left: 28px; }
  .journey-list { gap: 24px; }
  .journey-item { grid-template-columns: 56px 1fr; align-items: start; }
  .journey-node { grid-column: 1; width: 50px; height: 50px; border-width: 4px; font-size: 17px; }
  .journey-item:nth-child(n) .journey-card { grid-column: 2; margin-left: 10px; padding: 20px; text-align: left; }
  .journey-item:nth-child(n) .journey-card::before { top: 25px; right: auto; left: -8px; border-width: 0 0 1px 1px; }
  .journey-item:nth-child(n) .journey-extras { justify-content: flex-start; }
  .journey.is-animated .journey-item:nth-child(n) .journey-card { transform: translateX(40px); }
  .journey.is-animated .journey-item.is-visible:nth-child(n) .journey-card { transform: none; }
}
/* Cards alternate sides, so on wide screens each one can tuck up beside the one before. */
@media (min-width: 761px) {
  .journey-list { gap: 0; }
  .journey-item + .journey-item { margin-top: -48px; }
}

/* ---------- Mortgage Rates page ---------- */
/* Scroll reveal (mortgage-rates.js adds .js-reveal, then .is-revealed per block). */
.js-reveal [data-reveal]:not(.is-revealed) { opacity: 0; transform: translateY(28px); }
.js-reveal [data-reveal].is-revealed { transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }

.rates-page .page-hero { padding-bottom: 130px; }
.rate-highlights { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: -84px; }
.rate-highlight { display: flex; flex-direction: column; gap: 4px; padding: 26px 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--white); box-shadow: 0 18px 44px rgba(18, 43, 30, .14); }
.rate-highlight-label { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.rate-highlight-label i { margin-right: 6px; color: #a88128; }
.rate-highlight strong { color: var(--navy); font-size: clamp(38px, 4.4vw, 52px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rate-highlight small { color: var(--muted); font-size: 13px; }
.rate-highlight-cta { position: relative; overflow: hidden; border-color: transparent; background: linear-gradient(135deg, #1d4a34, #122b1e); transition: transform .25s, box-shadow .25s; }
.rate-highlight-cta::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(219, 182, 95, .35), transparent 70%); }
.rate-highlight-cta:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(18, 43, 30, .28); }
.rate-highlight-cta .rate-highlight-label, .rate-highlight-cta small { color: rgba(255, 255, 255, .75); }
.rate-highlight-cta .rate-highlight-label i { color: #dbb65f; }
.rate-highlight-cta .rate-highlight-text { margin: 6px 0 4px; color: var(--white); font-size: 24px; line-height: 1.2; }
.rate-highlight-cta small i { margin-left: 4px; color: #dbb65f; transition: transform .2s; }
.rate-highlight-cta:hover small i { transform: translateX(4px); }

/* Rates table as a board of rows. */
.rates-board-table { max-width: 940px; margin: 0 auto; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.rates-board-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 16px; align-items: center; padding: 18px 28px; }
.rates-board-head { padding-top: 14px; padding-bottom: 14px; background: #122b1e; color: rgba(255, 255, 255, .8); font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.rates-board-list li { position: relative; border-top: 1px solid var(--border); transition: background .2s; }
.rates-board-list li:first-child { border-top: 0; }
.rates-board-list li:hover { background: #f6f9f5; }
.rates-board-list li::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #dbb65f; transform: scaleY(0); transition: transform .25s; }
.rates-board-list li:hover::before, .rates-board-list li.is-best::before { transform: scaleY(1); }
.rates-board-list li.is-best { background: #fbf8ef; }
.rates-board-term { color: var(--navy); font-size: 16px; font-weight: 700; }
.rates-board-term em { margin-left: 10px; padding: 3px 10px; border-radius: 20px; background: #dbb65f; color: #10241a; font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; vertical-align: 2px; }
.rates-board-rate { color: var(--text); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rates-board-rate.is-fixed { color: #1d4a34; font-size: 20px; font-weight: 800; }
.rates-board .btn-sm { padding: 9px 16px; font-size: 13px; }
.rates-board-note { max-width: 940px; margin: 16px auto 0; color: var(--muted); font-size: 13px; text-align: center; }
/* Rows slide in one after another once the table is revealed. */
.js-reveal .rates-board-table:not(.is-revealed) .rates-board-list li { opacity: 0; transform: translateX(-16px); }
.js-reveal .rates-board-table.is-revealed .rates-board-list li { transition: opacity .5s ease calc(.25s + var(--d)), transform .5s ease calc(.25s + var(--d)), background .2s; }

/* Fixed vs. variable. */
.rates-types-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 980px; margin: 0 auto; }
.rate-type { position: relative; padding: 34px; border: 1px solid var(--border); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.rate-type:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(18, 43, 30, .14); }
.rate-type-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px; border-radius: 16px; background: #1d4a34; color: #dbb65f; font-size: 22px; }
.rate-type-variable .rate-type-icon { background: #dbb65f; color: #10241a; }
.rate-type h3 { margin-bottom: 8px; font-size: 22px; }
.rate-type > p { margin-bottom: 14px; color: var(--muted); }
.rate-type-from { position: absolute; top: 34px; right: 34px; padding: 6px 14px; border-radius: 30px; background: var(--green-light); color: var(--navy); font-size: 13px; }

/* What affects your rate. */
.rates-factors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rate-factor { display: flex; gap: 16px; padding: 24px; border-radius: 14px; background: var(--white); box-shadow: var(--shadow); transition: transform .25s; }
.rate-factor:hover { transform: translateY(-4px); }
.rate-factor-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--green-light); color: #1d4a34; font-size: 19px; transition: background .25s, color .25s; }
.rate-factor:hover .rate-factor-icon { background: #1d4a34; color: #dbb65f; }
.rate-factor h3 { margin-bottom: 4px; font-size: 17px; }
.rate-factor p { margin: 0; color: var(--muted); font-size: 14px; }

.rates-page .cms-centered { text-align: left; }

/* How to lock in your rate. */
.rates-steps-list { position: relative; display: grid; list-style: none; padding: 0; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.rates-steps-list::before { content: ''; position: absolute; top: 32px; left: 16%; right: 16%; border-top: 2px dashed #c9b27a; }
.rates-steps-list li { position: relative; }
.rates-step-num { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border: 6px solid var(--bg-soft); border-radius: 50%; background: #1d4a34; color: #dbb65f; font-size: 24px; font-weight: 800; }
.rates-steps-list h3 { margin-bottom: 6px; font-size: 19px; }
.rates-steps-list p { max-width: 300px; margin: 0 auto; color: var(--muted); font-size: 14px; }

@media (max-width: 960px) {
  .rate-highlights { grid-template-columns: 1fr; }
  .rate-highlights { gap: 14px; }
  .rates-factors-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .rates-page .page-hero { padding-bottom: 110px; }
  .rates-board-head { display: none; }
  .rates-board-row { grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 18px 20px; }
  .rates-board-term, .rates-board-row > span:last-child { grid-column: 1 / -1; }
  .rates-board-rate::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
  .rates-board .btn-sm { width: 100%; justify-content: center; }
  .rates-types-grid, .rates-factors-grid, .rates-steps-list { grid-template-columns: 1fr; }
  .rates-steps-list::before { display: none; }
  .rate-type { padding: 26px; }
  .rate-type-from { position: static; display: inline-block; margin-top: 12px; }
}

/* ---------- Case Studies page ---------- */
.case-page .page-hero { padding-bottom: 150px; }
.case-results-wrap { position: relative; z-index: 3; margin-top: -110px; }
.case-results { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 32px; align-items: center; padding: 34px 38px; overflow: hidden; border-radius: 18px; background: linear-gradient(135deg, #1d4a34 0%, #122b1e 70%); color: #fff; box-shadow: 0 24px 60px rgba(18,43,30,.28); }
.case-results::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,78,.28), transparent 70%); pointer-events: none; }
.case-results-head .eyebrow { color: #d8c48f; }
.case-results-head h2 { margin-bottom: 8px; color: #fff; font-size: clamp(20px, 2.2vw, 26px); }
.case-results-head p { color: rgba(255,255,255,.78); font-size: 14px; }
.case-results-list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.case-results-list li { padding: 16px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.05); text-align: center; }
.case-results-list strong { display: block; color: #e3c77b; font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.case-results-list span { display: block; margin-top: 4px; color: rgba(255,255,255,.8); font-size: 12.5px; }
.js-reveal .case-results:not(.is-revealed) .case-results-list li { opacity: 0; transform: translateY(14px); }
.js-reveal .case-results.is-revealed .case-results-list li { transition: opacity .6s ease calc(.2s + var(--d)), transform .6s ease calc(.2s + var(--d)); }

.case-intro { padding-bottom: 0; }
.case-stories { padding-top: 70px; }
.case-filter { justify-content: center; }
.case-filter .chip i { margin-right: 4px; font-size: 12px; opacity: .8; }

.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.case-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); cursor: pointer; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s; }
.case-card[hidden] { display: none; }
.case-card:hover { transform: translateY(-6px); border-color: rgba(201,162,78,.6); box-shadow: 0 22px 50px rgba(18,43,30,.16); }
.case-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #122b1e; }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.case-card:hover .case-media img { transform: scale(1.06); }
/* Cards without a photo get a designed header with the main result. */
.case-media-art { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; background: radial-gradient(circle at 85% 15%, rgba(201,162,78,.35), transparent 45%), linear-gradient(140deg, #24563d 0%, #122b1e 75%); }
.case-media-art::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(to top, transparent, #000 70%); mask-image: linear-gradient(to top, transparent, #000 70%); }
.case-media-icon { position: absolute; right: 20px; top: 50%; color: rgba(255,255,255,.08); font-size: 74px; transform: translateY(-50%) rotate(-8deg); transition: transform .6s cubic-bezier(.2,.7,.2,1), color .3s; }
.case-card:hover .case-media-icon { color: rgba(201,162,78,.2); transform: translateY(-50%) rotate(0) scale(1.08); }
.case-media-art strong { position: relative; color: #e3c77b; font-size: clamp(30px, 3vw, 40px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.case-media-art span { position: relative; margin-top: 6px; color: rgba(255,255,255,.85); font-size: 13px; }
.case-tag { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 30px; background: rgba(255,255,255,.94); color: #122b1e; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.case-tag i { color: #a88128; }
.case-body { display: flex; flex: 1; flex-direction: column; padding: 22px 22px 20px; }
.case-location { margin-bottom: 6px; color: var(--muted); font-size: 12.5px; }
.case-location i { margin-right: 4px; color: #a88128; }
.case-body h3 { margin-bottom: 8px; font-size: 18px; }
.case-summary { margin-bottom: 16px; color: var(--muted); font-size: 14px; }
.case-mini-stats { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 10px; margin: auto 0 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.case-mini-stats strong { display: block; color: #1d4a34; font-size: 17px; font-weight: 700; line-height: 1.2; }
.case-mini-stats span { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.case-open { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: #1d4a34; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.case-open i { transition: transform .25s; }
.case-card:hover .case-open i, .case-open:focus-visible i { transform: translateX(5px); }
.case-open:focus-visible { outline: 2px solid #c9a24e; outline-offset: 4px; border-radius: 4px; }

/* The first story is a wide feature until a filter is picked. */
@media (min-width: 900px) {
  .case-grid:not(.is-filtered) .case-card.is-featured { grid-column: 1 / -1; flex-direction: row; }
  .case-grid:not(.is-filtered) .case-card.is-featured .case-media { flex: 0 0 52%; min-height: 340px; aspect-ratio: auto; }
  .case-grid:not(.is-filtered) .case-card.is-featured .case-body { justify-content: center; padding: 38px 40px; }
  .case-grid:not(.is-filtered) .case-card.is-featured h3 { font-size: clamp(22px, 2.2vw, 28px); }
  .case-grid:not(.is-filtered) .case-card.is-featured .case-summary { font-size: 15.5px; }
  .case-grid:not(.is-filtered) .case-card.is-featured .case-media-art strong { font-size: clamp(44px, 4.6vw, 62px); }
  .case-grid:not(.is-filtered) .case-card.is-featured .case-media-icon { font-size: 150px; }
  .case-grid:not(.is-filtered) .case-card.is-featured .case-mini-stats { margin-top: 6px; }
}
/* Cards rise in with an animation rather than the shared reveal transition, so the hover lift
   stays quick. "backwards" only holds the start frame during the delay, leaving hover free. */
.js-reveal .case-card.is-revealed { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s; animation: case-rise .6s cubic-bezier(.2,.7,.2,1) var(--d, 0s) backwards; }
.case-grid .case-card.case-pop { animation: case-pop .5s cubic-bezier(.2,.7,.2,1) var(--d, 0s) backwards; }
@keyframes case-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes case-pop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.case-none, .case-empty { padding: 30px 0; color: var(--muted); text-align: center; }

/* Full-story popup */
.case-dialog { width: min(780px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; overflow: auto; border: 0; border-radius: 18px; background: #fff; color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.case-dialog::backdrop { background: rgba(10,25,17,.7); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.case-dialog[open] { animation: case-dialog-in .4s cubic-bezier(.2,.7,.2,1); }
.case-dialog[open]::backdrop { animation: case-fade .3s ease; }
@keyframes case-dialog-in { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes case-fade { from { opacity: 0; } to { opacity: 1; } }
html:has(.case-dialog[open]) { overflow: hidden; }
.case-dialog-inner { position: relative; }
.case-dialog-close { position: absolute; right: 16px; top: 16px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 16px; cursor: pointer; transition: background .2s, transform .2s; }
.case-dialog-close:hover { background: #c9a24e; color: #10241a; transform: rotate(90deg); }
.case-dialog-head { padding: 34px 36px 28px; background: radial-gradient(circle at 90% 10%, rgba(201,162,78,.3), transparent 45%), linear-gradient(140deg, #24563d, #122b1e 75%); color: #fff; }
.case-dialog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 40px 14px 0; color: rgba(255,255,255,.8); font-size: 13px; }
.case-dialog-meta .case-tag { position: static; }
.case-dialog-meta > span:not(.case-tag) i { margin-right: 4px; color: #e3c77b; }
.case-dialog-head h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); }
.case-dialog-client { margin-top: 6px; color: #d8c48f; font-size: 14px; }
.case-dialog-photo { width: 100%; max-height: 300px; object-fit: cover; }
.case-dialog-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; padding: 22px 36px; border-bottom: 1px solid var(--border); background: #f7f5eb; }
.case-dialog-stats li { text-align: center; }
.case-dialog-stats strong { display: block; color: #1d4a34; font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.case-dialog-stats span { color: var(--muted); font-size: 12.5px; }
/* Challenge, solution, result as a joined-up timeline */
.case-timeline { position: relative; display: grid; gap: 26px; margin: 0; padding: 32px 36px 8px; list-style: none; }
.case-timeline::before { content: ''; position: absolute; left: 55px; top: 52px; bottom: 30px; width: 2px; background: linear-gradient(#c9a24e, #2f8f5b); opacity: .35; }
.case-step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
.case-step-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fbf4e2; color: #a88128; font-size: 16px; box-shadow: 0 0 0 5px #fff; }
.case-step-solution .case-step-icon { background: #e9f0ea; color: #1d4a34; }
.case-step-result .case-step-icon { background: #1d4a34; color: #e3c77b; }
.case-step h3 { margin: 8px 0; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.case-step p { margin-bottom: 10px; color: var(--text); font-size: 15px; }
.case-dialog[open] .case-step { animation: case-step-in .5s cubic-bezier(.2,.7,.2,1) both; }
.case-dialog[open] .case-step-solution { animation-delay: .12s; }
.case-dialog[open] .case-step-result { animation-delay: .24s; }
@keyframes case-step-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.case-quote { position: relative; margin: 14px 36px 0; padding: 22px 24px 20px 58px; border-left: 4px solid #c9a24e; border-radius: 0 12px 12px 0; background: #f7f5eb; }
.case-quote i { position: absolute; left: 22px; top: 22px; color: #c9a24e; font-size: 22px; }
.case-quote p { color: var(--navy); font-size: 16px; font-style: italic; line-height: 1.55; }
.case-quote cite { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; font-style: normal; }
.case-dialog-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 22px 36px 28px; border-top: 1px solid var(--border); }
.case-dialog-cta p { flex: 1 1 260px; color: var(--muted); font-size: 14px; }
.case-dialog-cta strong { display: block; color: var(--navy); font-size: 16px; }
.case-dialog-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 1000px) {
  .case-results { grid-template-columns: 1fr; gap: 20px; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .case-page .page-hero { padding-bottom: 120px; }
  .case-results-wrap { margin-top: -90px; }
  .case-results { padding: 24px 20px; }
  .case-results-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-grid { grid-template-columns: 1fr; gap: 20px; }
  .case-dialog-head, .case-dialog-stats, .case-dialog-cta { padding-left: 20px; padding-right: 20px; }
  .case-timeline { padding: 26px 20px 4px; }
  .case-timeline::before { left: 39px; }
  .case-quote { margin: 12px 20px 0; padding-left: 50px; }
  .case-dialog-buttons, .case-dialog-buttons .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .case-card, .case-media img, .case-media-icon, .case-open i, .case-dialog-close { transition: none; }
  .case-grid .case-card.case-pop, .case-dialog[open], .case-dialog[open]::backdrop, .case-dialog[open] .case-step { animation: none; }
}

/* Festival greeting popup (partials/festive-popup.blade.php) */
.festive-fireworks { position: fixed; inset: 0; z-index: 110; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.festive-fireworks.is-on { opacity: 1; }
.festive-popup { position: fixed; left: 24px; bottom: 24px; z-index: 115; display: flex; align-items: center; gap: 14px; width: 340px; max-width: calc(100vw - 48px); padding: 16px 44px 16px 16px; color: #fdf3dc; background: linear-gradient(135deg, #122b1e 0%, #1e4a33 100%); border: 1px solid rgba(255, 211, 107, .55); border-radius: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .28), 0 0 0 4px rgba(255, 211, 107, .08); opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .9, .3, 1.2); }
.festive-popup.is-in { opacity: 1; transform: none; }
.festive-popup[hidden] { display: none; }
body.has-sticky-cta .festive-popup { bottom: 88px; }
.festive-text strong { display: block; margin-bottom: 4px; font-size: 19px; line-height: 1.2; color: #ffd36b; letter-spacing: .3px; }
.festive-text p { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(253, 243, 220, .88); }
.festive-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; padding: 0; font-size: 22px; line-height: 1; color: #fdf3dc; background: rgba(255, 255, 255, .12); border: 0; border-radius: 50%; cursor: pointer; transition: background .2s, transform .2s; }
.festive-close:hover, .festive-close:focus-visible { background: rgba(255, 255, 255, .25); transform: rotate(90deg); outline: none; }
/* Diya (oil lamp) with a flickering flame; tap to replay the fireworks */
.festive-diya { position: relative; flex: 0 0 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle at 50% 60%, rgba(255, 190, 80, .35), transparent 70%); cursor: pointer; }
.festive-lamp { position: absolute; left: 9px; right: 9px; bottom: 12px; height: 18px; background: linear-gradient(180deg, #e8a33d, #b5651d); border-radius: 4px 4px 40px 40px / 4px 4px 22px 22px; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .25); }
.festive-flame { position: absolute; left: 50%; bottom: 27px; width: 12px; height: 20px; margin-left: -6px; background: radial-gradient(ellipse at 50% 75%, #fff7c2 0%, #ffd36b 35%, #ff9933 70%, transparent 72%); border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%; box-shadow: 0 0 14px 4px rgba(255, 170, 60, .55); transform-origin: 50% 100%; animation: festive-flicker 1.4s ease-in-out infinite; }
@keyframes festive-flicker {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  30% { transform: scale(1.08, .94) rotate(3deg); }
  60% { transform: scale(.94, 1.06) rotate(-3deg); }
}
@media (max-width: 600px) {
  /* Leave the right side free for the chat button */
  .festive-popup { left: 12px; bottom: 12px; width: auto; max-width: calc(100vw - 96px); gap: 10px; padding: 12px 40px 12px 12px; }
  .festive-diya { flex-basis: 44px; height: 44px; }
  .festive-lamp { left: 6px; right: 6px; bottom: 8px; height: 14px; }
  .festive-flame { bottom: 20px; width: 10px; height: 16px; margin-left: -5px; }
  .festive-text strong { font-size: 16px; }
  .festive-text p { font-size: 12px; }
  body.has-sticky-cta .festive-popup { bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .festive-flame { animation: none; }
  .festive-popup { transition: opacity .2s ease; transform: none; }
}

/* ==========================================================
   404 page (errors/404.blade.php)
   ========================================================== */
.nf-section { position: relative; overflow: hidden; padding: 80px 0 100px; background:
  radial-gradient(circle at 12% 18%, rgba(201,162,78,.16), transparent 42%),
  radial-gradient(circle at 88% 85%, rgba(18,43,30,.08), transparent 45%), var(--page-bg); }
.nf-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.nf-code { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: clamp(84px, 13vw, 150px); font-weight: 800; line-height: 1; color: var(--navy); letter-spacing: -4px; }
.nf-code span { display: inline-block; }
.nf-zero { position: relative; width: .78em; height: .78em; border-radius: 50%; background: var(--navy); display: flex !important; align-items: center; justify-content: center; box-shadow: 0 18px 40px rgba(18,43,30,.25); animation: nf-bob 3.2s ease-in-out infinite; }
.nf-zero::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px dashed rgba(201,162,78,.7); animation: nf-spin 18s linear infinite; }
.nf-zero i { font-size: .36em; color: #c9a24e; letter-spacing: 0; }
@keyframes nf-bob { 50% { transform: translateY(-8px); } }
@keyframes nf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nf-zero, .nf-zero::after { animation: none; } }
.nf-copy .eyebrow { color: #a07f33; }
.nf-copy h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; color: var(--navy); margin-bottom: 14px; }
.nf-lead { color: var(--muted); font-size: 15.5px; max-width: 560px; margin-bottom: 26px; }
.nf-lead code { background: var(--green-light); color: var(--navy); padding: 2px 7px; border-radius: 4px; font-size: 13.5px; overflow-wrap: anywhere; }
.nf-search { position: relative; display: flex; gap: 8px; max-width: 560px; margin-bottom: 22px; }
.nf-search > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.nf-search input { flex: 1; min-width: 0; font: inherit; font-size: 14.5px; padding: 13px 14px 13px 42px; border: 1px solid #cdd6dd; border-radius: 8px; background: var(--white); color: var(--text); }
.nf-search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18,43,30,.12); }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.nf-links a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--border); border-radius: 999px; background: var(--white); color: var(--navy); font-size: 13.5px; font-weight: 500; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.nf-links a i { color: #c9a24e; font-size: 12.5px; transition: color .2s; }
.nf-links a:hover, .nf-links a:focus-visible { background: var(--navy); border-color: var(--navy); color: var(--white); transform: translateY(-2px); }
.nf-links a:hover i, .nf-links a:focus-visible i { color: #e5c97f; }
.nf-home { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--navy); }
.nf-home:hover { color: #a07f33; }
.nf-card { position: relative; border-top: 4px solid #c9a24e; }
.nf-card h2 { font-size: 23px; color: var(--navy); margin-bottom: 8px; }
.nf-card-lead { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.nf-card .form-grid { gap: 14px; }
.nf-card textarea { min-height: 84px; }
.nf-optional { font-weight: 400; color: var(--muted); }
.nf-consent { margin: 16px 0; }
.nf-card .field-error { margin-bottom: 12px; }
.nf-or { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--muted); }
.nf-or a { color: var(--navy); font-weight: 600; white-space: nowrap; }
@media (max-width: 900px) {
  .nf-section { padding: 50px 0 70px; }
  .nf-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .nf-card .form-grid { grid-template-columns: 1fr; }
  .nf-search { flex-direction: column; }
  .nf-search > i { top: 24px; }
  .nf-search .btn { width: 100%; justify-content: center; }
  .nf-card { padding: 26px 20px; }
}
/* Strobi the avatar as the "0": the sphere is its own circle, and it moves by itself. */
.nf-zero.has-avatar { width: .9em; height: .9em; margin: 0 -.04em; background: none; box-shadow: none; animation: none; cursor: pointer; }
.nf-zero.has-avatar > i { display: none; }
.nf-zero.has-avatar::after { inset: 4%; }
.nf-zero .bs-avatar { position: relative; z-index: 1; }
