/*
Theme Name: Fair Lending Testers
Theme URI: https://fairlendingtesters.com
Author: RMJ Consulting LLC
Description: Custom WordPress theme for Fair Lending Testers, a division of RMJ Consulting LLC.
Version: 1.4.3
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: fair-lending-testers
*/

:root {
  --navy: #0d3558;
  --navy-deep: #082641;
  --burgundy: #8a1020;
  --gold: #b08a45;
  --ink: #172331;
  --muted: #5b6874;
  --mist: #f2f5f7;
  --line: #d9e0e5;
  --white: #ffffff;
  --max: 1180px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--sans); font-size: 17px; line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--burgundy); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 800px); margin-inline: auto; }

h1, h2, h3 { margin: 0 0 .55em; color: var(--navy); font-family: var(--serif); line-height: 1.08; }
h1 { font-size: clamp(2.7rem, 5.7vw, 5.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
p { margin: 0 0 1.2em; }
.eyebrow { margin-bottom: 14px; color: var(--burgundy); font-size: clamp(1rem, 1.35vw, 1.18rem); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lede { max-width: 760px; color: #334250; font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.rule { width: 70px; height: 3px; margin: 22px 0 28px; background: var(--gold); }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(13,53,88,.12); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--navy); text-decoration: none; }
.brand-mark { width: 54px; height: 58px; object-fit: contain; object-position: top center; }
.brand-name { font-family: var(--serif); font-size: 1.42rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.site-nav a { color: #111b25; font-size: .96rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--burgundy); }
.nav-cta, .button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid var(--navy); border-radius: 4px; background: var(--navy); color: var(--white) !important; font-weight: 750; text-decoration: none; transition: .2s ease; }
.nav-cta:hover, .button:hover { border-color: var(--burgundy); background: var(--burgundy); transform: translateY(-1px); }
.button-outline { border-color: rgba(255,255,255,.55); background: transparent; }
.button-light { background: #fff; color: var(--navy) !important; }
.contact-form { display: grid; gap: 16px; margin-top: 28px; }
.contact-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--navy); outline-offset: 2px; }
.contact-form select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font: inherit; }
.contact-form select:focus { outline: 2px solid var(--navy); outline-offset: 2px; }
.contact-form fieldset { min-width: 0; margin: 16px 0 0; padding: 0; border: 0; }
.contact-form legend { margin-bottom: 10px; color: var(--navy); font-family: var(--serif); font-size: 1.45rem; font-weight: 700; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.contact-form .choice-grid label { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-weight: 500; }
.contact-form input[type="checkbox"] { width: auto; margin: .45em 0 0; flex: none; }
.form-help { color: var(--muted); font-size: .94rem; }
.contact-form button { justify-self: start; cursor: pointer; font: inherit; }
.contact-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 12px 16px; border-radius: 4px; font-weight: 650; }
.form-success { background: #e6f3eb; color: #17552f; }
.form-error { background: #fbe9e9; color: #80202c; }
.menu-toggle { display: none; padding: 10px; border: 0; background: transparent; color: var(--navy); font: inherit; font-weight: 700; }

.hero { overflow: hidden; background: linear-gradient(105deg, #fff 0%, #fff 58%, #f6f8f9 58%, #f6f8f9 100%); }
.hero-grid { min-height: 720px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(36px, 6vw, 90px); padding-block: 70px; }
.hero-copy p { max-width: 720px; font-size: clamp(1.05rem, 1.5vw, 1.26rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-logo-wrap { display: grid; place-items: center; }
.hero-logo { width: min(100%, 560px); background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; filter: none !important; }

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--mist); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 28px 30px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; color: var(--navy); font-family: var(--serif); font-size: 1.25rem; }
.trust-item span { color: var(--muted); font-size: .93rem; }

.section { padding-block: clamp(72px, 9vw, 118px); }
.section-soft { background: var(--mist); }
.section-navy { background: var(--navy-deep); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .eyebrow, .page-hero .eyebrow { color: #f1d496; }
.section-navy .lede { color: #d7e3ec; }
.section-head { margin-bottom: 46px; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 7vw, 90px); }
.feature-image { overflow: hidden; border-radius: 6px; box-shadow: 0 18px 45px rgba(8,38,65,.14); }
.feature-image img { width: 100%; min-height: 420px; object-fit: cover; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { padding: 34px; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 5px; background: var(--white); }
.card p { color: var(--muted); }
.card .number { display: block; margin-bottom: 18px; color: var(--burgundy); font-family: var(--serif); font-size: 2rem; font-weight: 700; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding: 32px 24px; border-left: 1px solid rgba(255,255,255,.25); }
.step::before { counter-increment: step; content: '0' counter(step); display: block; margin-bottom: 22px; color: #cfab67; font-family: var(--serif); font-size: 2rem; }
.step p { color: #d7e3ec; font-size: .95rem; }
.check-list { margin: 24px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin: 13px 0; padding-left: 30px; }
.check-list li::before { content: ''; position: absolute; left: 0; top: .65em; width: 13px; height: 7px; border-left: 2px solid var(--burgundy); border-bottom: 2px solid var(--burgundy); transform: rotate(-45deg); }

.page-hero { padding: 86px 0 76px; background: linear-gradient(120deg, var(--navy-deep), var(--navy)); color: var(--white); }
.page-hero h1 { max-width: 920px; color: var(--white); font-size: clamp(2.8rem, 5vw, 4.8rem); }
.page-hero .lede { color: #d7e3ec; }
.page-hero .eyebrow { margin-bottom: 20px; }
.case-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 34px; }
.case-card { padding: 26px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 5px; background: var(--white); }
.case-card h3 { font-size: 1.35rem; }
.case-card p { margin-bottom: .65em; }
.case-card a { font-weight: 700; }
.content-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; }
.founder-bio { display: grid; grid-template-columns: minmax(170px, 240px) minmax(0, 1fr); gap: 30px; align-items: start; margin-top: 44px; }
.founder-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; box-shadow: 0 12px 32px rgba(8,38,65,.14); }
.founder-bio h2 { font-size: clamp(1.8rem, 2.7vw, 2.6rem); }
.sidebar-note { padding: 30px; border-left: 4px solid var(--gold); background: var(--mist); }
.contact-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; padding: clamp(32px, 5vw, 62px); border-radius: 6px; background: var(--navy-deep); color: var(--white); }
.contact-panel h2, .contact-panel h3, .contact-panel a { color: var(--white); }
.contact-details { display: grid; gap: 22px; align-content: start; }
.contact-detail small { display: block; color: #b9cad7; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.contact-detail a, .contact-detail span { font-size: 1.1rem; }

.site-footer { background: #071e33; color: #d7e3ec; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr 1fr; gap: 44px; padding-block: 70px 55px; }
.footer-grid h3 { color: var(--white); font-family: var(--serif); font-size: 1.1rem; }
.footer-grid a { display: block; margin: 8px 0; color: #d7e3ec; text-decoration: none; }
.footer-brand { max-width: 360px; }
.footer-brand strong { color: var(--white); font-family: var(--serif); font-size: 1.55rem; }
.footer-tagline { margin-top: 15px; font-style: italic; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,.16); color: #aebfcb; font-size: .86rem; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 92px; right: 0; left: 0; display: none; padding: 24px; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: 0 12px 25px rgba(8,38,65,.12); }
  .site-nav.is-open { display: grid; }
  .hero { background: var(--white); }
  .hero-grid, .split, .contact-panel, .content-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; }
  .hero-logo { max-width: 480px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .contact-form-row, .choice-grid { grid-template-columns: 1fr; }
  .founder-bio { grid-template-columns: 1fr; }
  .founder-photo { max-width: 280px; }
  body { font-size: 16px; }
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 76px; }
  .brand-mark { width: 42px; height: 46px; }
  .brand-name { font-size: 1.12rem; }
  .site-nav { top: 76px; }
  .hero-grid { padding-block: 48px 58px; }
  .hero-logo { max-width: 340px; }
  .trust-grid, .cards, .steps, .footer-grid, .case-list { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .step { border-left: 0; border-top: 1px solid rgba(255,255,255,.25); }
  .feature-image img { min-height: 280px; }
  .footer-bottom { display: block; }
}
