/* ============================================================
   Lending Dad — Shared Styles
   Brand: warm, trustworthy, "dad" approachable + professional
   ============================================================ */

:root {
  --green: #1f8a4c;
  --green-dark: #156b3a;
  --green-light: #e8f5ee;
  --navy: #13344d;
  --navy-dark: #0d2538;
  --blue: #2b7bb9;
  --gold: #f3a712;
  --brand-gold: #c9a84c;
  --ink: #1c2b36;
  --gray: #5c6b76;
  --gray-light: #8a97a1;
  --line: #e2e8ec;
  --bg: #ffffff;
  --bg-soft: #f6f9fb;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(19, 52, 77, 0.08);
  --shadow-lg: 0 14px 40px rgba(19, 52, 77, 0.14);
  --max: 1160px;
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--gray); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem;
  font-weight: 700; color: var(--green); margin-bottom: .6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 14px 26px; border-radius: 50px; font-weight: 700;
  font-size: 1rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(31,138,76,.3); }
.btn-primary:hover { background: var(--green-dark); color:#fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color:#fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: #dd9400; }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Header / Nav ---------- */
.topbar {
  background: var(--navy-dark); color: #cfe0ec; font-size: .85rem;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.topbar a { color: #cfe0ec; }
.topbar a:hover { color: #fff; }
.topbar .social a { margin-left: 14px; font-weight: 600; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 12px; flex: none;
  background: var(--brand-gold);
  display: grid; place-items: center; color: var(--navy);
  font-family: Georgia, 'Times New Roman', serif; font-weight: 800; font-size: 1.35rem;
  letter-spacing: .5px;
}
.brand-text { line-height: 1.12; }
.brand-text strong { color: var(--navy); font-size: 1.4rem; font-weight: 800; display: block;
  font-family: Georgia, 'Times New Roman', serif; letter-spacing: .2px; }
.brand-text span { color: var(--gray); font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px; }
/* On the dark footer, render the wordmark in white */
.site-footer .brand-text strong { color: #fff; }
/* Real logo image in the header */
.brand-logo { height: 52px; width: auto; display: block; }
.nexa-logo { height: 52px; width: auto; display: block; }
.brand-divider { width: 1.5px; height: 40px; background: var(--line); flex: none; }
@media (max-width: 480px){ .brand-logo, .nexa-logo { height: 38px; } .brand-divider { height: 30px; } }

.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: var(--ink); font-weight: 600; padding: 7px 9px; border-radius: 8px;
  text-decoration: none; font-size: .86rem; white-space: nowrap;
}
.nav a:hover { background: var(--green-light); color: var(--green-dark); }
.nav a.active { color: var(--green-dark); }
.nav .btn { margin-left: 8px; padding: 11px 20px; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 3px; transition: .25s; }

@media (max-width: 940px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80%, 320px);
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 90px 22px 22px; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .3s ease;
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 14px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
  .menu-toggle { display: block; z-index: 60; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 55%, #0a4a30 100%);
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(31,138,76,.35), transparent 70%);
}
.hero .wrap { position: relative; z-index: 2; padding: 72px 22px 80px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 50px; align-items: center; }
@media (max-width: 900px){ .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero-content { min-width: 0; }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; max-width: 520px; }
.hero-actions .btn { width: 100%; justify-content: center; }
@media (max-width: 460px){ .hero-actions { grid-template-columns: 1fr; } }
.hero-photo { position: relative; display: flex; justify-content: center; }
.hero-photo img { width: 100%; max-width: 320px; border-radius: 22px; border: 5px solid var(--brand-gold); box-shadow: var(--shadow-lg); display: block; object-fit: cover; }
.hero-photo-badge { position: absolute; left: 50%; transform: translateX(-50%); bottom: -18px; background: #fff; color: var(--navy); font-weight: 800; padding: 9px 22px; border-radius: 50px; box-shadow: var(--shadow); white-space: nowrap; font-size: .98rem; text-align: center; line-height: 1.15; }
.hero-photo-badge small { display: block; color: var(--green-dark); font-weight: 700; font-size: .72rem; letter-spacing: .5px; }
.trust-badge { height: 58px; width: auto; border-radius: 8px; background: #fff; padding: 5px 7px; box-shadow: var(--shadow); }
.framed-photo img { width: 100%; border-radius: 18px; border: 5px solid var(--brand-gold); box-shadow: var(--shadow-lg); display: block; }
.award-img { height: 96px; width: auto; display: block; margin: 8px 0 16px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 34px; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); transition: transform .18s ease; }
.gallery img:hover { transform: scale(1.03); }
.hero h1 { color: #fff; }
.hero p { font-size: 1.2rem; color: #d7e6f0; max-width: 620px; }
.hero .btn-row { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero .trust { margin-top: 30px; display: flex; gap: 26px; flex-wrap: wrap; color: #bcd2e0; font-size: .92rem; }
.hero .trust strong { color: #fff; font-size: 1.3rem; display: block; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-light); color: var(--green-dark); font-size: 1.5rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--gray); margin-bottom: 0; }

.action-card { text-align: center; }
.action-card a.btn { margin-top: 16px; }

/* ---------- Testimonials ---------- */
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.quote p { color: var(--ink); font-style: italic; }
.quote .who { font-weight: 700; color: var(--navy); margin-top: 10px; font-style: normal; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,138,76,.15); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .85rem; color: var(--gray-light); }
.form-success { background: var(--green-light); border: 1.5px solid var(--green); color: var(--green-dark); border-radius: var(--radius-sm); padding: 22px 24px; text-align: center; font-size: 1.05rem; line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px){ .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b9cdda; padding: 56px 0 26px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #b9cdda; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand p { color: #8da7b8; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .85rem; color: #7e98aa; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-social a { display: inline-block; margin-right: 14px; font-weight: 600; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; padding: 58px 0; }
.page-hero h1 { color: #fff; margin-bottom: .3rem; }
.page-hero p { color: #cfe0ec; font-size: 1.12rem; max-width: 680px; margin: 0; }

/* ---------- Misc ---------- */
.pill { display:inline-block; background: var(--green-light); color: var(--green-dark); font-weight:700; font-size:.78rem; padding:5px 12px; border-radius:50px; }
.disclaimer { font-size: .82rem; color: var(--gray-light); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 820px){ .split { grid-template-columns: 1fr; } }
.headshot { width: 170px; height: 170px; border-radius: 20px; object-fit: cover; object-position: top center; box-shadow: var(--shadow); border: 4px solid var(--brand-gold); float: right; margin: 0 0 14px 22px; }
@media (max-width: 600px){ .headshot { float: none; display: block; margin: 0 auto 18px; } }
.badge-row { display:flex; gap:14px; flex-wrap:wrap; margin-top: 18px; }
.badge-row .pill { background:#fff; border:1px solid var(--line); color: var(--navy); }
