/* =========================================================
   FINANCIAL ADVISER — DESIGN SYSTEM
   Bootstrap 5 is loaded separately; this file layers tokens
   and component styles on top. Do not remove BS utility classes
   from markup — this file only adds what BS doesn't cover.
========================================================= */

:root {
  --color-primary: #0F172A;
  --color-secondary: #1E40AF;
  --color-accent: #2563EB;
  --color-accent-light: #DBEAFE;
  --color-success: #16A34A;
  --color-success-light: #DCFCE7;
  --color-bg: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-border: #E2E8F0;
  --color-text-primary: #0F172A;
  --color-text-muted: #64748B;
  --color-text-inverse: #F8FAFC;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-numeric: 'Manrope', sans-serif;

  --header-height: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.font-numeric { font-family: var(--font-numeric); font-weight: 700; }

/* Reduced motion respected globally */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Visible keyboard focus, everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* -------------------- Layout helpers -------------------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
@media (max-width: 767.98px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 40px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 6px 14px;
  border-radius: 999px;
}

.text-muted-custom { color: var(--color-text-muted); }

/* -------------------- Buttons -------------------- */
.btn { border-radius: var(--radius-sm); font-weight: 600; padding: 12px 24px; transition: all .2s ease; }

.btn-fa-primary {
  background: var(--color-accent);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-sm);
}
.btn-fa-primary:hover {
  background: var(--color-secondary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-fa-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
}
.btn-fa-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-fa-lg { padding: 15px 32px; font-size: 17px; }

/* -------------------- Header / Nav -------------------- */
.fa-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.fa-logo { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--color-primary); }
.fa-logo span { color: var(--color-accent); }

.fa-nav-link {
  font-weight: 500;
  color: var(--color-primary);
  padding: 10px 16px !important;
  border-radius: var(--radius-sm);
}
.fa-nav-link:hover { color: var(--color-accent); background: var(--color-accent-light); }

.fa-mega {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  margin-top: 12px;
}
.fa-mega-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.fa-mega-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--color-primary);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
}
.fa-mega-link:hover { background: var(--color-bg); color: var(--color-accent); }
.fa-mega-link i { color: var(--color-accent); font-size: 16px; }

/* -------------------- Hero -------------------- */
.fa-hero {
  padding: 88px 0 80px;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(37, 99, 235, 0.08), transparent 60%),
    var(--color-bg);
  overflow: hidden;
}
.fa-hero h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.12; }

/* Signature element: live "portfolio health" widget preview instead of a stock illustration */
.fa-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  max-width: 420px;
}
.fa-widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.fa-widget-score {
  font-family: var(--font-numeric);
  font-size: 42px;
  font-weight: 800;
  color: var(--color-success);
  line-height: 1;
}
.fa-widget-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--color-border);
}
.fa-widget-row:first-of-type { border-top: none; }
.fa-widget-pill {
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--color-success-light); color: var(--color-success);
}
.fa-widget-bar { height: 6px; border-radius: 4px; background: var(--color-border); overflow: hidden; width: 90px; }
.fa-widget-bar span { display: block; height: 100%; background: var(--color-accent); border-radius: 4px; }

/* -------------------- Trust badges -------------------- */
.fa-trust-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0;
}
.fa-trust-item { display: flex; align-items: center; gap: 10px; color: var(--color-text-muted); font-weight: 600; font-size: 14px; }
.fa-trust-item i { color: var(--color-accent); font-size: 20px; }

/* -------------------- Stat counters -------------------- */
.fa-stat { text-align: center; }
.fa-stat-num { font-family: var(--font-numeric); font-size: 42px; font-weight: 800; color: var(--color-primary); }
.fa-stat-label { color: var(--color-text-muted); font-size: 14.5px; font-weight: 500; }

/* -------------------- Cards -------------------- */
.fa-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: var(--shadow-sm);
}
.fa-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.fa-card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--color-accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--color-accent);
  margin-bottom: 20px;
}
.fa-card h3 { font-size: 19px; margin-bottom: 8px; }
.fa-card p { color: var(--color-text-muted); font-size: 14.5px; margin-bottom: 0; }
.fa-card-link { font-size: 14px; font-weight: 600; color: var(--color-accent); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; }
.fa-card-link:hover { gap: 10px; }

/* Calculator cards — denser grid, icon-led */
.fa-calc-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: left;
  height: 100%;
  transition: all .2s ease;
  text-decoration: none;
  display: block;
}
.fa-calc-card:hover { border-color: var(--color-accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.fa-calc-card i { font-size: 22px; color: var(--color-accent); margin-bottom: 12px; display: block; }
.fa-calc-card span { font-size: 14.5px; font-weight: 600; color: var(--color-primary); }

/* -------------------- Timeline / Client Journey -------------------- */
.fa-journey-step { position: relative; padding-left: 56px; padding-bottom: 40px; }
.fa-journey-step:last-child { padding-bottom: 0; }
.fa-journey-step::before {
  content: '';
  position: absolute; left: 18px; top: 44px; bottom: 0; width: 2px;
  background: var(--color-border);
}
.fa-journey-step:last-child::before { display: none; }
.fa-journey-num {
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-numeric); font-weight: 700; font-size: 15px;
}

/* -------------------- Testimonials -------------------- */
.fa-quote { font-size: 17px; color: var(--color-primary); line-height: 1.6; }
.fa-quote-author { font-weight: 700; font-size: 14.5px; }
.fa-quote-role { color: var(--color-text-muted); font-size: 13px; }

/* -------------------- FAQ -------------------- */
.accordion-button:not(.collapsed) {
  background: var(--color-accent-light);
  color: var(--color-primary);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: none; }
.accordion-item { border-radius: var(--radius-sm) !important; overflow: hidden; margin-bottom: 12px; border: 1px solid var(--color-border) !important; }

/* -------------------- CTA / Newsletter -------------------- */
.fa-cta-band {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 56px;
}
.fa-cta-band h2 { color: #fff; }
.fa-cta-band .form-control { border-radius: var(--radius-sm); border: none; padding: 14px 18px; }

/* -------------------- Footer -------------------- */
.fa-footer { background: var(--color-primary); color: #cbd5e1; padding: 72px 0 28px; }
.fa-footer h5 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 20px; }
.fa-footer a { color: #94a3b8; text-decoration: none; font-size: 14.5px; display: block; margin-bottom: 12px; }
.fa-footer a:hover { color: #fff; }
.fa-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 24px; font-size: 13.5px; color: #64748B; }

/* -------------------- Floating actions -------------------- */
.fa-whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 1040;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: var(--shadow-lg);
  transition: transform .2s ease;
}
.fa-whatsapp-float:hover { transform: scale(1.08); color: #fff; }

.fa-back-to-top {
  position: fixed; bottom: 24px; right: 90px; z-index: 1040;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-surface); border: 1px solid var(--color-border);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s ease;
}
.fa-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* -------------------- Skeleton loader -------------------- */
.fa-skeleton {
  background: linear-gradient(90deg, #E2E8F0 25%, #EDF2F7 37%, #E2E8F0 63%);
  background-size: 400% 100%;
  animation: fa-shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
@keyframes fa-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
