/* The Loan Cop RC: patrol navy + badge brass */
:root {
  --navy: #14233F;      /* patrol navy */
  --navy-2: #1C3157;
  --brass: #C9A45C;     /* badge brass */
  --brass-lt: #E9CF8E;
  --paper: #F3F5F8;     /* cool report-paper white */
  --steel: #5B6B80;
  --ink: #16202F;
  --line: #D9DEE6;
  --white: #fff;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; color: var(--navy); }
h3 { font-weight: 800; font-size: 1.6rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.lede { color: var(--steel); max-width: 56ch; margin-top: 12px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brass); color: var(--navy); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 6px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--body); transition: background .2s, color .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-brass { background: var(--brass); color: var(--navy); }
.btn-brass:hover { background: var(--brass-lt); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-lt); }
.btn-line { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); border-bottom: 1px solid rgba(201,164,92,.25); }
.top-in { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-shield { width: 34px; height: 34px; }
.brand-shield path { fill: var(--navy-2); stroke: var(--brass); stroke-width: 4; }
.brand-shield text { font: 800 20px var(--display); fill: var(--brass); text-anchor: middle; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: .01em; }
.brand-name b { color: var(--brass); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .95rem; color: rgba(255,255,255,.82); padding: 6px 0; }
.nav a:hover { color: var(--brass-lt); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.lang { background: none; border: 1px solid rgba(255,255,255,.35); color: var(--white); font: 700 .85rem var(--body); border-radius: 6px; min-width: 44px; min-height: 42px; cursor: pointer; }
.lang:hover { border-color: var(--brass); color: var(--brass-lt); }
.menu { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; gap: 7px; padding: 10px; }
.menu span { display: block; height: 2px; background: var(--white); transition: transform .2s; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Hero */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 88px),
  radial-gradient(60% 80% at 80% 30%, rgba(46,107,216,.18), transparent 70%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.hero-kicker { color: var(--brass-lt); font-weight: 600; font-size: .98rem; margin-bottom: 18px; }
.hero-h { font-size: clamp(3rem, 7.4vw, 6rem); font-weight: 900; line-height: .95; letter-spacing: -.005em; }
.h-line { display: block; }
.h-brass { color: var(--brass); }
.hero-sub { margin: 26px 0 30px; font-size: 1.1rem; color: rgba(255,255,255,.82); max-width: 48ch; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-btns.center { justify-content: center; }
.hero-note { margin-top: 16px; font-size: .9rem; color: rgba(255,255,255,.6); }
.hero-photo { position: relative; justify-self: center; width: min(100%, 400px); }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 493/640; object-fit: cover; border-radius: 4px; border: 1px solid rgba(201,164,92,.4); box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
.badge { position: absolute; left: -64px; bottom: -28px; width: 170px; filter: drop-shadow(0 16px 24px rgba(0,0,0,.45)); animation: badgeIn .9s cubic-bezier(.2,.8,.2,1) .2s both; }
.badge .b-small { font: 700 13px var(--body); letter-spacing: .14em; fill: var(--brass-lt); text-anchor: middle; }
.badge .b-num { font: 900 38px var(--display); fill: var(--white); text-anchor: middle; letter-spacing: .01em; }
@keyframes badgeIn { from { opacity: 0; transform: translateY(24px) rotate(-14deg) scale(.85); } to { opacity: 1; transform: rotate(-6deg); } }

.facts { position: relative; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 26px; padding-bottom: 40px; margin-top: 0; margin-bottom: 0; gap: 0; border-top: 1px solid rgba(255,255,255,.12); }
.facts li { padding: 8px 20px 0 0; }
.facts li + li { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.12); }
.facts strong { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 800; color: var(--brass-lt); line-height: 1.1; }
.facts span { font-size: .9rem; color: rgba(255,255,255,.7); }

/* About */
.about { padding: 110px 0; }
.about-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 340/409; object-fit: cover; object-position: top; border-radius: 4px; }
.about-copy h2 { margin-bottom: 26px; }
.about-copy p { max-width: 58ch; }
.sig { font-family: var(--display); font-size: 1.7rem; font-weight: 800; color: var(--navy); margin-top: 28px; }
.sig span { display: block; font: 500 .9rem var(--body); color: var(--steel); }

/* Plan */
.plan { background: var(--paper); padding: 100px 0; }
.steps { list-style: none; padding: 0; margin: 50px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--brass) 0 8px, transparent 8px 14px); }
.steps li { position: relative; padding-right: 22px; }
.step-n { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--brass-lt); font: 900 1.6rem var(--display); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--brass); }
.steps h3 { margin: 22px 0 8px; color: var(--navy); }
.steps p { font-size: .95rem; color: var(--steel); }

/* Checklist */
.check { padding: 110px 0; }
.check-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.check-intro p { color: var(--steel); max-width: 46ch; margin-top: 16px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; background: var(--paper); padding: 6px; border-radius: 8px; margin: 26px 0 24px; }
.seg button { flex: 1 1 auto; min-height: 44px; border: 0; background: none; border-radius: 6px; font: 600 .92rem var(--body); color: var(--steel); cursor: pointer; padding: 0 12px; }
.seg button[aria-selected="true"] { background: var(--navy); color: var(--white); }
.progress .bar { height: 8px; background: var(--paper); border-radius: 8px; overflow: hidden; }
.progress .bar span { display: block; height: 100%; width: 0; background: var(--brass); transition: width .35s ease; }
.progress p { margin: 10px 0 26px; font-weight: 700; color: var(--navy); }
.check-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.file { position: relative; background: #FBFAF6; border: 1px solid var(--line); border-radius: 2px 10px 10px 10px; padding: 34px 34px 26px; box-shadow: 0 1px 0 var(--line), 0 24px 50px -30px rgba(20,35,63,.35); margin-top: 22px; }
.file-tab { position: absolute; top: -32px; left: -1px; background: #FBFAF6; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; padding: 6px 20px; font: 800 1.05rem var(--display); color: var(--navy); letter-spacing: .02em; }
.group + .group { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line); }
.group h3 { font-size: 1.45rem; color: var(--navy); margin-bottom: 10px; }
.group h3 small { font: 500 .9rem var(--body); color: var(--steel); }
.group ul { list-style: none; padding: 0; margin: 0; }
.group label { display: flex; gap: 14px; align-items: flex-start; padding: 11px 0; cursor: pointer; min-height: 44px; }
.group input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box { flex: 0 0 26px; height: 26px; border: 2px solid #2D5A9A; border-radius: 6px; display: grid; place-items: center; transition: background .2s, border-color .2s; margin-top: 1px; }
.box::after { content: ""; width: 7px; height: 13px; border: solid var(--navy); border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); margin-top: -3px; transition: transform .2s; }
.group input:checked + .box { background: var(--brass); border-color: var(--brass); }
.group input:checked + .box::after { transform: rotate(45deg) scale(1); }
.group input:checked ~ span:last-child { color: var(--steel); text-decoration: line-through; text-decoration-color: var(--brass); }
.group input:focus-visible + .box { outline: 3px solid var(--brass); outline-offset: 2px; }
.file-note { margin: 20px 0 0; font-size: .92rem; color: var(--steel); }

/* Terms */
.terms { background: var(--navy); color: var(--white); padding: 100px 0; }
.terms h2 { color: var(--white); }
.terms .lede { color: rgba(255,255,255,.7); }
.term-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 40px; }
.term { background: var(--navy-2); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 18px; text-align: left; color: var(--white); cursor: pointer; font-family: var(--body); min-height: 92px; transition: border-color .2s, background .2s; }
.term:hover { border-color: rgba(201,164,92,.6); }
.term strong { display: block; font: 800 1.45rem var(--display); color: var(--brass-lt); }
.term span { display: block; font-size: .9rem; line-height: 1.45; color: rgba(255,255,255,.8); max-height: 0; overflow: hidden; transition: max-height .3s ease, margin .3s; }
.term[aria-expanded="true"] { background: #23396A; border-color: var(--brass); }
.term[aria-expanded="true"] span { max-height: 140px; margin-top: 8px; }

/* Gallery */
.gallery { padding: 100px 0; }
.gal-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.ig-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); text-decoration: none; min-height: 44px; }
.ig-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.ig-link:hover { color: #2D5A9A; }
.gal-grid { columns: 4 230px; column-gap: 14px; }
.gal-item { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: var(--paper); cursor: zoom-in; border-radius: 6px; overflow: hidden; break-inside: avoid; }
.gal-item img { width: 100%; height: auto; transition: transform .4s; }
.gal-item:hover img { transform: scale(1.03); }

/* FAQ */
.faq { background: var(--paper); padding: 100px 0; }
.faq-in { display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; color: var(--navy); position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font: 800 1.8rem var(--display); color: var(--brass); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--steel); padding-bottom: 14px; max-width: 62ch; }

/* Final */
.final { background: var(--navy); color: var(--white); padding: 110px 0; border-top: 4px solid var(--brass); }
.final-in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.final h2 { color: var(--white); max-width: 14ch; margin: 0 0 18px; font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.final-copy > p { color: rgba(255,255,255,.78); max-width: 46ch; margin: 0 0 28px; }
.final .final-small { font-size: .85rem; color: rgba(255,255,255,.55); margin-top: 16px; }
.reach { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.reach p { width: 100%; margin: 0 0 4px; font-weight: 700; color: var(--brass-lt); }
.reach-num { color: rgba(255,255,255,.75); font-weight: 600; margin-left: 6px; }

.msg { background: var(--white); color: var(--ink); border-radius: 10px; padding: 34px; border-top: 6px solid var(--brass); }
.msg h3 { color: var(--navy); font-size: 2rem; margin-bottom: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem var(--body); color: var(--ink); border: 1.5px solid var(--line); border-radius: 6px; padding: 12px 14px; min-height: 48px; background: var(--white); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #2D5A9A; box-shadow: 0 0 0 3px rgba(45,90,154,.18); }
.field.bad input { border-color: #B3261E; }
.err { display: block; color: #B3261E; font-size: .85rem; min-height: 0; margin-top: 4px; }
.msg .btn { width: 100%; }
.msg .btn[disabled] { opacity: .6; cursor: wait; }
.form-status { margin: 14px 0 0; font-weight: 600; }
.form-status.ok { color: #1D6B3A; }
.form-status.fail { color: #B3261E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Company logo */
.company { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.company span { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.company img { width: 180px; height: auto; }
.foot-logo img { width: 150px; height: auto; background: #fff; padding: 8px 12px; border-radius: 6px; margin-top: 6px; }

/* Reviews */
.reviews { padding: 100px 0; }
.reviews-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.reviews-copy > p { color: var(--steel); max-width: 46ch; margin-top: 16px; }
.reviews-copy .rev-small { font-size: .85rem; margin-top: 18px; }
.rev-form { box-shadow: 0 18px 40px rgba(20,35,63,.12); border: 1px solid var(--line); border-top: 6px solid var(--brass); }
.stars-field { border: 0; padding: 0; margin: 0 0 16px; }
.stars-field legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.stars { position: relative; display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars input { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.stars label { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 0; font-size: 2.6rem; line-height: 1; color: #C3CAD5; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: color .15s; }
.stars input:checked ~ label { color: var(--brass); }
@media (hover: hover) { .stars:hover label { color: #C3CAD5; } .stars label:hover, .stars label:hover ~ label { color: var(--brass-lt); } }
.star-pick { font-size: .85rem; color: var(--steel); margin: 4px 0 0; }
.stars input:focus-visible + label { outline: 2px solid #2D5A9A; border-radius: 4px; }
.consent { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--steel); margin: 4px 0 18px; cursor: pointer; }
.consent input { width: 18px; height: 18px; accent-color: var(--navy); }

/* Footer */
.foot { background: #0F1B31; color: rgba(255,255,255,.75); padding: 56px 0 110px; font-size: .9rem; }
.foot-in { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 40px; }
.foot a { color: var(--white); text-decoration: none; }
.foot a:hover { color: var(--brass-lt); }
.foot-brand { font: 800 1.6rem var(--display); color: var(--white); }
.eho { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--white); }
.eho svg { width: 28px; height: 28px; }
.legal p { font-size: .82rem; }

/* Mobile bar */
.mobile-bar { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,18,33,.92); z-index: 200; display: grid; place-items: center; padding: 30px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: 92vw; width: auto; border-radius: 6px; }
.lb-close { position: absolute; top: 14px; right: 18px; width: 48px; height: 48px; background: none; border: 0; color: var(--white); font-size: 2.4rem; cursor: pointer; }

/* Responsive */
@media (max-width: 1000px) {
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy); flex-direction: column; gap: 0; padding: 10px 22px 20px; border-bottom: 1px solid rgba(201,164,92,.3); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .menu { display: flex; }
  .top-actions { margin-left: auto; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--brass) 0 8px, transparent 8px 14px); }
  .steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; padding: 0; }
  .steps li .step-n { grid-row: span 2; }
  .steps h3 { margin: 10px 0 4px; }
  .term-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 48px; gap: 50px; }
  .hero-photo { width: min(66%, 300px); justify-self: end; margin-right: 6%; }
  .badge { left: -40px; width: 130px; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .about-in, .check-in, .faq-in, .final-in, .reviews-in { grid-template-columns: 1fr; gap: 40px; }
  .about { padding: 80px 0; }
  .about-photo { max-width: 380px; }
  .file { margin-top: 10px; }
  .foot-in { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top-actions .btn-sm { display: none; }
  .brand-name { font-size: 1.3rem; }
  .hero-btns .btn { flex: 1 1 100%; }
  .term-grid { grid-template-columns: 1fr 1fr; }
  .gal-grid { columns: 2 140px; column-gap: 10px; }
  .gal-item { margin-bottom: 10px; }
  .file { padding: 28px 20px 20px; }
  .plan, .check, .terms, .gallery, .faq, .final, .reviews { padding: 72px 0; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .msg { padding: 26px 20px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1.2fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--navy); border-top: 1px solid rgba(201,164,92,.4); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 6px; font-weight: 700; text-decoration: none; color: var(--white); border: 2px solid rgba(255,255,255,.3); }
  .mobile-bar svg { width: 18px; height: 18px; fill: currentColor; }
  .mobile-bar .mb-quote { background: var(--brass); border-color: var(--brass); color: var(--navy); }
}

/* Print: only the checklist */
@media print {
  body * { visibility: hidden; }
  #fileList, #fileList * { visibility: visible; }
  #fileList { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; }
  #fileList .group[hidden] { display: none; }
}
