/* =========================================================
   FAST TRACK LOANS — CORE DESIGN SYSTEM
   Base, reset, typography, layout, utilities

   THEME: Clean, solid-colour, white-dominant professional
   finance brokerage. No gradients, no glow, no glassmorphism —
   flat colours, subtle borders, restrained shadows.

   NOTE: .section--dark / .section--surface class names are
   kept as-is (same HTML across every page) but now map to
   WHITE and VERY-LIGHT-GREY respectively instead of dark navy.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Deep navy — reserved for the footer and the CTA band (the
     site's two deliberate dark accents), both solid, no gradient. */
  --color-navy-950: #050b14;
  --color-navy-900: #0a1420;
  --color-navy-800: #0d1b2a;
  --color-navy-700: #142639;
  --color-navy-600: #1c3552;

  /* Brand blue — professional blue + a bright blue accent, from the logo */
  --color-blue-500: #0b6fd1;
  --color-blue-600: #0a5fb8;
  --color-blue-700: #084d96;
  --color-blue-bright: #17a9ea;
  --color-cyan-400: #17c8ea;
  --color-cyan-300: #4fdcf5;

  --color-white: #ffffff;

  /* Light-theme surfaces (solid only) */
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fa;
  --color-bg-alt-2: #f3f6f8;

  /* Hero banner (solid tints of the brand blue) */
  --color-bg-hero: #f1f6fc;
  --color-hero-panel: #e0ecf9;
  --color-hero-line: #c9dcf1;

  /* Light-theme text (on white / very-light backgrounds) */
  --color-ink: #0b2239;
  --color-text-body: #4b5563;
  --color-text-muted: #6b7280;
  --color-silver: #374151;
  --color-text-light: #4b5563;

  /* Light-theme borders */
  --color-border: #e5e7eb;
  --color-border-strong: #d1d5db;

  /* Dedicated light-on-dark text tokens for the footer / dark
     accent panels (director badge, etc.) */
  --color-footer-text: #c9d4e0;
  --color-footer-text-muted: #8a9ab0;

  --color-success: #16a34a;
  --color-error: #dc2626;

  /* Typography */
  --font-heading: "Plus Jakarta Sans", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Layout */
  --container-max: 1280px;
  --container-pad: 24px;

  /* Border radius — kept modest, never the "AI website" 20-30px look */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-full: 999px;

  /* Shadows — extremely subtle, neutral (never blue-tinted or glowing) */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 8px 30px rgba(15, 23, 42, 0.08);

  /* Motion — subtle, fast, never bouncy */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.3s var(--ease-out);
  --transition-slow: 0.4s var(--ease-out);

  --header-height: 76px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text-body);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-ink);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* Desktop targets: H1 42–54px, H2 30–38px, H3 18–22px */
h1 {
  font-size: clamp(2.1rem, 3.4vw, 3.375rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.375rem);
}

h3 {
  font-size: clamp(1.15rem, 1.4vw, 1.375rem);
}

h4 {
  font-size: 1.1rem;
}

p {
  color: var(--color-text-body);
}

.lead {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--color-text-body);
  line-height: 1.7;
}

.text-white {
  color: var(--color-white) !important;
}

/* Solid accent colour for highlighted heading words — no gradient. */
.text-gradient {
  color: var(--color-blue-500);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-blue-500);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--color-blue-500);
  border-radius: var(--radius-full);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  position: relative;
  padding-block: var(--space-9);
}

.section--tight {
  padding-block: var(--space-8);
}

/* Primary background — white (kept the "--dark" class name so no
   HTML changes were needed; it now renders the dominant light tone). */
.section--dark {
  background: var(--color-bg);
}

/* Alternate background — solid very light grey surface. */
.section--surface {
  background: var(--color-bg-alt);
}

.section--gradient {
  background: var(--color-bg-alt);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-8);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  max-width: none;
}

.section > .container {
  position: relative;
  z-index: 1;
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -60px;
  background: var(--color-blue-500);
  color: var(--color-white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--transition-fast);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-4);
}

:focus-visible {
  outline: 2px solid var(--color-blue-500);
  outline-offset: 3px;
}

.divider {
  height: 1px;
  width: 100%;
  background: var(--color-border);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg-alt);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-silver);
}

/* Reveal-on-scroll animation base — simple fade + small translate */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.05s; }
[data-reveal-delay="2"] { transition-delay: 0.1s; }
[data-reveal-delay="3"] { transition-delay: 0.15s; }
[data-reveal-delay="4"] { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
