/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #eaf7ea;
  color: #2f4f2f;
  line-height: 1.6;
  font-size: 16px;
  padding: 0 1rem;
}

/* Typography & Links */
a {
  color: #1a4d1a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.3;
}

/* Header */
header {
  background-color: #2f7d32;
  color: white;
  padding: 100px 1rem;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

header h1,
header p {
  color: white;
  font-weight: 700;
}

header p {
  font-size: 1.2rem;
}

.logo {
  max-height: 120px;
  margin: 0 auto 20px;
  display: block;
}

/* Navigation */
nav.sticky-nav {
  background-color: #4caf50;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

nav li {
  margin: 0 10px;
}

nav a {
  display: block;
  padding: 15px 10px;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease;
}

nav a:hover,
nav a:focus {
  background-color: #2f7d32;
  border-radius: 4px;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none;
  background-color: #2f7d32;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.5rem;
  padding: 10px 15px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  margin: 10px auto;
}

.mobile-nav-toggle:hover {
  background-color: #1b4d1b;
  transform: scale(1.05);
}

.mobile-nav-toggle:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

.mobile-nav-toggle i {
  transition: transform 0.3s ease;
}

.mobile-nav-toggle[aria-expanded="true"] i {
  transform: rotate(90deg);
}

/* Section Container */
.section {
  margin: 40px 0;
}

/* Services */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
}

.service-card {
  flex: 1 1 300px;
  max-width: 450px;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.services img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Slider */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.slides-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  opacity: 0;
  position: absolute;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
  position: relative;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(47, 125, 50, 0.7);
  color: white;
  font-size: 2rem;
  padding: 0 12px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.slider-btn:hover {
  background-color: #2f7d32;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Testimonials */
.testimonials-container {
  max-width: 700px;
  margin: 0 auto;
  min-height: 200px;
}

.testimonial {
  display: none;
  background-color: #d0e9d0;
  padding: 20px 30px;
  border-left: 5px solid #2f7d32;
  border-radius: 5px;
  font-style: italic;
  color: #1b3d1b;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: opacity 0.7s ease;
}

.testimonial.active {
  display: block;
}

/* Contact Form */
form {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

form label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #2f7d32;
  display: block;
}

form input,
form textarea {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 15px;
  border: 2px solid #a3cca3;
  border-radius: 6px;
  font-size: 1rem;
  color: #2f4f2f;
}

form textarea {
  resize: vertical;
  min-height: 100px;
}

form button {
  background-color: #2f7d32;
  color: white;
  padding: 12px 18px;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #1b4d1b;
}

.honeypot {
  display: none;
}

/* Footer */
footer {
  background-color: #2f7d32;
  color: white;
  text-align: center;
  padding: 15px 0;
  font-size: 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

footer a {
  color: #a8d5a8;
}

/* Chatbot */
#chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  z-index: 1000;
}

#chatToggle {
  background-color: #2f7d32;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.8rem;
  width: 50px;
  height: 50px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(47, 125, 50, 0.6);
  transition: background-color 0.3s ease;
}

#chatToggle:hover {
  background-color: #1b4d1b;
}

.chat-window {
  width: 300px;
  height: 400px;
  background-color: #eaf7ea;
  border: 2px solid #2f7d32;
  border-radius: 10px;
  display: none;
  flex-direction: column;
  box-shadow: 0 5px 15px rgba(47, 125, 50, 0.7);
  overflow: hidden;
  margin-top: 10px;
}

.chat-window.open {
  display: flex;
}

.chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: #2f4f2f;
}

.chat-messages p {
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 15px;
  max-width: 80%;
  word-wrap: break-word;
}

.chat-messages .bot-message {
  background-color: #c8e6c9;
  align-self: flex-start;
}

.chat-messages .user-message {
  background-color: #81c784;
  align-self: flex-end;
  color: white;
}

#chatForm {
  display: flex;
  border-top: 1px solid #2f7d32;
}

#chatInput {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 1rem;
  border-radius: 0 0 0 10px;
  outline: none;
}

#chatForm button {
  background-color: #2f7d32;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 0 0 10px 0;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

#chatForm button:hover {
  background-color: #1b4d1b;
}

/* Responsive Magic */
@media (max-width: 768px) {
  nav.sticky-nav {
    padding: 10px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    display: none;
    width: 100%;
    background-color: #4caf50;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
  }

  nav ul.active {
    display: flex;
  }

  nav li {
    margin: 0;
    text-align: center;
  }

  nav a {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .mobile-nav-toggle {
    display: block;
  }

  .service-card {
    max-width: 100%;
  }

  .logo {
    max-height: 100px;
  }

  header {
    padding: 70px 1rem;
  }

  header h1 {
    font-size: 1.8rem;
  }

  header p {
    font-size: 1rem;
  }
}