/* Base imports & variables */
@import url('styles-base.css');

:root {
  --primary:   #2e7d32;
  --secondary: #4caf50;
  --bg:        #f3fdf4;
  --text:      #333;
  --light:     #fff;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

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

/* Header & Navigation */
nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: var(--light);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 10000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 2rem;
  transition: transform 0.3s ease-in-out;
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.hidden-header {
  transform: translateY(-100%);
}

.logo img {
  height: 50px;
  cursor: pointer;
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links li {
  position: relative;
}

.nav-links li:not(:last-child)::after {
  content: "|";
  color: var(--primary);
  margin-left: 1rem;
}

.nav-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  padding: .25rem;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--secondary);
}

/* Call‑to‑action link */
.nav-links li:last-child a {
  background: var(--primary);
  color: var(--light);
  padding: .5rem 1rem;
  border-radius: 4px;
}

.nav-links li:last-child a:hover {
  background: var(--secondary);
}

/* Dropdown menu */
.services-dropdown .dropdown-content {
  display: none;
  position: absolute;
  top: 90%; left: 0;
  background: rgba(255, 255, 255, 0.947);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: .5rem 0;
  min-width: 160px;
  z-index: 1000;
}

.services-dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: .5rem 1rem;
  color: var(--primary);
  white-space: nowrap;
}

.dropdown-content a:hover {
  background: var(--bg);
}
/* Hamburger icon */
.menu-icon {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 22px;
  cursor: pointer;
}
.menu-icon span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}
.navbar-menu {
  display: flex;               /* ← show menu by default */
}


/* ====== MOBILE ====== */
@media (max-width: 767px) {
  .navbar {
    margin: 20px 20px;
  }
  /* show hamburger */
.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
  padding: .25rem;
  transition: color .2s;
}
    .menu-icon {
    display: flex;
  }
  /* Dropdown menu */
.services-dropdown .dropdown-content {
  display: none;
  position: absolute;
  top: 90%; left: 0;
  background: rgba(28, 28, 28, 0.947);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: .5rem 0;
  min-width: 160px;
  z-index: 1000;
}

  .nav-links li:not(:last-child)::after {
  content: "";
  color: var(--primary);
  margin-left: 1rem;
}
  /* hide the normal links */
  .navbar-menu {
    display: none;             /* ← hide on mobile */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--text);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
     z-index: 150;   
  }
  .navbar-menu.active {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links li:last-child a {
    margin-top: 0.5rem;
  }
  .logo img{
    height: 40px;
    cursor: pointer; 
}

}
/* Global container */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 60px; /* compensate for fixed nav */
}

/* Buttons */
.btn.more-btn {
  display: inline-block;
  margin-top: 1rem;
  background: var(--primary);
  color: var(--light);
  padding: .5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}

.btn.more-btn:hover {
  background: var(--secondary);
}

/* Carousel Base */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 800px; /* adjust as needed */
}

.carousel .slide {
   position: absolute;
   width: 100%;
   height: 95%;
}
.carousel .testimonial {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.carousel .slide.active,
.carousel .testimonial.active {
  opacity: 1;
  z-index: 1;
}

/* Carousel nav buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
  padding: .5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.prev-btn { left: 1rem; }
.next-btn { right: 1rem; }

/* Dots */
.carousel-dots {
  text-align: center;
  margin-top: 1rem;
}

.carousel-dots button {
  width: 12px; height: 12px;
  margin: 0 5px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--primary);
}

/* Hero & Testimonials overrides */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-text h1 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: .5rem;
}

.hero-text p {
  font-size: 1.5rem;
  color: var(--secondary);
}

/* About section */
#about .about-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 4rem 2rem;
}

.about-inner img {
  flex: 1;
  height: 500px;
  border-radius: 12px;
}
/* Agriculture section */

/* Services section */
#services {
  padding: 4rem 2rem;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform .3s;
}

.service:hover {
  transform: translateY(-5px);
}
.service h3{
   color: rgb(64, 66, 64);
}
.service h3:hover{
  color: rgb(45, 204, 127);
}

/* Values section */
#values {
  margin-top: 4rem;
  padding: 2rem 1rem;
  background: var(--bg);
}

#values h2 {
  color: #545454;
  margin-bottom: 2rem;
  font-size: 2.2rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.value {
  background: #545454;
  padding: 2rem;
  border-radius: 1rem;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform .3s, box-shadow .3s;
}

.value img {
  height: 70px;
  margin-bottom: 1rem;
}

.value h3 {
  margin: .5rem 0;
  color: lightgreen;
  font-size: 1.5rem;
}

.value p {
  font-size: 1rem;
  line-height: 1.6;
}

.value:hover {
  transform: scale(1.05) rotate(-1deg);
  box-shadow: 0 10px 20px rgba(0,255,128,0.4);
}

/* Testimonials section */
#testimonials {
  padding: 4rem 2rem;
  text-align: center;
}

.testimonials-carousel {
  height: 220px;
}

.testimonials-carousel .testimonial {
  padding: 1.5rem;
  background: var(--light);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Footer & Contact */
footer {
  background: var(--light);
  padding: 3rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-form input,
.footer-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: .75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.footer-form button {
  width: 100%;
  padding: .75rem;
  background: var(--primary);
  color: var(--light);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
}

.footer-form button:hover {
  background: var(--secondary);
}

.footer-info h2,
.footer-form h2 {
  margin-bottom: 1rem;
  color: #545454;
}

.social-links a {
  margin-right: 1rem;
}

.social-links img {
  width: 24px;
  vertical-align: middle;
}

/* Bottom footer */
.bottom-footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: .9rem;
}
html {
      scroll-behavior: smooth;
}
/* Mobile (tablet and below) */
@media screen and (max-width: 768px) {

  
  /* Container */
  .content-wrapper {
    padding: 0 1rem;
    padding-top: 60px;
  }

  /* Hero */
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1.2rem;
  }

  /* Carousel */
  .carousel {
    height: 400px;
  }

  /* About */
  #about .about-inner {
    flex-direction: column;
    padding: 2rem 1rem;
  }
  .about-inner img {
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
  }

  /* Services */
  #services {
    padding: 2rem 1rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Values */
  #values {
    padding: 1.5rem .5rem;
  }
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Testimonials */
  #testimonials {
    padding: 2rem 1rem;
  }
  .testimonials-carousel {
    height: auto;
  }

  /* Footer */
  footer {
    padding: 2rem 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Mobile (phones) */
@media screen and (max-width: 480px) {
  /* Further scale down text & buttons */
  .hero-text h1 {
    font-size: 1.5rem;
  }
  .hero-text p {
    font-size: 1rem;
  }

  .btn.more-btn {
    padding: .4rem .8rem;
    font-size: .9rem;
  }

  /* Dots */
  .carousel-dots button {
    width: 10px;
    height: 10px;
    margin: 0 4px;
  }

  /* Footer form inputs */
  .footer-form input,
  .footer-form textarea {
    padding: .5rem;
  }
  .footer-form button {
    padding: .6rem;
  }
}


/* Adjust carousel arrow positions outside content on mobile */
@media screen and (max-width: 480px) {
  .carousel-btn {
    top: 50%;
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
  }
  .prev-btn { left: 0.5rem; }
  .next-btn { right: 0.5rem; }
}
/* Hero Carousel Mobile Adjustments */
@media screen and (max-width: 768px) {
  /* shrink carousel height */
  .hero .carousel {
    height: 250px;
  }

  /* make slides stack nicely (full-width backgrounds) */
  .hero .slide {
    background-position: center;
    background-size: cover;
    height: 100%;
  }

  /* reposition arrows just outside edges, and shrink them */
  .hero .carousel-btn {
    font-size: 1.25rem;
    top: 50%;
  }
  .hero .prev-btn {
    left: 0.5rem;
  }
  .hero .next-btn {
    right: 0.5rem;
  }

  /* collapse the dot‑nav under the carousel */
  #hero-dots {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
  }
  #hero-dots button {
    width: 8px;
    height: 8px;
    margin: 0 4px;
  }
}

@media screen and (max-width: 480px) {
  /* even smaller on phones */
  .hero .carousel {
    height: 180px;
  }
  .hero .carousel-btn {
    width: 2rem;
    height: 2rem;
    padding: 0.25rem;
  }
  #hero-dots button {
    width: 6px;
    height: 6px;
    margin: 0 3px;
  }
}
