/* ================================================
   R G AGRO-ALLIED - Main Stylesheet
   ================================================ */

:root {
  --primary-green: #0E8A3B;
  --dark-green: #006837;
  --gold: #D4AF37;
  --white: #FFFFFF;
  --light-grey: #F8F9FA;
  --dark-grey: #444444;
  --black: #222222;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark-grey);
  background-color: var(--white);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 15px 0;
  position: relative;
  z-index: 999;
  transition: var(--transition);
}

.navbar.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.logo img {
  height: 45px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
  margin: 0;
}

.nav-link {
  color: var(--dark-grey);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-green);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-green);
}

/* Mobile Menu Toggle Button */
.hamburger {
  display: none;
  position: relative;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--light-grey);
  border: none;
  border-radius: 8px;
  color: var(--dark-grey);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.hamburger.active {
  background: var(--primary-green);
  color: var(--white);
}

.hamburger:hover {
  background: var(--primary-green);
  color: var(--white);
}

.hamburger i {
  pointer-events: none;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background-color: var(--white);
    text-align: center;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    z-index: 998;
  }

  .nav-menu.active {
    max-height: 500px;
  }

  .nav-menu li {
    margin: 0;
    width: 100%;
  }

  .nav-menu .nav-link {
    display: block;
    padding: 16px 20px;
    border-bottom: 1px solid var(--light-grey);
  }

  .cta-button {
    display: none;
  }
}

/* WhatsApp Floating Button */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  z-index: 999;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  color: var(--white);
}

/* Buttons */
.btn {
  padding: 12px 28px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: var(--primary-green);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 138, 59, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-outline:hover {
  background-color: var(--primary-green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary-green);
  font-weight: 600;
}

.btn-white:hover {
  background-color: var(--light-grey);
  transform: translateY(-2px);
}

/* Links */
a {
  color: var(--primary-green);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--dark-green);
}

/* Sections */
section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  margin-bottom: 1rem;
  color: var(--black);
}

.section-title p {
  font-size: 1.1rem;
  color: var(--dark-grey);
  max-width: 600px;
  margin: 0 auto;
}

.divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-green), var(--gold));
  margin: 1rem auto 2rem;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 25px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--black);
}

.card-text {
  font-size: 0.95rem;
  color: var(--dark-grey);
  margin-bottom: 15px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Grid */
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 0;
}

.row.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.row.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Flex Layout */
.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-center {
  justify-content: center;
}

.gap-3 {
  gap: 30px;
}

/* Spacing */
.mt-2 { margin-top: 20px; }
.mt-4 { margin-top: 40px; }
.mt-6 { margin-top: 60px; }
.mb-2 { margin-bottom: 20px; }
.mb-4 { margin-bottom: 40px; }
.mb-6 { margin-bottom: 60px; }
.py-4 { padding: 40px 0; }
.py-6 { padding: 60px 0; }
.px-2 { padding: 0 20px; }

/* Text Utilities */
.text-center {
  text-align: center;
}

.text-white {
  color: var(--white);
}

.text-primary {
  color: var(--primary-green);
}

.text-muted {
  color: var(--dark-grey);
}

/* Background */
.bg-light {
  background-color: var(--light-grey);
}

.bg-primary {
  background-color: var(--primary-green);
  color: var(--white);
}

.bg-dark {
  background-color: var(--black);
  color: var(--white);
}

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

/* Lists */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  margin-bottom: 12px;
}

ul li:before {
  content: "✓";
  color: var(--primary-green);
  font-weight: bold;
  margin-right: 10px;
}

/* Responsive Images */
.img-responsive {
  width: 100%;
  height: auto;
}

/* Overflow hidden */
.overflow-hidden {
  overflow: hidden;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--light-grey);
  color: var(--primary-green);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 10px;
  margin-bottom: 10px;
}

.badge-primary {
  background-color: var(--primary-green);
  color: var(--white);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Utility: Display */
.d-block { display: block; }
.d-inline { display: inline; }
.d-none { display: none; }

/* Responsive: Hidden on mobile */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  section { padding: 40px 0; }
  
  .row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .row.cols-2 {
    grid-template-columns: 1fr;
  }
  
  .d-flex {
    flex-direction: column;
  }
  
  .d-md-none {
    display: none;
  }
}
