/* MoneyInsider — Main CSS
   Design: Clean, trustworthy financial brand
   Palette: Deep navy #0D1B40 | Electric blue #2563EB | Mint #10B981 | Warm white #F8FAFC | Slate #64748B
   Type: Sora (display) + Inter (body)
*/

:root {
  --navy: #0D1B40;
  --blue: #2563EB;
  --blue-light: #EFF6FF;
  --mint: #10B981;
  --mint-light: #ECFDF5;
  --white: #FFFFFF;
  --surface: #F8FAFC;
  --slate: #64748B;
  --slate-light: #F1F5F9;
  --border: #E2E8F0;
  --text: #1E293B;
  --text-muted: #64748B;
  --danger: #EF4444;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ─── TYPOGRAPHY ─── */
h1,h2,h3,h4 { font-family: 'Sora', sans-serif; line-height: 1.2; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.4); }
.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--outline:hover { background: var(--blue-light); }
.btn--lg { padding: 16px 32px; font-size: 17px; border-radius: 10px; }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--full { width: 100%; }

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  padding: 0 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.site-header__inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-header__logo {
  font-family: 'Sora', sans-serif;
  font-size: 20px; font-weight: 800;
  color: var(--white); text-decoration: none;
}
.site-header__logo span { color: var(--mint); }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px; font-weight: 500;
  transition: all 0.15s;
}
.site-nav a:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.site-header__cta .btn--primary { padding: 8px 20px; font-size: 14px; }

/* ─── SECTIONS ─── */
.section { padding: 72px 0; }
.section--alt { background: var(--surface); }
.section__title { font-size: 32px; margin-bottom: 8px; text-align: center; color: var(--navy); }
.section__sub { text-align: center; color: var(--text-muted); margin-bottom: 48px; font-size: 16px; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
  font-size: 13px;
}
.site-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.site-footer__logo { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.site-footer__logo span { color: var(--mint); }
.site-footer__tagline { color: rgba(255,255,255,0.5); line-height: 1.6; }
.site-footer h4 { color: var(--white); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; font-family: 'Inter', sans-serif; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { color: rgba(255,255,255,0.6); text-decoration: none; }
.site-footer ul a:hover { color: var(--white); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-footer__disclaimer { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 16px; line-height: 1.7; }

/* ─── FORMS ─── */
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: 15px;
  color: var(--text); background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
input.error { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 12px; margin-top: 4px; display: block; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.req { color: var(--danger); }
.input-prefix { display: flex; }
.input-prefix span { background: var(--slate-light); border: 2px solid var(--border); border-right: none; padding: 12px 14px; border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-weight: 600; color: var(--slate); }
.input-prefix input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ─── AD UNITS ─── */
.ad-unit { margin: 24px 0; }
.ad-unit__label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; text-align: center; margin-bottom: 4px; }
.ad-placeholder { background: var(--slate-light); border: 1px dashed var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 12px; min-height: 90px; border-radius: var(--radius-sm); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section__title { font-size: 24px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .site-nav { display: none; } /* mobile: add hamburger in Phase 2 */
}
