/* 
========================================================================
AGRINEST SOLUTIONS LTD - MASTER STYLESHEET
Premium Nature-Inspired Corporate Design
========================================================================
*/

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

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
  /* Brand Colors */
  --primary-dark: #114B1F;      /* Forest Green */
  --primary-fresh: #66BB33;     /* Leaf Green */
  --primary-gradient: linear-gradient(135deg, #114B1F 0%, #207234 50%, #66BB33 100%);
  --fresh-gradient: linear-gradient(135deg, #66BB33 0%, #4D8B26 100%);
  --accent-gold: #D4AF37;       /* Harvest Gold */
  
  /* Theme Settings (Light Mode Default) */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F7F8;
  --bg-card: #FFFFFF;
  --text-primary: #1A241D;
  --text-secondary: #4E5E52;
  --text-muted: #809686;
  --border-color: #E2E8F0;
  
  /* Glassmorphism Details */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur: 16px;
  
  /* Shadows & Radius */
  --shadow-sm: 0 4px 6px -1px rgba(17, 75, 31, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(17, 75, 31, 0.08), 0 4px 6px -2px rgba(17, 75, 31, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(17, 75, 31, 0.1), 0 10px 10px -5px rgba(17, 75, 31, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(17, 75, 31, 0.15);
  --shadow-inset: inset 0 2px 4px 0 rgba(255, 255, 255, 0.06);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Typography & Transitions */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- DARK MODE OVERRIDES --- */
body.dark-theme {
  --bg-primary: #0A160E;
  --bg-secondary: #0E2014;
  --bg-card: #12281A;
  --text-primary: #F3F7F4;
  --text-secondary: #9EB0A3;
  --text-muted: #6B7F71;
  --border-color: #1C3925;
  
  --glass-bg: rgba(10, 22, 14, 0.8);
  --glass-border: rgba(28, 57, 37, 0.5);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button, input, select, textarea {
  font-family: inherit;
}

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

ul {
  list-style: none;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-dark);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-secondary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-fresh);
}

/* --- GRID & FLEX UTILITIES --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  display: grid;
  gap: 32px;
}
.grid-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

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

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

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

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

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--fresh-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(102, 187, 51, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 187, 51, 0.6);
  opacity: 0.95;
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: var(--primary-dark);
  color: #FFFFFF;
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--accent-gold);
  color: #1A241D;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

/* --- HEADER & NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: var(--transition-smooth);
}

header.scrolled {
  box-shadow: var(--shadow-md);
  background: var(--glass-bg);
}

.navbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-container img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary-dark);
  line-height: 1.1;
}
body.dark-theme .logo-text {
  color: var(--primary-fresh);
}
.logo-text span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links {
  display: none;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 100%;
  }
  .has-mega-menu {
    height: 100%;
    display: flex;
    align-items: center;
    position: static;
  }
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-fresh);
  transition: var(--transition-smooth);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mega-menu {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background: var(--bg-primary);
  border-bottom: 2px solid var(--primary-fresh);
  box-shadow: var(--shadow-lg);
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 60px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  z-index: 999;
}

.mega-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

@media (min-width: 1024px) {
  .has-mega-menu:hover .mega-menu {
    display: grid;
    opacity: 1;
    transform: translateY(0);
  }
}

.mega-col h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
  border-left: 3px solid var(--primary-fresh);
  padding-left: 8px;
}
body.dark-theme .mega-col h3 {
  color: var(--primary-fresh);
}

.mega-col a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.mega-col a:hover {
  background: var(--bg-secondary);
  color: var(--primary-dark);
  padding-left: 12px;
}
body.dark-theme .mega-col a:hover {
  color: var(--primary-fresh);
}

/* --- NAV ACTIONS --- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.icon-btn:hover {
  background: var(--bg-secondary);
  color: var(--primary-dark);
}
body.dark-theme .icon-btn:hover {
  color: var(--primary-fresh);
}

/* Mobile Nav Toggle */
.menu-toggle {
  display: flex;
}
@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

/* --- MOBILE DRAWER --- */
.mobile-drawer {
  position: fixed;
  top: 80px;
  left: -100%;
  width: 300px;
  height: calc(100vh - 80px);
  background: var(--bg-primary);
  box-shadow: var(--shadow-lg);
  border-right: 1px solid var(--border-color);
  z-index: 998;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition-smooth);
}

.mobile-drawer.open {
  left: 0;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-fresh);
}

/* --- SEARCH OVERLAY --- */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 28, 16, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.search-box {
  width: 90%;
  max-width: 600px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--primary-fresh);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.search-input-wrapper input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 1.2rem;
  color: var(--text-primary);
  padding: 8px;
}

.search-results {
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  display: block;
}
.search-result-item:hover {
  background: var(--bg-secondary);
}
.search-result-item h4 {
  color: var(--primary-dark);
  font-family: var(--font-heading);
}
body.dark-theme .search-result-item h4 {
  color: var(--primary-fresh);
}
.search-result-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.close-search {
  position: absolute;
  top: -48px;
  right: 0;
  color: #FFFFFF;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 100px;
  background: linear-gradient(180deg, rgba(17, 75, 31, 0.4) 0%, rgba(10, 22, 14, 0.95) 100%), url('../assets/gallery-field-landscape.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  color: #FFFFFF;
  overflow: hidden;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-video-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(17, 75, 31, 0.45) 0%, rgba(10, 22, 14, 0.95) 100%);
  z-index: 2;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 10;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(to right, #FFFFFF, #B9E6A5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 60px;
}

.floating-leaves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.leaf {
  position: absolute;
  background: rgba(102, 187, 51, 0.15);
  border-radius: 0 100% 0 100%;
  transform: rotate(45deg);
  animation: float 8s infinite ease-in-out;
}

@keyframes float {
  0% { transform: translateY(0) rotate(45deg); opacity: 0; }
  50% { opacity: 0.8; }
  100% { transform: translateY(-100px) rotate(85deg); opacity: 0; }
}

/* --- STATS COUNTERS --- */
.stats-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
}

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

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

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-fresh);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* --- SECTION GENERALS --- */
section {
  padding: 100px 0;
}

.section-bg {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.badge {
  display: inline-block;
  background: rgba(102, 187, 51, 0.12);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
body.dark-theme .badge {
  color: var(--primary-fresh);
  background: rgba(102, 187, 51, 0.2);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-dark);
}
body.dark-theme .section-title {
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  margin-top: 12px;
}

/* --- ABOUT SECTION & TIMELINE --- */
.about-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-split {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.about-img-wrapper {
  position: relative;
}

.about-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.about-img::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border-top: 8px solid var(--primary-fresh);
  border-left: 8px solid var(--primary-fresh);
  border-radius: var(--radius-md) 0 0 0;
  z-index: -1;
}

.about-experience-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 16px;
}

.about-exp-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}
body.dark-theme .about-exp-num {
  color: var(--primary-fresh);
}

.about-exp-txt {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mission-vision {
  margin-top: 32px;
}

.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 24px;
}

.tab-btn {
  padding: 12px 24px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.tab-btn.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-fresh);
}
body.dark-theme .tab-btn.active {
  color: var(--primary-fresh);
}

.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

/* Timeline */
.timeline {
  margin-top: 48px;
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--border-color);
}

.timeline-item {
  margin-bottom: 32px;
  position: relative;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: -41px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 4px solid var(--primary-fresh);
  transition: var(--transition-smooth);
}
.timeline-item:hover::after {
  background: var(--primary-fresh);
  transform: scale(1.2);
}

.timeline-year {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-fresh);
}

.timeline-title {
  font-weight: 600;
  margin: 4px 0;
}

/* --- SERVICES CARDS --- */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-fresh);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(102, 187, 51, 0.1);
  color: var(--primary-dark);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 1.5rem;
}
body.dark-theme .service-icon {
  color: var(--primary-fresh);
  background: rgba(102, 187, 51, 0.15);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-fresh);
}
.read-more:hover {
  color: var(--primary-dark);
}
body.dark-theme .read-more:hover {
  color: #FFFFFF;
}

/* --- WHY CHOOSE US --- */
.why-card {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: var(--radius-md);
}

.why-icon {
  width: 48px;
  height: 48px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent-gold);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- PRODUCTS CATALOG & CARDS --- */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary-dark);
  color: #FFFFFF;
  border-color: var(--primary-dark);
}
body.dark-theme .filter-btn.active {
  background: var(--primary-fresh);
  border-color: var(--primary-fresh);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.product-img-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.product-card:hover .product-img-wrapper img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-dark);
  color: #FFFFFF;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.product-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex: 1;
}

.product-action {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: auto;
}

/* --- FARMER SUPPORT & TRACTOR SECTIONS --- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

@media (min-width: 1024px) {
  .feature-split {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-img-wrapper img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.feature-list {
  margin: 24px 0 32px;
}

.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.feature-list-icon {
  color: var(--primary-fresh);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 4px;
}

/* --- GALLERY MASONRY --- */
.gallery-grid {
  columns: 3 250px;
  gap: 20px;
  width: 100%;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(17, 75, 31, 0) 40%, rgba(17, 75, 31, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay h4 {
  font-family: var(--font-heading);
  color: #FFFFFF;
  font-size: 1.1rem;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 28, 16, 0.95);
  display: none;
  z-index: 3000;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  position: relative;
}

.lightbox-content img {
  max-height: 80vh;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  color: #FFFFFF;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* --- TESTIMONIALS SLIDER --- */
.testimonials-section {
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 32px;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  min-width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .testimonial-slide {
    min-width: calc(50% - 16px);
  }
}

.test-stars {
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.test-text {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.test-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: #FFFFFF;
  font-weight: 700;
  font-family: var(--font-heading);
}

.test-details h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
}

.test-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

/* --- BLOG POST CARDS --- */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.blog-img-wrapper {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-info {
  padding: 24px;
}

.blog-info h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.blog-info h3 a:hover {
  color: var(--primary-fresh);
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* --- FAQ ACCORDION --- */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 24px;
}

.faq-icon-arrow {
  transition: var(--transition-smooth);
}
.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
}

/* --- PARTNER LOGO STRIP --- */
.partners-section {
  padding: 60px 0;
  background: var(--bg-secondary);
  border-y: 1px solid var(--border-color);
  overflow: hidden;
}

.partners-slider {
  display: flex;
  overflow: hidden;
  user-select: none;
}

.partners-track {
  display: flex;
  gap: 60px;
  animation: scrollLogos 30s linear infinite;
  white-space: nowrap;
}

.partners-track img {
  height: 36px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: var(--transition-smooth);
}
.partners-track img:hover {
  opacity: 0.8;
  filter: grayscale(0%);
}

@keyframes scrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- CONTACT SECTION & FORMS --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-detail {
  display: flex;
  gap: 20px;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(102, 187, 51, 0.1);
  color: var(--primary-dark);
  font-size: 1.25rem;
  flex-shrink: 0;
}
body.dark-theme .contact-detail-icon {
  color: var(--primary-fresh);
}

.contact-detail h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.contact-detail p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  height: 250px;
}

.contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition-smooth);
}
.form-control:focus {
  border-color: var(--primary-fresh);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(102, 187, 51, 0.15);
}

/* --- MODAL SYSTEM --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 28, 16, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 2500;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  border: 1px solid var(--border-color);
}

.modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-size: 1.5rem;
}
body.dark-theme .modal-header h2 {
  color: var(--primary-fresh);
}

.close-modal {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.modal-body {
  padding: 32px;
}

/* --- FLOATING FLOATS --- */
.floating-whatsapp {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #25D366;
  color: #FFFFFF;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  z-index: 990;
  font-size: 1.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 32px;
  background: var(--primary-dark);
  color: #FFFFFF;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  z-index: 989;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: var(--transition-smooth);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
body.dark-theme .back-to-top {
  background: var(--primary-fresh);
}

/* --- FOOTER --- */
footer {
  background: #08120B;
  color: #D3E0D6;
  padding: 80px 0 30px;
  border-top: 2px solid var(--primary-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-col h3 {
  font-family: var(--font-heading);
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 24px;
}

.footer-col p {
  font-size: 0.9rem;
  color: #A3B2A6;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  background: #112015;
  border-radius: 50%;
  color: #FFFFFF;
  transition: var(--transition-smooth);
}
.footer-social-link:hover {
  background: var(--primary-fresh);
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-links a {
  color: #A3B2A6;
}
.footer-links a:hover {
  color: var(--primary-fresh);
  padding-left: 6px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  background: #112015;
  border: 1px solid #1C3021;
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  outline: none;
}

.newsletter-form button {
  background: var(--fresh-gradient);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-weight: 600;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid #112015;
  padding-top: 30px;
  text-align: center;
  font-size: 0.85rem;
  color: #6B7A6E;
}

/* --- ANIMATION UTILITIES FOR SCROLL REVEAL --- */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js-enabled .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- SUCCESS CONFETTI / OVERLAY --- */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 28, 16, 0.9);
  backdrop-filter: blur(8px);
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
}

.success-box {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 48px;
  max-width: 500px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(102, 187, 51, 0.1);
  color: var(--primary-fresh);
  border-radius: 50%;
  font-size: 2.5rem;
  margin: 0 auto 24px;
}


/* --- RESPONSIVE BRAND HEADINGS & SUCCESS TITLES (DARK MODE CONTRAST FIX) --- */
.brand-heading {
  color: var(--primary-dark);
  transition: var(--transition-smooth);
}
body.dark-theme .brand-heading {
  color: var(--primary-fresh);
}

.success-title {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  margin-bottom: 12px;
  transition: var(--transition-smooth);
}
body.dark-theme .success-title {
  color: var(--primary-fresh);
}


/* --- PREMIUM SCROLL REVEAL STAGGER & SPLIT EFFECT --- */
.js-enabled .reveal.reveal-staggered {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Stagger Grid inside reveal-staggered */
.js-enabled .reveal-staggered .stagger-grid > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js-enabled .reveal.revealed.reveal-staggered .stagger-grid > * {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays (1-12 items) */
.js-enabled .stagger-grid > *:nth-child(1) { transition-delay: 0.05s; }
.js-enabled .stagger-grid > *:nth-child(2) { transition-delay: 0.12s; }
.js-enabled .stagger-grid > *:nth-child(3) { transition-delay: 0.19s; }
.js-enabled .stagger-grid > *:nth-child(4) { transition-delay: 0.26s; }
.js-enabled .stagger-grid > *:nth-child(5) { transition-delay: 0.33s; }
.js-enabled .stagger-grid > *:nth-child(6) { transition-delay: 0.40s; }
.js-enabled .stagger-grid > *:nth-child(7) { transition-delay: 0.47s; }
.js-enabled .stagger-grid > *:nth-child(8) { transition-delay: 0.54s; }
.js-enabled .stagger-grid > *:nth-child(9) { transition-delay: 0.61s; }
.js-enabled .stagger-grid > *:nth-child(10) { transition-delay: 0.68s; }
.js-enabled .stagger-grid > *:nth-child(11) { transition-delay: 0.75s; }
.js-enabled .stagger-grid > *:nth-child(12) { transition-delay: 0.82s; }

/* Split Screen reveals inside reveal-staggered */
.js-enabled .reveal-staggered .reveal-split > *:nth-child(1) {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js-enabled .reveal-staggered .reveal-split > *:nth-child(2) {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: 0.1s;
}
.js-enabled .reveal.revealed.reveal-staggered .reveal-split > * {
  opacity: 1;
  transform: translate(0);
}

/* Header/title fades up first, followed by staggered grid or split */
.js-enabled .reveal-staggered .section-header {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js-enabled .reveal.revealed.reveal-staggered .section-header {
  opacity: 1;
  transform: translateY(0);
}