/* ==========================================================================
   Sersae - Custom Lightweight CSS
   ========================================================================== */

/* 1. Variables & Design Tokens */
:root {
    --primary: #1e7e34;          /* Eco green */
    --primary-hover: #145a23;
    --accent: #0288d1;           /* Energy blue */
    --text-main: #212529;
    --text-muted: #6c757d;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
    --radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.25s ease-in-out;
    --max-width: 1140px;
  }
  
  /* 2. Global Reset & Universal Styles */
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  ul {
    list-style: none;
  }
  
  /* Layout Container */
  .container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  section {
    padding: 4.5rem 0;
  }
  
  h1, h2, h3 {
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 1rem;
  }
  
  h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
  }
  
  /* 3. Buttons */
  .btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
  }
  
  /* 4. Header & Navigation */
  .header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
  }
  
  .nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
  }
  
  .logo img {
    height: 40px;
    width: auto;
  }
  
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  
  .nav-links a:not(.btn-primary) {
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
  }
  
  .nav-links a:not(.btn-primary):hover {
    color: var(--primary);
  }
  
  /* 5. Hero Section */
  .hero {
    background: linear-gradient(135deg, #f0f7f4 0%, #e8f4f8 100%);
    text-align: center;
    padding: 5rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto 1.25rem;
    color: var(--primary-hover);
  }
  
  .hero p {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
  }
  
  /* 6. Services Section (Grid) */
  .services {
    background-color: var(--bg-white);
  }
  
  .grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
  }
  
  .card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
  }
  
  .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
  }
  
  .card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
  }
  
  .card p {
    color: var(--text-muted);
    font-size: 0.95rem;
  }
  
  /* 7. About Section */
  .about {
    background-color: var(--bg-light);
    text-align: center;
  }
  
  .about p {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-muted);
  }
  
  /* 8. Contact Section & Form */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
  }
  
  .contact-info {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
  }
  
  .contact-info p {
    margin-bottom: 1rem;
    font-size: 1rem;
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .contact-form label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: -0.75rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 126, 52, 0.15);
  }
  
  /* 9. Footer */
  .footer {
    background-color: var(--text-main);
    color: #ffffff;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
  }
  
  /* 10. Responsive Breakpoints */
  @media (max-width: 768px) {
    .nav-wrapper {
      flex-direction: column;
      height: auto;
      padding: 1rem 0;
      gap: 1rem;
    }
  
    .nav-links {
      gap: 1rem;
      flex-wrap: wrap;
      justify-content: center;
    }
  
    .hero h1 {
      font-size: 1.85rem;
    }
  
    .contact-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
  }

  /* ==========================================================================
   Agro & Conversion Web Banners
   ========================================================================== */

/* Agro Hero Banner */
.agro-banner {
  position: relative;
  background-image: url('./assets/bg-soil.webp');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 5rem 0;
  text-align: center;
  overflow: hidden;
}

/* Dark overlay to ensure text readability over background images */
.agro-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(18, 53, 26, 0.8) 100%);
  z-index: 1;
}

.agro-banner-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.banner-brand img {
  max-width: 380px;
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.agro-banner h2 {
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.agro-banner p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: #e0e0e0;
}

/* Pre-Footer CTA Banner */
.cta-banner {
  position: relative;
  background-image: url('./assets/bg-pasture.webp');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 5rem 0;
  text-align: center;
  overflow: hidden;
}

.cta-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cta-text h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cta-text p {
  color: #d4edda;
  font-size: 1rem;
}

.btn-banner {
  display: inline-block;
  background-color: #ffffff;
  color: #145a23;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.btn-banner:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .agro-banner {
    padding: 3.5rem 0;
  }
  
  .agro-banner h2 {
    font-size: 1.6rem;
  }
  
  .banner-brand img {
    max-width: 260px;
  }
  
  .cta-flex {
    flex-direction: column;
    text-align: center;
  }
}

/* Banner 1: Environmental & Soil Management */
.agro-banner-soil {
  position: relative;
  background-image: url('./assets/bg-soil.webp');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 5rem 0;
}

/* Banner 2: Agropecuaria & Field Operations */
.agro-banner-pasture {
  position: relative;
  background-image: url('./assets/bg-pasture.webp');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 5rem 0;
}

/* Common Dark Overlay to keep white text readable */
.agro-banner-soil::before,
.agro-banner-pasture::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 53, 26, 0.70); /* Sersae dark eco-green overlay */
  z-index: 1;
}

/* WhatsApp Contact Button */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: #25d366;
  color: #ffffff;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius, 8px);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  margin-top: 1.25rem;
  transition: var(--transition, all 0.25s ease);
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: #1da851;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp svg {
  flex-shrink: 0;
  fill: currentColor;
}