/* ============================================
   1. AGRO THEME VARIABLES
============================================ */
:root {
  --accent: #2E7D32;       /* Agricultural Green */
  --accent-glow: #4CAF50;  /* Lighter Green */
  --harvest: #F9A825;      /* Harvest Gold */
  --earth: #4E342E;        /* Soil Brown */
  
  /* Glass Effect Variables */
  --glass-bg-light: rgba(255, 255, 255, 0.25);
  --glass-bg-dark: rgba(10, 30, 10, 0.6); 
  --glass-border-light: rgba(255, 255, 255, 0.6);
  --glass-border-dark: rgba(76, 175, 80, 0.3); 

  /* Generic variable for JS usage */
  --glass-bg: var(--glass-bg-light);

  --radius: 16px;
  --text-light: #1B5E20;   
  --text-dark: #E8F5E9;    
  --font-main: "Poppins", sans-serif;
}

[data-theme="light"] {
  background: #F1F8E9; 
  color: var(--text-light);
}

[data-theme="dark"] {
  background: #051f0f; 
  color: var(--text-dark);
  --glass-bg: var(--glass-bg-dark);
}

/* ============================================
   2. RESET & BACKGROUND
============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.background-blobs {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(circle at 20% 30%, rgba(76, 175, 80, 0.4), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(249, 168, 37, 0.25), transparent 50%), 
    radial-gradient(circle at 40% 80%, rgba(27, 94, 32, 0.35), transparent 50%);
  filter: blur(80px);
  animation: blobMove 15s infinite alternate ease-in-out;
  z-index: -2;
  pointer-events: none;
}

@keyframes blobMove {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(-30px,30px) scale(1.1); }
}

.glass {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
[data-theme="light"] .glass {
  background: var(--glass-bg-light);
  border: 1px solid var(--glass-border-light);
}
[data-theme="dark"] .glass {
  background: var(--glass-bg-dark);
  border: 1px solid var(--glass-border-dark);
}

/* ============================================
   3. NAVBAR
============================================ */
.navbar {
  position: fixed;
  top: 10px;
  left: 2%;
  width: 96%;
  height: 70px;
  z-index: 1000;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.back-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.nav-right { display: flex; align-items: center; gap: 15px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a { font-weight: 500; font-size: 0.95rem; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }

.toggle-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: inherit;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.mobile-menu-btn {
  display: none; 
  background: none;
  border: none;
  font-size: 1.5rem;
  color: inherit;
  cursor: pointer;
  padding: 5px;
}

/* ============================================
   4. HERO SECTION
============================================ */
.hero {
  margin-top: 100px; 
  margin-bottom: 40px;
  border-radius: var(--radius);
  padding: 0; 
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.15);
}

.hero-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 60px 40px;
}

.hero-text { flex: 1; }
.hero-image { flex: 1; display: flex; justify-content: center; }

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  border: 2px solid rgba(255,255,255,0.3);
}

.hero h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 1rem; color: var(--accent); }
.hero p { font-size: 1.1rem; margin-bottom: 2rem; }

.hero-btns { display: flex; gap: 1rem; }

/* ============================================
   5. BUTTONS
============================================ */
.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 50px; 
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  display: inline-block;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}
.btn-primary:hover { background-color: #1B5E20; transform: translateY(-2px); }

.btn-outline {
  border: 2px solid var(--accent);
  color: inherit;
}
.btn-outline:hover { background-color: var(--accent); color: white; }

/* ============================================
   6. SECTIONS & GRIDS
============================================ */
.section { margin-bottom: 60px; border-radius: var(--radius); padding: 40px 0; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

h2 { font-size: 2rem; margin-bottom: 2.5rem; text-align: center; color: var(--accent); }
h3 { font-size: 1.4rem; margin-bottom: 1rem; }

.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.role-card ul { list-style: none; margin-top: 15px; }
.role-card li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }

.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step-card { text-align: center; padding: 30px 20px; }
.step-icon {
  font-size: 2.5rem; color: var(--harvest); margin-bottom: 15px;
  background: rgba(249, 168, 37, 0.1); padding: 20px; border-radius: 50%;
  display: inline-block;
}

.produce-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }

.produce-item { overflow: hidden; transition: transform 0.3s; border-radius: var(--radius); }
.produce-item:hover { transform: translateY(-5px); border-color: var(--harvest); }

.produce-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.produce-info { padding: 15px; text-align: center; }
.produce-info p { font-size: 0.85rem; margin: 0; opacity: 0.7; }

/* ============================================
   7. INQUIRY FORM
============================================ */
.inquiry-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.form-wrapper { padding: 30px; border-radius: var(--radius); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.form-group input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(46, 125, 50, 0.3);
  background: rgba(255, 255, 255, 0.5);
  color: inherit;
  font-family: inherit;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.8);
}

.inquiry-text ul li { margin-bottom: 10px; list-style: none; }

/* ============================================
   8. FOOTER
============================================ */
footer { border-radius: var(--radius); padding: 40px 0; margin-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.footer-col h4 { color: var(--harvest); margin-bottom: 15px; }
.socials i { margin-right: 15px; cursor: pointer; transition: 0.3s; }
.socials i:hover { color: var(--accent); transform: scale(1.1); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ============================================
   9. TOAST NOTIFICATION
============================================ */
#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--accent);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 1001;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 17px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#toast.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}
@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

/* ============================================
   10. RESPONSIVE
============================================ */
@media (max-width: 768px) {
  .navbar { width: 96%; left: 2%; padding: 0 15px; }
  
  .nav-links {
    display: none; 
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    gap: 15px;
  }
  
  .mobile-menu-btn { display: block; }
  
  .hero-layout { flex-direction: column-reverse; text-align: center; padding: 40px 20px; }
  .hero-btns { justify-content: center; }
  .hero-image img { max-width: 100%; margin-bottom: 20px; }
  
  .role-grid, .inquiry-container { grid-template-columns: 1fr; }
  
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }

  .nav-links[style*="display: flex"] {
    position: absolute;
    top: 70px;
    left: 0;
    z-index: 999;
    border-radius: 0 0 var(--radius) var(--radius);
    border-top: 1px solid rgba(255,255,255,0.1);
  }
}
/* ===============================
   🔗 NAV LINKS – CLEAN & ELEGANT
================================ */

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #eaf5ee;                 /* soft readable light */
  text-decoration: none;
  border-radius: 8px;
  transition: 
    color 0.2s ease,
    background 0.2s ease;
}

/* Subtle hover / tap feedback */
.nav-links a:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

/* CTA link (Make Inquiry) */
.nav-links a.btn {
  padding: 8px 16px;
  font-weight: 600;
  background: rgba(0, 255, 120, 0.18);
  color: #ffffff;
}

.nav-links a.btn:hover {
  background: rgba(0, 255, 120, 0.28);
}
/* ===============================
   🔗 FOOTER QUICK LINKS
================================ */

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col ul li:last-child {
  border-bottom: none;
}

.footer-col ul li a {
  color: #063a14;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: #ffffff;
}
/* ============================================
   🌗 THEME-SAFE NAV & FOOTER OVERRIDES
   (Paste at very bottom of CSS)
============================================ */

/* ---------- Theme variables ---------- */
[data-theme="light"] {
  --nav-text: #1B5E20;
  --nav-hover-bg: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
  --nav-text: #E8F5E9;
  --nav-hover-bg: rgba(255, 255, 255, 0.08);
}

/* ---------- NAV LINKS ---------- */
.nav-links a {
  color: var(--nav-text) !important;
}

.nav-links a:hover {
  background: var(--nav-hover-bg);
  color: var(--accent);
}

/* ---------- FOOTER LINKS ---------- */
.footer-col ul li a {
  color: var(--nav-text) !important;
}

.footer-col ul li a:hover {
  color: var(--accent);
}
/* ===============================
   SOCIAL ICONS HOVER EFFECT
=============================== */
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.socials a:hover {
  transform: translateY(-4px) scale(1.08);
  color: var(--accent);
  opacity: 0.9;
}

.socials i {
  font-size: 1.2rem;
}
.dropdown-menu a {
  display: block;
  width: 100%;
  padding: 14px 18px;
  margin: 8px 0;
  background: rgba(205, 33, 33, 0.9);
  border-radius: 12px;
  font-weight: 700;
  color: #14532d; /* deep green */
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}
.dropdown-menu a:hover {
  background: #14532d;
  color: #530b0b;
  transform: translateY(-2px);
}
