/* ============================================================
   FLORIDA CONVENTIONAL LOAN — Main Stylesheet
   Joe Pistone | CrossCountry Mortgage
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Design Tokens ── */
:root {
  --navy:        #1B5E20;
  --navy-dark:   #0D3B12;
  --navy-light:  #2E7D32;
  --gold:        #D4A017;
  --gold-dark:   #B8860B;
  --gold-light:  #E8BF4A;
  --gold-bg:     #FDF8EC;
  --bg:          #F2F5FC;
  --surface:     #FFFFFF;
  --surface-2:   #F8FAFF;
  --text:        #1A1E2E;
  --text-muted:  #5A6178;
  --text-faint:  #9AA0B8;
  --border:      #D8E0F0;
  --success:     #2E7D5E;
  --radius-sm:   0.375rem;
  --radius-md:   0.625rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --shadow-sm:   0 1px 3px rgba(26,46,90,0.08);
  --shadow-md:   0 4px 16px rgba(26,46,90,0.10);
  --shadow-lg:   0 12px 40px rgba(26,46,90,0.14);
  --shadow-xl:   0 20px 60px rgba(26,46,90,0.18);
  --trans:       180ms cubic-bezier(0.16,1,0.3,1);
  --font:        'Plus Jakarta Sans', -apple-system, sans-serif;

  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.6vw,  1.375rem);
  --text-xl:   clamp(1.375rem, 1.1rem  + 1.1vw,  2rem);
  --text-2xl:  clamp(1.875rem, 1.2rem  + 2.5vw,  3.25rem);
  --text-3xl:  clamp(2.5rem,   1.5rem  + 3.5vw,  4.5rem);

  /* Spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem;  --sp-8: 2rem;    --sp-10: 2.5rem;
  --sp-12: 3rem;   --sp-16: 4rem;   --sp-20: 5rem;   --sp-24: 6rem;

  --content: 1180px;
  --content-narrow: 720px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; }
h1,h2,h3,h4,h5,h6 { line-height: 1.2; text-wrap: balance; }
p, li { text-wrap: pretty; }

/* ── Utilities ── */
.container { width: 100%; max-width: var(--content); margin-inline: auto; padding-inline: clamp(var(--sp-4), 5vw, var(--sp-10)); }
.container--narrow { max-width: var(--content-narrow); }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-8);
  font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.01em;
  border-radius: var(--radius-full, 9999px);
  transition: all var(--trans);
  white-space: nowrap;
  border-radius: 9999px;
}
.btn--primary {
  background: var(--gold); color: var(--navy-dark);
  box-shadow: 0 4px 16px rgba(212,160,23,0.35);
}
.btn--primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(212,160,23,0.45); }
.btn--navy {
  background: var(--navy); color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--navy:hover { background: var(--navy-light); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn--outline {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
}
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--lg { padding: var(--sp-4) var(--sp-10); font-size: var(--text-base); }
.btn--xl { padding: var(--sp-5) var(--sp-12); font-size: var(--text-lg); font-weight: 800; }

/* ── Header ── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26,46,90,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow var(--trans);
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.25); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: var(--sp-6);
}
.header__logo { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.header__logo-text { color: #fff; font-weight: 800; font-size: var(--text-base); line-height: 1.2; }
.header__logo-text span { color: var(--gold); display: block; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.header__nav { display: flex; align-items: center; gap: var(--sp-6); }
.header__nav a { color: rgba(255,255,255,0.8); font-size: var(--text-sm); font-weight: 500; transition: color var(--trans); }
.header__nav a:hover { color: #fff; }
.header__cta { display: flex; align-items: center; gap: var(--sp-3); }
.header__phone { color: var(--gold); font-weight: 700; font-size: var(--text-sm); display: flex; align-items: center; gap: var(--sp-2); }

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__phone { display: none; }
}

/* ── Hero ── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #1E3D6B 100%);
  overflow: hidden;
  padding: clamp(var(--sp-16), 8vw, var(--sp-24)) 0 clamp(var(--sp-12), 6vw, var(--sp-20));
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(212,160,23,0.15); border: 1px solid rgba(212,160,23,0.3);
  color: var(--gold-light); font-size: var(--text-xs); font-weight: 600;
  padding: var(--sp-2) var(--sp-4); border-radius: 9999px;
  margin-bottom: var(--sp-4); text-transform: uppercase; letter-spacing: 0.06em;
}
.hero__badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.hero__title {
  font-size: var(--text-3xl); font-weight: 800; color: #fff;
  line-height: 1.1; margin-bottom: var(--sp-5);
}
.hero__title em { color: var(--gold); font-style: normal; }
.hero__subtitle { font-size: var(--text-lg); color: rgba(255,255,255,0.78); margin-bottom: var(--sp-8); max-width: 52ch; line-height: 1.55; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.hero__stat {
  display: flex; align-items: center; gap: var(--sp-2);
  color: rgba(255,255,255,0.85); font-size: var(--text-sm); font-weight: 500;
}
.hero__stat-icon { color: var(--gold); font-size: 1.1em; }
.hero__cta-group { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.hero__trust { color: rgba(255,255,255,0.5); font-size: var(--text-xs); display: flex; align-items: center; gap: var(--sp-2); }

/* Hero Quiz Card */
.hero__quiz-wrap {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.08);
  overflow: hidden;
}
.quiz-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: var(--sp-5) var(--sp-8);
  text-align: center;
}
.quiz-header h2 { color: #fff; font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--sp-1); }
.quiz-header p { color: rgba(255,255,255,0.7); font-size: var(--text-sm); }
.quiz-progress-wrap { padding: var(--sp-4) var(--sp-8) 0; }
.quiz-progress-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-2); }
.quiz-progress-label span { font-size: var(--text-xs); font-weight: 600; color: var(--text-muted); }
.quiz-progress-label .step-current { color: var(--navy); font-weight: 700; }
.quiz-progress-bar { height: 6px; background: var(--border); border-radius: 9999px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg, var(--navy), var(--gold)); border-radius: 9999px; transition: width 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.quiz-body { padding: var(--sp-6) var(--sp-8) var(--sp-8); }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeSlideIn 0.3s ease; }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.quiz-question { font-size: var(--text-lg); font-weight: 700; color: var(--navy); margin-bottom: var(--sp-5); text-align: center; }
.quiz-options { display: grid; gap: var(--sp-3); }
.quiz-options.cols-2 { grid-template-columns: 1fr 1fr; }
.quiz-option {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface-2); border: 2px solid var(--border);
  border-radius: var(--radius-md); cursor: pointer;
  transition: all var(--trans);
  font-size: var(--text-sm); font-weight: 600; color: var(--text);
  text-align: left;
}
.quiz-option:hover { border-color: var(--navy); background: #EEF2FF; color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.quiz-option.selected { border-color: var(--navy); background: #EEF2FF; color: var(--navy); }
.quiz-option-icon { font-size: 1.3em; flex-shrink: 0; }
.quiz-input-group { display: flex; flex-direction: column; gap: var(--sp-3); }
.quiz-input {
  width: 100%; padding: var(--sp-4) var(--sp-5);
  border: 2px solid var(--border); border-radius: var(--radius-md);
  font: inherit; font-size: var(--text-base); color: var(--text);
  background: var(--surface); transition: border-color var(--trans);
  outline: none;
}
.quiz-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,46,90,0.1); }
.quiz-input::placeholder { color: var(--text-faint); }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: var(--sp-5); }
.quiz-next {
  width: 100%; padding: var(--sp-4) var(--sp-8);
  background: var(--navy); color: #fff;
  border-radius: 9999px; font-weight: 700; font-size: var(--text-base);
  transition: all var(--trans);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
}
.quiz-next:hover { background: var(--navy-light); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.quiz-next:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.quiz-back {
  color: var(--text-muted); font-size: var(--text-sm); font-weight: 500;
  display: flex; align-items: center; gap: var(--sp-1);
  transition: color var(--trans);
}
.quiz-back:hover { color: var(--navy); }
.quiz-disclaimer { font-size: var(--text-xs); color: var(--text-faint); text-align: center; margin-top: var(--sp-4); line-height: 1.5; }

/* Quiz Success */
.quiz-success { display: none; text-align: center; padding: var(--sp-6) var(--sp-8); }
.quiz-success.active { display: block; animation: fadeSlideIn 0.4s ease; }
.quiz-success__icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-4);
  font-size: 2rem;
}
.quiz-success h3 { color: var(--navy); font-size: var(--text-xl); font-weight: 800; margin-bottom: var(--sp-3); }
.quiz-success p { color: var(--text-muted); font-size: var(--text-base); margin-bottom: var(--sp-5); max-width: 38ch; margin-inline: auto; }
.quiz-success__contact { background: var(--gold-bg); border: 1px solid rgba(212,160,23,0.25); border-radius: var(--radius-md); padding: var(--sp-4) var(--sp-5); margin-top: var(--sp-4); text-align: left; }
.quiz-success__contact p { font-size: var(--text-sm); color: var(--text-muted); max-width: 100%; }
.quiz-success__contact strong { color: var(--navy); font-size: var(--text-base); }

@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__content { text-align: center; }
  .hero__stats { justify-content: center; }
  .hero__cta-group { justify-content: center; }
  .hero__quiz-wrap { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 480px) {
  .quiz-options.cols-2 { grid-template-columns: 1fr; }
  .quiz-body { padding: var(--sp-5) var(--sp-5) var(--sp-6); }
  .quiz-header { padding: var(--sp-4) var(--sp-5); }
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--navy);
  padding: var(--sp-5) 0;
}
.stats-bar__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-8); }
.stats-bar__item { text-align: center; color: #fff; }
.stats-bar__value { font-size: var(--text-2xl); font-weight: 800; color: var(--gold); line-height: 1; }
.stats-bar__label { font-size: var(--text-xs); color: rgba(255,255,255,0.65); font-weight: 500; margin-top: var(--sp-1); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Section Base ── */
.section { padding: clamp(var(--sp-16), 8vw, var(--sp-24)) 0; }
.section--alt { background: var(--surface); }
.section--navy { background: var(--navy); }
.section--gold { background: var(--gold-bg); }
.section__header { text-align: center; margin-bottom: var(--sp-12); }
.section__eyebrow {
  display: inline-block; font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-dark);
  margin-bottom: var(--sp-3);
}
.section__title { font-size: var(--text-2xl); font-weight: 800; color: var(--navy); margin-bottom: var(--sp-4); }
.section__subtitle { font-size: var(--text-base); color: var(--text-muted); max-width: 58ch; margin-inline: auto; line-height: 1.7; }
.section--navy .section__title { color: #fff; }
.section--navy .section__subtitle { color: rgba(255,255,255,0.7); }

/* ── Benefits ── */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-6); }
.benefit-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--sp-8);
  transition: all var(--trans);
}
.benefit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.benefit-card__icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: var(--sp-5);
}
.benefit-card__title { font-size: var(--text-lg); font-weight: 700; color: var(--navy); margin-bottom: var(--sp-3); }
.benefit-card__desc { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; }

/* ── How It Works ── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); position: relative; }
.steps-grid::before {
  content: '';
  position: absolute; top: 32px; left: calc(16.67% + var(--sp-6)); right: calc(16.67% + var(--sp-6));
  height: 2px; background: linear-gradient(90deg, var(--border) 0%, var(--gold) 50%, var(--border) 100%);
}
.step-card { text-align: center; position: relative; }
.step-number {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff; font-size: var(--text-xl); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-5);
  box-shadow: 0 4px 20px rgba(26,46,90,0.3);
  position: relative; z-index: 1;
}
.step-card__title { font-size: var(--text-base); font-weight: 700; color: var(--navy); margin-bottom: var(--sp-2); }
.step-card__desc { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.65; }
@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
}

/* ── Comparison Table ── */
.compare-table-wrap {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.compare-table-wrap__header { background: var(--navy); padding: var(--sp-5) var(--sp-6); }
.compare-table-wrap__header h3 { color: #fff; font-weight: 700; }
.compare-table-wrap__header p { color: rgba(255,255,255,0.65); font-size: var(--text-sm); margin-top: var(--sp-1); }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th { background: #EEF2FF; color: var(--navy); font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: var(--sp-3) var(--sp-5); text-align: left; }
.compare-table td { padding: var(--sp-4) var(--sp-5); font-size: var(--text-sm); border-bottom: 1px solid var(--border); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--surface-2); }
.compare-table .highlight-col { font-weight: 700; color: var(--navy); }
.compare-table .winner { color: var(--success); font-weight: 700; }
.compare-table .loser { color: var(--text-faint); }

/* ── Loan Info Section ── */
.conv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: start; }
.conv-feature-list { list-style: none; display: flex; flex-direction: column; gap: var(--sp-4); }
.conv-feature { display: flex; gap: var(--sp-4); align-items: flex-start; }
.conv-feature__check {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; flex-shrink: 0; margin-top: 2px;
}
.conv-feature__text strong { display: block; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.conv-feature__text span { font-size: var(--text-sm); color: var(--text-muted); }

/* Loan Limits Table */
.loan-limits-card {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.loan-limits-card__header { background: var(--navy); padding: var(--sp-5) var(--sp-6); }
.loan-limits-card__header h3 { color: #fff; font-weight: 700; }
.loan-limits-card__header p { color: rgba(255,255,255,0.65); font-size: var(--text-sm); margin-top: var(--sp-1); }
.loan-limits-table { width: 100%; border-collapse: collapse; }
.loan-limits-table th { background: #EEF2FF; color: var(--navy); font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: var(--sp-3) var(--sp-5); text-align: left; }
.loan-limits-table td { padding: var(--sp-4) var(--sp-5); font-size: var(--text-sm); border-bottom: 1px solid var(--border); }
.loan-limits-table tr:last-child td { border-bottom: none; }
.loan-limits-table tr:hover td { background: var(--surface-2); }
.loan-limit-value { font-weight: 700; color: var(--navy); }
@media (max-width: 768px) { .conv-grid { grid-template-columns: 1fr; } }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--sp-16); align-items: center; }
.about-photo-wrap {
  position: relative;
  border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 4/5; background: linear-gradient(135deg, #EEF2FF 0%, #D8E0F0 100%);
  box-shadow: var(--shadow-xl);
}
.about-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-badge {
  position: absolute; bottom: var(--sp-5); left: var(--sp-5); right: var(--sp-5);
  background: rgba(26,46,90,0.92); backdrop-filter: blur(8px);
  border-radius: var(--radius-md); padding: var(--sp-4);
  color: #fff;
}
.about-photo-badge__name { font-weight: 700; font-size: var(--text-base); }
.about-photo-badge__title { font-size: var(--text-sm); color: var(--gold-light); margin-top: 2px; }
.about-photo-badge__nmls { font-size: var(--text-xs); color: rgba(255,255,255,0.55); margin-top: var(--sp-1); }
.about-content h2 { font-size: var(--text-2xl); font-weight: 800; color: var(--navy); margin-bottom: var(--sp-5); }
.about-content p { color: var(--text-muted); margin-bottom: var(--sp-5); line-height: 1.75; }
.about-highlights { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-8); }
.about-highlight { display: flex; gap: var(--sp-3); align-items: center; font-size: var(--text-sm); color: var(--text); }
.about-highlight::before { content: '✓'; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; flex-shrink: 0; }
.ccm-badge { display: inline-flex; align-items: center; gap: var(--sp-3); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-3) var(--sp-5); }
.ccm-badge__text { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.4; }
.ccm-badge__text strong { display: block; color: var(--navy); font-size: var(--text-sm); }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } .about-photo-wrap { max-width: 320px; margin-inline: auto; } }

/* ── Service Areas ── */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--sp-3); }
.area-chip {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--sp-4) var(--sp-5);
  text-align: center; font-size: var(--text-sm); font-weight: 600; color: var(--navy);
  transition: all var(--trans);
}
.area-chip:hover { border-color: var(--navy); background: var(--navy); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.area-chip--primary { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── FAQ ── */
.faq-list { max-width: 800px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-5) var(--sp-6); text-align: left;
  font-size: var(--text-base); font-weight: 700; color: var(--navy);
  transition: background var(--trans);
}
.faq-question:hover { background: var(--surface-2); }
.faq-question.open { background: #EEF2FF; }
.faq-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--trans); font-size: 0.9rem; }
.faq-question.open .faq-icon { background: var(--navy); color: #fff; transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 var(--sp-6) var(--sp-5); }
.faq-answer p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.75; }
.faq-item.open .faq-answer { display: block; animation: fadeSlideIn 0.25s ease; }

/* ── Relocation Section ── */
.relocation-card {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1E4080 100%);
  border-radius: var(--radius-xl); padding: clamp(var(--sp-10), 6vw, var(--sp-20));
  position: relative; overflow: hidden;
}
.relocation-card::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(212,160,23,0.08);
}
.relocation-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-12); align-items: center; }
.relocation-inner h2 { font-size: var(--text-2xl); font-weight: 800; color: #fff; margin-bottom: var(--sp-4); }
.relocation-inner p { color: rgba(255,255,255,0.75); font-size: var(--text-base); line-height: 1.7; margin-bottom: var(--sp-6); }
.relocation-states { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-8); }
.state-badge { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); font-size: var(--text-xs); font-weight: 600; padding: var(--sp-2) var(--sp-3); border-radius: 9999px; }
.relocation-stats { display: flex; flex-direction: column; gap: var(--sp-6); }
.relocation-stat-item { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-md); padding: var(--sp-5) var(--sp-6); }
.relocation-stat-item .value { font-size: var(--text-xl); font-weight: 800; color: var(--gold); }
.relocation-stat-item .label { font-size: var(--text-sm); color: rgba(255,255,255,0.7); margin-top: var(--sp-1); }
@media (max-width: 768px) { .relocation-inner { grid-template-columns: 1fr; } }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, #E8BF4A 100%);
  padding: clamp(var(--sp-12), 6vw, var(--sp-20)) 0;
  text-align: center;
}
.cta-banner h2 { font-size: var(--text-2xl); font-weight: 800; color: var(--navy-dark); margin-bottom: var(--sp-4); }
.cta-banner p { font-size: var(--text-lg); color: var(--navy); margin-bottom: var(--sp-8); max-width: 55ch; margin-inline: auto; opacity: 0.85; }
.cta-banner .btn--navy { font-size: var(--text-base); padding: var(--sp-4) var(--sp-12); }

/* ── Footer ── */
.footer {
  background: var(--navy-dark);
  padding: clamp(var(--sp-12), 6vw, var(--sp-16)) 0 var(--sp-8);
}
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--sp-10); margin-bottom: var(--sp-12); }
.footer__brand p { font-size: var(--text-sm); color: rgba(255,255,255,0.5); margin-top: var(--sp-4); line-height: 1.7; max-width: 32ch; }
.footer__col h4 { font-size: var(--text-sm); font-weight: 700; color: rgba(255,255,255,0.9); margin-bottom: var(--sp-5); text-transform: uppercase; letter-spacing: 0.06em; }
.footer__links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__links a { font-size: var(--text-sm); color: rgba(255,255,255,0.5); transition: color var(--trans); }
.footer__links a:hover { color: var(--gold-light); }
.footer__divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin-bottom: var(--sp-8); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; align-items: flex-start; }
.footer__legal { font-size: var(--text-xs); color: rgba(255,255,255,0.35); line-height: 1.7; max-width: 75ch; }
.footer__badges { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.footer__badge { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-4); font-size: var(--text-xs); color: rgba(255,255,255,0.55); white-space: nowrap; }
.footer__badge--eh { display: flex; align-items: center; gap: var(--sp-2); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer__grid { grid-template-columns: 1fr; } .footer__bottom { flex-direction: column; } }

/* ── Anchor CTA (Floating) ── */
.sticky-cta {
  position: fixed; bottom: var(--sp-5); left: 50%; transform: translateX(-50%);
  z-index: 90; display: none;
  animation: slideUp 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes slideUp { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.sticky-cta.visible { display: flex; }
.sticky-cta__inner {
  background: var(--navy); border-radius: 9999px; padding: var(--sp-3) var(--sp-5);
  display: flex; align-items: center; gap: var(--sp-4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  color: #fff; font-size: var(--text-sm);
}
.sticky-cta__text { font-weight: 600; }
.sticky-cta__btn { background: var(--gold); color: var(--navy-dark); font-weight: 700; font-size: var(--text-sm); padding: var(--sp-2) var(--sp-5); border-radius: 9999px; transition: all var(--trans); white-space: nowrap; }
.sticky-cta__btn:hover { background: var(--gold-light); }
.sticky-cta__close { color: rgba(255,255,255,0.4); font-size: 1.2rem; line-height: 1; margin-left: var(--sp-2); cursor: pointer; transition: color var(--trans); }
.sticky-cta__close:hover { color: #fff; }
@media (max-width: 500px) { .sticky-cta__text { display: none; } }

/* ── MOBILE RESPONSIVE FIX ── */
html, body { overflow-x: hidden; max-width: 100vw; }

@media (max-width: 768px) {
  /* Header fix — prevent CTA overflow */
  .header__inner { padding-inline: var(--sp-3); gap: var(--sp-2); }
  .header__cta .btn { padding: var(--sp-2) var(--sp-4); font-size: 0.75rem; }
  .header__logo-text { font-size: 0.85rem; }
  .header__logo-text span { font-size: 0.65rem; }
  .header__logo svg, .header__logo img { width: 28px; height: 28px; }
  
  /* Hero fixes */
  .hero { padding: var(--sp-10) 0 var(--sp-8); }
  .hero__title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .hero__subtitle { font-size: var(--text-sm); }
  .hero__stat { font-size: 0.8rem; }
  
  /* Stats bar — wrap properly */
  .stats-bar__grid { gap: var(--sp-4); }
  .stats-bar__item { min-width: 80px; }
  .stats-bar__value { font-size: var(--text-xl); }
  .stats-bar__label { font-size: 0.65rem; }
  
  /* Benefits grid — single column */
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-card { padding: var(--sp-6); }
  
  /* Testimonials — single column */
  .testimonials-grid { grid-template-columns: 1fr; }
  
  /* Loan types — single column */
  .loan-types-grid { grid-template-columns: 1fr; }
  
  /* Areas grid — 2 columns on mobile */
  .areas-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
  .area-chip { padding: var(--sp-3); font-size: 0.8rem; }
  
  /* Table overflow fix */
  .loan-limits-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .loan-limits-table { min-width: 320px; }
  
  /* FAQ padding */
  .faq-question { padding: var(--sp-4); font-size: var(--text-sm); }
  .faq-answer { padding: 0 var(--sp-4) var(--sp-4); }
  
  /* Section padding reduction */
  .section { padding: var(--sp-10) 0; }
  .section__header { margin-bottom: var(--sp-8); }
  .section__title { font-size: clamp(1.4rem, 5vw, 2rem); }
  
  /* Footer fix */
  .footer__bottom { gap: var(--sp-3); }
  .footer__legal { font-size: 0.7rem; }
  .footer__badges { gap: var(--sp-2); }
  
  /* CTA banner */
  .cta-banner h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .cta-banner p { font-size: var(--text-sm); }
  .cta-banner .btn--navy { padding: var(--sp-3) var(--sp-8); font-size: var(--text-sm); }
  
  /* Relocation card */
  .relocation-card { padding: var(--sp-6); }
  .relocation-inner h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .state-badge { font-size: 0.7rem; padding: var(--sp-1) var(--sp-2); }
}

@media (max-width: 400px) {
  .container { padding-inline: var(--sp-4); }
  .header__cta .btn { padding: var(--sp-2) var(--sp-3); font-size: 0.7rem; }
  .hero__title { font-size: 1.6rem; }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar__grid { gap: var(--sp-3); }
  .stats-bar__item { min-width: 70px; }
}

/* ── MOBILE FIX v2 — Button wrapping & hero content ── */
@media (max-width: 768px) {
  .btn { white-space: normal; text-align: center; }
  .btn--xl { padding: var(--sp-4) var(--sp-6); font-size: var(--text-base); }
  .btn--lg { padding: var(--sp-3) var(--sp-5); font-size: var(--text-sm); }
  .hero__content { overflow: hidden; }
  .hero__subtitle { max-width: 100%; }
  .hero__stats { gap: var(--sp-2); }
  .hero__cta-group { flex-direction: column; width: 100%; }
  .hero__cta-group .btn { width: 100%; }
  .quiz-header h2 { font-size: var(--text-base); }
}
