/* =============================================
   AGRICULTURE IRRIGATION WEBSITE - STYLES
   ============================================= */

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

/* ---- CSS Variables ---- */
:root {
  --green-dark:   #1a4731;
  --green-main:   #2d7a4f;
  --green-mid:    #3da066;
  --green-light:  #6fcf97;
  --green-pale:   #e8f5ee;
  --teal:         #0e9c8c;
  --sky:          #3b9ed8;
  --earth:        #7a5230;
  --sand:         #f5efe6;
  --white:        #ffffff;
  --gray-50:      #f9fafb;
  --gray-100:     #f3f4f6;
  --gray-200:     #e5e7eb;
  --gray-600:     #4b5563;
  --gray-700:     #374151;
  --gray-900:     #111827;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.15);
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 71, 49, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  transition: var(--transition);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}
.nav-logo span { color: var(--green-light); }
.nav-logo .logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--green-mid), var(--teal));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}
.nav-cta {
  background: linear-gradient(135deg, var(--green-mid), var(--teal)) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(61,160,102,0.4);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(61,160,102,0.5) !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero (generic) ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, #1e5c38 40%, var(--teal) 100%);
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.hero-shapes .shape-1 { width: 400px; height: 400px; top: -100px; right: -100px; }
.hero-shapes .shape-2 { width: 250px; height: 250px; bottom: -80px; left: 15%; }
.hero-shapes .shape-3 { width: 150px; height: 150px; top: 30%; right: 25%; background: rgba(111,207,151,0.1); }
.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text {}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(111,207,151,0.15);
  border: 1px solid rgba(111,207,151,0.3);
  color: var(--green-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-title em { color: var(--green-light); font-style: normal; }
.hero-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--green-mid), var(--teal));
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(61,160,102,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(61,160,102,0.5); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(45,122,79,0.35);
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,122,79,0.45); }

/* Hero Visual Card */
.hero-visual { display: flex; justify-content: center; }
.hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 420px;
}
.hero-card-title {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hero-stat {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.hero-stat:hover { background: rgba(255,255,255,0.14); }
.hero-stat-icon { font-size: 1.6rem; margin-bottom: 8px; }
.hero-stat-value { color: var(--green-light); font-size: 1.6rem; font-weight: 700; }
.hero-stat-label { color: rgba(255,255,255,0.7); font-size: 0.78rem; margin-top: 4px; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #1e5c38 60%, var(--teal) 100%);
  padding: 130px 24px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position: relative; max-width: 700px; margin: 0 auto; }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: white;
  margin-bottom: 16px;
}
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; line-height: 1.7; }

/* ---- Section Utilities ---- */
.section { padding: 90px 24px; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--green-dark); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  display: inline-block;
  color: var(--green-main);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--gray-900);
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-title em { color: var(--green-main); font-style: normal; }
.section-title-white { color: var(--white); }
.section-desc { color: var(--gray-600); font-size: 1.05rem; max-width: 580px; margin: 0 auto; line-height: 1.7; }
.section-desc-white { color: rgba(255,255,255,0.75); }
.divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--green-mid), var(--teal));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ---- Cards ---- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.card-icon-wrap {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.card-icon-green { background: linear-gradient(135deg, var(--green-pale), #c8ecd9); }
.card-icon-blue  { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.card-icon-teal  { background: linear-gradient(135deg, #d1faf5, #a7f3ec); }
.card-icon-earth { background: linear-gradient(135deg, #fef3e2, #fde8c0); }

/* ---- Grids ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- Stats Strip ---- */
.stats-strip {
  background: linear-gradient(135deg, var(--green-dark), #1e5c38);
  padding: 50px 24px;
}
.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat-item {}
.stat-value { font-size: 2.8rem; font-weight: 800; color: var(--green-light); line-height: 1; }
.stat-label { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 8px; }

/* ---- Feature list ---- */
.feature-list { list-style: none; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: var(--green-pale);
  color: var(--green-main);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- Footer ---- */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 70px 24px 30px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}
.footer-brand .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}
.footer-brand .logo span { color: var(--green-light); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: white; font-size: 0.95rem; font-weight: 600; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--green-light); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: var(--green-light); }

/* ---- Scroll-reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .nav-links { display: none; position: fixed; top: 70px; left: 0; right: 0; background: var(--green-dark); flex-direction: column; padding: 20px; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.07); border-radius: 0; }
  .hamburger { display: flex; }
}
