/* ==========================================================================
   FPA Consulting Services - Master CSS Design System
   Brand Palette: Deep Navy & Professional Growth Teal/Green
   Typography: Inter Modern Sans-Serif (Proportionally Scaled Down & Sleek)
   ========================================================================== */

:root {
  /* Brand Primary Colors */
  --navy-950: #050C1A;
  --navy-900: #0B192C;
  --navy-800: #1E293B;
  --navy-700: #1E3A8A;
  --navy-600: #2563EB;
  
  /* Accent Colors (Growth & Financial Health) */
  --teal-900: #042F2E;
  --teal-700: #0F766E;
  --teal-600: #0D9488;
  --teal-500: #14B8A6;
  --teal-400: #2DD4BF;
  --emerald-500: #10B981;
  --emerald-400: #34D399;
  
  /* Neutral Palette */
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  
  /* Functional Colors */
  --bg-main: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #475569;
  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;
  
  /* Shadows & Elevations */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 20px 32px -8px rgba(15, 23, 42, 0.16), 0 8px 16px -4px rgba(15, 23, 42, 0.08);
  
  /* Radii & Transitions */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Layout Dimensions */
  --max-width: 1200px;
  --nav-height: 80px;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px; /* Proportionally scaled down base */
  line-height: 1.55;
  color: var(--text-main);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

/* Typography Hierarchy (Scaled Down Proportionally) */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy-900);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.85rem, 2.5vw + 1rem, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.45rem, 1.8vw + 0.8rem, 2.15rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.1rem, 1.2vw + 0.6rem, 1.45rem);
  font-weight: 700;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  line-height: 1.6;
}

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

a {
  color: var(--teal-600);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--teal-700);
}

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

ul, ol {
  list-style: none;
}

/* Common Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  position: relative;
}

.section-dark {
  background-color: var(--navy-900);
  color: #FFFFFF;
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: #FFFFFF;
}

.section-dark p {
  color: var(--slate-300);
}

.section-muted {
  background-color: var(--slate-100);
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.75rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  background-color: rgba(13, 148, 136, 0.1);
  color: var(--teal-600);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.section-dark .section-tag {
  background-color: rgba(45, 212, 191, 0.15);
  color: var(--teal-400);
  border-color: rgba(45, 212, 191, 0.3);
}

.section-title {
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1rem;
  line-height: 1.55;
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
