/* ============================================
   SMART FARM & AGRI-SHOP — Design System
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #2e7d32;     /* Lush Leaf Green */
  --primary-dark: #1b5e20;
  --secondary: #d84315;   /* Earthy Terracotta */
  --secondary-hover: #bf360c;
  --accent: #ff8a65;      /* Sunset Orange */
  --bg-white: #ffffff;
  --bg-offwhite: #f9fbf9;
  --text-dark: #1a202c;
  --text-body: #4a5568;
  
  --line-green: #06C755;
  --glow-line: rgba(6, 199, 85, 0.5);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 25px rgba(0,0,0,0.08);
}

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

html { scroll-behavior: smooth; font-size: 16px; font-family: 'Prompt', sans-serif; }

body {
  color: var(--text-body);
  background: var(--bg-offwhite);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

h1, h2, h3, h4 { color: var(--text-dark); line-height: 1.2; font-weight: 700; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-sm); }
.section { padding: var(--space-3xl) 0; }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-terracotta { background: var(--secondary); color: var(--bg-white); }
.btn-terracotta:hover { background: var(--secondary-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(216, 67, 21, 0.3); }

.btn-green { background: var(--primary); color: var(--bg-white); }
.btn-green:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3); }

.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: rgba(46, 125, 50, 0.05); transform: translateY(-2px); }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header { position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm); }

.top-bar { background: var(--primary); color: var(--bg-white); padding: 8px 0; font-size: 0.9rem; font-weight: 500; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-contact { display: flex; gap: 20px; align-items: center; }
.top-contact span { display: flex; align-items: center; gap: 5px; }
.top-contact svg { width: 16px; height: 16px; fill: currentColor; }

.badge-consult { background: var(--accent); color: var(--bg-white); padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px; }

.main-nav { background: var(--bg-white); padding: 15px 0; }
.main-nav .container { display: flex; justify-content: space-between; align-items: center; }

.brand-logo { color: var(--primary); font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.brand-logo svg { width: 28px; height: 28px; fill: var(--primary); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-weight: 500; color: var(--text-dark); }
.nav-links a:hover { color: var(--primary); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 25px; height: 3px; background: var(--primary); border-radius: 2px; }

/* ============================================
   HERO BANNER
   ============================================ */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--primary);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Using the generated hero image (farm_hero.png) which was successful */
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26,32,44,0.85) 0%, rgba(26,32,44,0.4) 100%);
  z-index: 2;
}

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

.hero-content {
  max-width: 650px;
  color: var(--bg-white);
}

.hero-title { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--bg-white); margin-bottom: var(--space-md); line-height: 1.1; }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.9); margin-bottom: var(--space-xl); line-height: 1.6; }

.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.hero .btn-outline { border-color: var(--bg-white); color: var(--bg-white); }
.hero .btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-us { background: var(--bg-offwhite); margin-top: -60px; position: relative; z-index: 10; padding-top: 0; }

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

.why-card {
  background: var(--bg-white);
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  border-bottom: 4px solid var(--secondary);
  transition: transform 0.3s ease;
}

.why-card:hover { transform: translateY(-10px); }

.why-icon {
  width: 70px; height: 70px;
  background: rgba(216, 67, 21, 0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--secondary);
}
.why-icon svg { width: 32px; height: 32px; fill: currentColor; }

.why-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.why-card p { font-size: 0.95rem; }

/* ============================================
   FEATURED VIDEO
   ============================================ */
.featured-video { background: var(--primary); color: var(--bg-white); padding: var(--space-3xl) 0; text-align: center; }
.featured-video h2 { color: var(--bg-white); margin-bottom: 10px; font-size: 2.5rem; }
.featured-video p { margin-bottom: var(--space-xl); font-size: 1.1rem; opacity: 0.9; }

.video-wrapper {
  max-width: 900px; margin: 0 auto;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border: 4px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}

.play-btn {
  width: 80px; height: 80px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(216, 67, 21, 0.6);
  transition: transform 0.3s ease;
}
.play-btn:hover { transform: scale(1.1); }
.play-btn svg { width: 30px; height: 30px; fill: var(--bg-white); margin-left: 4px; }

/* ============================================
   PRODUCTS
   ============================================ */
.products { background: var(--bg-white); }
.section-header { text-align: center; margin-bottom: var(--space-2xl); }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-header p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

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

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex; flex-direction: column;
}

.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--primary); }

.product-img {
  aspect-ratio: 1;
  background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  position: relative;
}
/* CSS Placeholders for the failed images */
.placeholder-icon {
  width: 80px; height: 80px;
  color: var(--primary);
  opacity: 0.3;
}

.product-info { padding: var(--space-md); text-align: center; flex-grow: 1; display: flex; flex-direction: column; }
.product-info h3 { font-size: 1.1rem; margin-bottom: 10px; flex-grow: 1; }
.product-price { font-size: 1.25rem; font-weight: 800; color: var(--secondary); margin-bottom: 15px; }

.btn-line-buy {
  background: var(--line-green); color: var(--bg-white);
  width: 100%; border-radius: var(--radius-sm); padding: 10px;
  font-weight: 600; display: inline-flex; justify-content: center; gap: 8px;
}
.btn-line-buy:hover { background: var(--line-green-dark); }
.btn-line-buy svg { width: 18px; height: 18px; fill: currentColor; }

/* ============================================
   REVIEWS
   ============================================ */
.reviews { background: var(--bg-offwhite); }

.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); max-width: 900px; margin: 0 auto; }

.review-card {
  background: var(--bg-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  position: relative;
}

.review-card::before {
  content: '"';
  position: absolute; top: 10px; right: 20px;
  font-size: 6rem; color: rgba(46, 125, 50, 0.1);
  font-family: serif; line-height: 1;
}

.review-stars { color: #f59e0b; margin-bottom: 15px; display: flex; gap: 4px; }
.review-stars svg { width: 20px; height: 20px; fill: currentColor; }

.review-text { font-size: 1.1rem; font-style: italic; margin-bottom: 20px; position: relative; z-index: 1; }

.review-author { display: flex; align-items: center; gap: 15px; }
.author-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.5rem;
}
.author-info h4 { font-size: 1rem; margin-bottom: 2px; }
.author-info p { font-size: 0.85rem; color: var(--gray); }

/* ============================================
   CONTACT & FOOTER
   ============================================ */
.contact-section { background: var(--bg-white); display: grid; grid-template-columns: 1fr 1fr; }

.contact-content { padding: var(--space-3xl) 10%; display: flex; flex-direction: column; justify-content: center; }
.contact-content h2 { font-size: 2.5rem; margin-bottom: 20px; }
.contact-list { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.contact-item-lg { display: flex; align-items: flex-start; gap: 15px; }
.contact-icon { width: 40px; height: 40px; background: rgba(46, 125, 50, 0.1); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 20px; height: 20px; fill: currentColor; }
.contact-item-lg h4 { font-size: 1.1rem; margin-bottom: 4px; }

.contact-map { background: #e2e8f0; min-height: 400px; display: flex; align-items: center; justify-content: center; color: var(--text-body); font-weight: 600; font-size: 1.2rem; }

.footer { background: var(--text-dark); color: rgba(255,255,255,0.7); text-align: center; padding: 25px 0; font-size: 0.9rem; }
.footer span { color: var(--primary); font-weight: 700; }

/* ============================================
   FLOATING CTA (MANDATORY MASSIVE BUTTON)
   ============================================ */
.floating-line-massive {
  position: fixed;
  bottom: 20px; right: 20px;
  background: var(--line-green); color: var(--bg-white);
  padding: 16px 36px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; gap: 15px;
  font-size: 1.4rem; font-weight: 800;
  box-shadow: 0 0 40px var(--glow-line), 0 10px 25px rgba(0,0,0,0.2);
  border: 4px solid var(--bg-white);
  z-index: 9999;
  animation: mega-pulse 2s infinite;
}
.floating-line-massive svg { width: 36px; height: 36px; fill: currentColor; }

@keyframes mega-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(6, 199, 85, 0.5), 0 10px 25px rgba(0,0,0,0.2); }
  50% { transform: scale(1.05); box-shadow: 0 0 60px rgba(6, 199, 85, 0.8), 0 15px 30px rgba(0,0,0,0.3); border-color: #E8FDEE; }
}

/* Responsive */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .why-us { margin-top: 0; padding-top: var(--space-2xl); }
  .floating-line-massive { font-size: 1.2rem; padding: 12px 24px; border-width: 2px; }
  .floating-line-massive svg { width: 28px; height: 28px; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .nav-links { display: none; }
  .main-nav .btn-terracotta { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: 2.5rem; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .featured-video h2, .section-header h2 { font-size: 2rem; }
  .review-grid { grid-template-columns: 1fr; }
  .contact-section { grid-template-columns: 1fr; }
  .contact-map { min-height: 300px; }
  .floating-line-massive { font-size: 1rem; padding: 10px 20px; bottom: 10px; right: 10px; }
}
