/* ==========================================================================
   Microgreens Workshop Landing Page - Custom Theme Stylesheet
   Organized by Your AgriStory | Knowledge Partner: Greenu
   ========================================================================== */

/* 1. Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* 2. Theme Tokens & CSS Custom Properties */
:root {
  /* Brand Palette */
  --color-brand-primary: #0B2D20;        /* Deep Forest Emerald */
  --color-brand-primary-light: #134633;
  --color-brand-primary-dark: #061A12;
  --color-brand-secondary: #16A34A;      /* Vibrant Sprout Green */
  --color-brand-secondary-hover: #15803D;
  --color-brand-secondary-subtle: #DCFCE7;
  --color-brand-accent: #F59E0B;         /* Golden Harvest Amber */
  --color-brand-accent-hover: #D97706;
  --color-brand-accent-subtle: #FEF3C7;
  --color-brand-surface: #F9FAF6;        /* Warm Botanical Tint */
  --color-brand-surface-alt: #F2F5ED;
  --color-brand-surface-card: #FFFFFF;
  --color-brand-text: #1F2937;
  --color-brand-muted: #4B5563;

  /* Shadows */
  --shadow-soft-sm: 0 2px 8px -2px rgba(11, 45, 32, 0.06), 0 1px 4px -1px rgba(11, 45, 32, 0.04);
  --shadow-soft: 0 10px 25px -5px rgba(11, 45, 32, 0.08), 0 8px 10px -6px rgba(11, 45, 32, 0.04);
  --shadow-soft-lg: 0 20px 35px -10px rgba(11, 45, 32, 0.12), 0 10px 15px -5px rgba(11, 45, 32, 0.06);
  --shadow-glow: 0 0 25px rgba(22, 163, 74, 0.35);
  --shadow-amber-glow: 0 0 25px rgba(245, 158, 11, 0.35);
}

/* 3. Global & Base Rules */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--color-brand-text);
  background-color: var(--color-brand-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: #BBF7D0;
  color: #0B2D20;
}

/* Accessibility Focus Rings */
:focus-visible {
  outline: 2px solid var(--color-brand-secondary);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-brand-secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 4. Typography Utilities */
.font-heading {
  font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
}

.font-body {
  font-family: 'Inter', system-ui, sans-serif;
}

/* 5. Botanical Gradients & Hero Styles */
.gradient-hero-bg {
  background: radial-gradient(circle at 10% 20%, rgba(22, 163, 74, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.07) 0%, transparent 45%),
              linear-gradient(180deg, #F9FAF6 0%, #F1F6EC 100%);
}

.gradient-dark-forest {
  background: linear-gradient(145deg, #0B2D20 0%, #061B13 100%);
}

.gradient-emerald-cta {
  background: linear-gradient(135deg, #16A34A 0%, #0D6938 100%);
}

.gradient-subtle-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAF6 100%);
}

/* 6. Glassmorphism & Card Polish */
.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(22, 163, 74, 0.12);
}

.glass-card-dark {
  background: rgba(11, 45, 32, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.shadow-soft-lg {
  box-shadow: var(--shadow-soft-lg);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.card-hover {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-lg);
  border-color: rgba(22, 163, 74, 0.3);
}

/* 7. Badges & Micro-Pills */
.badge-emerald {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: var(--color-brand-secondary-subtle);
  color: #15803D;
  border: 1px solid rgba(22, 163, 74, 0.28);
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.badge-amber {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: var(--color-brand-accent-subtle);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.32);
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.badge-forest {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: var(--color-brand-primary);
  color: #F9FAF6;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.badge-subtle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: #F3F4F6;
  color: #374151;
  border: 1px solid #E5E7EB;
  font-weight: 500;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

/* 8. Buttons & Interactive CTA Elements */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-brand-secondary);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--color-brand-secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-brand-accent);
  color: var(--color-brand-primary);
  font-weight: 700;
  border-radius: 0.75rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  text-decoration: none;
}

.btn-amber:hover {
  background-color: var(--color-brand-accent-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}

.btn-amber:active {
  transform: translateY(0);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 65%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.btn-glow:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* 9. Timeline Visual Components */
.timeline-stem {
  position: absolute;
  left: 1.5rem;
  top: 1.75rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #16A34A 0%, rgba(22, 163, 74, 0.15) 100%);
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .timeline-stem-centered {
    left: 50%;
  }
}

.timeline-dot {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: #FFFFFF;
  border: 2px solid #16A34A;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-dot.active,
.timeline-item:hover .timeline-dot {
  background-color: #16A34A;
  color: #FFFFFF;
  box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.25);
  transform: scale(1.05);
}

/* 10. Accordion Interactive Transitions */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.35s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.accordion-item.active .accordion-body,
.accordion-item[data-open="true"] .accordion-body,
.faq-item.active .accordion-body,
.faq-item[data-open="true"] .accordion-body,
.accordion-body.open,
.accordion-body.active,
button[aria-expanded="true"] + .accordion-body,
button[aria-expanded="true"] ~ .accordion-body {
  max-height: 500px;
  opacity: 1;
  padding-top: 0.75rem;
  padding-bottom: 1.25rem;
}

.accordion-icon {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-icon,
.accordion-item[data-open="true"] .accordion-icon,
.faq-item.active .accordion-icon,
.faq-item[data-open="true"] .accordion-icon,
button[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

/* 11. Header & Navigation Dynamics */
.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px -2px rgba(11, 45, 32, 0.08);
  border-bottom: 1px solid rgba(22, 163, 74, 0.15);
}

/* 12. Floating CTA Bar (Mobile Viewports) */
#floating-cta {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#floating-cta.hidden-cta {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}

#floating-cta.visible-cta {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* 13. Image Presentation & Aspect Ratios */
.img-cover-zoom {
  overflow: hidden;
}

.img-cover-zoom img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-cover-zoom:hover img {
  transform: scale(1.04);
}

/* 14. Accessibility: Reduced Motion Support */
@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;
    scroll-behavior: auto !important;
  }
}

