/* MyWholeHealth Design System */
/* Foundation: Variables, Typography, Colors, Spacing */

:root {
  /* Navy Authority Gradient */
  --navy-900: #0a1628;
  --navy-800: #0f2847;
  --navy-700: #1a3a5c;

  /* Teal Action (Logo Primary Green) */
  --teal-500: #2C8D71;  /* Logo primary green - brand consistency */
  --teal-400: #3DAA8A;  /* Lighter green variant */
  --teal-300: #5BC4A3;  /* Lightest green for backgrounds */

  /* Gold Premium Accent */
  --gold-500: #D2AE95;  /* Premium warmth, success signals */
  --gold-400: #CEBBA2;  /* Light gold for subtle accents */
  --gold-300: #E5D5C3;  /* Background tints */

  /* Logo Green Accent (deprecated, use --teal-500) */
  --green-accent: #2C8D71;

  /* Orange Accent (Single Use) */
  --accent-orange: #fb923c;

  /* Neutral Structure */
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --white: #ffffff;

  /* Typography */
  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-body: 'Manrope', sans-serif;

  /* Font Weights */
  --weight-normal: 400;
  --weight-medium: 600;
  --weight-bold: 700;
  --weight-black: 900;

  /* Letter Spacing */
  --letter-tight: -1px;
  --letter-mono: 2px;
  --letter-mono-wide: 3px;

  /* Line Heights */
  --line-tight: 1.2;
  --line-normal: 1.6;
  --line-relaxed: 1.8;

  /* Spacing */
  --section-padding: 120px;
  --section-padding-mobile: 80px;
  --container-max: 1400px;
  --container-padding: 40px;
  --container-padding-mobile: 20px;
  --grid-gap-large: 80px;
  --grid-gap-medium: 40px;
  --grid-gap-small: 20px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 22, 40, 0.12);
  --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.15);
  --shadow-xl: 0 30px 80px rgba(10, 22, 40, 0.2);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--navy-900);
  line-height: var(--line-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  line-height: var(--line-tight);
  letter-spacing: var(--letter-tight);
  color: var(--navy-900);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 12px;
}

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: var(--line-relaxed);
  margin-bottom: 16px;
  color: var(--navy-700);
}

.subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: var(--line-normal);
  color: var(--slate-600);
  font-weight: var(--weight-medium);
}

/* Monospace Labels */
.label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--letter-mono);
  text-transform: uppercase;
  color: var(--teal-500);
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--container-padding-mobile);
  }
}

/* Section Spacing */
.section {
  padding: var(--section-padding) 0;
}

.section-dark {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

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

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

@media (max-width: 968px) {
  .section {
    padding: var(--section-padding-mobile) 0;
  }
}

/* Grid System */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap-large);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap-medium);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap-medium);
}

@media (max-width: 968px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--grid-gap-small);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-teal {
  color: var(--teal-500);
}

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

.bg-teal {
  background: var(--teal-500);
}

.bg-navy {
  background: var(--navy-900);
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mb-60 {
  margin-bottom: 60px;
}

.mt-40 {
  margin-top: 40px;
}

.mt-60 {
  margin-top: 60px;
}

/* Fade In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delays */
.fade-in:nth-child(1) { transition-delay: 0.2s; }
.fade-in:nth-child(2) { transition-delay: 0.4s; }
.fade-in:nth-child(3) { transition-delay: 0.6s; }
.fade-in:nth-child(4) { transition-delay: 0.8s; }
.fade-in:nth-child(5) { transition-delay: 1s; }
.fade-in:nth-child(6) { transition-delay: 1.2s; }
