/*
Theme Name: Loan Buddha
Theme URI: https://snow-dove-360661.hostingersite.com/
Author: Loan Buddha
Description: Loan consulting theme with lenders, calculators, enquiries, and inner pages. No plugin required. Loan Buddha is not a lender.
Version: 1.2.4
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: loan-buddha
*/

:root {
  --navy: #10233f;
  --blue: #1d4f91;
  --ink: #172033;
  --muted: #66758a;
  --line: #e6edf5;
  --green: #1f9d55;
  --bg: #f7f9fc;
  --shadow: 0 16px 40px rgba(16, 35, 63, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "Segoe UI", Inter, Arial, sans-serif; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 42px; height: 42px; object-fit: contain; }
.brand-name { display: block; font-weight: 800; letter-spacing: -.03em; }
.brand-tag { display: block; font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.main-nav { margin-left: auto; }
.menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; align-items: center; }
.menu a { font-size: 14px; font-weight: 600; color: #334155; }
.menu a:hover, .current-menu-item > a { color: var(--blue); }
.menu-item-has-children { position: relative; }
.menu-item-has-children > a:after { content: " ▾"; font-size: 10px; }
.menu-item-has-children ul { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 220px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); }
.menu-item-has-children:hover > ul, .menu-item-has-children:focus-within > ul { display: grid; }
.menu-item-has-children li a { display: block; padding: 8px 10px; border-radius: 8px; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.phone-pill { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; padding: 11px 16px; background: var(--blue); color: #fff; font-weight: 700; cursor: pointer; }
.btn-wa { background: var(--green); border-radius: 999px; }
.btn-light { background: #fff; color: var(--navy); }
.btn-dark { background: #16315c; }
.btn-mail { background: #fff; color: var(--navy); border: 1px solid #c9d7ea; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.estimate-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #e6edf5; color: #7b8da1; font-size: 12px; line-height: 1.45; }
.section-intro { max-width: 640px; margin: 0 0 28px; }
.section-intro h2, .split-head h2, .eligibility h2 { margin: 0 0 8px; letter-spacing: -.03em; }
.section-intro p, .eligibility p { margin: 0; color: var(--muted); }
.section.tight { padding-top: 12px; }
.steps { margin-top: 8px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.eligibility { align-items: center; }
.eligibility ul { margin: 0; }
.eligibility li { min-width: 140px; }
.calc-result { display: flex; flex-direction: column; }
.calc-result .contact-actions .btn { flex: 1; }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.hero { background: linear-gradient(100deg, #0c3f86, #1d6fd0 55%, #2f8de8); color: #fff; padding: 56px 0 64px; }
.instant-hero { text-align: center; }
.instant-head { max-width: 640px; margin: 0 auto 28px; }
.instant-hero .hero-lead { color: #e7f1ff; max-width: 560px; margin: 0 auto; }
.instant-hero .lender-grid { text-align: left; }
.instant-hero .lender-card { background: #fff; color: var(--ink); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; min-height: 168px; padding: 18px 14px 16px; }
.instant-hero .lender-card .btn { margin-top: auto; width: 100%; }
.hero h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; margin: 0 0 10px; letter-spacing: -.03em; }
.section { padding: 64px 0; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.lender-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 210px; padding: 22px; }
.service-card p { margin: 0; }
.service-card .btn { margin-top: auto; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center; }
.eyebrow { letter-spacing: .14em; font-size: 12px; font-weight: 700; margin: 0 0 12px; }
.hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: .98; margin: 0 0 12px; letter-spacing: -.04em; }
.hero-lead { max-width: 460px; color: #e7f1ff; }
.hero-points { display: flex; flex-wrap: wrap; gap: 14px 18px; padding: 0; margin: 18px 0 22px; list-style: none; font-size: 13px; }
.hero-points span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.16); margin-right: 6px; }
.hero-art-wrap { position: relative; }
.hero-art-wrap img { width: 100%; border-radius: 18px; }
.amount-card { background: #fff; color: var(--navy); border-radius: 16px; padding: 14px 16px; }
.amount-card b { display: block; font-size: 28px; }
.section { padding: 54px 0; }
.service-grid, .lender-grid { display: grid; gap: 18px; }
.service-card, .lender-card, .calc-box, .calc-result, .why-card, .review-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; }
.tone-blue { background: #eef6ff; } .tone-sand { background: #fff6ea; } .tone-mint { background: #eefbf3; } .tone-lilac { background: #f4f0ff; } .tone-rose { background: #fff1f3; }
.service-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff; font-weight: 800; margin-bottom: 10px; }
.service-card h2, .lender-card strong { font-size: 16px; margin: 0 0 6px; }
.service-card p, .sub, .fine { color: var(--muted); }
.split-head, .footer-base { display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.lender-logo { min-height: 54px; display: grid; place-items: center; font-weight: 800; color: var(--blue); }
.lender-logo img { max-height: 42px; width: auto; margin: 0 auto; }
.calc-section { background: var(--bg); }
.calc-layout { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 16px; }
.calc-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.calc-tabs button { border: 0; background: #e8eef6; border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.calc-tabs .is-active { background: #16315c; color: #fff; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-fields label, .enquiry-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
input, select, textarea { border: 1px solid #d5e0ec; border-radius: 10px; padding: 10px; width: 100%; }
input[type="range"] { margin-top: 12px; accent-color: var(--blue); }
.emi-value { font-size: 36px; font-weight: 800; margin: 8px 0 12px; }
.result-row { display: flex; justify-content: space-between; padding: 6px 0; }
.why-card ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.why-card li { background: #f4fbf7; border-radius: 12px; padding: 10px; }
.why-card span, .steps small { display: block; color: var(--muted); font-size: 13px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0; }
.steps span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--blue); font-weight: 800; }
.steps li:nth-child(2) span { background: #16a34a; } .steps li:nth-child(3) span { background: #f59e0b; } .steps li:nth-child(4) span { background: #7c3aed; }
.eligibility { display: flex; justify-content: space-between; gap: 18px; background: linear-gradient(90deg, #eef6ff, #fff); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.eligibility ul { display: flex; gap: 16px; list-style: none; padding: 0; }
.review-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stars { color: #f5b400; letter-spacing: 2px; }
.site-footer { background: #0d1b33; color: #d5e2f2; padding: 36px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1fr; gap: 22px; }
.footer-grid a, .footer-grid span { display: block; color: #d5e2f2; margin: 6px 0; font-size: 14px; }
.footer-brand-lockup .brand-name, .footer-brand-lockup .brand-tag { color: #fff; }
.footer-base, .disclaimer { border-top: 1px solid rgba(255,255,255,.08); margin-top: 18px; padding-top: 12px; font-size: 12px; color: #9fb0c6; }
.legal-links { display: flex; gap: 12px; }
.page-wrap { padding: 48px 0 70px; }
.entry, .legal { max-width: 760px; }
.enquiry-form { display: grid; gap: 10px; max-width: 560px; }
.form-note { padding: 10px 12px; border-radius: 10px; }
.form-note { padding: 12px 14px; border-radius: 10px; font-weight: 700; }
.form-note.ok { background: #e8f8ee; color: #146c43; border: 1px solid #b7e4c7; } .form-note.bad { background: #fff1f1; }
@media (max-width: 980px) {
  .service-grid, .lender-grid, .steps, .review-row, .calc-layout, .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid, .eligibility { grid-template-columns: 1fr; display: grid; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 78px; background: #fff; border-bottom: 1px solid var(--line); padding: 12px; }
  .main-nav.open { display: block; }
  .menu, .menu-item-has-children ul { display: grid; position: static; box-shadow: none; border: 0; }
  .header-actions { display: none; }
  .main-nav.open + .header-actions, .header-inner .header-actions { display: flex; }
  .service-grid, .lender-grid, .steps, .review-row, .calc-layout, .footer-grid, .calc-fields { grid-template-columns: 1fr; }
}
