/* ═════════════════════════════════════════════════════════════════════════════
   SEEDELLI — Production CSS
   Design System: Modern Organic, Warm & Accessible
   ═════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  /* Colors — Primary Palette */
  --color-primary: #1B4332;
  --color-primary-light: #2D6A4F;
  --color-primary-lighter: #40916C;
  
  /* Colors — Secondary & Accent */
  --color-secondary: #C67C4E;
  --color-secondary-light: #D4A574;
  --color-accent: #52B788;
  --color-accent-light: #74C69D;
  
  /* Colors — Neutral & Background */
  --color-bg: #FEFAE0;
  --color-text: #2D3436;
  --color-text-light: #636E72;
  --color-text-muted: #95A5A6;
  --color-muted: #A7C4A0;
  --color-muted-bg: #F0F4ED;
  
  /* Colors — Semantic */
  --color-success: #52B788;
  --color-warning: #F4A261;
  --color-error: #E63946;
  --color-info: #457B9D;
  
  /* Colors — Borders & Shadows */
  --color-border: #E8E8E8;
  --color-border-dark: #D3D3D3;
  --color-shadow: rgba(0, 0, 0, 0.08);
  --color-shadow-md: rgba(0, 0, 0, 0.12);
  --color-shadow-lg: rgba(0, 0, 0, 0.16);
  
  /* Typography — Font Families */
  --font-display: 'DM Serif Display', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  
  /* Typography — Font Sizes */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  
  /* Typography — Line Heights */
  --lh-tight: 1.2;
  --lh-snug: 1.375;
  --lh-normal: 1.5;
  --lh-relaxed: 1.625;
  --lh-loose: 1.875;
  
  /* Typography — Font Weights */
  --fw-light: 300;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  
  /* Spacing Scale (8px base) */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  
  /* Breakpoints (Mobile-First) */
  --bp-sm: 375px;
  --bp-md: 768px;
  --bp-lg: 1200px;
  --bp-xl: 1440px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px var(--color-shadow);
  --shadow-md: 0 2px 8px var(--color-shadow);
  --shadow-lg: 0 8px 16px var(--color-shadow);
  --shadow-xl: 0 12px 24px var(--color-shadow-md);
  --shadow-2xl: 0 20px 40px var(--color-shadow-lg);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-Index Scale */
  --z-hide: -1;
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 400;
  --z-tooltip: 500;
}

/* ─────────────────────────────────────────────────────────────────────────────
   2. BASE RESET & NORMALIZATION
   ───────────────────────────────────────────────────────────────────────────── */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

main {
  display: block;
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. TYPOGRAPHY
   ───────────────────────────────────────────────────────────────────────────── */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-normal);
  line-height: var(--lh-tight);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--fs-5xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--fs-4xl);
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--fs-3xl);
}

h4 {
  font-size: var(--fs-2xl);
}

h5 {
  font-size: var(--fs-xl);
}

h6 {
  font-size: var(--fs-lg);
  text-transform: uppercase;
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
}

p {
  margin-bottom: var(--space-md);
  line-height: var(--lh-relaxed);
}

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

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

a:hover {
  color: var(--color-accent-light);
  text-decoration: underline;
}

a:active {
  color: var(--color-primary);
}

strong,
b {
  font-weight: var(--fw-semibold);
}

em,
i {
  font-style: italic;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background-color: var(--color-muted-bg);
  color: var(--color-primary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

pre {
  font-family: var(--font-mono);
  background-color: var(--color-primary);
  color: var(--color-bg);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin-bottom: var(--space-lg);
}

pre code {
  background-color: transparent;
  color: var(--color-bg);
  padding: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   4. LISTS
   ───────────────────────────────────────────────────────────────────────────── */

ul,
ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

li {
  margin-bottom: var(--space-sm);
  line-height: var(--lh-relaxed);
}

/* ─────────────────────────────────────────────────────────────────────────────
   5. LAYOUT UTILITIES
   ───────────────────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-wide {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.flex-wrap {
  flex-wrap: wrap;
}

.gap-xs {
  gap: var(--space-xs);
}

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

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

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

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

/* Grid Utilities */
.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

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

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

/* Responsive Grid */
@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 1200px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* Spacing Utilities */
.m-0 { margin: 0; }
.m-sm { margin: var(--space-sm); }
.m-md { margin: var(--space-md); }
.m-lg { margin: var(--space-lg); }
.m-xl { margin: var(--space-xl); }

.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); }

.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); }

.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-2xl { padding: var(--space-2xl); }

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

.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

/* ─────────────────────────────────────────────────────────────────────────────
   6. NAVIGATION
   ───────────────────────────────────────────────────────────────────────────── */

nav {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.navbar-brand:hover {
  color: var(--color-secondary);
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
  align-items: center;
}

.navbar-menu a {
  font-size: var(--fs-base);
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

.navbar-menu a:hover {
  color: var(--color-accent);
}

.navbar-menu a:hover::after {
  width: 100%;
}

.navbar-menu a.active {
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
}

.navbar-menu a.active::after {
  width: 100%;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

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

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

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

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

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--color-bg);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-menu li {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
  }

  .navbar-menu li:last-child {
    border-bottom: none;
  }

  .navbar-menu a {
    display: block;
  }

  .navbar-menu a::after {
    display: none;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   7. HERO SECTION
   ───────────────────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-bg);
  padding: var(--space-4xl) var(--space-lg) var(--space-5xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background-color: var(--color-accent);
  border-radius: 50%;
  opacity: 0.1;
  z-index: 0;
}

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

.hero h1 {
  color: var(--color-bg);
  font-size: var(--fs-5xl);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease-out;
}

.hero p {
  color: rgba(254, 250, 224, 0.9);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-xl);
  line-height: var(--lh-relaxed);
  animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@media (max-width: 768px) {
  .hero {
    padding: var(--space-3xl) var(--space-lg) var(--space-4xl);
  }

  .hero h1 {
    font-size: var(--fs-4xl);
  }

  .hero p {
    font-size: var(--fs-base);
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons button {
    width: 100%;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   8. CARD COMPONENT (Seed Varieties)
   ───────────────────────────────────────────────────────────────────────────── */

.card {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background-color: var(--color-muted-bg);
  transition: transform var(--transition-base);
}

.card:hover .card-image {
  transform: scale(1.02);
}

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

.card-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.card-subtitle {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.card-description {
  font-size: var(--fs-sm);
  color: var(--color-text);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-md);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
  font-size: var(--fs-sm);
}

.card-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-meta-label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.card-meta-value {
  font-family: var(--font-mono);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  font-size: var(--fs-base);
}

.card-footer {
  display: flex;
  gap: var(--space-sm);
  justify-content: space-between;
}

/* ─────────────────────────────────────────────────────────────────────────────
   9. FILTER SIDEBAR
   ───────────────────────────────────────────────────────────────────────────── */

.filter-section {
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.filter-section h3 {
  font-size: var(--fs-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-accent);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.filter-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.filter-label:hover {
  color: var(--color-accent);
}

.filter-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-accent);
}

.filter-range-slider {
  margin-top: var(--space-md);
}

.filter-range-input {
  width: 100%;
  cursor: pointer;
  accent-color: var(--color-accent);
}

.filter-range-values {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.filter-reset {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .filter-sidebar {
    display: none;
  }

  .filter-sidebar.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal);
  }

  .filter-sidebar.active .filter-section {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 80vh;
    overflow-y: auto;
    z-index: var(--z-modal);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   10. BUTTON STYLES
   ───────────────────────────────────────────────────────────────────────────── */

button {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  padding: var(--space-md) var(--space-xl);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  text-decoration: none;
}

/* Primary Button */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: scale(0.98);
}

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

.btn-secondary:hover {
  background-color: var(--color-secondary-light);
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* Accent Button */
.btn-accent {
  background-color: var(--color-accent);
  color: white;
}

.btn-accent:hover {
  background-color: var(--color-accent-light);
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.btn-accent:active {
  transform: scale(0.98);
}

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-bg);
  transform: scale(1.02);
}

.btn-outline:active {
  transform: scale(0.98);
}

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

.btn-ghost:hover {
  color: var(--color-accent);
  background-color: var(--color-muted-bg);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-sm);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--fs-lg);
}

/* Button Block */
.btn-block {
  width: 100%;
}

/* Button Disabled */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

button:disabled:hover {
  background-color: inherit;
  box-shadow: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   11. BADGE STYLES
   ───────────────────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

/* Badge Organic */
.badge-organic {
  background-color: rgba(82, 183, 136, 0.1);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

/* Badge Reproducible */
.badge-reproducible {
  background-color: rgba(45, 106, 79, 0.1);
  color: var(--color-primary-light);
  border: 1px solid var(--color-primary-light);
}

/* Badge Difficulty Levels */
.badge-easy {
  background-color: rgba(82, 183, 136, 0.15);
  color: var(--color-accent);
}

.badge-easy::before {
  content: '🟢';
}

.badge-medium {
  background-color: rgba(244, 162, 97, 0.15);
  color: var(--color-warning);
}

.badge-medium::before {
  content: '🟡';
}

.badge-hard {
  background-color: rgba(230, 57, 70, 0.15);
  color: var(--color-error);
}

.badge-hard::before {
  content: '🔴';
}

/* Badge Neutral */
.badge-neutral {
  background-color: var(--color-muted-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* ─────────────────────────────────────────────────────────────────────────────
   12. FOOTER
   ───────────────────────────────────────────────────────────────────────────── */

footer {
  background-color: var(--color-primary);
  color: var(--color-bg);
  padding: var(--space-4xl) var(--space-lg) var(--space-2xl);
  margin-top: var(--space-5xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3xl);
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(254, 250, 224, 0.2);
}

.footer-section h3 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--color-bg);
  margin-bottom: var(--space-lg);
}

.footer-section a {
  display: block;
  color: rgba(254, 250, 224, 0.8);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

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

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(254, 250, 224, 0.1);
  border-radius: 50%;
  margin-bottom: 0;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background-color: var(--color-accent);
  transform: scale(1.1);
}

.footer-newsletter {
  margin-top: var(--space-lg);
}

.footer-newsletter input {
  width: 100%;
  padding: var(--space-md);
  border: none;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  font-family: var(--font-body);
}

.footer-newsletter button {
  width: 100%;
  background-color: var(--color-accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: rgba(254, 250, 224, 0.7);
  font-size: var(--fs-sm);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  footer {
    padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   13. FORM INPUTS
   ───────────────────────────────────────────────────────────────────────────── */

.form-group {
  margin-bottom: var(--space-lg);
}

label {
  display: block;
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-sm);
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='search'],
input[type='number'],
textarea,
select {
  width: 100%;
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: white;
  color: var(--color-text);
  transition: all var(--transition-base);
}

input[type='text']:focus,
input[type='email']:focus,
input[type='password']:focus,
input[type='search']:focus,
input[type='number']:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.1);
}

input[type='text']:disabled,
input[type='email']:disabled,
textarea:disabled,
select:disabled {
  background-color: var(--color-muted-bg);
  cursor: not-allowed;
}

/* Search Bar */
.search-bar {
  position: relative;
}

.search-bar input {
  padding-left: var(--space-xl);
}

.search-bar::before {
  content: '🔍';
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--fs-lg);
  pointer-events: none;
}

/* Checkbox & Radio */
input[type='checkbox'],
input[type='radio'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-accent);
  margin-right: var(--space-sm);
}

/* Select */
select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D3436' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  background-size: 20px;
  padding-right: var(--space-2xl);
}

/* Textarea */
textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
}

/* Input Group */
.input-group {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.input-group input {
  flex: 1;
  border: none;
  border-radius: 0;
}

.input-group button {
  border-radius: 0;
  padding: var(--space-md) var(--space-lg);
}

/* Form Help Text */
.form-help {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.form-error {
  font-size: var(--fs-xs);
  color: var(--color-error);
  margin-top: var(--space-xs);
}

/* ─────────────────────────────────────────────────────────────────────────────
   14. RESPONSIVE MEDIA QUERIES
   ───────────────────────────────────────────────────────────────────────────── */

/* Small (375px - 599px) */
@media (max-width: 599px) {
  h1 {
    font-size: var(--fs-3xl);
  }

  h2 {
    font-size: var(--fs-2xl);
  }

  .container,
  .container-narrow,
  .container-wide {
    padding: 0 var(--space-md);
  }
}

/* Medium (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
  h1 {
    font-size: var(--fs-4xl);
  }

  h2 {
    font-size: var(--fs-3xl);
  }
}

/* Medium to Large (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

/* Large (1200px+) */
@media (min-width: 1200px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

/* ─────────────────────────────────────────────────────────────────────────────
   15. ANIMATIONS
   ───────────────────────────────────────────────────────────────────────────── */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  50% {
    opacity: 0.5;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Apply animations to page load */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

/* ─────────────────────────────────────────────────────────────────────────────
   16. SOWING CALENDAR GRID STYLES
   ───────────────────────────────────────────────────────────────────────────── */

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.month-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-align: center;
  transition: all var(--transition-base);
  cursor: default;
  border: 2px solid transparent;
}

.month-cell.optimal {
  background-color: var(--color-accent);
  color: white;
  font-weight: var(--fw-bold);
}

.month-cell.possible {
  background-color: rgba(82, 183, 136, 0.3);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.month-cell.avoid {
  background-color: var(--color-muted-bg);
  color: var(--color-text-muted);
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
}

.legend-color.optimal {
  background-color: var(--color-accent);
}

.legend-color.possible {
  background-color: rgba(82, 183, 136, 0.3);
  border-color: var(--color-accent);
}

.legend-color.avoid {
  background-color: var(--color-muted-bg);
}

@media (max-width: 768px) {
  .calendar-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .calendar-legend {
    gap: var(--space-lg);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   17. COMPARE TABLE STYLES
   ───────────────────────────────────────────────────────────────────────────── */

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: var(--space-lg) 0;
}

.compare-table thead {
  background-color: var(--color-primary);
  color: var(--color-bg);
}

.compare-table th {
  padding: var(--space-lg);
  text-align: left;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare-table td {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-sm);
}

.compare-table tbody tr:hover {
  background-color: var(--color-muted-bg);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table .cell-highlight {
  background-color: rgba(82, 183, 136, 0.1);
  font-weight: var(--fw-semibold);
  color: var(--color-accent);
}

.compare-table .cell-check {
  color: var(--color-accent);
  font-weight: var(--fw-bold);
}

.compare-table .cell-x {
  color: var(--color-text-muted);
}

/* Responsive Table */
@media (max-width: 768px) {
  .compare-table {
    font-size: var(--fs-xs);
  }

  .compare-table th,
  .compare-table td {
    padding: var(--space-md);
  }

  .compare-table thead {
    display: none;
  }

  .compare-table tbody,
  .compare-table tr,
  .compare-table td {
    display: block;
    width: 100%;
  }

  .compare-table tr {
    margin-bottom: var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
  }

  .compare-table td {
    text-align: right;
    padding: var(--space-md) 0;
    border-bottom: none;
  }

  .compare-table td::before {
    content: attr(data-label);
    float: left;
    font-weight: var(--fw-semibold);
    color: var(--color-primary);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   18. UTILITY CLASSES
   ───────────────────────────────────────────────────────────────────────────── */

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

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

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

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

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

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

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

.font-mono {
  font-family: var(--font-mono);
}

.font-display {
  font-family: var(--font-display);
}

.fw-light {
  font-weight: var(--fw-light);
}

.fw-normal {
  font-weight: var(--fw-normal);
}

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

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

.hidden {
  display: none;
}

.visible {
  display: block;
}

.invisible {
  visibility: hidden;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.no-underline {
  text-decoration: none;
}

.no-wrap {
  white-space: nowrap;
}

.break-words {
  word-break: break-word;
}

/* ─────────────────────────────────────────────────────────────────────────────
   19. SCROLLBAR CUSTOMIZATION (Webkit Browsers)
   ───────────────────────────────────────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background-color: var(--color-muted-bg);
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-primary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   20. ACCESSIBILITY & FOCUS STATES
   ───────────────────────────────────────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 8px;
  z-index: var(--z-tooltip);
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* Print Styles */
@media print {
  body {
    background-color: white;
  }

  button,
  nav,
  .footer {
    display: none;
  }

  a {
    text-decoration: underline;
  }
}

/* ═════════════════════════════════════════════════════════════════════════════
   END OF STYLESHEET
   ═════════════════════════════════════════════════════════════════════════════ */
