/* ==========================================================================
   CSS Variables & Theme Setup
   ========================================================================== */
:root {
  /* Brand Colors - Elegant greens & beige */
  --color-primary-dark: #63783D;   /* Dark olive */
  --color-primary: #7FA653;        /* Base green */
  --color-primary-light: #99CD85;  /* Light green */
  --color-primary-lighter: #CFE0BC;/* Very light green */
  --color-accent: #C5BEA9;         /* Elegant Beige */
  
  /* Neutral scale - Architectural feel */
  --color-bg: #FCFCFC;             /* Off-white background */
  --color-surface: #FFFFFF;        /* Pure white cards */
  --color-surface-hover: #F2F4F0;
  --color-text: #191B18;           /* Near black */
  --color-text-muted: #5E645A;
  --color-border: #E5EADF;
  
  /* Inverted Theme (For dark sections) */
  --color-bg-dark: #12150E;
  --color-surface-dark: #1A1F13;
  --color-text-light: #F5F7F3;
  --color-text-muted-light: #A5AD9D;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --container-width: 1400px;
  --spacing-section: 120px;
  --spacing-section-mobile: 80px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1); /* Apple-like easing */
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ==========================================================================
   Layout Classes
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: var(--spacing-section) 0;
}

.section-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5, .section-dark h6 {
  color: var(--color-text-light);
}

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }
.gap-4 { gap: 4rem; }
.mt-4 { margin-top: 2rem; }
.mt-8 { margin-top: 4rem; }

/* Responsive Grid Engine */
.grid {
  display: grid;
  gap: 2rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: var(--spacing-section-mobile) 0; }
}

/* Section Headers */
.section-header {
  margin-bottom: 4rem;
  max-width: 600px;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--color-text-muted);
  font-size: 1.125rem;
}
.section-dark .section-header p {
  color: var(--color-text-muted-light);
}
.text-center { text-align: center; margin-inline: auto; }

/* Transitions & Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
