/* ==========================================================================
   Ink Mortgage Group – site styles
   Colours follow inkmortgage.com: navy #1c244b, blue #005eb8 / #2c74ff,
   text #324a6d, light #f3f5f8, plus the logo red for small accents.
   ========================================================================== */

:root {
  --navy: #1c244b;
  --navy-deep: #121937;
  --navy-soft: #26305f;
  --blue: #005eb8;
  --blue-bright: #2c74ff;
  --blue-tint: #e8f0ff;
  --red: #c8102e;
  --red-soft: #fdecef;
  --text: #324a6d;
  --heading: #1c244b;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-tint: #f3f5f8;
  --line: #e2e8f0;
  --gold: #f5b301;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 56, .06), 0 1px 3px rgba(16, 24, 56, .08);
  --shadow: 0 10px 30px -12px rgba(16, 24, 56, .22);
  --shadow-lg: 0 30px 60px -20px rgba(16, 24, 56, .35);

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --header-h: 84px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-bright); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 1000; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.25rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; line-height: 1.2;
  cursor: pointer; transition: transform .15s ease, background .2s, color .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue-bright); color: #fff; box-shadow: 0 8px 20px -8px rgba(44, 116, 255, .7); }
.btn-primary:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-tint); color: var(--navy); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue-bright); color: var(--blue-bright); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-head); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }
.eyebrow-light { color: #9fc0ff; }
.eyebrow-light::before { background: #ff6b7f; }
.eyebrow-light i { color: #ff6b7f; }
.eyebrow:has(i)::before { display: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; color: var(--blue); }
.link-arrow i { transition: transform .2s; }

/* ---------- top bar ---------- */
.topbar { background: var(--navy-deep); color: #c7d2fe; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 1rem; }
.topbar a { color: #dbe4ff; }
.topbar a:hover { color: #fff; }
.topbar-contact { display: flex; gap: 1.4rem; align-items: center; }
.topbar-contact i { color: #9fc0ff; margin-right: .3rem; }
.topbar-social { display: flex; gap: .9rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(16,24,56,.35); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }
.brand { flex: none; }
.brand img { height: 62px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav > ul { display: flex; align-items: center; gap: .25rem; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a, .menu-toggle {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .8rem; border-radius: 8px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-head); font-size: .93rem; font-weight: 500; color: var(--heading);
  white-space: nowrap;
}
.main-nav > ul > li > a:hover, .menu-toggle:hover, .has-menu.is-open .menu-toggle { color: var(--blue-bright); background: var(--blue-tint); }
.main-nav > ul > li > a.is-active { color: var(--blue-bright); }
.menu-toggle i { font-size: .7rem; transition: transform .2s; }

.submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.submenu-wide { min-width: 460px; display: grid; grid-template-columns: 1fr 1fr; }
.submenu a { display: block; padding: .5rem .75rem; border-radius: 8px; color: var(--text); font-size: .92rem; }
.submenu a:hover { background: var(--bg-tint); color: var(--blue-bright); }
.submenu-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .35rem; }
.submenu-all a { color: var(--blue); font-weight: 600; }
.has-menu.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
.has-menu.is-open .menu-toggle i { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 1101px) {
  .has-menu:hover .submenu { opacity: 1; visibility: visible; transform: none; }
  .has-menu:hover .menu-toggle i { transform: rotate(180deg); }
  .has-menu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
}

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .93rem; white-space: nowrap; }
.nav-phone i { color: var(--red); }

.nav-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-burger span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }
.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1400px) { .nav-phone span { display: none; } .main-nav { gap: 1rem; } }
@media (max-width: 1100px) {
  .nav-burger { display: flex; }
  .main-nav {
    position: fixed; inset: calc(var(--header-h) + 40px) 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 1rem 20px 2rem; overflow-y: auto; gap: 1rem;
    transform: translateX(100%); transition: transform .25s ease; border-top: 1px solid var(--line);
  }
  .nav-open .main-nav { transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav > ul > li > a, .menu-toggle { width: 100%; justify-content: space-between; padding: .9rem .25rem; font-size: 1rem; background: none !important; }
  .submenu, .submenu-wide { position: static; display: none; min-width: 0; box-shadow: none; border: 0; padding: 0 0 .75rem .5rem; opacity: 1; visibility: visible; transform: none; grid-template-columns: 1fr; }
  .has-menu.is-open .submenu { display: grid; }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-phone { justify-content: center; padding: .7rem; border: 1px solid var(--line); border-radius: 999px; }
  .nav-phone span { display: inline; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 860px) { .hide-md { display: none; } }
@media (max-width: 600px) {
  .hide-sm { display: none; }
  :root { --header-h: 70px; }
  .brand img { height: 46px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: #e2e8f8; overflow: hidden;
  background:
    linear-gradient(100deg, rgba(18,25,55,.97) 0%, rgba(28,36,75,.93) 45%, rgba(28,36,75,.78) 100%),
    var(--hero-img) center / cover no-repeat,
    var(--navy);
  padding: clamp(3rem, 6vw, 5.5rem) 0 2rem;
}
.hero::after {
  content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(44,116,255,.35), transparent 65%); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); font-weight: 700; letter-spacing: -.025em; margin-bottom: 1.2rem; }
.hero h1 .accent { background: linear-gradient(90deg, #7fb0ff, #2c74ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.125rem; color: #e2e8f8; max-width: 620px; }
.hero-sub { color: #aab6d6; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.trust-badge {
  display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1rem; border-radius: 12px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #e2e8f8; font-size: .9rem;
}
.trust-badge:hover { background: rgba(255,255,255,.12); color: #fff; }
.trust-badge strong { color: #fff; }
.trust-icon { color: #7fb0ff; font-size: 1.15rem; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: .85rem; display: inline-flex; gap: 2px; }
.hero-disclaimer { position: relative; z-index: 1; font-size: .78rem; color: #8592b8; margin-top: 2.5rem; margin-bottom: 0; }

.hero-form {
  background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg); border-top: 4px solid var(--red);
}
.form-head { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.2rem; }
.form-head h2 { font-size: 1.3rem; margin: 0 0 .2rem; }
.form-head p { margin: 0; font-size: .9rem; color: var(--muted); }
.form-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-size: 1.25rem; }
.field { display: block; margin-bottom: .9rem; }
.field > span { display: block; font-size: .82rem; font-weight: 600; color: var(--heading); margin-bottom: .35rem; }
.field input, .field select {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  font: inherit; font-size: .95rem; color: var(--heading); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 4px rgba(44,116,255,.15); }
.field-error, .hero-form .text-danger { display: block; color: var(--red); font-size: .8rem; margin-top: .3rem; }
.form-note { font-size: .76rem; color: var(--muted); margin: .9rem 0 0; line-height: 1.5; }
.form-note i { color: var(--blue); }

/* ---------- highlights ---------- */
.highlights { background: #fff; border-bottom: 1px solid var(--line); }
.highlights-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.highlight { display: flex; gap: .9rem; align-items: center; padding: 1.5rem 1.2rem; }
.highlight + .highlight { border-left: 1px solid var(--line); }
.highlight > i { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-tint); color: var(--blue-bright); font-size: 1.25rem; }
.highlight strong { display: block; font-family: var(--font-head); color: var(--heading); font-size: .98rem; }
.highlight span { font-size: .85rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tint { background: var(--bg-tint); }
.section-navy { background: var(--navy); color: #c9d3ee; }
.section-navy h2 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head .eyebrow::before { display: none; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head-row { max-width: none; text-align: left; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.section-head-row h2 { margin-bottom: 0; }
.lead { font-size: 1.08rem; color: var(--muted); }

/* loan cards */
.loan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.loan-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.loan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.loan-card:hover .link-arrow i { transform: translateX(4px); }
.loan-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-tint); }
.loan-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.loan-card:hover .loan-media img { transform: scale(1.05); }
.loan-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.loan-body p { font-size: .9rem; color: var(--muted); flex: 1; margin-bottom: .8rem; }
.loan-card-cta { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-soft) 100%); border: 0; color: #c9d3ee; justify-content: center; padding: 1.6rem; }
.loan-card-cta:hover { color: #c9d3ee; }
.loan-card-cta > div > i { font-size: 2rem; color: #7fb0ff; display: block; margin-bottom: .8rem; }
.loan-card-cta h3 { color: #fff; font-size: 1.25rem; }
.loan-card-cta p { font-size: .92rem; }
.loan-card-cta .link-arrow { color: #9fc0ff; }

/* split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-reverse > .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.media-badge {
  position: absolute; left: -14px; bottom: 24px; background: #fff; color: var(--heading); padding: .75rem 1.1rem;
  border-radius: 12px; box-shadow: var(--shadow); font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  display: flex; gap: .5rem; align-items: center;
}
.media-badge i { color: #16a34a; font-size: 1.2rem; }

/* steps */
.steps { margin-top: 1.5rem; display: grid; gap: .9rem; counter-reset: s; }
.step { display: flex; gap: 1rem; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.step:hover { border-color: #c7d7fb; box-shadow: var(--shadow-sm); }
.step-num { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; }
.step h3 { margin-bottom: .25rem; font-size: 1.02rem; }
.step h3 i { color: var(--blue-bright); margin-right: .2rem; }
.step p { margin: 0; font-size: .92rem; color: var(--muted); }

/* dark band */
.band {
  position: relative; color: #c9d3ee; padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: linear-gradient(90deg, rgba(18,25,55,.97) 0%, rgba(18,25,55,.9) 55%, rgba(0,94,184,.75) 100%), var(--band-img) center / cover no-repeat, var(--navy);
}
.band-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: center; }
.band h2 { color: #fff; }
.band-copy p { max-width: 640px; }
.band-copy .btn { margin-top: .6rem; }
.band-tags { display: grid; gap: .7rem; }
.band-tags li { display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff; font-weight: 500; backdrop-filter: blur(4px); }
.band-tags i { color: #7fb0ff; font-size: 1.15rem; }

/* checklist */
.checklist { display: grid; gap: .75rem; margin: 1.4rem 0 2rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--heading); font-weight: 500; }
.checklist i { color: var(--blue-bright); font-size: 1.1rem; margin-top: .15rem; }

/* borrower cards */
.borrower-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.borrower-card { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.borrower-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.borrower-card img { flex: none; width: 76px; height: 76px; border-radius: 16px; object-fit: cover; }
.borrower-card h3 { margin-bottom: .3rem; font-size: 1.05rem; }
.borrower-card p { margin: 0; font-size: .9rem; color: var(--muted); }

/* reviews */
.review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.review-card { margin: 0; display: flex; flex-direction: column; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); position: relative; }
.review-card::before { content: "\201C"; position: absolute; right: 18px; top: 4px; font-family: Georgia, serif; font-size: 4.5rem; color: var(--blue-tint); line-height: 1; }
.review-card blockquote { margin: .8rem 0 1.2rem; font-size: .93rem; color: var(--text); flex: 1; }
.review-card figcaption { display: flex; align-items: center; gap: .7rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.review-card figcaption strong { display: block; color: var(--heading); font-size: .92rem; }
.review-card figcaption small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; }
.fineprint { font-size: .78rem; color: var(--muted); text-align: center; max-width: 760px; margin: 2rem auto 0; }

/* calculator */
.calc-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.calc-links { display: grid; gap: .6rem; margin-top: 1.5rem; }
.calc-links a { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 500; }
.calc-links a i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.1); color: #7fb0ff; }
.calc-links a:hover { color: #9fc0ff; }
.calc-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; color: var(--text); }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; }
.input-affix { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; transition: border-color .15s, box-shadow .15s; background: #fff; }
.input-affix:focus-within { border-color: var(--blue-bright); box-shadow: 0 0 0 4px rgba(44,116,255,.15); }
.input-affix input { border: 0 !important; box-shadow: none !important; padding-left: .5rem; padding-right: .5rem; min-width: 0; }
.input-affix em { font-style: normal; color: var(--muted); padding: 0 .7rem; font-size: .9rem; }
.calc-result { background: var(--bg-tint); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; }
.calc-result > span { font-size: .85rem; color: var(--muted); font-weight: 500; }
.calc-result > strong { font-family: var(--font-head); font-size: clamp(2rem, 1.5rem + 1.5vw, 2.6rem); color: var(--navy); line-height: 1.15; margin: .2rem 0 1rem; }
.calc-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--line); margin-bottom: 1.1rem; }
.calc-bar i { display: block; height: 100%; transition: width .3s ease; }
#barPi, .dot-pi { background: var(--blue-bright); }
#barTax, .dot-tax { background: var(--navy); }
#barIns, .dot-ins { background: var(--red); }
.calc-breakdown { margin: 0; display: grid; gap: .55rem; font-size: .9rem; }
.calc-breakdown div { display: flex; justify-content: space-between; gap: 1rem; }
.calc-breakdown div:last-child { border-top: 1px solid var(--line); padding-top: .55rem; margin-top: .2rem; }
.calc-breakdown dt { display: flex; align-items: center; gap: .5rem; color: var(--text); }
.calc-breakdown dd { margin: 0; font-weight: 600; color: var(--heading); font-variant-numeric: tabular-nums; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.calc-note { grid-column: 1 / -1; font-size: .76rem; color: var(--muted); margin: 0; }

/* values */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.value-card { text-align: center; padding: 2.2rem 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: box-shadow .2s, transform .2s; }
.value-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.value-icon { width: 64px; height: 64px; border-radius: 18px; display: inline-grid; place-items: center; font-size: 1.6rem; color: #fff; background: linear-gradient(140deg, var(--blue-bright), var(--navy)); margin-bottom: 1.1rem; box-shadow: 0 12px 24px -12px rgba(44,116,255,.8); }
.value-card h3 { font-size: 1.2rem; }
.value-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* posts */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); color: var(--text); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.post-card:hover .link-arrow i { transform: translateX(4px); }
.post-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-tag { align-self: flex-start; background: var(--blue-tint); color: var(--blue); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .65rem; border-radius: 999px; margin-bottom: .7rem; }
.post-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-body p { font-size: .92rem; color: var(--muted); flex: 1; }

/* CTA panel */
.cta-panel {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center;
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 50%, var(--blue) 130%);
  color: #c9d3ee; border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden;
}
.cta-panel::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; bottom: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(200,16,46,.35), transparent 70%); }
.cta-panel h2 { color: #fff; }
.cta-copy, .cta-contact { position: relative; z-index: 1; }
.cta-contact { display: grid; gap: 1rem; }
.cta-contact li { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.cta-contact i { color: #7fb0ff; font-size: 1.2rem; margin-top: .1rem; }
.cta-contact strong { display: block; color: #fff; font-family: var(--font-head); font-size: .9rem; font-weight: 600; }
.cta-contact span, .cta-contact a { color: #c9d3ee; font-size: .92rem; }
.cta-contact a:hover { color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #9aa6c8; font-size: .92rem; padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand img { height: 60px; width: auto; margin-bottom: 1rem; background: #fff; padding: 8px 12px; border-radius: 12px; }
.footer-nmls { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .04em; }
.footer-small { font-size: .82rem; color: #7d89ad; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.footer-links { display: grid; gap: .55rem; }
.footer-links a, .footer-contact a { color: #9aa6c8; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { display: grid; gap: .85rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact i { color: #7fb0ff; margin-top: .15rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.07); color: #dbe4ff; transition: background .2s; }
.footer-social a:hover { background: var(--blue-bright); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.2rem 0; font-size: .82rem; color: #7d89ad; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .loan-grid { grid-template-columns: repeat(3, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero-grid, .split, .band-inner, .cta-panel { grid-template-columns: 1fr; }
  .split-reverse > .split-media { order: 0; }
  .highlights-grid { grid-template-columns: 1fr 1fr; }
  .highlight:nth-child(3) { border-left: 0; }
  .highlight:nth-child(n+3) { border-top: 1px solid var(--line); }
  .borrower-grid, .post-grid, .value-grid { grid-template-columns: 1fr 1fr; }
  .media-badge { left: 12px; }
}
@media (max-width: 680px) {
  .loan-grid { grid-template-columns: 1fr 1fr; gap: .9rem; }
  .loan-body { padding: .9rem; }
  .loan-body p { display: none; }
  .calc-card, .calc-fields { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .highlights-grid, .borrower-grid, .post-grid, .value-grid, .review-grid, .footer-grid { grid-template-columns: 1fr; }
  .highlight + .highlight { border-left: 0; border-top: 1px solid var(--line); }
  .hero-actions .btn { flex: 1 1 100%; }
  .calc-fields { grid-template-columns: 1fr 1fr; }
  .topbar-social { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Motion: scroll reveals, hero entrance, hover polish.
   Content is only hidden for reveal once ink.js has added .js-motion to <html>,
   so nothing disappears without JavaScript. All of it is off for reduced motion.
   ========================================================================== */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); }

/* ---------- scroll reveal ---------- */
.js-motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--reveal-delay, 0s); will-change: opacity, transform; }
.js-motion [data-reveal="left"] { transform: translateX(-40px); }
.js-motion [data-reveal="right"] { transform: translateX(40px); }
.js-motion [data-reveal="zoom"] { transform: scale(.94); }
.js-motion [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -4%; z-index: -1;
  background: linear-gradient(100deg, rgba(18,25,55,.97) 0%, rgba(28,36,75,.92) 45%, rgba(28,36,75,.8) 100%), var(--hero-img) center / cover no-repeat;
  animation: hero-pan 28s ease-in-out infinite alternate;
}
.hero { background: var(--navy); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(10px); pointer-events: none; z-index: -1; }
.hero-orb-a { width: 520px; height: 520px; right: -140px; top: -180px; background: radial-gradient(circle, rgba(44,116,255,.45), transparent 65%); animation: orb-drift 14s ease-in-out infinite alternate; }
.hero-orb-b { width: 380px; height: 380px; left: -120px; bottom: -160px; background: radial-gradient(circle, rgba(200,16,46,.28), transparent 65%); animation: orb-drift 18s ease-in-out infinite alternate-reverse; }
.hero-grid-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  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: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 70%);
}
.hero::after { display: none; }
.hero { padding-bottom: clamp(7rem, 10vw, 8.5rem); }
.hero-disclaimer { margin-top: 2rem; }

/* entrance: copy lines rise in sequence, the form slides in */
.js-motion .hero-copy > * { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease-out) forwards; }
.js-motion .hero-copy > :nth-child(1) { animation-delay: .05s; }
.js-motion .hero-copy > :nth-child(2) { animation-delay: .15s; }
.js-motion .hero-copy > :nth-child(3) { animation-delay: .28s; }
.js-motion .hero-copy > :nth-child(4) { animation-delay: .38s; }
.js-motion .hero-copy > :nth-child(5) { animation-delay: .48s; }
.js-motion .hero-copy > :nth-child(6) { animation-delay: .58s; }
.js-motion .hero-form-wrap { opacity: 0; transform: translateX(40px) scale(.98); animation: slide-in 1s .35s var(--ease-out) forwards; }
.hero h1 .accent { background-size: 200% 100%; animation: shimmer-text 6s ease-in-out infinite; background-image: linear-gradient(90deg, #7fb0ff, #2c74ff, #9fc0ff, #7fb0ff); }
.hero-form { position: relative; }
.hero-form::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: calc(var(--radius-lg) + 2px);
  background: conic-gradient(from var(--spin, 0deg), rgba(44,116,255,.0), rgba(44,116,255,.7), rgba(200,16,46,.5), rgba(44,116,255,0) 60%);
  filter: blur(14px); opacity: .55; animation: spin-glow 8s linear infinite;
}
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ---------- stats card over the hero ---------- */
.hero-stats {
  position: relative; z-index: 3; margin-top: -4.6rem; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.98); border-radius: 22px; box-shadow: 0 30px 60px -25px rgba(16,24,56,.4); border: 1px solid var(--line);
  backdrop-filter: blur(8px); overflow: hidden;
}
.hero-stat { display: flex; gap: .9rem; align-items: center; padding: 1.5rem 1.4rem; transition: background .3s; }
.hero-stat:hover { background: var(--bg-tint); }
.hero-stat + .hero-stat { border-left: 1px solid var(--line); }
.hero-stat-icon { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: linear-gradient(140deg, var(--blue-bright), var(--navy)); box-shadow: 0 10px 20px -10px rgba(44,116,255,.8); transition: transform .4s var(--ease-out); }
.hero-stat:hover .hero-stat-icon { transform: rotate(-8deg) scale(1.08); }
.hero-stat:last-child .hero-stat-icon { background: linear-gradient(140deg, #f5b301, #e08a00); box-shadow: 0 10px 20px -10px rgba(245,179,1,.8); }
.hero-stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); line-height: 1.05; color: var(--navy); font-variant-numeric: tabular-nums; }
.hero-stat strong small { font-size: .5em; color: var(--muted); font-weight: 600; margin-left: .1rem; }
.hero-stat div > span { font-size: .84rem; color: var(--muted); line-height: 1.4; }
.highlights { display: none; }

/* ---------- buttons: light sweep on hover ---------- */
.btn { position: relative; overflow: hidden; }
.btn-primary::after, .btn-light::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg);
  transition: left .7s var(--ease-out);
}
.btn-primary:hover::after, .btn-light:hover::after { left: 130%; }
.btn i.bi-arrow-right { transition: transform .3s var(--ease-out); }
.btn:hover i.bi-arrow-right { transform: translateX(4px); }

/* ---------- cards ---------- */
.loan-card { position: relative; }
.loan-media { position: relative; }
.loan-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(18,25,55,.55)); opacity: 0; transition: opacity .4s; }
.loan-card:hover .loan-media::after { opacity: 1; }
.loan-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2; background: linear-gradient(90deg, var(--blue-bright), var(--red)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.loan-card:hover::before { transform: scaleX(1); }
.borrower-card img { transition: transform .5s var(--ease-out); }
.borrower-card:hover img { transform: scale(1.08) rotate(-2deg); }
.value-icon { transition: transform .5s var(--ease-out); }
.value-card:hover .value-icon { transform: translateY(-4px) rotate(-6deg); }
.review-card { transition: transform .3s var(--ease-out), box-shadow .3s; }
.review-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.split-media img { transition: transform .8s var(--ease-out); }
.split-media:hover img { transform: scale(1.02); }
.media-badge { animation: bob 4.5s ease-in-out infinite; }

/* process steps: a line that fills as the list comes into view */
.steps { position: relative; }
.steps::before { content: ""; position: absolute; left: calc(1.2rem + 18px); top: 1.6rem; bottom: 1.6rem; width: 2px; background: var(--line); z-index: 0; }
.steps::after { content: ""; position: absolute; left: calc(1.2rem + 18px); top: 1.6rem; width: 2px; height: 0; background: linear-gradient(var(--blue-bright), var(--navy)); z-index: 0; transition: height 1.6s var(--ease-out) .3s; }
.js-motion .steps.is-visible::after, .steps:not([data-reveal])::after { height: calc(100% - 3.2rem); }
.step { position: relative; z-index: 1; }
.step-num { box-shadow: 0 0 0 5px #fff; transition: background .3s, transform .3s; }
.section-tint .step-num { box-shadow: 0 0 0 5px var(--bg-tint); }
.step:hover .step-num { background: var(--blue-bright); transform: scale(1.08); }

/* complex-loans band: tags slide in */
.band-tags li { transition: transform .3s var(--ease-out), background .3s; }
.band-tags li:hover { transform: translateX(6px); background: rgba(255,255,255,.12); }

/* header: compact once scrolled */
.site-header .brand img { transition: height .3s var(--ease-out); }
.site-header.is-scrolled .brand img { height: 52px; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes slide-in { to { opacity: 1; transform: none; } }
@keyframes hero-pan { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1%); } }
@keyframes orb-drift { from { transform: translate(0, 0); } to { transform: translate(-60px, 40px); } }
@keyframes shimmer-text { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes spin-glow { to { --spin: 360deg; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat:nth-child(3) { border-left: 0; }
  .hero-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr; margin-top: -3.5rem; }
  .hero-stat + .hero-stat { border-left: 0; border-top: 1px solid var(--line); }
  .hero-stat { padding: 1.1rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero-orb, .hero h1 .accent, .hero-form::before, .media-badge { animation: none !important; }
  .js-motion [data-reveal], .js-motion .hero-copy > *, .js-motion .hero-form-wrap { opacity: 1 !important; transform: none !important; animation: none !important; }
  .steps::after { height: calc(100% - 3.2rem); transition: none; }
}
