/* Homepage navy theme: matches the inner pages (#0d1b2e page, #111f36 bands, #162035 cards) */
.home-dark{background:#0d1b2e;color:#cbd5e1}
.home-dark main{background:#0d1b2e}

/* Section backgrounds, alternating bands like the inner pages */
.home-dark section{background:#0d1b2e}
.home-dark #process,.home-dark #services,.home-dark #calculators{background:#111f36;border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08)}

/* Headings and text */
.home-dark .text-primary,.home-dark .text-slate-900{color:#fff}
.home-dark .text-slate-700,.home-dark .text-gray-700{color:#cbd5e1}
.home-dark .text-gray-600{color:#cbd5e1}
.home-dark .text-gray-500,.home-dark .text-gray-400{color:#94a3b8}
.home-dark h1,.home-dark h2,.home-dark h3{color:#fff}
.home-dark h2,.home-dark h3.font-serif,.home-dark #contact h3{font-family:Playfair Display,serif}
.home-dark .border-gray-100,.home-dark .border-gray-200{border-color:rgba(255,255,255,.1)}
.home-dark .hover\:text-primary:hover{color:#fff}

/* ---------- Hero ---------- */
.home-dark #hero{min-height:0;padding:4.5rem 0 5.5rem;background:radial-gradient(ellipse at 85% 20%,rgba(59,130,246,.16),transparent 55%),#0d1b2e}
.home-dark #hero>.absolute.skew-x-12{background:rgba(255,255,255,.025)}
.home-dark #hero h1{font-family:Playfair Display,serif;font-weight:600;letter-spacing:-.01em}
.home-dark #hero h1 .text-secondary{color:#3b82f6}
.home-dark #hero p.text-lg{color:#cbd5e1}
.home-dark #hero .border-primary{border-color:rgba(255,255,255,.35);color:#fff}
.home-dark #hero .border-primary:hover{background:#fff;color:#0d1b2e;border-color:#fff}
.home-dark #hero button,.home-dark #hero a.inline-flex{border-radius:.5rem}
.home-dark #hero .border-t{border-color:rgba(255,255,255,.1)}
.home-dark #hero .italic.text-primary{color:#e2e8f0}
.home-dark #hero .rounded-full.bg-white,.home-dark #hero .bg-white.rounded-full{background:#162035;border-color:rgba(255,255,255,.1)}
/* Cut-out portrait (same as the about page), sitting on the bottom edge of the hero */
.home-dark #hero .hero-portrait{display:block;max-width:480px;margin-left:auto;margin-right:auto}
.home-dark #hero .border-secondary\/30{display:none}
.home-dark #hero{padding-bottom:0!important}
.home-dark #hero .order-2.lg\:order-1{padding-bottom:3rem}
@media (min-width:1024px){.home-dark #hero .order-1.lg\:order-2{align-self:end}.home-dark #hero .order-2.lg\:order-1{padding-bottom:5rem}.home-dark #hero .hero-portrait{margin-right:0}}
@media (min-width:1024px){.home-dark #hero{padding:5rem 0 6rem}}

/* ---------- Cards ---------- */
.home-dark section div.bg-white,.home-dark section a.bg-white{background:#162035;border:1px solid rgba(255,255,255,.1);box-shadow:none}
.home-dark section a.bg-white{border-bottom-width:4px;border-bottom-color:transparent;border-radius:.75rem}
.home-dark section a.bg-white:hover{border-bottom-color:#3b82f6;border-color:rgba(59,130,246,.45);box-shadow:0 20px 40px -20px rgba(0,0,0,.6)}
.home-dark #process div.bg-white{border-radius:.75rem}
.home-dark #process div.bg-white:hover{border-color:rgba(59,130,246,.45)}
.home-dark #process .absolute.bg-gray-100{background:rgba(255,255,255,.08)}
.home-dark #process .bg-primary.rounded-full{background:#2563eb;border-color:#162035}
.home-dark #process .bg-gray-200.rounded-full{background:#0d1b2e;color:#93c5fd;border-color:#162035}
.home-dark .bg-primary\/5{background:rgba(59,130,246,.12)}
.home-dark .bg-primary\/5.text-primary{color:#60a5fa}
.home-dark .group:hover .group-hover\:bg-primary{background:#2563eb}
.home-dark .group:hover .group-hover\:text-white{color:#fff}
.home-dark #services .opacity-0{opacity:1}
.home-dark #services .-translate-x-2{transform:none}

/* Where I work */
.home-dark #where-i-work .bg-\[\#f8fafc\]{background:#162035;border:1px solid rgba(255,255,255,.1);border-bottom-width:4px;border-bottom-color:transparent;border-radius:.75rem}
.home-dark #where-i-work .bg-\[\#f8fafc\]:hover{border-bottom-color:#3b82f6}

/* About / video */
.home-dark #about .bg-gray-100{background:rgba(59,130,246,.15)}
.home-dark #about .mix-blend-multiply{mix-blend-mode:normal}
.home-dark #about .bg-slate-900{border-color:rgba(255,255,255,.1);border-radius:.75rem}
.home-dark #about .bg-primary{background:#2563eb;border-radius:.75rem}
.home-dark #about .bg-primary .text-secondary{color:#dbeafe}
.home-dark #about .bg-primary:hover{background:#1d4ed8}
.home-dark #about .bg-secondary\/10,.home-dark #about .bg-blue-50{background:rgba(59,130,246,.15)}

/* Calculator */
.home-dark #calculators .bg-slate-50{background:#162035;border-color:rgba(255,255,255,.1);box-shadow:none}
.home-dark #calculators div.bg-white{background:#0d1b2e}
.home-dark #calculators input[type=range]{background:rgba(255,255,255,.15)}
.home-dark #calculators svg circle[stroke="#0f172a"]{stroke:#3b82f6}
.home-dark #calculators span[style*="#0f172a"],.home-dark #calculators span[style*="15, 23, 42"]{background:#3b82f6!important}
.home-dark #calculators .font-bold{color:#fff}

/* Testimonials: keep as a deeper band so it still stands out */
.home-dark #testimonials{background:linear-gradient(180deg,#0a1626 0%,#0d1b2e 100%);border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08)}
.home-dark #testimonials .bg-\[\#1a3a60\]\/50{background:#162035;border-radius:.75rem}
.home-dark #testimonials .bg-\[\#1a3a60\]\/50:hover{background:#1a2a47}

/* Contact */
.home-dark #contact .bg-primary{background:linear-gradient(160deg,#162035 0%,#111f36 100%);border:1px solid rgba(255,255,255,.1);border-radius:.75rem;box-shadow:none}
.home-dark #contact .bg-gray-50{background:#162035;border:1px solid rgba(255,255,255,.1);border-radius:.75rem}
.home-dark #contact input,.home-dark #contact select,.home-dark #contact textarea{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.12);color:#fff;border-radius:.5rem}
.home-dark #contact input::placeholder,.home-dark #contact textarea::placeholder{color:rgba(255,255,255,.3)}
.home-dark #contact input:focus,.home-dark #contact select:focus,.home-dark #contact textarea:focus{border-color:#3b82f6;--tw-ring-color:#3b82f6}
.home-dark #contact select option{background:#162035;color:#fff}
.home-dark #contact label{color:#94a3b8;font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;font-weight:600}
.home-dark #contact button[type=submit]{border-radius:.5rem}
.home-dark #contact .text-green-600,.home-dark #contact .text-green-700{color:#34d399}
.home-dark #contact .bg-green-50{background:rgba(52,211,153,.1)}

/* Softer corners to match the inner pages */
.home-dark .rounded-sm{border-radius:.5rem}
.home-dark button.uppercase,.home-dark a.uppercase{border-radius:.5rem}
.home-dark #about .bg-secondary,.home-dark #about a.bg-secondary{border-radius:.5rem}

/* Mobile hero: headline first, smaller photo underneath */
@media (max-width:1023px){
.home-dark #hero{padding:2.5rem 0 3.5rem}
.home-dark #hero .order-2.lg\:order-1{order:1}
.home-dark #hero .order-1.lg\:order-2{order:2}
.home-dark #hero .order-1.lg\:order-2>div{max-width:320px;margin:0 auto}
.home-dark #hero h1{font-size:2.6rem;line-height:1.12}
}

/* ---------- Privacy policy and 404 pages ---------- */
.page-dark{background:#0d1b2e;color:#cbd5e1}
.page-dark main{background:#0d1b2e}
.page-dark .text-primary,.page-dark h1,.page-dark h2,.page-dark h3{color:#fff}
.page-dark h1,.page-dark h2{font-family:Playfair Display,serif}
.page-dark .text-gray-700,.page-dark .text-gray-600{color:#cbd5e1}
.page-dark .text-gray-500{color:#94a3b8}
.page-dark .prose a{color:#60a5fa}
.page-dark .prose strong{color:#fff}
.page-dark .bg-\[\#f8fafc\]{background:#162035;border:1px solid rgba(255,255,255,.1);border-radius:.75rem}
.page-dark a.bg-\[\#f8fafc\]:hover{border-color:rgba(59,130,246,.45)}
.page-dark .border-primary{border-color:rgba(255,255,255,.35);color:#fff}
.page-dark .border-primary:hover{background:#fff;color:#0d1b2e}
.page-dark .bg-primary{background:#2563eb}
.page-dark .rounded-sm{border-radius:.5rem}
@media (max-width:1023px){.home-dark #hero .order-2.lg\:order-1{padding-bottom:0}.home-dark #hero .hero-portrait{max-width:300px}.home-dark #hero .grid{row-gap:2rem}}
.pb-6{padding-bottom:1.5rem}

/* Sitewide (SPA pages): sentence-case, rounded call-to-action buttons */
button.uppercase.tracking-wide{text-transform:none;letter-spacing:0;font-weight:600;border-radius:.5rem}

/* Hero balance: remove old diagonal panel, bigger portrait centred in its column, less empty space */
.home-dark #hero>.absolute.skew-x-12{display:none}
.home-dark #hero{background:radial-gradient(ellipse at 75% 55%,rgba(59,130,246,.18),transparent 60%),#0d1b2e}
@media (min-width:1024px){
.home-dark #hero{padding-top:3.5rem!important}
.home-dark #hero .grid{gap:2rem}
.home-dark #hero .order-1.lg\:order-2{justify-content:center}
.home-dark #hero .order-1.lg\:order-2>div{max-width:none}
.home-dark #hero .hero-portrait{max-width:600px;margin-left:auto;margin-right:auto}
.home-dark #hero .order-2.lg\:order-1{padding-bottom:4rem}
}

/* ---------- Mobile homepage: shorter, tighter ---------- */
@media (max-width:767px){
.home-dark #process,.home-dark #about,.home-dark #services,.home-dark #where-i-work,.home-dark #calculators,.home-dark #testimonials,.home-dark #contact{padding-top:3.25rem;padding-bottom:3.25rem}
.home-dark section .mb-12{margin-bottom:2rem}
.home-dark section .mt-16,.home-dark section .mt-12{margin-top:1.5rem}
.home-dark section h2.text-3xl,.home-dark section h2.text-4xl{font-size:1.75rem;line-height:1.2}
.home-dark section p.text-lg{font-size:1rem}
/* process steps: icon beside text */
.home-dark #process .grid{gap:.75rem}
.home-dark #process .grid>div{display:grid;grid-template-columns:3.5rem 1fr;column-gap:1rem;text-align:left;padding:1rem 1.1rem;align-items:start}
.home-dark #process .grid>div>div:first-child{width:3.25rem;height:3.25rem;margin:0;grid-row:span 2;border-width:2px}
.home-dark #process .grid>div>div:first-child svg{width:22px;height:22px}
.home-dark #process .grid>div>div:first-child>div{width:1.4rem;height:1.4rem;font-size:.7rem;top:-.35rem;right:-.35rem}
.home-dark #process .grid>div h3{font-size:1.05rem;margin-bottom:.25rem}
.home-dark #process .mt-12{margin-top:1.75rem}
/* about */
.home-dark #about .grid{gap:2rem}
.home-dark #about h2{font-size:1.75rem;margin-bottom:1rem}
.home-dark #about .space-y-6{font-size:1rem}
.home-dark #about .space-y-6>*+*{margin-top:1rem}
/* 50+ lenders: a stat, not a button */
.home-dark #about .md\:hidden.bg-primary{background:#162035;border:1px solid rgba(255,255,255,.1);box-shadow:none;padding:.75rem;cursor:default}
.home-dark #about .md\:hidden.bg-primary span{font-size:1.1rem;font-family:Inter,sans-serif;font-weight:600}
.home-dark #about .md\:hidden.bg-primary svg{display:none}
/* service cards: compact */
.home-dark #services .grid{gap:.75rem}
.home-dark #services .grid>a{padding:1.1rem 1.1rem 1rem;display:grid;grid-template-columns:2.75rem 1fr;column-gap:.9rem;align-items:start}
.home-dark #services .grid>a>div:first-child{margin:0;padding:.55rem;grid-row:span 3}
.home-dark #services .grid>a>div:first-child svg{width:20px;height:20px}
.home-dark #services .grid>a h3{font-size:1.05rem;margin-bottom:.3rem}
.home-dark #services .grid>a p{font-size:.9rem;margin-bottom:.5rem;line-height:1.5}
.home-dark #services .mb-12{margin-bottom:1.5rem}
/* where I work */
.home-dark #where-i-work .grid{gap:.75rem}
.home-dark #where-i-work .grid>div{padding:1.1rem;display:grid;grid-template-columns:2.75rem 1fr;column-gap:.9rem;align-items:start}
.home-dark #where-i-work .grid>div>div:first-child{margin:0;padding:.55rem;grid-row:span 2}
.home-dark #where-i-work .grid>div h3{margin-bottom:.25rem}
.home-dark #where-i-work .mt-10{margin-top:1.5rem}
/* calculator */
.home-dark #calculators .bg-slate-50{padding:1.25rem}
.home-dark #calculators .gap-12{gap:2rem}
.home-dark #calculators .space-y-8>*+*{margin-top:1.25rem}
.home-dark #calculators svg[role=img]{width:180px;height:180px}
.home-dark #calculators .min-h-\[300px\]{min-height:0}
/* reviews */
.home-dark #testimonials .grid{gap:1rem;margin-top:1.5rem}
.home-dark #testimonials .grid>div{padding:1.25rem}
.home-dark #testimonials .grid>div>p{font-size:.92rem;margin-bottom:1rem}
.home-dark #testimonials .grid>div>svg{width:32px;height:32px;top:1rem;right:1rem}
.home-dark #testimonials .grid>div .flex.gap-1{margin-bottom:.75rem}
.home-dark #testimonials .grid>div>div:last-child{padding-top:1rem}
/* contact */
.home-dark #contact .grid{gap:1.25rem}
.home-dark #contact .bg-primary,.home-dark #contact .bg-gray-50{padding:1.5rem}
.home-dark #contact .space-y-8>*+*{margin-top:1.1rem}
.home-dark #contact .mb-10{margin-bottom:1.25rem}
}

/* Mobile footer: two columns, bigger tap areas */
@media (max-width:767px){footer ul.space-y-2{columns:2;column-gap:1.25rem}footer ul.space-y-2>li{break-inside:avoid;margin-top:0!important}footer ul.space-y-2>li>a,footer ul.space-y-2>li>button{display:inline-block;padding:.4rem 0}}
/* Mobile: larger tap areas on local area links */
@media (max-width:1023px){nav[aria-label="More ways I can help"] ul.text-sm a{display:inline-block;padding:.35rem .15rem}}
@media (max-width:767px){
/* reviews: swipe sideways instead of stacking */
.home-dark #testimonials .grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:.75rem;margin-left:-1rem;margin-right:-1rem;padding:0 1rem .5rem;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.home-dark #testimonials .grid::-webkit-scrollbar{display:none}
.home-dark #testimonials .grid>div{flex:0 0 86%;scroll-snap-align:center}
.home-dark #testimonials .mt-12+div,.home-dark #testimonials .grid+*{margin-top:1rem}
/* contact: socials are already in the footer; names side by side */
.home-dark #contact .space-y-8>div:nth-child(n+4){display:none}
.home-dark #contact form .grid{grid-template-columns:1fr 1fr;gap:.75rem}
}
@media (max-width:767px){.home-dark #testimonials .grid::after{content:"";flex:0 0 1px}.home-dark #testimonials h2+p::after{content:" Swipe to read more.";}}

/* Bridging page: calculator button in the hero */
.calc-cta{border:1px solid rgba(59,130,246,.5)}
.calc-cta:hover{background:rgba(37,99,235,.2)}

/* Homepage/SPA top bar on phones: match the static pages (phone + social icons) */
.spa-tb a{color:inherit;text-decoration:none}
@media (max-width:767px){
.spa-tb>div>div:last-child{display:none!important}
.spa-tb>div>div:first-child>a[href^="mailto:"]{display:none!important}
.spa-tb a[href*="instagram.com"],.spa-tb a[href*="youtube.com"]{font-size:0;gap:0}
.spa-tb a{padding:.35rem 0}
.spa-tb>div>div:first-child{gap:1.5rem}
}

/* Mobile menu: same style as the rest of the site */
.mm-btn{display:inline-flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;margin-left:.5rem;border-radius:.5rem;color:#fff;background:transparent;border:1px solid transparent;cursor:pointer;flex-shrink:0}.mm-btn:hover,.mm-btn[aria-expanded="true"]{background:hsla(0,0%,100%,.08)}.mm-panel{display:none;background:#000;border-top:1px solid hsla(0,0%,100%,.1);max-height:calc(100vh - 7rem);overflow-y:auto}.mm-panel.open{display:block}.mm-panel a,.mm-panel summary{display:block;color:#fff;font-size:.95rem;padding:.8rem 1.5rem;border-bottom:1px solid hsla(0,0%,100%,.1);cursor:pointer}.mm-panel a:hover,.mm-panel summary:hover{background:hsla(0,0%,100%,.05);color:#60a5fa}.mm-panel summary{list-style:none;display:flex;justify-content:space-between;align-items:center}.mm-panel summary::-webkit-details-marker{display:none}.mm-panel summary:after{content:"+";font-size:1.2rem;color:#94a3b8}.mm-panel details[open] summary:after{content:"\2212"}.mm-panel details a{padding-left:2.5rem;font-size:.9rem;color:#cbd5e1}.mm-call{background:hsla(0,0%,100%,.05);padding:1rem 1.5rem}.mm-panel .mm-call a{border:0;padding:.35rem 0;font-size:.875rem;color:#cbd5e1}@media (min-width:1024px){.mm-btn,.mm-panel,.mm-panel.open{display:none!important}}
