/* Modern Minimalistic Design System - Judah Praise Website */

/* ====================================
   CSS CUSTOM PROPERTIES
   ==================================== */
:root {
  /* Color Palette - Minimalistic & Cozy */
  --color-primary: #E85A70;           /* Soft reddish-pink */
  --color-primary-light: #F2889A;    /* Lighter pink */
  --color-primary-dark: #D64570;     /* Deeper pink */
  --color-secondary: #2C2C2C;        /* Rich charcoal */
  --color-accent: #FF6B7D;           /* Bright coral accent */
  
  /* Neutrals - Clean & Modern */
  --color-white: #FFFFFF;
  --color-off-white: #FDFDFD;
  --color-light-grey: #F7F7F7;
  --color-grey: #E5E5E5;
  --color-medium-grey: #9B9B9B;
  --color-dark-grey: #666666;
  --color-charcoal: #2C2C2C;
  --color-black: #1A1A1A;
  
  /* Semantic Colors */
  --color-background: var(--color-off-white);
  --color-surface: var(--color-white);
  --color-text-primary: var(--color-charcoal);
  --color-text-secondary: var(--color-dark-grey);
  --color-text-muted: var(--color-medium-grey);
  --color-border: var(--color-grey);
  --color-success: #4CAF50;
  --color-error: #FF5252;
  
  /* Typography - Clean & Readable */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Crimson Text', Georgia, serif;
  --font-mono: 'SF Mono', 'Monaco', 'Roboto Mono', monospace;
  
  /* Font Weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  
  /* Spacing Scale - Mathematical Progression */
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 0.75rem;    /* 12px */
  --space-lg: 1rem;       /* 16px */
  --space-xl: 1.5rem;     /* 24px */
  --space-2xl: 2rem;      /* 32px */
  --space-3xl: 3rem;      /* 48px */
  --space-4xl: 4rem;      /* 64px */
  --space-5xl: 6rem;      /* 96px */
  --space-6xl: 8rem;      /* 128px */
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Shadows - Subtle & Modern */
  --shadow-xs: 0 1px 2px rgba(44, 44, 44, 0.05);
  --shadow-sm: 0 1px 3px rgba(44, 44, 44, 0.08);
  --shadow-md: 0 4px 6px rgba(44, 44, 44, 0.07);
  --shadow-lg: 0 10px 15px rgba(44, 44, 44, 0.08);
  --shadow-xl: 0 20px 25px rgba(44, 44, 44, 0.10);
  --shadow-2xl: 0 25px 50px rgba(44, 44, 44, 0.15);
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout */
  --container-max: 1200px;
  --container-padding: var(--space-xl);
  --nav-height: 80px;
  
  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ====================================
   RESET & BASE STYLES
   ==================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--weight-regular);
  color: var(--color-text-primary);
  background-color: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ====================================
   TYPOGRAPHY SYSTEM
   ==================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  color: var(--color-text-primary);
  margin: 0;
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

p {
  margin: 0;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.text-large {
  font-size: 1.125rem;
  line-height: 1.6;
}

.text-small {
  font-size: 0.875rem;
  line-height: 1.6;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1.5;
}

.font-medium { font-weight: var(--weight-medium); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-bold { font-weight: var(--weight-bold); }

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

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }

/* ====================================
   LAYOUT COMPONENTS
   ==================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding: var(--space-5xl) 0;
}

.section-sm {
  padding: var(--space-4xl) 0;
}

.section-lg {
  padding: var(--space-6xl) 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-xl);
}

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

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-auto-sm {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* ====================================
   BUTTON SYSTEM
   ==================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: var(--weight-medium);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  min-height: 44px;
  white-space: nowrap;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 90, 112, 0.1);
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

/* Secondary Button */
.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

.btn-outline:hover {
  background: var(--color-text-primary);
  color: var(--color-white);
  border-color: var(--color-text-primary);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--color-text-primary);
  border: none;
  padding: var(--space-sm) var(--space-lg);
}

.btn-ghost:hover {
  background: var(--color-light-grey);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.8125rem;
  min-height: 36px;
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1rem;
  min-height: 52px;
}

.btn-xl {
  padding: var(--space-xl) var(--space-3xl);
  font-size: 1.125rem;
  min-height: 60px;
}

/* ====================================
   NAVIGATION
   ==================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(253, 253, 253, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(253, 253, 253, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-2xl);
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: var(--weight-medium);
  font-size: 0.9375rem;
  transition: color var(--transition-base);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: var(--space-sm);
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--transition-base);
  border-radius: 2px;
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: var(--nav-height) 0 var(--space-5xl) 0;
  background: linear-gradient(135deg, var(--color-off-white) 0%, var(--color-light-grey) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 40%;
  height: 60%;
  background: radial-gradient(circle, rgba(232, 90, 112, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-subtitle {
  font-size: 0.9375rem;
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: var(--weight-bold);
  line-height: 1.1;
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3xl);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-actions {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.8s both;
}

/* ====================================
   CARD COMPONENTS
   ==================================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(232, 90, 112, 0.2);
}

.card-header {
  margin-bottom: var(--space-xl);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
  display: block;
  color: var(--color-primary);
}

.card-title {
  font-size: 1.25rem;
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.card-description {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Special Cards */
.card-feature {
  text-align: center;
  border-top: 3px solid var(--color-primary);
}

.card-stat {
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  border: none;
}

.card-stat .card-icon {
  color: rgba(255, 255, 255, 0.9);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: var(--weight-bold);
  display: block;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ====================================
   SECTION STYLES
   ==================================== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-5xl);
}

.section-subtitle {
  font-size: 0.9375rem;
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.section-title {
  margin-bottom: var(--space-lg);
}

.section-description {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Mission Section */
.mission {
  background: var(--color-surface);
}

.mission-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.mission-stats {
  display: grid;
  gap: var(--space-xl);
}

.mission-stat {
  background: var(--color-light-grey);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
  text-align: center;
}

/* Impact Section */
.impact {
  background: var(--color-light-grey);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-black) 100%);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23E85A70" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-3xl);
}

/* ====================================
   FOOTER
   ==================================== */
.footer {
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: var(--space-5xl) 0 var(--space-2xl) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-section h3,
.footer-section h4 {
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  font-size: 1.125rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: var(--space-md);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-section a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.social-links a {
  font-size: 1.25rem;
  transition: all var(--transition-base);
  opacity: 0.8;
}

.social-links a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* ====================================
   FORM ELEMENTS
   ==================================== */
.form-group {
  margin-bottom: var(--space-xl);
}

.form-label {
  display: block;
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-primary);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232, 90, 112, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ====================================
   ANIMATIONS
   ==================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ====================================
   UTILITY CLASSES
   ==================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

/* Spacing Utilities */
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: var(--color-surface);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: var(--space-3xl);
    transition: left var(--transition-base);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .mission-content {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .container {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-4xl) 0;
  }

  .hero {
    padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-4xl) 0;
  }

  .card {
    padding: var(--space-xl);
  }
}

/* ====================================
   ACCESSIBILITY
   ==================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-color-scheme: dark) {
  /* Future: Dark mode support can be added here */
}

/* Focus styles for accessibility */
.btn:focus-visible,
.nav-link:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ====================================
   PRINT STYLES
   ==================================== */
@media print {
  .navbar,
  .hero-actions,
  .cta,
  .footer {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: var(--space-lg) 0;
  }

  * {
    box-shadow: none !important;
    background: transparent !important;
  }

  body {
    color: black !important;
  }
}