/* ==========================================================================
   BASE STYLES & CSS VARIABLES
   ========================================================================== */

:root {
  /* Color Palette (Extracted from Design Images) */
  --color-navy-dark: #0A192F;
  --color-navy-mid: #0F2342;
  --color-navy-light: #162C4E;
  
  --color-blue-accent: #1E40AF;
  --color-blue-soft: #EFF6FF;
  --color-blue-light: #E0F2FE;
  
  --color-gold-primary: #D97706;
  --color-gold-amber: #F59E0B;
  --color-gold-light: #FEF3C7;
  
  --color-text-dark: #0F172A;
  --color-text-body: #334155;
  --color-text-muted: #64748B;
  --color-text-light: #94A3B8;
  --color-text-white: #FFFFFF;
  
  --color-bg-body: #FFFFFF;
  --color-bg-light: #F8FAFC;
  --color-bg-card: #FFFFFF;
  
  --color-border-light: #E2E8F0;
  --color-border-mid: #CBD5E1;
  --color-border-gold: #FDE68A;
  
  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
  --shadow-gold: 0 4px 16px rgba(217, 119, 6, 0.25);
  
  /* Layout Boundaries */
  --container-max: 1280px;
  --header-height: 80px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-body);
  background-color: var(--color-bg-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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

main {
  flex: 1 0 auto;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-dark);
  font-weight: 700;
  line-height: 1.25;
}

h1, h2 {
  font-family: var(--font-sans);
}

.text-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
}

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

/* Helper Utilities */
.bg-navy {
  background-color: var(--color-navy-dark) !important;
  color: var(--color-text-white);
}

.bg-light {
  background-color: var(--color-bg-light) !important;
}

.text-white {
  color: var(--color-text-white) !important;
}

.text-gold {
  color: var(--color-gold-amber) !important;
}

.text-light {
  color: var(--color-text-light) !important;
}

.text-center {
  text-align: center;
}

.section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header--center {
  text-align: center;
}

.section-header__sub {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-primary);
  margin-bottom: 0.5rem;
}

.section-header__title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header__desc {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 680px;
}

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid > * {
  min-width: 0;
  max-width: 100%;
}

.grid--2-col {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3-col {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4-col {
  grid-template-columns: repeat(4, 1fr);
}

@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;
  }
}
