/* ============================================================
   LoanRateCheck — style.css
   Color palette: deep navy, warm gold, slate, clean white
   ============================================================ */

:root {
    --navy:       #1a2e46;
    --navy-mid:   #2c5f8a;
    --navy-light: #3d7ab5;
    --gold:       #c8923a;
    --gold-light: #e8b469;
    --slate:      #4a5568;
    --bg:         #f7f8fa;
    --bg-card:    #ffffff;
    --border:     #dde3eb;
    --text:       #1a2e46;
    --text-muted: #6b7a8d;
    --green:      #4aa06e;
    --orange:     #e07b39;
    --red:        #e74c3c;
    --shadow-sm:  0 1px 4px rgba(26,46,70,.07);
    --shadow-md:  0 4px 16px rgba(26,46,70,.10);
    --shadow-lg:  0 8px 32px rgba(26,46,70,.13);
    --radius:     10px;
    --radius-sm:  6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ── HEADER ──────────────────────────────────────────────────── */
.site-header {
    background: var(--navy);
    border-bottom: 3px solid var(--gold);
    position: sticky; top: 0; z-index: 200;
    box-shadow: var(--shadow-md);
}
.header-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 62px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: .02em;
}
.logo-tagline { font-size: .68rem; color: var(--gold-light); letter-spacing: .06em; text-transform: uppercase; }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
    color: rgba(255,255,255,.78); text-decoration: none;
    font-size: .91rem; font-weight: 500; transition: color .2s;
}
.main-nav a:hover, .main-nav a.nav-active { color: var(--gold-light); }

/* Hamburger — #7 mobile menu */
.nav-toggle {
    display: none;
    background: none; border: none;
    color: #fff; font-size: 1.5rem;
    cursor: pointer; padding: 4px 8px;
    line-height: 1;
}

/* ── HERO — 50 % shorter ─────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1e3d5c 60%, #26527a 100%);
    padding: 22px 24px 18px;
    text-align: center; position: relative; overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.hero-inner { max-width: 700px; margin: 0 auto; }
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 6px;
}
.hero-subtitle { color: rgba(255,255,255,.72); font-size: .97rem; font-weight: 300; }

/* ── MAIN LAYOUT ─────────────────────────────────────────────── */
.main-content { max-width: 1200px; margin: 0 auto; padding: 32px 24px 60px; }

.calculator-wrapper {
    display: grid; grid-template-columns: 420px 1fr;
    gap: 28px; margin-bottom: 48px; align-items: start;
}

/* ── FORM PANEL ──────────────────────────────────────────────── */
.calc-form-panel {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow-md); padding: 28px 28px 32px;
    border: 1px solid var(--border);
}
.form-section-label {
    font-size: .75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .08em; color: var(--text-muted); margin-bottom: 10px; margin-top: 4px;
}
.form-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0 18px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: .88rem; font-weight: 600; color: var(--slate); margin-bottom: 6px; }
.label-note { font-weight: 400; color: var(--text-muted); font-size: .78rem; margin-left: 4px; }

input[type="text"], input[type="email"], select {
    width: 100%; height: 42px; padding: 0 12px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: .95rem; font-family: 'Source Sans 3', sans-serif;
    color: var(--text); background: #fff;
    transition: border-color .2s, box-shadow .2s; outline: none;
}
input[type="text"]:focus, input[type="email"]:focus, select:focus {
    border-color: var(--navy-mid); box-shadow: 0 0 0 3px rgba(44,95,138,.12);
}
input.readonly-field { background: #f0f4f8; color: var(--slate); cursor: default; }

.input-prefix-wrap, .input-suffix-wrap {
    display: flex; align-items: center;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.input-prefix-wrap:focus-within, .input-suffix-wrap:focus-within {
    border-color: var(--navy-mid); box-shadow: 0 0 0 3px rgba(44,95,138,.12);
}
.prefix, .suffix {
    padding: 0 10px; background: #f0f4f8; color: var(--slate);
    font-size: .9rem; font-weight: 600; white-space: nowrap;
    height: 42px; display: flex; align-items: center;
}
.prefix { border-right: 1px solid var(--border); }
.suffix { border-left:  1px solid var(--border); }
.input-prefix-wrap input, .input-suffix-wrap input {
    border: none !important; box-shadow: none !important; border-radius: 0; flex: 1;
}
.input-dual { display: flex; gap: 8px; }
.input-dual .input-prefix-wrap { flex: 1; }
.pct-box { width: 80px; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 32px; cursor: pointer; }
.select-wrap::after {
    content: '▾'; position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%); color: var(--slate); pointer-events: none; font-size: .8rem;
}

/* Loan type tabs */
.loan-type-tabs {
    display: flex; margin-bottom: 20px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.loan-tab {
    flex: 1; text-align: center; padding: 9px 4px;
    font-size: .82rem; font-weight: 600; color: var(--slate);
    cursor: pointer; background: #fff;
    transition: background .15s, color .15s;
    border-right: 1px solid var(--border);
}
.loan-tab:last-child { border-right: none; }
.loan-tab input { display: none; }
.loan-tab:hover { background: #f0f4f8; }
.loan-tab.active { background: var(--navy); color: #fff; }

/* Gold button — shared style (#2) */
.calc-btn, .extra-calc-btn {
    width: 100%; height: 48px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #fff; border: none; border-radius: var(--radius-sm);
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem; font-weight: 700; letter-spacing: .03em;
    cursor: pointer; margin-top: 24px;
    transition: transform .15s, box-shadow .15s, filter .15s;
    box-shadow: 0 3px 12px rgba(200,146,58,.35);
}
.calc-btn:hover, .extra-calc-btn:hover {
    filter: brightness(1.06); transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(200,146,58,.45);
}
.calc-btn:active, .extra-calc-btn:active { transform: translateY(0); }

/* Extra button override — no full width, auto margin */
.extra-calc-btn { width: auto; margin-top: 0; padding: 0 22px; flex-shrink: 0; }

/* ── RESULTS PANEL ───────────────────────────────────────────── */
.calc-results-panel { display: flex; flex-direction: column; gap: 20px; }

/* Monthly payment card */
.monthly-payment-card {
    background: var(--navy); border-radius: var(--radius);
    padding: 24px 24px 20px; color: #fff; box-shadow: var(--shadow-lg);
}
.mp-label {
    font-size: .8rem; color: rgba(255,255,255,.6);
    text-transform: uppercase; letter-spacing: .07em; font-weight: 500; margin-bottom: 4px;
}
.mp-amount {
    font-family: 'Playfair Display', serif;
    font-size: 2.7rem; font-weight: 700; color: var(--gold-light); line-height: 1; margin-bottom: 2px;
}
.mp-sub { font-size: .82rem; color: rgba(255,255,255,.45); margin-bottom: 16px; }

/* Breakdown header row */
.mp-breakdown-header {
    display: grid; grid-template-columns: 1fr 90px 90px;
    gap: 8px; padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    margin-bottom: 8px;
}
.mp-item-head { font-size: .72rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .06em; padding-left: 20px; }
.mp-col-head  { font-size: .72rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .06em; text-align: right; }

.mp-breakdown { display: flex; flex-direction: column; gap: 7px; }
.mp-row {
    display: grid; grid-template-columns: 14px 1fr 90px 90px;
    align-items: center; gap: 8px; font-size: .88rem;
}
.mp-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.mp-item { color: rgba(255,255,255,.8); }
.mp-mo   { font-weight: 600; color: #fff; text-align: right; }
.mp-tot  { color: rgba(255,255,255,.55); font-size: .82rem; text-align: right; }

.mp-row-total { margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.15); }
.mp-row-total .mp-item { color: #fff; }
.mp-row-total .mp-tot  { color: var(--gold-light); font-weight: 600; font-size: .88rem; }

/* Donut chart — interactive (#1) */
.chart-section {
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    padding: 16px 20px; display: flex; align-items: center; gap: 20px;
    position: relative;
}
.chart-canvas-wrap { position: relative; flex-shrink: 0; }
#donutChart { display: block; cursor: crosshair; }
.donut-tooltip {
    position: absolute; pointer-events: none;
    background: rgba(26,46,70,.92); color: #fff;
    padding: 6px 11px; border-radius: 6px;
    font-size: .8rem; font-weight: 600; white-space: nowrap;
    transform: translate(-50%, -130%);
    opacity: 0; transition: opacity .15s;
    z-index: 10;
}
.donut-tooltip.visible { opacity: 1; }

.chart-legend { display: flex; flex-direction: column; gap: 6px; font-size: .83rem; }
.legend-item { display: flex; align-items: center; gap: 8px; color: var(--slate); }
.legend-item span { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }

/* Summary stats */
.summary-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.stat-card {
    background: var(--bg-card); border-radius: var(--radius-sm);
    border: 1px solid var(--border); padding: 13px 15px; box-shadow: var(--shadow-sm);
}
.stat-label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.stat-val { font-size: 1.1rem; font-weight: 700; color: var(--navy); font-family: 'Playfair Display', serif; }

/* ── EXTRA PAYMENT (#2 #3) ───────────────────────────────────── */
.extra-payment-section {
    background: #f0f5fb; border-radius: var(--radius);
    border: 1px solid var(--border); padding: 20px 22px;
}
.extra-payment-header h3 {
    font-family: 'Playfair Display', serif; font-size: 1.1rem;
    font-weight: 700; color: var(--navy); margin-bottom: 4px;
}
.extra-payment-header p { font-size: .87rem; color: var(--text-muted); margin-bottom: 14px; }

.extra-pay-form { margin-bottom: 16px; }
.extra-pay-row {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.extra-pay-row label { font-size: .88rem; font-weight: 600; color: var(--slate); white-space: nowrap; }
.extra-note { font-size: .78rem; color: var(--text-muted); margin-top: 8px; }

/* #3 — horizontal results table, max 2 rows */
.extra-results-table-wrap { overflow-x: auto; }
.extra-results-table {
    width: 100%; border-collapse: collapse;
    font-size: .85rem; border-radius: var(--radius-sm); overflow: hidden;
    border: 1px solid var(--border);
}
.extra-results-table th {
    background: var(--navy); color: rgba(255,255,255,.8);
    font-size: .72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .06em; padding: 8px 12px; text-align: center; white-space: nowrap;
}
.extra-results-table td {
    padding: 10px 12px; text-align: center; border-right: 1px solid var(--border);
    vertical-align: middle;
}
.extra-results-table td:last-child { border-right: none; }
.extra-results-table .label-row td { font-size: .75rem; color: var(--text-muted); background: #f8f9fc; font-weight: 500; }
.extra-results-table .value-row td { font-size: 1rem; font-weight: 700; background: #fff; }
.val-green  { color: #2d7a52; }
.val-blue   { color: var(--navy-mid); }
.val-gold   { color: var(--gold); }
.val-normal { color: var(--navy); }

/* ── EXPORT SECTION (#4 #5) ──────────────────────────────────── */
.export-section {
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    padding: 20px 22px;
}
.export-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.export-subtitle { font-size: .86rem; color: var(--text-muted); margin-bottom: 16px; }

/* #4 — image-style clickable export tiles */
.export-tiles { display: flex; gap: 14px; flex-wrap: wrap; }
.export-tile {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    cursor: pointer; border-radius: var(--radius-sm);
    padding: 14px 18px; border: 1.5px solid var(--border);
    background: #fff; transition: border-color .2s, box-shadow .2s, transform .15s;
    min-width: 90px; text-decoration: none;
    user-select: none;
}
.export-tile:hover { border-color: var(--navy-mid); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.export-tile:active { transform: translateY(0); }
.export-tile svg { display: block; }
.export-tile-label { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tile-pdf   .export-tile-label { color: #c0392b; }
.tile-xlsx  .export-tile-label { color: #1e6e3f; }
.tile-print .export-tile-label { color: var(--navy); }

.export-note { font-size: .75rem; color: var(--text-muted); margin-top: 12px; }

/* #5 — Email popup modal */
.export-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(10,20,35,.55); z-index: 500;
    align-items: center; justify-content: center;
}
.export-modal-overlay.open { display: flex; }
.export-modal {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 32px 28px;
    width: 100%; max-width: 400px; position: relative;
    animation: modalIn .2s ease;
}
@keyframes modalIn { from { transform: translateY(-18px); opacity: 0; } to { transform: none; opacity: 1; } }
.export-modal-close {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none; font-size: 1.3rem; cursor: pointer;
    color: var(--text-muted); line-height: 1;
}
.export-modal-close:hover { color: var(--navy); }
.export-modal h3 {
    font-family: 'Playfair Display', serif; font-size: 1.2rem;
    color: var(--navy); margin-bottom: 6px;
}
.export-modal-icon { font-size: 2rem; margin-bottom: 8px; }
.export-modal p { font-size: .88rem; color: var(--text-muted); margin-bottom: 16px; }
.export-modal .modal-email-wrap { display: flex; flex-direction: column; gap: 10px; }
.export-modal input[type="email"] {
    height: 44px; font-size: .95rem;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 0 14px;
}
.export-modal input[type="email"]:focus { border-color: var(--navy-mid); box-shadow: 0 0 0 3px rgba(44,95,138,.12); }
.modal-submit-btn {
    height: 44px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #fff; border: none; border-radius: var(--radius-sm);
    font-family: 'Source Sans 3', sans-serif; font-size: .95rem; font-weight: 700;
    cursor: pointer; transition: filter .15s, transform .15s;
    box-shadow: 0 3px 10px rgba(200,146,58,.3);
}
.modal-submit-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.modal-note { font-size: .75rem; color: var(--text-muted); margin-top: 8px !important; }

/* ── SECTION TITLES ──────────────────────────────────────────── */
.section-title { font-family: 'Playfair Display', serif; font-size: 1.65rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.section-sub   { color: var(--text-muted); font-size: .92rem; margin-bottom: 20px; }

/* ── LENDER TABLE ────────────────────────────────────────────── */
.lender-section {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow-md); border: 1px solid var(--border);
    padding: 32px 32px 24px; margin-bottom: 36px;
}
.lender-table-wrap { overflow-x: auto; }
.lender-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.lender-table th {
    background: var(--navy); color: rgba(255,255,255,.85);
    font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em;
    padding: 12px 14px; text-align: left; white-space: nowrap;
}
.lender-table th:first-child { border-radius: 6px 0 0 6px; }
.lender-table th:last-child  { border-radius: 0 6px 6px 0; }
.lender-table td { padding: 11px 14px; border-bottom: 1px solid #eef0f4; vertical-align: middle; }
.row-even td { background: #fff; }
.row-odd  td { background: #f8f9fc; }
.lender-table tr:hover td { background: #eef5ff; transition: background .15s; }
.lender-name  { font-weight: 600; color: var(--navy); }
.rate-val     { font-weight: 700; color: var(--navy-mid); font-size: .95rem; }
.payment-val  { font-weight: 700; color: var(--green); }

.loan-badge { display: inline-block; padding: 3px 8px; border-radius: 20px; font-size: .74rem; font-weight: 700; }
.badge-conventional { background: #e8f0fb; color: #2c5f8a; }
.badge-fha   { background: #fef3e2; color: #b86a0a; }
.badge-va    { background: #e8f7f0; color: #2d7a52; }
.badge-usda  { background: #f3e8fb; color: #7b3fa0; }

.check-rate-btn {
    display: inline-block; padding: 6px 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #fff; border-radius: 20px; font-size: .8rem; font-weight: 700;
    text-decoration: none; transition: filter .15s, transform .15s; white-space: nowrap;
}
.check-rate-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.lender-disclaimer { font-size: .77rem; color: var(--text-muted); margin-top: 14px; line-height: 1.5; }

/* ── AMORTIZATION ────────────────────────────────────────────── */
.amort-section {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow-md); border: 1px solid var(--border);
    padding: 32px 32px 24px; margin-bottom: 36px;
}
/* #1 bar chart tooltip */
.amort-chart-wrap { position: relative; margin-bottom: 24px; }
.bar-tooltip {
    position: absolute; pointer-events: none;
    background: rgba(26,46,70,.92); color: #fff;
    padding: 7px 12px; border-radius: 6px;
    font-size: .8rem; line-height: 1.5; white-space: nowrap;
    transform: translate(-50%, -110%);
    opacity: 0; transition: opacity .15s;
    z-index: 10;
}
.bar-tooltip.visible { opacity: 1; }
#amortBarChart { display: block; width: 100%; }

.amort-tabs {
    display: flex; margin-bottom: 20px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    overflow: hidden; width: fit-content;
}
.amort-tab {
    padding: 8px 28px; font-size: .88rem; font-weight: 600;
    border: none; background: #fff; color: var(--slate);
    cursor: pointer; transition: background .15s, color .15s;
    border-right: 1px solid var(--border);
    font-family: 'Source Sans 3', sans-serif;
}
.amort-tab:last-child { border-right: none; }
.amort-tab.active { background: var(--navy); color: #fff; }

.amort-table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.amort-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.amort-table th {
    background: linear-gradient(to bottom, #2d4f72, var(--navy-mid));
    color: #fff; font-size: .75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em;
    padding: 10px 14px; text-align: left; white-space: nowrap;
    border-bottom: 2px solid var(--gold);
}
.amort-table td { padding: 9px 14px; border-bottom: 1px solid #eef0f4; white-space: nowrap; }
.amort-table tr:last-child td { border-bottom: none; }
.amort-table tr:hover td { background: #eef5ff; }
.yr-cell        { font-weight: 600; color: var(--navy); }
.principal-cell { color: var(--green); font-weight: 600; }
.interest-cell  { color: var(--orange); }

.balance-bar-wrap {
    background: #e8edf4; border-radius: 3px; height: 5px;
    width: 80px; display: inline-block; margin-right: 8px;
    vertical-align: middle; overflow: hidden;
}
.balance-bar { height: 100%; background: linear-gradient(90deg, var(--navy-mid), var(--gold)); border-radius: 3px; min-width: 2px; }

/* ── EDUCATIONAL ─────────────────────────────────────────────── */
.edu-section {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow-md); border: 1px solid var(--border);
    padding: 40px 36px; margin-bottom: 36px;
}
.edu-grid { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
.edu-main h2 {
    font-family: 'Playfair Display', serif; font-size: 1.55rem; font-weight: 700;
    color: var(--navy); margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}
.edu-main h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; color: var(--navy); margin: 20px 0 7px; }
.edu-main p  { color: var(--slate); font-size: .94rem; line-height: 1.7; margin-bottom: 10px; }
.edu-main strong { color: var(--navy); }

.edu-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-card { background: #f0f5fb; border-radius: var(--radius-sm); border: 1px solid var(--border); padding: 16px 18px; }
.sidebar-card h4 {
    font-family: 'Playfair Display', serif; font-size: .97rem; font-weight: 700;
    color: var(--navy); margin-bottom: 10px; padding-bottom: 7px; border-bottom: 2px solid var(--gold);
}
.sidebar-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sidebar-card li { font-size: .83rem; color: var(--slate); line-height: 1.4; }
.sidebar-card strong { color: var(--navy); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag {
    display: inline-block; padding: 3px 9px;
    background: #e8f0fb; color: var(--navy-mid);
    border-radius: 20px; font-size: .73rem; font-weight: 600;
}

/* ── FAQ — #6 plain titles ───────────────────────────────────── */
.faq-section { margin-top: 32px; }
.faq-section > h2 {
    font-family: 'Playfair Display', serif; font-size: 1.55rem; font-weight: 700;
    color: var(--navy); margin-bottom: 18px; padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}
.faq-item { margin-bottom: 20px; }
/* #6: plain h4 title instead of button */
.faq-q-title {
    font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700;
    color: var(--navy); margin-bottom: 6px;
    padding-left: 14px; border-left: 3px solid var(--gold);
}
.faq-a { padding-left: 17px; }
.faq-a p { color: var(--slate); font-size: .92rem; line-height: 1.65; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer { background: var(--navy); border-top: 3px solid var(--gold); padding: 0 24px 28px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }

/* Trust badges */
.trust-badges {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
    background: var(--gold); padding: 10px 20px;
}
.trust-badge {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 16px; font-size: .8rem; font-weight: 700;
    color: var(--navy); white-space: nowrap;
    border-right: 1px solid rgba(26,46,70,.2);
}
.trust-badge:last-child { border-right: none; }
.trust-check { font-size: 1rem; }

.footer-cols {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px; padding: 36px 0 24px;
}
.footer-col h4 { font-family: 'Playfair Display', serif; font-size: .92rem; color: var(--gold-light); margin-bottom: 12px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-col a  { color: rgba(255,255,255,.55); text-decoration: none; font-size: .83rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold-light); }

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-logo span { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--gold-light); }
.footer-about { color: rgba(255,255,255,.45); font-size: .82rem; line-height: 1.6; max-width: 260px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 16px; text-align: center;
}
.footer-disclaimer { color: rgba(255,255,255,.35); font-size: .77rem; max-width: 680px; margin: 0 auto 10px; line-height: 1.6; }
.footer-copy { color: rgba(255,255,255,.25); font-size: .75rem; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 960px) {
    .calculator-wrapper { grid-template-columns: 1fr; }
    .edu-grid { grid-template-columns: 1fr; }
    .edu-sidebar { order: -1; }
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 700px) {
    /* #7 mobile menu */
    .nav-toggle { display: block; }
    .main-nav {
        display: none; flex-direction: column; gap: 0;
        position: absolute; top: 65px; left: 0; right: 0;
        background: var(--navy); border-top: 1px solid rgba(255,255,255,.1);
        z-index: 150; padding: 8px 0;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 11px 24px; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.06); }

    .site-header { position: relative; }  /* so absolute nav works */
    .hero-title  { font-size: 1.7rem; }
    .mp-amount   { font-size: 2.1rem; }
    .section-title { font-size: 1.25rem; }
    .calc-form-panel, .lender-section, .amort-section, .edu-section { padding: 18px 14px; }
    .summary-stats { grid-template-columns: 1fr 1fr; }
    .chart-section { flex-direction: column; }
    .chart-legend  { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .trust-badges  { gap: 0; }
    .trust-badge   { padding: 4px 8px; font-size: .72rem; }
    .footer-cols   { grid-template-columns: 1fr; }
    .export-tiles  { gap: 10px; }
    .mp-breakdown-header, .mp-row { grid-template-columns: 14px 1fr 80px 80px; }
    .extra-pay-row { flex-direction: column; align-items: flex-start; }
    .extra-calc-btn { width: 100%; }
}

@media print {
    .site-header, .hero, .export-section, .lender-section,
    .main-nav, .nav-toggle, .calc-btn, .extra-pay-form,
    .export-modal-overlay, .site-footer { display: none !important; }
    .main-content { padding: 0; }
    .calculator-wrapper { grid-template-columns: 1fr; }
    body { background: #fff; }
}

/* ── CAR LOAN CALCULATOR — page-specific additions ───────────────────────── */

/* Deal quality indicator card */
.deal-indicator-card {
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    padding: 16px 20px;
}
.deal-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
}
.deal-label-text {
    font-size: .78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .07em; color: var(--text-muted);
}
.deal-badge {
    display: inline-block; padding: 3px 11px; border-radius: 20px;
    font-size: .76rem; font-weight: 700; letter-spacing: .04em;
}
.deal-excellent { background: #e8f7ee; color: #2d7a52; }
.deal-good      { background: #e8f0fb; color: #2c5f8a; }
.deal-high      { background: #fef3e2; color: #b86a0a; }

.deal-bar-track {
    height: 7px; background: #e8edf4; border-radius: 4px;
    overflow: hidden; margin-bottom: 10px;
}
.deal-bar-fill {
    height: 100%; border-radius: 4px;
    transition: width .4s ease;
}
.deal-bar-fill.deal-excellent { background: linear-gradient(90deg, #4aa06e, #2d7a52); }
.deal-bar-fill.deal-good      { background: linear-gradient(90deg, #3d7ab5, #2c5f8a); }
.deal-bar-fill.deal-high      { background: linear-gradient(90deg, #e8b469, #c8923a); }
.deal-note { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }

/* Educational inline table (loan term comparison) */
.edu-table-wrap {
    overflow-x: auto; margin: 18px 0;
    border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.edu-table {
    width: 100%; border-collapse: collapse; font-size: .87rem;
}
.edu-table th {
    background: var(--navy); color: rgba(255,255,255,.85);
    padding: 10px 14px; text-align: left; font-size: .76rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
    white-space: nowrap; border-bottom: 2px solid var(--gold);
}
.edu-table td {
    padding: 9px 14px; border-bottom: 1px solid #eef0f4; color: var(--text);
    white-space: nowrap;
}
.edu-table tr:nth-child(even) td { background: #f8f9fc; }
.edu-table tr:hover td { background: #eef5ff; }
.edu-table tr:last-child td { border-bottom: none; }
.edu-table strong { color: var(--navy-mid); }
.edu-table-note {
    font-size: .75rem; color: var(--text-muted);
    padding: 8px 14px; background: #f8f9fc;
    border-top: 1px solid var(--border); margin: 0;
}

/* Sidebar link styling */
.sidebar-card a {
    color: var(--navy-mid); text-decoration: none; font-size: .83rem;
    transition: color .2s;
}
.sidebar-card a:hover { color: var(--gold); text-decoration: underline; }

/* ── PERSONAL LOAN CALCULATOR — page-specific additions ──────────────────── */

/* Active row in term comparison table */
.pl-active-row td {
    background: #eef5ff !important;
    font-weight: 600;
    border-left: 3px solid var(--gold);
}
.pl-active-row .yr-cell { color: var(--navy-mid); }

/* Consolidation savings card green left border variant */
.deal-indicator-card[style*="border-left"] .deal-label-text {
    color: var(--slate);
}

/* Effective APR stat value — highlight if differs from stated rate */
.stat-card .stat-val-warning {
    color: var(--orange);
    font-size: 1.05rem;
}

/* Purpose select spacing */
#loan_purpose { cursor: pointer; }

/* ── AMORTIZATION CALCULATOR — page-specific additions ───────────────────── */

/* Second canvas (balance curve) — reduced height via wrapper */
#balanceChart { display: block; width: 100%; }

/* Totals row in amortization table footer */
.amort-table tfoot tr td {
    padding: 10px 14px;
    border-top: 2px solid var(--gold);
    font-size: .88rem;
}

/* Loan term dual-field row */
.input-dual .input-suffix-wrap input[type="number"] {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
    flex: 1;
    text-align: right;
    padding-right: 4px;
}

/* Extra column in amortization table when extra payment active */
.amort-table td[style*="color:var(--green)"] { font-weight: 600; }

/* ── POLICY / LEGAL PAGES — shared styles ────────────────────────────────── */

/* Layout: content + sidebar */
.policy-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 36px;
    align-items: start;
}
.policy-body { min-width: 0; }
.policy-sidebar { position: sticky; top: 80px; gap: 20px;}

/* Active nav link in policy sidebar */
.policy-nav-active {
    background: #eef5ff !important;
    color: var(--navy-mid) !important;
    border-color: var(--border) !important;
    font-weight: 700 !important;
}

/* Intro box */
.policy-intro {
    background: #f0f5fb; border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 18px 20px; margin-bottom: 28px;
    font-size: .95rem; color: var(--slate); line-height: 1.7;
}
.policy-intro p { margin: 0 0 8px; }
.policy-intro p:last-child { margin: 0; }

/* Table of contents */
.policy-toc {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 22px;
    margin-bottom: 30px;
}
.policy-toc h3 {
    font-family: 'Playfair Display', serif;
    font-size: .95rem; font-weight: 700; color: var(--navy);
    margin-bottom: 10px; padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
}
.policy-toc ol {
    margin: 0; padding-left: 20px;
    display: flex; flex-direction: column; gap: 5px;
}
.policy-toc li { font-size: .84rem; }
.policy-toc a { color: var(--navy-mid); text-decoration: none; transition: color .2s; }
.policy-toc a:hover { color: var(--gold); text-decoration: underline; }

/* Body headings */
.policy-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem; font-weight: 700; color: var(--navy);
    margin: 32px 0 10px; padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
    scroll-margin-top: 80px;
}
.policy-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem; font-weight: 700; color: var(--navy);
    margin: 20px 0 8px;
}
.policy-body p {
    font-size: .94rem; color: var(--slate);
    line-height: 1.75; margin-bottom: 12px;
}
.policy-body ul, .policy-body ol {
    padding-left: 22px; margin-bottom: 14px;
    display: flex; flex-direction: column; gap: 5px;
}
.policy-body li { font-size: .92rem; color: var(--slate); line-height: 1.6; }
.policy-body strong { color: var(--navy); }
.policy-body a { color: var(--navy-mid); text-decoration: underline; transition: color .2s; }
.policy-body a:hover { color: var(--gold); }

/* Feature blocks (About page) */
.policy-feature-block { display: flex; flex-direction: column; gap: 18px; margin: 18px 0 24px; }
.policy-feature {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}
.policy-feature-icon {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--gold); color: var(--navy);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 700; flex-shrink: 0;
}
.policy-feature h3 { margin: 0 0 6px; font-size: 1rem; }
.policy-feature p, .policy-feature ul { margin: 0; }
.policy-feature ul { margin-top: 6px; }

/* Blockquote */
.policy-quote {
    background: var(--navy); color: var(--gold-light);
    border-radius: var(--radius-sm); padding: 18px 24px;
    margin: 16px 0; font-family: 'Playfair Display', serif;
    font-size: 1.1rem; font-style: italic; font-weight: 600;
    border: none;
}

/* Principles grid */
.policy-principles {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 12px; margin: 16px 0 24px;
}
.policy-principle {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 14px 16px;
    display: flex; flex-direction: column; gap: 4px;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--gold);
}
.pp-label {
    font-family: 'Playfair Display', serif;
    font-size: .92rem; font-weight: 700; color: var(--navy);
}
.pp-desc { font-size: .82rem; color: var(--slate); line-height: 1.45; }

/* Contact box */
.policy-contact-box {
    background: #f0f5fb; border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 16px 20px;
    margin: 14px 0 20px;
}
.policy-contact-box p { margin: 0 0 6px; font-size: .9rem; }
.policy-contact-box p:last-child { margin: 0; }

/* Notice / warning box */
.policy-notice {
    background: #fef8ee; border: 1px solid var(--gold-light);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px 20px; margin: 20px 0;
}
.policy-notice strong {
    display: block; font-size: .9rem; color: var(--navy);
    margin-bottom: 6px;
}
.policy-notice p { margin: 0; font-size: .88rem; color: var(--slate); }

/* Last updated */
.policy-last-updated {
    font-size: .78rem; color: var(--text-muted);
    font-style: italic; margin-top: 24px; padding-top: 14px;
    border-top: 1px solid var(--border);
}

/* FAQ in policy pages */
.policy-faq { margin-top: 36px; padding-top: 24px; border-top: 2px solid var(--border); }
.policy-faq > h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem; font-weight: 700; color: var(--navy);
    margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

/* Responsive */
@media (max-width: 900px) {
    .policy-layout { grid-template-columns: 1fr; }
    .policy-sidebar { position: static; }
    .policy-principles { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .policy-body h2 { font-size: 1.15rem; }
    .policy-feature { flex-direction: column; gap: 10px; }
}
}

/* ── HOMEPAGE — styles ───────────────────────────────────────────────────── */

/* Hero */
.hp-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 24px 64px;
}
.hp-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

/* Background image — fills hero, responsive */
.hp-hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 0;
}

.hp-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px; margin: 0 auto;
}
.hp-hero-text { max-width: 620px; }
.hp-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem; font-weight: 700; color: #000;
	text-shadow: 
    -1px -1px 0 #FFF,  
     1px -1px 0 #FFF,
    -1px  1px 0 #FFF,
     1px  1px 0 #FFF;
    line-height: 1.2; margin-bottom: 14px;
}
.hp-hero-sub {
    color: #111;
    font-size: 1rem; font-weight: 400;
    line-height: 1.65; margin-bottom: 0;
    max-width: 560px;
}

.hp-hero-intro {
	background-color: #DFEAE6;
}

/* Layout: calculators + learn pages */
.cl-layout {
    max-width: 1200px; margin: 0 auto;
    padding: 36px 24px 60px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 36px;
    align-items: start;
}

/* Layout: main + sidebar */
.hp-layout {
    max-width: 1200px; margin: 0 auto;
    padding: 36px 24px 60px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
}
.hp-main { min-width: 0; }

/* Section headers */
.hp-section { margin-bottom: 44px; }
.hp-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem; font-weight: 700; color: var(--navy);
    margin-bottom: 6px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}
.hp-section-sub { color: var(--text-muted); font-size: .92rem; margin-bottom: 22px; }

/* ── CALCULATOR CARDS ─────────────────────────────── */
.hp-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.hp-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 22px 18px 20px;
    text-decoration: none; color: inherit;
    display: flex; flex-direction: column; gap: 10px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    position: relative; overflow: hidden;
}
.hp-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0); transform-origin: left;
    transition: transform .25s ease;
}
.hp-card:hover {
    border-color: var(--navy-mid);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.hp-card:hover::before { transform: scaleX(1); }

.hp-card-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hp-card-icon--mortgage { background: #eef5ff; color: var(--navy-mid); }
.hp-card-icon--car      { background: #fff3e8; color: var(--orange); }
.hp-card-icon--personal { background: #f3e8fb; color: #7b3fa0; }
.hp-card-icon--amort    { background: #e8f7ee; color: var(--green); }

.hp-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem; font-weight: 700; color: var(--navy); margin: 0;
}
.hp-card-desc {
    font-size: .82rem; color: var(--slate); line-height: 1.55;
    flex: 1; margin: 0;
}
.hp-card-cta {
    font-size: .82rem; font-weight: 700; color: var(--navy-mid);
    margin-top: 4px; display: inline-block;
    transition: color .2s;
}
.hp-card:hover .hp-card-cta { color: var(--gold); }

/* ── ARTICLE LIST ─────────────────────────────────── */
.hp-articles {
	/*display: flex; flex-direction: column; gap: 20px; */
	display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.hp-article-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex; gap: 16px;
    padding: 16px;
    transition: box-shadow .2s, border-color .2s;
}
.hp-article-card:hover { box-shadow: var(--shadow-md); border-color: var(--border); }

.hp-article-thumb-wrap {
    flex-shrink: 0; display: block;
    width: 120px; height: 90px;
    border-radius: var(--radius-sm); overflow: hidden;
    border: 1px solid var(--border);
}
.hp-article-thumb-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; transition: transform .3s;
}
.hp-article-card:hover .hp-article-thumb-wrap img { transform: scale(1.04); }

.hp-article-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hp-article-meta { display: flex; align-items: center; gap: 10px; }
.hp-article-cat {
    display: inline-block; padding: 2px 9px;
    background: var(--gold); color: var(--navy);
    border-radius: 20px; font-size: .68rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.hp-article-date { font-size: .75rem; color: var(--text-muted); }
.hp-article-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem; font-weight: 700; margin: 0;
    line-height: 1.3;
}
.hp-article-title a {
    color: var(--navy); text-decoration: none;
    transition: color .2s;
}
.hp-article-title a:hover { color: var(--navy-mid); }
.hp-article-excerpt {
    font-size: .84rem; color: var(--slate);
    line-height: 1.6; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.hp-article-link {
    font-size: .82rem; font-weight: 700; color: var(--navy-mid);
    text-decoration: none; margin-top: auto;
    transition: color .2s;
}
.hp-article-link:hover { color: var(--gold); }

/* ── SIDEBAR ──────────────────────────────────────── */
.hp-sidebar { display: flex; flex-direction: column; gap: 20px; }

.hp-widget {
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    padding: 20px 18px;
}
.hp-widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem; font-weight: 700; color: var(--navy);
    margin-bottom: 14px; padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
}
.hp-widget-desc { font-size: .83rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 14px; }

/* Social icons */
.hp-social-icons { display: flex; flex-direction: column; gap: 10px; }
.hp-social-link {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 12px; border-radius: var(--radius-sm);
    text-decoration: none; font-size: .87rem; font-weight: 600;
    transition: background .15s, transform .15s;
    border: 1px solid var(--border);
}
.hp-social-link:hover { transform: translateX(3px); }
.hp-social-facebook  { color: #1877f2; background: #f0f5ff; border-color: #d0e0ff; }
.hp-social-facebook:hover  { background: #e0ecff; }
.hp-social-instagram { color: #c13584; background: #fdf0f8; border-color: #f0d0e8; }
.hp-social-instagram:hover { background: #f8e0f2; }
.hp-social-pinterest { color: #e60023; background: #fff0f0; border-color: #ffd0d0; }
.hp-social-pinterest:hover { background: #ffe0e0; }
.hp-social-x         { color: #000; background: #f5f5f5; border-color: #ddd; }
.hp-social-x:hover   { background: #ebebeb; }
.hp-social-link img  { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }

/* Newsletter widget */
.hp-widget-newsletter { background: linear-gradient(135deg, #1a2e46 0%, #2c5f8a 100%); border: none; }
.hp-widget-newsletter .hp-widget-title { color: var(--gold-light); border-bottom-color: var(--gold); }
.hp-widget-newsletter .hp-widget-desc  { color: rgba(255,255,255,.65); }

.hp-nl-field { margin-bottom: 10px; }
.hp-nl-label { display: block; font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .06em; }
.hp-nl-input {
    width: 100%; height: 42px; padding: 0 12px;
    border: 1.5px solid rgba(255,255,255,.25);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.1);
    color: #fff; font-size: .92rem;
    font-family: 'Source Sans 3', sans-serif;
    outline: none; transition: border-color .2s, background .2s;
}
.hp-nl-input::placeholder { color: rgba(255,255,255,.4); }
.hp-nl-input:focus { border-color: var(--gold-light); background: rgba(255,255,255,.15); }
.hp-nl-btn {
    width: 100%; height: 44px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #fff; border: none; border-radius: var(--radius-sm);
    font-family: 'Source Sans 3', sans-serif;
    font-size: .92rem; font-weight: 700; cursor: pointer;
    transition: filter .15s, transform .15s;
    box-shadow: 0 3px 10px rgba(200,146,58,.4);
    margin-bottom: 8px;
}
.hp-nl-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.hp-nl-note { font-size: .72rem; color: rgba(255,255,255,.45); text-align: center; }

/* Newsletter messages */
.hp-newsletter-msg {
    padding: 9px 12px; border-radius: var(--radius-sm);
    font-size: .83rem; font-weight: 600; margin-bottom: 12px;
}
.hp-msg-success { background: rgba(74,160,110,.2); color: #a8f0c6; border: 1px solid rgba(74,160,110,.4); }
.hp-msg-error   { background: rgba(231,76,60,.2);  color: #ffb3aa; border: 1px solid rgba(231,76,60,.4); }

/* Quick links */
.hp-quick-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.hp-quick-links li a {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: var(--radius-sm);
    font-size: .87rem; font-weight: 600; color: var(--navy);
    text-decoration: none; transition: background .15s, color .15s;
    border: 1px solid transparent;
}
.hp-quick-links li a:hover { background: #eef5ff; color: var(--navy-mid); border-color: var(--border); }
.hp-ql-icon { font-size: 1rem; flex-shrink: 0; width: 20px; text-align: center; }

/* Trust list widget */
.hp-widget-trust { background: #f0f5fb; }
.hp-trust-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hp-trust-list li { font-size: .84rem; color: var(--slate); display: flex; align-items: center; gap: 8px; }
.hp-trust-icon { color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1024px) {
    .hp-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .hp-layout { grid-template-columns: 1fr; }
    .hp-sidebar { order: -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .hp-widget-newsletter { grid-column: 1 / -1; }
    .hp-hero-stats { display: none; }
}
@media (max-width: 600px) {
    .hp-cards { grid-template-columns: 1fr 1fr; }
    .hp-hero-title { font-size: 1.8rem; }
    .hp-sidebar { grid-template-columns: 1fr; }
    .hp-article-thumb-wrap { width: 90px; height: 68px; }
    .hp-article-title { font-size: .95rem; }
    .hp-layout { padding: 20px 14px 40px; }
}
