/* ============================================================
   NORTHBRIDGE FINANCIAL — style.css
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F7F7F5;
  --bg-white: #FFFFFF;
  --navy: #0F172A;
  --navy-card: #111827;
  --blue: #1565C0;
  --blue-light: #E8F0FE;
  --blue-hover: #1251A0;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-faint: #94A3B8;
  --border: #E2E8F0;
  --border-hover: #94A3B8;
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 16px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.05);
  --shadow-lg: 0 12px 40px rgba(15,23,42,0.1), 0 4px 12px rgba(15,23,42,0.06);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--navy);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(21,101,192,0.28);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  background: #CBD5E1;
  color: #94A3B8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-sm { font-size: 15px; padding: 10px 22px; }
.btn-lg { font-size: 18px; padding: 18px 40px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--navy); }
.btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.logo span { color: var(--blue); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.main-nav a {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-body);
  transition: color var(--transition);
}
.main-nav a:hover { color: var(--navy); }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.2s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  padding: 16px 40px 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 16px;
  color: var(--text-body);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; margin-top: 12px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 40px 100px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hero card (left) */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card {
  background: var(--navy-card);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  box-shadow: var(--shadow-lg);
}
.hero-card-icon svg {
  width: 80px;
  height: 80px;
}
.hero-card-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  letter-spacing: 0.01em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.hero-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
  width: fit-content;
}

/* Hero content (right) */
.hero-content { display: flex; flex-direction: column; gap: 24px; }
.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
}
.hero-heading {
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -1px;
}
.hero-subtext {
  font-size: 18px;
  color: var(--text-body);
  line-height: 1.7;
  font-weight: 300;
  max-width: 420px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-white);
  padding: 28px 40px;
}
.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  flex-shrink: 0;
}
.trust-logos {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-logos span {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: #C9D3DF;
  letter-spacing: 0.01em;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 100px 40px;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-eyebrow {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
}
.section-heading {
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.8px;
}
.section-subtext {
  font-size: 17px;
  color: var(--text-body);
  font-weight: 300;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.step-number {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.08em;
}
.step-card h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.3px;
}
.step-card p {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.7;
  font-weight: 300;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 100px 40px;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
}
.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-eyebrow {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
}
.cta-heading {
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.1;
}
.cta-subtext {
  font-size: 17px;
  color: var(--text-body);
  font-weight: 300;
}
.cta-note {
  font-size: 13px;
  color: var(--text-faint);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--navy);
  color: rgba(255,255,255,0.7);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
}
.footer-brand .logo { color: rgba(255,255,255,0.9); margin-bottom: 16px; display: block; }
.footer-brand .logo span { color: rgba(99,179,237,0.9); }
.footer-brand p { font-size: 15px; font-weight: 300; line-height: 1.7; max-width: 280px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-family: var(--font-body); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.footer-col a { font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom p { font-size: 12px; font-weight: 300; line-height: 1.8; color: rgba(255,255,255,0.3); }

/* ============================================================
   QUIZ PAGE
   ============================================================ */
.quiz-body {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.quiz-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.quiz-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.quiz-progress-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}
.quiz-progress-bar-wrap {
  height: 3px;
  background: var(--border);
}
.quiz-progress-bar {
  height: 100%;
  background: var(--blue);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 2px 2px 0;
}

.quiz-main {
  flex: 1;
  padding: 60px 40px 160px;
}
.quiz-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Quiz Steps */
.quiz-step {
  display: none;
  animation: stepFadeIn 0.35s ease forwards;
}
.quiz-step.active { display: block; }
.quiz-step.exit { animation: stepFadeOut 0.2s ease forwards; }

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes stepFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}

.step-header { margin-bottom: 40px; }
.step-question {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}
.step-hint { font-size: 16px; color: var(--text-muted); font-weight: 300; }

/* Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.options-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
}

.option-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 20px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
  text-align: center;
  user-select: none;
}
.option-card:hover {
  border-color: #93C5FD;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.option-card.selected {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}
.option-card-wide {
  min-height: 80px;
  flex-direction: row;
  justify-content: center;
}

.option-icon {
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.option-card:hover .option-icon,
.option-card.selected .option-icon { color: var(--blue); }
.option-icon svg { width: 100%; height: 100%; }

.option-card span {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.4;
}

/* Text input step */
.text-input-step {
  max-width: 520px;
}
.text-input-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.input-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-faint);
}

/* Contact form */
.contact-form-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 820px;
}
.form-row { display: flex; gap: 20px; }
.form-row-2 { }
.form-group { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.input-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.quiz-input {
  height: 56px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--navy);
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.quiz-input::placeholder { color: var(--text-faint); }
.quiz-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}
.consent-check {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--blue);
}
.consent-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}
.consent-link { color: var(--blue); text-decoration: underline; }

.trust-notes {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.trust-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
}

/* ============================================================
   QUIZ BOTTOM NAV BAR
   ============================================================ */
.quiz-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 50;
}
.quiz-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.quiz-nav-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
}
.nav-dot.active {
  background: var(--blue);
  width: 24px;
  border-radius: 4px;
}
.nav-dot.done { background: #93C5FD; }

.quiz-nav-btns { display: flex; align-items: center; gap: 12px; }

/* ============================================================
   SUBMIT OVERLAY
   ============================================================ */
.submit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.submit-overlay.visible { display: flex; }
.submit-spinner-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-lg);
}
.submit-spinner-card p { font-size: 16px; color: var(--text-muted); font-weight: 300; }
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   THANK YOU PAGE
   ============================================================ */
.thankyou-body { background: var(--bg); }
.thankyou-main {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}
.thankyou-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 64px 72px;
  max-width: 540px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-md);
  animation: stepFadeIn 0.5s ease forwards;
}
.thankyou-icon svg {
  width: 80px;
  height: 80px;
}
.thankyou-heading {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -1px;
}
.thankyou-message {
  font-size: 18px;
  color: var(--text-body);
}
.thankyou-sub {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 360px;
}
.thankyou-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  width: 100%;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 60px 24px 80px; }
  .trust-bar { padding: 24px; }
  .trust-bar-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .how-it-works, .cta-section { padding: 72px 24px; }
  .steps-grid { grid-template-columns: 1fr; }
  .site-footer .footer-inner { padding: 48px 24px 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { padding: 20px 24px; }
  .main-nav { display: none; }
  .header-inner > .btn-primary { display: none; }
  .header-inner { padding: 0 24px; gap: 0; }
  .mobile-menu-btn { display: flex; }

  /* Quiz */
  .quiz-main { padding: 40px 20px 140px; }
  .quiz-header-inner { padding: 0 24px; }
  .options-grid { grid-template-columns: 1fr; }
  .options-grid-2 { grid-template-columns: 1fr; max-width: 100%; }
  .contact-form-card { padding: 28px 24px; }
  .form-row { flex-direction: column; }
  .trust-notes { flex-direction: column; gap: 12px; }
  .quiz-nav-inner { padding: 14px 20px; }
  .text-input-card { padding: 28px 24px; }

  /* Thankyou */
  .thankyou-card { padding: 48px 28px; }
  .thankyou-trust { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero-heading { font-size: 34px; }
  .step-question { font-size: 26px; }
  .hero-note { display: none; }
  .trust-logos { gap: 20px; }
  .trust-logos span { font-size: 14px; }
}
