/* Kristi Rendon Home Loans — site styles */
:root {
  --ink: #0B1324;
  --body: #3E4757;
  --muted: #5B6577;
  --line: #E6E8EC;
  --soft: #F2F3F5;
  --accent: #B4532A;
  --accent-dark: #93421F;
  --navy: #0B1324;
  --navy-card: #16213A;
  --on-navy-muted: #A9B3C4;
  --display: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 640px) { .wrap { padding-left: 20px; padding-right: 20px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-size: 26px; }
.brand-sub { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.edge-mark { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 1px solid var(--line); }
.edge-mark img { height: 22px; width: auto; align-self: flex-start; object-fit: contain; }
.edge-mark span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brand-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; padding: 12px 0; }
.nav a.btn { padding: 12px 22px; color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 16px 30px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; min-height: 48px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11,19,36,.16); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-soft { background: var(--soft); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-sm { padding: 12px 22px; min-height: 44px; }

/* Type */
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; line-height: 0.98; margin: 0; }
.h1 { font-size: clamp(52px, 7.4vw, 112px); }
.h2 { font-size: clamp(40px, 4.8vw, 68px); }
.h3 { font-size: clamp(30px, 3vw, 40px); }
.lead { font-size: 20px; color: var(--body); max-width: 520px; margin: 0; }
.muted { color: var(--muted); }
em.accent { font-style: italic; color: var(--accent); }

/* Layout helpers */
.section { padding-top: 120px; padding-bottom: 120px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) { .section { padding-top: 72px; padding-bottom: 72px; } }

/* Hero */
.hero { padding-top: 40px; padding-bottom: 96px; align-items: end; }
.hero-photo { width: 100%; height: 680px; object-fit: cover; object-position: center 20%; border-radius: 32px; background: var(--soft); }
@media (max-width: 720px) { .hero-photo { height: 460px; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .8s ease-out both; }
.rise-2 { animation: rise .8s .15s ease-out both; }
.rise-3 { animation: rise .8s .3s ease-out both; }
@media (prefers-reduced-motion: reduce) { .rise, .rise-2, .rise-3 { animation: none; } .btn { transition: none; } html { scroll-behavior: auto; } }

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.stat-num { font-family: var(--display); font-size: 76px; line-height: 1; letter-spacing: -0.02em; }

/* Program list */
.program-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 40px; font-size: 20px; font-weight: 600; }
.program-list li { padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding .25s ease; }
.program-list li:hover { padding-left: 12px; }
.program-list a { text-decoration: none; }

/* Steps */
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 22px; }
.steps li { display: flex; gap: 20px; align-items: baseline; }
.steps .n { font-size: 15px; font-weight: 800; color: var(--accent); }
.steps strong { font-size: 19px; }
.steps span.d { display: block; color: var(--body); margin-top: 4px; }
.photo-ph { height: 560px; border-radius: 32px; background: var(--soft); }

/* Dark band + cards */
.band-dark { background: var(--navy); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card-dark { text-decoration: none; color: #fff; background: var(--navy-card); border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 14px; min-height: 220px; transition: transform .2s ease; }
.card-dark:hover { color: #fff; transform: translateY(-3px); }
.card-dark .k { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--on-navy-muted); }
.card-dark .t { font-family: var(--display); font-size: 40px; line-height: 1.05; }
.card-dark .d { color: var(--on-navy-muted); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.input { font: inherit; font-weight: 400; padding: 16px 20px; border: 1px solid #C9CED6; border-radius: 14px; background: #fff; color: var(--ink); min-height: 52px; width: 100%; }
.input-pill { border-radius: 999px; }
.choice { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.form-status { font-weight: 600; margin: 0; min-height: 1.6em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* CTA panel */
.cta-panel { background: var(--soft); border-radius: 32px; padding: 72px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
@media (max-width: 640px) { .cta-panel { padding: 48px 24px; } }

/* FAQ */
.faq { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); padding: 28px 0; display: flex; flex-direction: column; gap: 8px; }
.faq-item h3 { margin: 0; font-size: 21px; font-weight: 700; }
.faq-item p { margin: 0; color: var(--body); max-width: 820px; }

/* Calculators */
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; border: 1px solid var(--line); border-radius: 32px; padding: 40px; }
@media (max-width: 640px) { .calc { padding: 24px; } }
.calc-inputs { display: flex; flex-direction: column; gap: 18px; }
.calc-out { background: var(--navy); color: #fff; border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 20px; align-self: start; }
.calc-out.light { background: var(--soft); color: var(--ink); }
.calc-big { font-family: var(--display); font-size: 72px; line-height: 1; }
.calc-lines { display: grid; gap: 10px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px; }
.calc-out.light .calc-lines { border-top-color: #D5D9E0; }
.calc-lines div { display: flex; justify-content: space-between; gap: 16px; }
.seg { display: flex; gap: 8px; }
.seg button { flex: 1; font: inherit; font-weight: 700; min-height: 48px; border-radius: 12px; border: 1.5px solid #C9CED6; background: #fff; color: var(--ink); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.fine { font-size: 13px; line-height: 1.6; margin: 0; opacity: .85; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--body); line-height: 1.7; }
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.site-footer .col { display: flex; flex-direction: column; gap: 6px; }
.site-footer img.edge { width: 120px; height: auto; margin-bottom: 6px; align-self: flex-start; }
.site-footer img.eho { width: 40px; height: auto; flex-shrink: 0; }
.legal { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 6px; }
.footer-brand img { height: 36px; width: auto; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.review { margin: 0; background: var(--soft); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.review blockquote { margin: 0; font-family: var(--display); font-size: 25px; line-height: 1.3; }
.review figcaption { font-weight: 700; font-size: 15px; }
.review figcaption span { display: block; font-weight: 500; color: var(--muted); }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 18px; }
.es-link { font-size: 15px; font-weight: 600; }

/* Rates */
.rate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.rate-card { border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.rate-card.soft { background: var(--soft); border-color: var(--soft); }
.rate-label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rate-num { font-family: var(--display); font-size: 64px; line-height: 1; }
.rate-chg { font-weight: 700; font-size: 15px; }
.rate-chg.down { color: #1F7A4D; }
.rate-chg.up { color: #B4532A; }
.rate-chg.flat { color: var(--muted); }
.rate-chart svg { width: 100%; height: auto; display: block; }
.rates-strip { background: var(--soft); }
.rates-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 18px; padding-bottom: 18px; font-size: 15px; }
.rs-title { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.rs-item strong { font-size: 17px; }
.rs-link { margin-left: auto; font-weight: 700; text-decoration: none; color: var(--accent); }
@media (max-width: 640px) { .rs-link { margin-left: 0; } }

/* Licensing disclosures (footer, every page) */
.disclosures { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 40px; font-size: 12.5px; line-height: 1.65; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }
.disclosures p { margin: 0; max-width: 1100px; }
.disclosures a { color: var(--muted); }
.disclosures strong { color: var(--body); }

/* The Weekly Edge archive */
.we-hero { padding-top: 56px; padding-bottom: 24px; max-width: 1000px; }
.we-title { font-size: clamp(40px, 5.2vw, 76px); line-height: 1.04; margin: 0; }
.we-byline { margin: 0; font-weight: 600; color: var(--body); }
.we-note { margin: 0; font-size: 15px; color: var(--muted); background: var(--soft); border-radius: 14px; padding: 14px 18px; max-width: 760px; }
.we-sec { padding-top: 56px; padding-bottom: 8px; max-width: 1000px; margin-left: auto; margin-right: auto; }
.we-sec > .h2 { margin: 0 0 20px; }
.we-sec > .eyebrow + .h2 { margin-top: 8px; }
.we-src { font-size: 14px; color: var(--muted); }
.we-src a { color: var(--muted); }
.we-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 8px; }
.we-card { background: var(--soft); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.we-card .k { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.we-card p { margin: 0; color: var(--body); }
.we-try { padding-top: 10px; border-top: 1px solid #DCDFE5; }
.we-cta { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; border: 1px solid var(--line); border-radius: 22px; padding: 20px 24px; }
.we-cta p { margin: 0; color: var(--body); max-width: 620px; }
.we-prose { margin: 0 0 16px; color: var(--body); font-size: 18px; max-width: 820px; }
.we-fine { margin-top: 12px; color: var(--muted); }
.we-table-wrap { overflow-x: auto; }
.we-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.we-table th, .we-table td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.we-table thead th { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.we-table tbody th { font-weight: 700; }
.we-table tbody th span { display: block; font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 4px; }
.we-table td { font-weight: 700; white-space: nowrap; }
.we-word { background: var(--navy); color: #fff; border-radius: 28px; padding: 40px; }
.we-word .eyebrow { color: var(--on-navy-muted); }
.we-word .h2 { margin: 8px 0 12px; }
.we-word p:last-child { margin: 0; color: #D9DEE7; max-width: 820px; }
.we-day { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.we-day.big { color: var(--accent); }
.we-take { border-left: 4px solid var(--accent); padding: 8px 0 8px 28px; }
.we-take .eyebrow { margin-bottom: 10px; }
.we-quote { font-family: var(--display); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; margin: 0 0 14px; }
.we-pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding-top: 64px; padding-bottom: 8px; max-width: 1000px; }
.we-pg { display: flex; flex-direction: column; gap: 6px; text-decoration: none; border: 1px solid var(--line); border-radius: 20px; padding: 20px 24px; font-weight: 600; }
.we-pg .k { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.we-list { list-style: none; margin: 24px 0 0; padding: 0; }
.we-list li { border-top: 1px solid var(--line); }
.we-list li:last-child { border-bottom: 1px solid var(--line); }
.we-list a { display: flex; flex-direction: column; gap: 6px; padding: 28px 0; text-decoration: none; transition: padding .25s ease; }
.we-list a:hover { padding-left: 12px; }
.we-li-date { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.we-li-title { font-family: var(--display); font-size: clamp(28px, 3vw, 38px); line-height: 1.1; }
.we-li-sum { color: var(--body); max-width: 860px; }
@media (max-width: 640px) { .we-sec { padding-top: 40px; } .we-word { padding: 28px 24px; } .we-take { padding-left: 20px; } }
