/* Global Styles */
:root {
  --primary-color: #4a8f29;
  --secondary-color: #f8f1e5;
  --accent-color: #e67e22;
  --text-dark: #333;
  --text-light: #777;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #f9f9f9;
}

/* Header Navigation */
/* HEADER WRAPPER */
.header-nav {
  background-color: #2f7b2f;
  color: white;
  padding: 1rem 2rem;
}

/* FLEX ROW for Desktop: logo + nav inline */
@media (min-width: 769px) {
  .header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .top-bar {
    display: flex;
    align-items: center;
  }

  .menu-toggle {
    display: none; /* hidden on desktop */
  }

  nav {
    display: flex;
    gap: 1.5rem;
    margin-top: 0;
    opacity: 1 !important;
    max-height: none !important;
    pointer-events: auto;
  }
}

/* MOBILE: stacked layout */
@media (max-width: 768px) {
  .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }

  nav.show {
    max-height: 300px;
    opacity: 1;
    pointer-events: auto;
  }

  nav a {
    margin: 0.5rem 0;
  }
}

/* Shared Styles */
.logo-im img {
  height: 50px;
  width: auto;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: greenyellow;
}

nav a.active {
  border-bottom: 2px solid white;
}


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

section {
  padding: 60px 0;
}

h1,
h2,
h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}

p {
  margin-bottom: 15px;
  color: var(--text-light);
  font-size: 1.3rem;
  font-weight: 100;
}

h4 {
  font-size: 1.3rem;
}

/* Mission Section */
.mission {
  background-color: var(--secondary-color);
  text-align: center;
}

.mission-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.rem;
}

/* Story Section */
.story {
  display: flex;
  align-items: center;
  gap: 50px;
}

.story-content {
  flex: 1;
  font-size: 1.rem;
}

.story-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.story-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s;
}

.story-image:hover img {
  transform: scale(1.05);
}

/* Gallery */
.gallery {
  background-color: var(--secondary-color);
}

.gallery h2 {
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 70px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}



/* Team Section */
.team h2 {
  margin-bottom: 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 70px;
}

.team-member {
  text-align: center;
  background-color: white;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.team-member:hover {
  transform: translateY(-10px);
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 5px solid var(--secondary-color);
}

.team-member h3 {
  color: var(--primary-color);
}

.team-member p.position {
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 15px;
}

/* Location Section */
.location {
  background-color: var(--secondary-color);
  text-align: center;
}

.location-content {
  max-width: 800px;
  margin: 0 auto 40px;
}

.map-container {
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 50px 0 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-column h3 {
  color: white;
  margin-bottom: 20px;
}

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

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.bl {
  color: #f8f1e5;
}

.footer-column ul li a:hover {
  color: white;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  color: white;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--accent-color);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.9rem;
  color: #ddd;
}

.farm, .right {
  color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
  .story {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .header-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .story {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  section {
    padding: 40px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  nav a {
    margin-left: 0.8rem;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.7rem;
  }

  .team-member img {
    width: 120px;
    height: 120px;
  }
}
