/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Open+Sans:wght@400;500&display=swap");

:root {
  --primary: #4caf50;
  --secondary: #8bc34a;
  --dark: #388e3c;
  --light: #f1f8e9;
  --text: #333;
  --white: #fff;
}

/* Base Styles */
body {
  font-family: "Open Sans", sans-serif;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

/* ==================== HEADER & NAV ==================== */

/* Header */
header {
  display: flex;
  justify-content: space-between; /* logo left, nav center, icons right */
  align-items: center;
  padding: 15px 5%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Logo */
.logo {
  flex: 0 0 auto;
}
.logo img {
  height: 80px; /* match other pages */
  width: auto;
}

/* Navigation */
nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
nav ul {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s;
}
nav a:hover,
nav a.active {
  color: var(--primary);
}

/* Header Icons (Cart, Social, etc.) */
.header-icons {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.header-icons a {
  color: #4a2c2a;
  font-size: 1.4rem;
  transition: all 0.3s;
  position: relative;
}
.header-icons a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}
.menu-toggle span {
  width: 2rem;
  height: 0.25rem;
  background: var(--text);
  border-radius: 10px;
  transition: all 0.3s linear;
  transform-origin: 1px;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Prevent background scroll when menu open */
.no-scroll {
  overflow: hidden;
}

/* Mobile Responsive Header */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease;
    z-index: 99;
  }
  nav.active {
    left: 0;
  }
  nav ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .menu-toggle {
    display: flex;
  }
  .header-icons {
    gap: 1rem;
  }
}

/* ==================== PAGE STYLES ==================== */

/* ABOUT US CSS */

/* Our Farming Practices Section - Alternating Layout */
.about-section {
  padding: 60px 0;
  background-color: #f8f1e7;
}

.about-section h2 {
  text-align: center;
  color: #4a2c2a;
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
}

.about-section h2::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  background: #8b5e3b;
  margin: 15px auto 0;
}

.practice-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Base Practice Item Styling */
.practice-item {
  display: flex;
  margin-bottom: 60px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Corrected Alternating Pattern */
.practice-item:nth-child(1) {
  flex-direction: row;
}

.practice-item:nth-child(2) {
  flex-direction: row-reverse;
}

.practice-item:nth-child(3) {
  flex-direction: row-reverse;
}

.practice-item:nth-child(4) {
  flex-direction: row-reverse;
}

/* Border adjustments */
.practice-item:nth-child(1) img,
.practice-item:nth-child(3) img {
  border-left: 5px solid #8b5e3b;
  border-right: none;
}

.practice-item:nth-child(2) img,
.practice-item:nth-child(4) img {
  border-right: 5px solid #8b5e3b;
  border-left: none;
}

/* Picture Boxes */
.practice-item img {
  width: 45%;
  height: 350px;
  object-fit: cover;
  display: block;
  border-right: 5px solid #8b5e3b;
}

.practice-item:nth-child(even) img {
  border-right: none;
  border-left: 5px solid #8b5e3b;
}

/* Text Content */
.practice-text {
  width: 55%;
  padding: 30px;
}

.practice-text h3 {
  color: #4a2c2a;
  font-size: 1.8rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.practice-text h3 i {
  color: #4caf50;
  font-size: 1.8rem;
}

.practice-text p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.practice-benefits {
  list-style-type: none;
  padding-left: 0;
}

.practice-benefits li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.practice-benefits li::before {
  content: "✓";
  color: #4caf50;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Responsive Design (stack on mobile) */
@media (max-width: 900px) {
  .practice-item,
  .practice-item:nth-child(even) {
    flex-direction: column;
  }

  .practice-item img {
    width: 100%;
    height: 250px;
    border-right: none;
    border-left: none;
    border-bottom: 5px solid #8b5e3b;
  }

  .practice-text {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .about-section h2 {
    font-size: 2rem;
  }

  .practice-text h3 {
    font-size: 1.5rem;
  }

  .practice-item img {
    height: 200px;
  }
}

/* HERO SECTION */
.about-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../Images/aboutBack\ \(2\).jpg") center/cover;
  color: white;
  text-align: center;
  padding: 100px 20px;
  margin-bottom: 50px;
}

.about-hero h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 20px;
}

/* CONTENT SECTIONS */
.about-section {
  margin-bottom: 50px;
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.about-section h2 {
  color: #8b5e3b;
  border-bottom: 2px solid #f5deb3;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* MISSION/VISION CARDS */
.card-container {
  display: flex;
  gap: 30px;
  margin: 40px 0;
}

.card {
  flex: 1;
  background: #f5deb3;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

.card i {
  font-size: 2.5rem;
  color: #4a2c2a;
  margin-bottom: 20px;
}

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.feature-item i {
  color: #4caf50;
  margin-right: 10px;
}

.feature-item h3 {
  display: flex;
  align-items: center;
}

/* TEAM SECTION */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #f5deb3;
}

/* TESTIMONIALS */
.testimonial {
  background: #f1f8e9;
  padding: 30px;
  border-radius: 8px;
  margin: 20px 0;
  position: relative;
}

.testimonial:before {
  content: '"';
  font-size: 5rem;
  color: #8b5e3b;
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
}

/* MAP */
.map-container {
  width: 100%;
  height: 450px;
  margin: 25px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 3px solid #8b5e3b;
}

.map-directions-btn {
  display: inline-block;
  background: #4caf50;
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  transition: all 0.3s;
}

.map-directions-btn:hover {
  background: #3e8e41;
  transform: translateY(-2px);
}

.map-directions-btn i {
  margin-right: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .map-container {
    height: 350px;
    border-width: 2px;
  }
}

@media (max-width: 480px) {
  .map-container {
    height: 250px;
  }
  .map-directions-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* CTA SECTION */
.Aboutcta-section {
  text-align: center;
  padding: 60px 20px;
  background: #4a2c2a;
  color: white;
  margin-top: 50px;
}

.Aboutcta-button {
  display: inline-block;
  background: #8b5e3b;
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  margin: 20px 10px;
  transition: all 0.3s;
}

.Aboutcta-button:hover {
  background: #f5deb3;
  color: #4a2c2a;
}

.social-links {
  margin-top: 30px;
}

.social-links a {
  color: #f5deb3;
  margin: 0 10px;
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .card-container {
    flex-direction: column;
  }

  .about-hero h1 {
    font-size: 2rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* FOOTER WITH BACKGROUND IMAGE */
.footer-with-bg {
  position: relative;
  padding: 3rem 5% 1rem;
  color: #f5deb3;
  overflow: hidden;
}

.footer-with-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../Images/footerBack.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
  z-index: -1;
}

.footer-with-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

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

.footer-section {
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #f8f1e7;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-family: "Poppins", sans-serif;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #f5deb3;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #8b5e3b;
}

.social-icons {
  display: flex;
  gap: 1rem;
  font-size: 1.8rem;
  margin: 1rem 0;
}

.footer-section i {
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 222, 179, 0.2);
  padding-top: 1.5rem;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

.footer-bottom a {
  color: #f5deb3;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-bottom ul {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}
