/* Alabama Mortgage Lending – alm-child main.css. Base = approved design html/css/styles.css (preloader + old reveal removed), WP overrides at the end. */
/* Alabama Mortgage Lending — Project 3F5c9U6iA2
   Light corporate/high-tech palette: white + trustworthy blues & greens */

:root {
  --navy: #0B1F33;
  --blue: #0A4D8C;
  --blue-deep: #073A6B;
  --blue-soft: #E8F1FA;
  --teal: #0B6E4F;
  --teal-soft: #E6F5EF;
  --mint: #7DD3A7;
  --ink: #1A2B3C;
  --muted: #5A6B7C;
  --line: #D5DEE8;
  --bg: #FFFFFF;
  --bg-alt: #F5F8FB;
  --cream: #FAFCFD;
  --shadow: 0 12px 40px rgba(11, 31, 51, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 31, 51, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 650;
  line-height: 1.18;
  color: var(--navy);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: 5.5rem 0; }
.section.alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.75rem;
}
.eyebrow.light { color: var(--mint); }
.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-lede, .lede { color: var(--muted); font-size: 1.05rem; }
.tiny { font-size: 0.75rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-decoration: none !important;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(10, 77, 140, 0.25); }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--blue-deep); }
.btn-light:hover { background: var(--blue-soft); }
.btn-sm { padding: 0.65rem 1.1rem; font-size: 0.875rem; }
.btn-block { width: 100%; }
.text-link { font-weight: 600; color: var(--blue); }

/* Header */

.site-header .brand img {
    height: 120px;
}

.site-header {
  position: sticky; top: 0; z-index: 100;
/*   background: rgba(255,255,255,0.92); */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 72px;
}
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.35rem; margin-left: auto; }
.nav a { color: var(--ink); font-weight: 500; font-size: 0.92rem; text-decoration: none; }
.nav a:hover { color: var(--blue); }
.nav-cta {
  background: var(--blue) !important; color: #fff !important;
  padding: 0.55rem 1rem; border-radius: 999px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--blue-deep) !important; }
.header-phone {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; color: var(--navy); font-size: 0.9rem; white-space: nowrap;
  text-decoration: none;
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
  min-height: 640px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-wash {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(250,252,253,0.97) 0%, rgba(250,252,253,0.92) 42%, rgba(250,252,253,0.55) 68%, rgba(10,77,140,0.25) 100%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-copy h1 em { font-style: italic; color: var(--blue); }
.hero-pills {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.25rem;
}
.hero-pills li {
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(11,31,51,0.04);
}

/* Lead form card */
.lead-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(213,222,232,0.8);
}
.lead-progress { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.lead-progress .dot {
  flex: 1; height: 4px; border-radius: 99px; background: var(--line);
}
.lead-progress .dot.is-active { background: var(--blue); }
.lead-progress .dot.is-done { background: var(--teal); }
.lead-title { font-size: 1.35rem; margin-bottom: 0.25rem; }
.lead-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.15rem; }
.lead-step[hidden] { display: none !important; }
.choice-grid { display: grid; gap: 0.75rem; }
.choice-grid.two { grid-template-columns: 1fr 1fr; }
.choice-card {
  position: relative; overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--bg-alt);
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  min-height: 160px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.choice-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.9;
}
.choice-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,31,51,0.82) 0%, rgba(11,31,51,0.15) 55%, transparent 100%);
}
.choice-card .choice-label,
.choice-card .choice-hint {
  position: relative; z-index: 1; color: #fff; padding: 0 0.9rem;
}
.choice-card .choice-label { font-weight: 700; font-size: 1rem; padding-bottom: 0.15rem; }
.choice-card .choice-hint { font-size: 0.78rem; opacity: 0.9; padding-bottom: 0.85rem; }
.choice-card:hover, .choice-card.is-selected {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,77,140,0.15); transform: translateY(-2px);
}
.choice-card.plain {
  min-height: 96px; padding: 1rem; align-items: flex-start; justify-content: center;
  background: #fff;
}
.choice-card.plain::after { display: none; }
.choice-card.plain .choice-label { color: var(--navy); padding: 0; }
.choice-card.plain .choice-icon { font-size: 1.4rem; margin-bottom: 0.35rem; }

.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.9rem; }
.field > span, .field legend {
  font-size: 0.8rem; font-weight: 600; color: var(--navy);
}
.field input, .field select, .cta-form input, .cta-form select, .calc-fields input {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .cta-form input:focus, .cta-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10,77,140,0.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.35rem; }
.chip {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}
.chip.is-selected, .chip:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-deep); }
.lead-actions { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 0.5rem; }
.lead-back {
  background: none; border: none; color: var(--muted); font-weight: 600; cursor: pointer; padding: 0.5rem 0;
}
.lead-back:hover { color: var(--navy); }
.check { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.78rem; color: var(--muted); margin: 0.5rem 0 0.75rem; }
.check input { margin-top: 0.2rem; }
.lead-success { text-align: center; padding: 1.5rem 0.5rem; }
.success-mark {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  border-radius: 50%; background: var(--teal-soft); color: var(--teal);
  display: grid; place-items: center; font-size: 1.5rem; font-weight: 700;
}

/* Trust bar */
.trust-bar {
  background: linear-gradient(90deg, var(--blue-deep), var(--blue) 55%, var(--teal));
  color: #fff;
  padding: 1.75rem 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.trust-item { text-align: center; padding: 0.35rem; }
.trust-item strong {
  display: block;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.trust-item span { font-size: 0.85rem; opacity: 0.92; }

/* Loans */
.loan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.loan-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 250px;
  height: 100%;
  display: flex; flex-direction: column;
}
.loan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.loan-card h3 { margin-bottom: 0.4rem; }
.loan-card p { color: var(--muted); font-size: 0.9rem; flex: 1; }
.loan-card ul { margin-top: 0.5rem; }
.loan-card li {
  font-size: 0.82rem; color: var(--ink);
  padding: 0.2rem 0 0.2rem 1rem;
  position: relative;
}
.loan-card li::before {
  content: ""; position: absolute; left: 0; top: 0.65em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
}
.loan-tag {
  align-self: flex-start;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--blue-soft); color: var(--blue);
  padding: 0.25rem 0.55rem; border-radius: 999px; margin-bottom: 0.65rem;
}
.loan-tag.teal { background: var(--teal-soft); color: var(--teal); }
.loan-card.accent {
  background: linear-gradient(160deg, var(--blue-soft), #fff 60%);
  border-color: #B8D0E8;
}

/* First-time */
.ft-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.ft-visual { position: relative; }
.ft-visual > img {
  border-radius: 20px;
  width: 100%;
  height: 520px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.ft-badge {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
}
.ft-badge strong { display: block; color: var(--navy); margin-bottom: 0.2rem; }
.ft-badge span { font-size: 0.85rem; color: var(--muted); }
.steps { display: flex; flex-direction: column; gap: 1.25rem; margin: 1.75rem 0 2rem; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.step-num {
  font-family: var(--display);
  font-size: 1.35rem; font-weight: 700;
  color: var(--blue);
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--blue-soft);
  display: grid; place-items: center;
}
.steps h3 { margin-bottom: 0.25rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* VA band — the one darker section */
.va-band {
  background:
    linear-gradient(120deg, #062A4A 0%, #0A4D8C 55%, #0B6E4F 140%),
    var(--navy);
  color: #E8F1FA;
  padding: 5rem 0;
}
.va-band h2 { color: #fff; }
.va-band p { color: rgba(255,255,255,0.88); }
.va-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.check-list { margin: 1.25rem 0 1.75rem; }
.check-list li {
  padding: 0.4rem 0 0.4rem 1.6rem;
  position: relative;
  color: rgba(255,255,255,0.92);
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0.35rem;
  color: var(--mint); font-weight: 700;
}
.va-visual { position: relative; }
.va-visual > img {
  border-radius: 18px;
  width: 100%;
  height: 380px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.va-note {
  display: flex; gap: 0.85rem; align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 0.85rem;
  margin-top: 1rem;
  backdrop-filter: blur(8px);
}
.va-note p { margin: 0; font-size: 0.9rem; }
.va-thumb { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: center;
}
.why-visual { position: relative; }
.why-visual > img:first-child {
  border-radius: 20px;
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.why-float {
  position: absolute;
  right: -1rem; bottom: -1.25rem;
  width: 200px; height: 150px;
  object-fit: cover;
  border-radius: 14px;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}
.why-points {
  display: grid;
  gap: 1.1rem;
  margin: 1.5rem 0;
}
.why-points h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.why-points p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.contact-mini {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  background: var(--bg-alt); border-radius: 14px; padding: 1rem 1.15rem;
  border: 1px solid var(--line);
}
.contact-mini dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.25rem; }
.contact-mini dd { margin: 0; font-size: 0.9rem; color: var(--navy); }

/* Social proof */
.proof-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.reviews-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin: 0;
  display: flex; flex-direction: column;
  height: auto;
}
.stars { color: #D4A017; letter-spacing: 0.1em; margin-bottom: 0.65rem; font-size: 0.95rem; }
.review p { flex: 1; color: var(--ink); font-size: 0.95rem; }
.review footer { font-size: 0.82rem; color: var(--muted); margin-top: 0.75rem; }
.badge-ph {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #FFF3CD;
  color: #7A5B00;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.calc-teaser {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.calc-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.1;
}
.calc-body {
  position: relative; z-index: 1;
  padding: 1.5rem 1.6rem;
  background: linear-gradient(90deg, rgba(232,241,250,0.97), rgba(255,255,255,0.98));
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem;
  align-items: center;
}
.calc-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 0 0 0.75rem;
}
.calc-fields label { font-size: 0.78rem; font-weight: 600; color: var(--navy); display: grid; gap: 0.25rem; }
.calc-fields em { font-style: normal; font-weight: 500; color: var(--muted); }
.calc-result { font-size: 0.95rem; margin: 0.5rem 0 1rem; }
.calc-result strong { font-family: var(--display); font-size: 1.45rem; color: var(--blue); }

/* Final CTA */
.final-cta {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
.cta-points { margin: 1.25rem 0 0; }
.cta-points li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
  color: var(--ink);
}
.cta-points li::before {
  content: ""; position: absolute; left: 0; top: 0.75em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
}
.cta-form {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.cta-form h3 { margin-bottom: 1rem; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 2rem;
}
.site-footer a { color: #B8D4F0; }
.site-footer h4 {
  color: #fff; font-family: var(--font); font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.85rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 2rem;
}
.footer-brand p { font-size: 0.9rem; }
.footer-brand .nmls {     font-size: 0.9rem;
    opacity: 1;
    margin-top: 0.75rem;
    color: white;}
.footer-grid ul li { margin-bottom: 0.4rem; }
.footer-grid ul a { text-decoration: none; font-size: 0.92rem; }
.footer-grid ul a:hover { color: #fff; }
.map-card img {
  border-radius: 12px;
  width: 100%;
  height: 140px;
  object-fit: cover;
  margin-bottom: 0.65rem;
}
.map-card p { font-size: 0.85rem; margin: 0; }
.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}
.eho {
  display: flex; gap: 0.85rem; align-items: flex-start;
  margin-bottom: 1rem;
}
.eho img { flex-shrink: 0; color: #fff; filter: invert(1); opacity: 0.9; }
.eho p { margin: 0; font-size: 0.8rem; line-height: 1.5; opacity: 0.85; }
.copy { font-size: 0.78rem; opacity: 0.65; margin: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .ft-grid, .va-grid, .why-grid, .cta-grid { grid-template-columns: 1fr; }
  .loan-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-row { grid-template-columns: 1fr 1fr; }
  .calc-body { grid-template-columns: 1fr; }
  .calc-fields { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .why-float { right: 1rem; bottom: -1rem; }
  .header-phone { display: none; }
  .hero { min-height: 0; padding-top: 2.5rem; }
  .ft-visual > img { height: 400px; }
}
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 1rem 1.25rem 1.25rem; gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 0.75rem; border: none !important; }
  .nav-toggle { display: flex; margin-left: auto; }
  .choice-grid.two { grid-template-columns: 1fr; }
  .loan-grid { grid-template-columns: 1fr; }
  .reviews-row { grid-template-columns: 1fr; }
  .calc-body { grid-template-columns: 1fr; }
  .calc-fields { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .hero-wash {
    background: linear-gradient(180deg, rgba(250,252,253,0.96) 0%, rgba(250,252,253,0.9) 55%, rgba(250,252,253,0.75) 100%);
  }
}
@media (max-width: 420px) {
  .container { width: min(100% - 1.5rem, var(--max)); }
  .trust-item strong { font-size: 1.4rem; }
  .lead-card { padding: 1.15rem; }
}

.nbsp-phrase { white-space: nowrap; }
.map-card img { object-position: center 40%; }

/* QA round 2 */
.hero-bg img { object-position: 70% 55%; }
.footer-logo { height: 40px; width: auto; margin-bottom: 0.9rem; }
.trust-item strong { font-size: 1.6rem; }
.office-block { font-style: normal; font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.85rem; }
.directions-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  border: 1px solid rgba(184,212,240,0.45); border-radius: 999px;
  padding: 0.5rem 1rem; font-weight: 600; font-size: 0.85rem; color: #fff !important;
  text-decoration: none !important;
}
.directions-link:hover { background: rgba(255,255,255,0.08); }
@media (max-width: 768px) {
  .loan-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .loan-card { min-height: 0; padding: 1rem 0.95rem; }
  .loan-card h3 { font-size: 1.02rem; }
  .loan-card p { font-size: 0.82rem; margin-bottom: 0.4rem; }
  .loan-card ul { display: none; }
  .loan-tag { font-size: 0.6rem; margin-bottom: 0.5rem; }
}
@media (max-width: 420px) {
  .loan-card p { font-size: 0.78rem; line-height: 1.45; }
  .trust-item strong { font-size: 1.25rem; }
}

@media (max-width: 768px){ .loan-card .text-link{font-size:0.82rem;} }

/* Reveal failsafe (inner pages round): content can never stay hidden.
   CSS-only fallback shows everything after 2.5s even if JS fails. */
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }
.reveal:not(.is-visible) { animation: reveal-failsafe 0.5s ease 2.5s forwards; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
}
html, body { overflow-x: clip; }
.nav a.is-current { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }
@media (max-width: 768px) { .nav a.is-current { box-shadow: none; } }

/* ================= WordPress build overrides (alm-child) ================= */
body.alm-site { margin: 0; }
.alm-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; color: var(--blue); padding: 0.75rem 1rem; border-radius: 8px; }
.alm-skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid rgba(10,77,140,0.55); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
/* Admin bar + sticky header */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
/* Tap targets >= 44px */
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.nav a, .header-phone { display: inline-flex; align-items: center; min-height: 44px; }
.nav-cta { padding: 0.55rem 1.1rem; }
.nav-toggle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.btn { min-height: 44px; }
.btn-sm { min-height: 44px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; }
.lead-back { min-height: 44px; padding: 0.5rem 0.25rem; }
.chip { min-height: 44px; }
.footer-grid ul li { margin-bottom: 0; }
.footer-grid ul a, .footer-brand p a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-brand p a { min-height: 32px; }
.directions-link { min-height: 44px; }
.contact-mini dd a, .final-cta .cta-copy p a, .lead-success a { display: inline-block; padding: 0.6rem 0; margin: -0.6rem 0; }
/* Menu list markup from wp_nav_menu */
.nav ul { display: flex; align-items: center; gap: 1.35rem; margin: 0; padding: 0; list-style: none; }
.nav li { margin: 0; }
.nav .current-menu-item > a { color: var(--blue); }

/* ---- Reveal: gentle fade/rise with failsafes (Farrukh's rule) ----
   Content is hidden ONLY when <html> has .alm-anim, which a tiny inline head script adds only if
   IntersectionObserver exists and prefers-reduced-motion is not set. Everything is forced visible
   after 2s by JS and, independently, by a CSS animation – so a JS error can never leave blanks.
   No clip-path anywhere. */
.alm-anim .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; animation: almFailsafe 0.01s linear 2s forwards; }
.alm-anim .reveal.is-visible { opacity: 1; transform: none; animation: none; }
.alm-anim .reveal.delay-1 { transition-delay: 0.08s; }
.alm-anim .reveal.delay-2 { transition-delay: 0.16s; }
.alm-anim .reveal.delay-3 { transition-delay: 0.24s; }
@keyframes almFailsafe { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .alm-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .btn, .loan-card, .choice-card { transition: none !important; }
}

/* ---- CF7 lead form (multi-step) ---- */
.lead-card .wpcf7 { margin: 0; }
.lead-card form.wpcf7-form { margin: 0; }
.wpcf7-form-control-wrap { display: block; }
.alm-step[hidden] { display: none !important; }
.alm-js .alm-step:not(.is-active) { display: none; }
.alm-choices .wpcf7-radio { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; }
.alm-choices .wpcf7-list-item { margin: 0; display: block; }
.alm-choices .wpcf7-list-item label {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer;
  min-height: 96px; padding: 1rem; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.alm-choices .wpcf7-list-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.alm-choices .wpcf7-list-item-label { position: relative; z-index: 1; font-weight: 700; color: var(--navy); }
.alm-choices .wpcf7-list-item label:hover,
.alm-choices .wpcf7-list-item label.is-selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,77,140,0.15); transform: translateY(-2px); }
.alm-choices .wpcf7-list-item input:focus-visible + .wpcf7-list-item-label { text-decoration: underline; }
.alm-choices .alm-ico { position: relative; z-index: 1; font-size: 1.4rem; margin-bottom: 0.35rem; line-height: 1; }
/* Step 1 photo cards */
.alm-photo .wpcf7-list-item label { min-height: 160px; padding: 0; background: var(--bg-alt); }
.alm-photo .wpcf7-list-item label img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.alm-photo .wpcf7-list-item label::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,31,51,0.82) 0%, rgba(11,31,51,0.15) 55%, transparent 100%); }
.alm-photo .wpcf7-list-item-label { color: #fff; padding: 0 0.9rem 0.15rem; font-size: 1rem; }
.alm-photo .alm-hint { position: relative; z-index: 1; color: #fff; font-size: 0.78rem; opacity: 0.9; padding: 0 0.9rem 0.85rem; }
/* chips */
.alm-chips .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.35rem; }
.alm-chips .wpcf7-list-item { margin: 0; }
.alm-chips .wpcf7-list-item label { display: inline-flex; align-items: center; min-height: 44px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 0.45rem 0.95rem; font-size: 0.82rem; font-weight: 600; cursor: pointer; color: var(--ink); position: relative; }
.alm-chips .wpcf7-list-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.alm-chips .wpcf7-list-item label:hover, .alm-chips .wpcf7-list-item label.is-selected { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-deep); }
.alm-chips .wpcf7-list-item label:focus-within { box-shadow: 0 0 0 3px rgba(10,77,140,0.2); }
.alm-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; }
.lead-card .field input, .cta-form .field input, .cta-form .field select { width: 100%; min-height: 44px; }
.alm-consent .wpcf7-list-item { margin: 0; }
.alm-consent label { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.78rem; color: var(--muted); margin: 0.5rem 0 0.75rem; cursor: pointer; min-height: 44px; }
.alm-consent input { margin-top: 0.2rem; width: 18px; height: 18px; flex-shrink: 0; }
.alm-err { display: block; color: #B42318; font-size: 0.8rem; font-weight: 600; margin-top: 0.35rem; }
.wpcf7-not-valid-tip { color: #B42318; font-size: 0.8rem; font-weight: 600; margin-top: 0.35rem; }
.lead-card .wpcf7-not-valid-tip { display: none; }
.lead-card .wpcf7-response-output { margin: 0.75rem 0 0 !important; padding: 0.6rem 0.8rem !important; border-radius: 10px; font-size: 0.85rem; }
.lead-card form.sent .wpcf7-response-output { display: none; }
.lead-card .wpcf7-spinner { margin: 0 0 0 0.5rem; }
.lead-done[hidden] { display: none !important; }
.cta-form .wpcf7-response-output { margin: 0.75rem 0 0 !important; border-radius: 10px; font-size: 0.85rem; }
.cta-form .wpcf7-submit { width: 100%; }
.cta-form p { margin: 0; }
.ph { background: #FFF3CD; color: #7A5B00; padding: 0 0.3rem; border-radius: 4px; font-weight: 700; }
.site-footer .ph { background: rgba(255,243,205,0.16); color: #FFE7A3; }
@media (max-width: 768px) {
  .alm-choices .wpcf7-radio { grid-template-columns: 1fr 1fr; }
  .alm-photo .wpcf7-radio { grid-template-columns: 1fr; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav ul a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); display: flex; }
}

/* ---- Simple shell for temporary inner pages ---- */
.alm-page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 4rem 0 3rem; }
.alm-page-body { padding: 3rem 0 4.5rem; }
.alm-page-body .entry { max-width: 760px; }
.alm-page-body .entry ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 1em; }
.footer-h { color: #fff; font-family: var(--font); font-size: 0.8rem; font-weight: 650; line-height: 1.18; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 0.85rem; }
/* radio inputs cover their card/chip so a tap anywhere hits the input itself */
.alm-choices .wpcf7-list-item input, .alm-chips .wpcf7-list-item input { inset: 0; width: 100%; height: 100%; margin: 0; z-index: 2; cursor: pointer; opacity: 0; }
.lead-card .wpcf7-not-valid-tip { display: none !important; }
/* 1.0.1: no stray fieldset/legend borders in the CF7 forms (Astra/UA defaults) */
.wpcf7 fieldset.hidden-fields-container { border: 0; padding: 0; margin: 0; min-width: 0; }
.wpcf7 fieldset, .lead-card fieldset, .cta-form fieldset { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
.wpcf7 legend { padding: 0; border: 0; }
/* 1.0.2: CF7's own CSS is dequeued, so restore its essentials (screen-reader block + empty response box) */
.wpcf7 .screen-reader-response { position: absolute; overflow: hidden; clip: rect(1px,1px,1px,1px); height: 1px; width: 1px; margin: -1px; padding: 0; border: 0; white-space: nowrap; }
.wpcf7 form .wpcf7-response-output { margin: 0.75rem 0 0; padding: 0.6rem 0.8rem; border: 2px solid #00a0d2; border-radius: 10px; font-size: 0.85rem; }
.wpcf7 form.init .wpcf7-response-output, .wpcf7 form.resetting .wpcf7-response-output, .wpcf7 form.submitting .wpcf7-response-output { display: none; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #46b450; }
.wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output { border-color: #dc3232; }
.wpcf7 form.spam .wpcf7-response-output { border-color: #f56e28; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output { border-color: #ffb900; }
.wpcf7-spinner { visibility: hidden; display: inline-block; width: 24px; height: 24px; margin: 0 0.5rem; vertical-align: middle; border-radius: 100%; background: #23282d; opacity: 0.75; position: relative; }
form.submitting .wpcf7-spinner { visibility: visible; }
.wpcf7 [inert] { opacity: 0.5; }
.footer-brand p a { min-height: 44px; }
.contact-mini dd a { padding: 0.75rem 0; margin: -0.75rem 0; display: inline-flex; align-items: center; min-height: 44px; }
/* ---- 1.1.2: responsive pre-approval buttons + header that never wraps or overlaps (QA) ----
   Pre-approval CTAs = the header .nav-cta + every .btn that links to the lead form (homepage + inner pages). */
.nav-cta, a.btn[href$="#lead-form"] {
  white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 44px;
}
.header-inner > * { flex-shrink: 0; }
.header-phone { gap: 0.4rem; }
/* <= 1200: phone becomes icon-only (text stays as the accessible name), nav tightens */
@media (max-width: 1200px) {
  .header-phone { font-size: 0; gap: 0; min-width: 44px; justify-content: center; }
  .header-phone svg { width: 20px; height: 20px; }
  .nav, .nav ul { gap: 1.05rem; }
}
/* <= 1024: off-canvas menu (holds the Get Pre-Approved button); smaller CTAs */
@media (max-width: 1024px) {
  .header-phone { display: inline-flex; margin-left: auto; }
  .nav-toggle { display: flex; margin-left: 0; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; margin-left: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 1rem 1.25rem 1.25rem; gap: 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav ul a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); display: flex; }
  .nav-cta { margin-top: 0.75rem; border: none !important; }
  .nav-cta, a.btn[href$="#lead-form"] { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
}
@media (max-width: 768px) {
  .nav-cta, a.btn[href$="#lead-form"] { padding: 0.55rem 1rem; font-size: 0.875rem; }
}
@media (max-width: 380px) {
  .nav-cta, a.btn[href$="#lead-form"] { padding: 0.55rem 0.85rem; }
}

/* 1.2.9: CF7 submit buttons. `.cta-form input` (the text-field style: white bg, ink text) also matched the callback
   form's <input type=submit>, and outranked .btn-primary; on hover/active .btn-primary:hover put navy behind the
   ink label (1.26:1). Every state of every CF7 submit is now a white label on navy (AA). */
form.wpcf7-form input[type="submit"].wpcf7-submit {
  background: var(--blue); color: #fff; -webkit-text-fill-color: #fff;
  border: none; border-radius: 999px; padding: 0.85rem 1.4rem;
  font-weight: 600; font-size: 0.95rem; line-height: 1.2; opacity: 1;
  cursor: pointer; -webkit-appearance: none; appearance: none;
  box-shadow: 0 8px 20px rgba(10, 77, 140, 0.25);
}
form.wpcf7-form input[type="submit"].wpcf7-submit:hover,
form.wpcf7-form input[type="submit"].wpcf7-submit:active {
  background: var(--blue-deep); color: #fff; -webkit-text-fill-color: #fff;
}
form.wpcf7-form input[type="submit"].wpcf7-submit:focus { border-color: transparent; }
form.wpcf7-form input[type="submit"].wpcf7-submit:focus-visible {
  background: var(--blue-deep); color: #fff; -webkit-text-fill-color: #fff;
  outline: 3px solid var(--blue); outline-offset: 3px;
}
form.wpcf7-form input[type="submit"].wpcf7-submit:disabled,
form.wpcf7-form input[type="submit"].wpcf7-submit[aria-busy="true"],
form.wpcf7-form.submitting input[type="submit"].wpcf7-submit,
form.wpcf7-form[aria-busy="true"] input[type="submit"].wpcf7-submit {
  background: var(--navy); color: #fff; -webkit-text-fill-color: #fff; opacity: 1; cursor: wait; transform: none;
}
form.wpcf7-form input[type="submit"].wpcf7-submit:disabled:not([aria-busy="true"]) { cursor: not-allowed; }

/* ---- Lead popup (inc/leads.php) ---- */
html.alm-modal-open { overflow: hidden; }
.alm-modal[hidden] { display: none; }
.alm-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.alm-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 25, 47, 0.6); }
.alm-modal-card { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 2rem); overflow-y: auto; outline: 0; }
.alm-modal-x { position: absolute; top: 0.6rem; right: 0.8rem; background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--navy); padding: 0.25rem 0.5rem; }
.alm-modal-card .field { margin-bottom: 0.75rem; }
.alm-modal-card .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.alm-modal-card .field select, .alm-modal-card .field textarea { width: 100%; }
.alm-modal-card .wpcf7-not-valid-tip { display: block !important; color: #b32d2e; font-size: 0.8rem; }
.alm-modal-card form.sent .wpcf7-form-control-wrap, .alm-modal-card form.sent .alm-consent, .alm-modal-card form.sent .field, .alm-modal-card form.sent .field-row, .alm-modal-card form.sent .btn { display: none; }
.alm-modal-card form.sent .wpcf7-response-output { display: block; font-weight: 700; text-align: center; }
.alm-modal-nmls { margin: 0.9rem 0 0; text-align: center; opacity: 0.75; }
@media (max-width: 520px) { .alm-modal-card .field-row { grid-template-columns: 1fr; } }
