/**
 * Pure Theme Widgets — Bundled Styles
 * Works on any WordPress theme by providing all necessary CSS variables and component styles.
 * Version: 1.0.0
 */

/* =========================================================
   CSS CUSTOM PROPERTIES (Variables)
   These match the Pure Theme palette. Override in your own
   theme's stylesheet if needed.
   ========================================================= */
:root {
  --color-mango:       #FFB300;
  --color-mango-light: #FFCA28;
  --color-mango-glow:  rgba(255, 179, 0, 0.4);
  --color-leaf:        #2E7D32;
  --color-leaf-light:  #4CAF50;

  --bg-color:          #FAFAFA;
  --bg-color-alt:      #F1F8E9;
  --text-main:         #212121;
  --text-muted:        #757575;
  --glass-bg:          rgba(255, 255, 255, 0.7);
  --glass-border:      rgba(0, 0, 0, 0.08);
  --card-bg:           #FFFFFF;
  --shadow-sm:         0 4px 12px rgba(0,0,0,0.05);
  --shadow-md:         0 12px 24px rgba(0,0,0,0.08);
  --shadow-lg:         0 24px 48px rgba(0,0,0,0.12);

  --font-heading:      'Outfit', sans-serif;
  --font-body:         'Inter', sans-serif;
  --section-padding:   6rem 2rem;
  --max-width:         1200px;
  --border-radius:     20px;
}

[data-theme="dark"] {
  --bg-color:      #121212;
  --bg-color-alt:  #1A1A1A;
  --text-main:     #F5F5F5;
  --text-muted:    #BDBDBD;
  --glass-bg:      rgba(30, 30, 30, 0.7);
  --glass-border:  rgba(255, 255, 255, 0.1);
  --card-bg:       #1E1E1E;
  --shadow-sm:     0 4px 12px rgba(0,0,0,0.3);
  --shadow-md:     0 12px 24px rgba(0,0,0,0.4);
  --shadow-lg:     0 24px 48px rgba(0,0,0,0.5);
}

/* Load Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

/* =========================================================
   SHARED UTILITIES
   ========================================================= */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-padding);
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  color: var(--text-main);
  margin-bottom: 3rem;
}
.btn-primary {
  display: inline-block;
  background: var(--color-mango);
  color: #000;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px var(--color-mango-glow); }
.btn-secondary, .btn-outline {
  display: inline-block;
  border: 2px solid var(--color-mango);
  color: var(--color-mango);
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
  text-decoration: none;
}
.btn-secondary:hover, .btn-outline:hover { background: var(--color-mango); color: #000; }

/* Reveal animations */
.reveal-up { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-up.revealed { opacity: 1; transform: translateY(0); }

/* =========================================================
   HERO WIDGET
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-color-alt);
}
.parallax-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-container { position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.hero-content { max-width: 650px; }
.hero-badge {
  display: inline-block;
  background: var(--color-mango);
  color: #000;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-title em { color: var(--color-mango); font-style: italic; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; max-width: 520px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.floating-leaf {
  position: absolute;
  width: 60px; height: 60px;
  background: var(--color-leaf);
  border-radius: 50% 10% 50% 10%;
  opacity: 0.15;
  animation: leafFloat 6s ease-in-out infinite alternate;
}
.leaf-1 { top: 20%; left: 5%; animation-delay: 0s; }
.leaf-2 { top: 60%; right: 8%; animation-delay: 2s; width: 40px; height: 40px; }
.leaf-3 { bottom: 20%; left: 20%; animation-delay: 4s; width: 30px; height: 30px; }
@keyframes leafFloat { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-20px) rotate(15deg); } }

/* =========================================================
   FEATURES WIDGET
   ========================================================= */
.features { background: var(--bg-color); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 3rem; margin-bottom: 1rem; }
.feature-card h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--text-main); margin-bottom: 0.75rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.floating-card { animation: float 4s ease-in-out infinite; }
.delay-0 { animation-delay: 0s; } .delay-1 { animation-delay: 0.3s; } .delay-2 { animation-delay: 0.6s; } .delay-3 { animation-delay: 0.9s; }

/* =========================================================
   PRICING WIDGET
   ========================================================= */
.pricing { background: var(--bg-color-alt); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}
.pricing-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--glass-border);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.highlight-card {
  background: linear-gradient(135deg, var(--color-mango) 0%, var(--color-mango-light) 100%);
  color: #000;
  transform: scale(1.03);
}
.highlight-card:hover { transform: scale(1.03) translateY(-6px); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--color-leaf); color: #fff;
  padding: 4px 16px; border-radius: 50px; font-size: 0.75rem; font-weight: 700;
  white-space: nowrap;
}
.plan-header { margin-bottom: 1.5rem; }
.plan-header h3 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.plan-yield { font-size: 0.9rem; opacity: 0.7; }
.plan-features { list-style: none; margin-bottom: 2rem; }
.plan-features li { padding: 8px 0; border-bottom: 1px solid var(--glass-border); font-size: 0.95rem; }
.plan-features li:last-child { border-bottom: none; }

/* =========================================================
   PANORAMIC WIDGET
   ========================================================= */
.orchards-panoramic { background: var(--bg-color); }
.panoramic-banner {
  border-radius: var(--border-radius);
  min-height: 400px;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 70%),
              linear-gradient(135deg, var(--color-leaf) 0%, var(--color-mango) 100%);
  background-size: cover;
  padding: 3rem;
  overflow: hidden;
}
.panoramic-content { max-width: 500px; color: #fff; }
.panoramic-content h2 { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1rem; }
.panoramic-content p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 2rem; opacity: 0.85; }

/* =========================================================
   FARMERS WIDGET
   ========================================================= */
.farmers {
  position: relative;
  background: var(--color-leaf);
  color: #fff;
  overflow: hidden;
}
.farmers-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--color-leaf) 0%, #1B5E20 100%);
  z-index: 0;
}
.farmers .section-container { position: relative; z-index: 2; }
.farmers-content { max-width: 700px; margin: 0 auto; text-align: center; }
.farmers .section-title { color: #fff; }
.farmers-lead { font-size: 1.25rem; font-weight: 600; opacity: 0.9; margin-bottom: 1.5rem; }
.farmers-text { font-size: 1rem; line-height: 1.8; opacity: 0.85; }
.farmers-text p { margin-bottom: 1rem; }
.px-center { text-align: center; }

/* =========================================================
   HARVEST WIDGET
   ========================================================= */
.harvest-experience { background: var(--bg-color); padding: var(--section-padding); }
.harvest-sticky-layout {
  display: flex;
  gap: 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: flex-start;
}
.harvest-visuals {
  position: sticky;
  top: 100px;
  width: 300px;
  flex-shrink: 0;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mango-stage {
  font-size: 8rem;
  position: absolute;
  opacity: 0;
  transform: scale(0.5) rotate(-15deg);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  line-height: 1;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
}
.mango-stage.active {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.harvest-text-content { flex: 1; }
.harvest-step {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--glass-border);
  opacity: 0.3;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.harvest-step:last-child { border-bottom: none; }
.harvest-step.active { opacity: 1; transform: translateX(0); }
.harvest-step h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}
.harvest-step p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.8; max-width: 460px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .hero-buttons { flex-direction: column; }
  .harvest-sticky-layout { flex-direction: column; }
  .harvest-visuals { position: relative; top: auto; width: 100%; height: 200px; }
  .mango-stage { font-size: 5rem; }
  .harvest-step { min-height: 60vh; opacity: 1; transform: none; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .highlight-card { transform: none; }
}
