/* ===========================
   Global Styles & Variables
=========================== */
:root {
  --primary: #96b363; /* Forest Green */
  --primary-dark: #1b5e20;
  --secondary: #3e2723; /* Earth Brown */
  --accent: #ff9800; /* Warm Orange */
  --light: #f9fbe7; /* Light Earth */
  --dark: #212121;
  --gray: #757575;
  --light-gray: #e0e0e0;
  --success: #4caf50;
  --warning: #ffc107;
  --danger: #d32f2f;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  color: var(--dark);
  background-color: #fff;
}


/* ===========================
   Top Header
=========================== */
.top-header {
  background-color: #2c2c2c;
  color: #ccc;
  font-size: 0.9rem;
  padding: 8px 0;
}

.top-header-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.top-header-left span {
  margin-right: 20px;
}

.top-header-left i {
  margin-right: 5px;
  color: #97b16d; /* earthy green accent */
}

.top-header-right a {
  color: #ccc;
  margin-left: 10px;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.top-header-right a:hover {
  color: #97b16d;
}

/* ===========================
   Navbar
=========================== */
.navbar {
  background-color: #ffffff; /* White background */
  color: #555; /* Grey text */
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
}

.nav-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

/* Logo as image */
.logo img {
  height: 50px;
  width: auto;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: auto; /* center menu */
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  position: relative; /* for underline effect */
  text-decoration: none;
  color: #555; /* Grey text */
  font-weight: 500;
  transition: color 0.3s ease;
  padding-bottom: 5px; /* space for underline */
}

/* Underline hover animation */
.nav-menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-menu li a:hover {
  color: var(--primary);
}

.nav-menu li a:hover::after {
  width: 100%;
}

/* Slogan under nav */
.slogan {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 8px;
  margin-bottom: 12px;
  font-style: italic;
}

/* ===========================
   Hero Section
=========================== */
.hero {
  height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 20px;
  animation: fadeInUp 1.5s ease both;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 25px;
}

/* Button Style */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

/* ===========================
   Animations
=========================== */
@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-menu li {
  opacity: 0;
  animation: navFadeIn 0.6s ease forwards;
}
.nav-menu li:nth-child(1) { animation-delay: 0.2s; }
.nav-menu li:nth-child(2) { animation-delay: 0.4s; }
.nav-menu li:nth-child(3) { animation-delay: 0.6s; }
.nav-menu li:nth-child(4) { animation-delay: 0.8s; }
.nav-menu li:nth-child(5) { animation-delay: 1s; }
.nav-menu li:nth-child(6) { animation-delay: 1.2s; }

@keyframes heroZoom {
  from { background-size: 100%; }
  to { background-size: 110%; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   Mobile Menu
=========================== */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 20px;
}

@media (max-width: 768px) {
  .nav-container { 
    flex-direction: row; 
    justify-content: space-between;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }
  
  .nav-menu.active { 
    display: flex; 
  }
  
  .nav-menu li {
    margin: 10px 0;
    opacity: 1;
    animation: none;
  }
  
  .menu-toggle { 
    display: block; 
    color: #555; 
  }
  
  .slogan { 
    display: block; 
    font-size: 0.85rem; 
    margin-top: 15px; 
    text-align: center; 
  }
}

/* ===========================
   About Details Section
=========================== */
.about-details {
  padding: 80px 20px;
  background: #fff;
}

.about-details-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* White animated about cards */
.about-card {
  background: #fff; /* white background */
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}
.about-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary);
}
.about-card p,
.about-card ul,
.about-card table {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 12px;
}
.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
/* Animate cards appearing in sequence */
.about-card:nth-child(1) { animation-delay: 0.2s; }
.about-card:nth-child(2) { animation-delay: 0.4s; }
.about-card:nth-child(3) { animation-delay: 0.6s; }
.about-card:nth-child(4) { animation-delay: 0.8s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
  .about-details-container { grid-template-columns: 1fr; }
}

/* Active page link */
.nav-menu li a.active { color: var(--primary); }
.nav-menu li a.active::after { width: 100%; }

/* ===========================
   Core Values Table
=========================== */
.core-values {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}
.core-values td {
  padding: 12px;
  border-bottom: 1px solid var(--light-gray);
  vertical-align: top;
}
.core-values td:first-child {
  width: 30%;
  font-weight: 600;
  color: var(--primary);
}

/* ===========================
   About Section (Home Page)
=========================== */
.about {
  padding: 80px 20px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}
.about-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.about-text { flex: 2; }
.about-text h2 { font-size: 2rem; font-weight: 700; margin-bottom: 20px; color: var(--primary); }
.about-text h3 { font-size: 1.3rem; margin-top: 25px; margin-bottom: 10px; color: var(--secondary); }
.about-text p { font-size: 1rem; line-height: 1.7; margin-bottom: 15px; color: var(--dark); }
.about-image { flex: 1; display: flex; justify-content: flex-end; }
.about-image img {
  width: 620px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}
@media (max-width: 768px) {
  .about-container { flex-direction: column; text-align: center; }
  .about-image { justify-content: center; margin-top: 20px; }
  .about-image img { width: 200px; }
}

/* Decorative Circles */
.about-circles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; }
.about-circles span {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: 0.12;
  animation: floatCircle 25s linear infinite;
}
@keyframes floatCircle {
  0% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(-30px) translateX(20px) scale(1.1); }
  100% { transform: translateY(0) translateX(0) scale(1); }
}
.about-container { position: relative; z-index: 1; }

/* ===========================
   Scrolling Image Row
=========================== */
.scroll-container {
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  background: #c5c5c5;
  padding: 20px 0;
}
.image-row {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}
.image-row img {
  height: 100px;
  width: 150px;
  margin-right: 5px;
  border-radius: 10px;
  object-fit: cover;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: #2c2c2c;
  color: #ccc;
  padding: 40px 20px 0;
  font-size: 0.9rem;
}
.footer-container {
  display: flex; flex-wrap: wrap; gap: 30px;
  max-width: 1100px; margin: auto;
  justify-content: space-between;
}
.footer-col { flex: 1 1 250px; }
.footer-col h4 { color: #fff; margin-bottom: 15px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #ccc; text-decoration: none; }
.footer-col ul li a:hover { color: #97b16d; }
.footer-bottom {
  border-top: 1px solid #444;
  text-align: center;
  padding: 15px 0;
  margin-top: 20px;
  color: #777;
  font-size: 0.85rem;
}

/* Contact + Footer links override */
.contact-info a,
.site-footer a {
  color: inherit;
  text-decoration: none;
}
.contact-info a:hover,
.site-footer a:hover { color: #97b16d; }

/* ==================== WHATSAPP BUTTON ==================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  background: #20b955;
  transform: scale(1.05);
}

/* ==================== CONTACT ==================== */
.contact { padding: 6rem 0; background: #f5f5f5; }
.contact-content {
  display: flex; justify-content: center; align-items: flex-start;
  gap: 2rem; margin-top: 2rem; flex-wrap: wrap;
}
.contact-form {
  flex: 1; max-width: 600px; background: #fff;
  padding: 2rem; border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.contact-form:hover { transform: translateY(-4px); }
.form-group { position: relative; margin-bottom: 1.5rem; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 0.8rem;
  border: 2px solid #eaeaea; border-radius: 10px;
  font-size: 0.95rem; background: #fafafa;
  transition: all 0.3s ease; box-sizing: border-box; display: block;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus {
  border-color: #97b16d; background: #fff;
  box-shadow: 0 0 0 4px rgba(151,177,109,0.15); outline: none;
}
/* Floating labels */
.form-group label {
  position: absolute; top: 50%; left: 14px; transform: translateY(-50%);
  color: #888; font-size: 0.9rem; pointer-events: none;
  transition: all 0.3s ease;
}
.form-group textarea + label { top: 1rem; transform: none; }
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -8px; left: 10px; font-size: 0.75rem;
  background: #fff; padding: 0 6px; color: #97b16d;
}
/* Submit button */
button.btn-primary {
  width: 100%; padding: 0.8rem; font-size: 0.95rem; font-weight: 600;
  border: none; border-radius: 10px; background: #97b16d;
  color: #fff; cursor: pointer; transition: all 0.3s ease;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
button.btn-primary:hover {
  background: #7a9658; transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(151,177,109,0.3);
}
/* Status text */
.form-status { margin-top: 1rem; text-align: center; font-weight: 500; }
.form-status.success { color: #4CAF50; }
.form-status.error { color: #f44336; }
/* Contact info card */
.contact-info {
  flex: 0 1 300px; background: #fff; padding: 2rem;
  border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  align-self: center;
}
.contact-info .info-item {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.5rem; text-align: left;
}
.contact-info .info-icon {
  flex-shrink: 0; width: 42px; height: 42px;
  background: #97b16d; color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-info .info-text {
  display: flex; flex-direction: column; align-items: flex-start;
}
.contact-info .info-text h4 { margin: 0 0 0.3rem 0; font-size: 1rem; color: #53554f; }
.contact-info .info-text a {
  font-size: 0.95rem; color: #444; text-decoration: none; font-weight: 500;
}
.contact-info .info-text a:hover { color: #97b16d; }
@media (max-width: 768px) {
  .contact-content { flex-direction: column; align-items: center; }
  .contact-info, .contact-form { max-width: 100%; }
}
/* Contact Us Heading */
.contact .section-header h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ===========================
   Team Section
=========================== */
.team-section {
  padding: 80px 20px;
  background: #fffff;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 50px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.team-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  text-align: center;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.team-card img {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top;
  margin-bottom: 15px;
}

.team-card h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--primary);
}

.team-card .role {
  font-size: 0.95rem;
  color: var(--secondary);
  margin-bottom: 12px;
  font-weight: 600;
}

.team-card span {
  color: var(--primary);
  font-weight: 500;
}

/* Team row for index */
.team-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 20px;
  overflow-x: auto;
}
.team-row::-webkit-scrollbar { display: none; }
.team-row .team-card { flex: 0 0 250px; }

/* Carousel */
.team-carousel {
  padding: 80px 20px;
  background: #ffffff;
  text-align: center;
}
.carousel-container {
  position: relative;
  max-width: 900px;
  margin: auto;
  overflow: visible;
}
.carousel-slide {
  display: none;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.carousel-slide.active { display: block; }
.carousel-slide img {
  max-width: 200px;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* Carousel number pagination */
.carousel-pagination {
  text-align: center;
  margin-bottom: 20px;
}

.carousel-pagination button {
  background: #fff;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 12px;
  margin: 0 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-pagination button.active {
  background: var(--primary);
  color: #fff;
}

.carousel-pagination button:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* Carousel arrows vertically centered on sides */
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 22px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: background 0.3s ease;
}

.carousel-prev { left: -70px; }
.carousel-next { right: -70px; }

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--primary-dark);
}

/* Mobile: bring arrows inside the container */
@media (max-width: 768px) {
  .carousel-prev { left: 10px; top: 15px; }
  .carousel-next { right: 10px; top: 15px; }
}

/* Team member heading and contact details in green */
.carousel-slide h3,
.carousel-slide .role,
.carousel-slide .contact-info {
  color: var(--primary);
  font-weight: 600;
}

/* ==================== Index Team Carousel ==================== */
.team-carousel-index {
  overflow: hidden;
  max-width: 1100px;
  margin: auto;
  position: relative;
}

.team-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.team-carousel-index .team-card {
  flex: 0 0 calc(100% / 3 - 20px);
  margin: 0 10px;
}

@media (max-width: 768px) {
  .team-carousel-index .team-card {
    flex: 0 0 100%;
  }
}

/* Index Team Row with auto-scroll back & forth */
@keyframes teamScroll {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(-40%); }
  100% { transform: translateX(0); }
}

.team-row-index {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
  overflow: hidden;
  padding: 10px 0;
  animation: teamScroll 20s ease-in-out infinite;
}

.team-row-index:hover {
  animation-play-state: paused;
}

.team-row-index .team-card {
  flex: 0 0 220px;
}