@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,500&display=swap');

/* ── DESIGN SYSTEM VARIABLES ────────────────────────────────────────────── */
:root {
  /* Colors */
  --navy: #0A1628;
  --navy-light: #1A2E4A;
  --navy-mid: #152238;
  --navy-hover: #1e3556;
  --gold: #E65100; /* Rich African Sunset Deep Orange */
  --gold-light: #FF6E40;
  --gold-muted: #FFAB91;
  --crest-gold: #F59E0B; /* Warm Golden Yellow */
  --royal-blue: #1565C0;
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --surface: #FFFFFF;
  --text-primary: #0A1628;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --border: #E2E8F0;
  --border-light: #EDF2F7;
  
  /* Status Colors */
  --success: #198754;
  --success-light: #D1E7DD;
  --warning: #FFC107;
  --warning-light: #FFF3CD;
  --error: #DC3545;
  --error-light: #F8D7DA;
  --info: #0D6EFD;
  --info-light: #CFE2FF;
  
  /* Fonts */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Font Sizes (Fluid Scale) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.3vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.4vw, 1.125rem);
  --text-md: clamp(1.125rem, 1.05rem + 0.5vw, 1.25rem);
  --text-lg: clamp(1.25rem, 1.15rem + 0.6vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.35rem + 0.8vw, 1.875rem);
  --text-2xl: clamp(1.875rem, 1.65rem + 1.2vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.95rem + 1.8vw, 3.25rem);
  --text-4xl: clamp(2.75rem, 2.3rem + 2.5vw, 4.5rem);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(10, 22, 40, 0.08), 0 2px 4px -1px rgba(10, 22, 40, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(10, 22, 40, 0.08), 0 4px 6px -2px rgba(10, 22, 40, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(10, 22, 40, 0.1), 0 10px 10px -5px rgba(10, 22, 40, 0.04);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-bg-dark: rgba(10, 22, 40, 0.8);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-border-dark: rgba(255, 255, 255, 0.08);
  --glass-blur: 16px;
  
  /* Animations */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── MODERN CSS RESET ───────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--white);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--royal-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}

/* ── LAYOUT CONTAINER ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

@media (min-width: 640px) {
  .container {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }
}

/* ── UTILITY CLASSES ────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }
.text-muted { color: var(--text-muted); }

.bg-navy { background-color: var(--navy); }
.bg-navy-light { background-color: var(--navy-light); }
.bg-off-white { background-color: var(--off-white); }
.bg-white { background-color: var(--white); }

.flex { display: flex; }
.grid { display: grid; }

.section-padding {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── SCROLL-IN ENTRANCE ANIMATIONS ───────────────────────────────────────── */
.scroll-animate {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Cascade delays for sibling grids to stagger entrances beautifully */
.why-grid > .scroll-animate:nth-child(1) { transition-delay: 0s; }
.why-grid > .scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.why-grid > .scroll-animate:nth-child(3) { transition-delay: 0.2s; }

.progression-grid > .scroll-animate:nth-child(1) { transition-delay: 0s; }
.progression-grid > .scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.progression-grid > .scroll-animate:nth-child(3) { transition-delay: 0.2s; }

.values-grid > .scroll-animate:nth-child(1) { transition-delay: 0s; }
.values-grid > .scroll-animate:nth-child(2) { transition-delay: 0.05s; }
.values-grid > .scroll-animate:nth-child(3) { transition-delay: 0.1s; }
.values-grid > .scroll-animate:nth-child(4) { transition-delay: 0.15s; }
.values-grid > .scroll-animate:nth-child(5) { transition-delay: 0.2s; }
.values-grid > .scroll-animate:nth-child(6) { transition-delay: 0.25s; }

.process-grid > .scroll-animate:nth-child(1) { transition-delay: 0s; }
.process-grid > .scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.process-grid > .scroll-animate:nth-child(3) { transition-delay: 0.2s; }
.process-grid > .scroll-animate:nth-child(4) { transition-delay: 0.3s; }

