/* Base Styles */
:root {
  --light: #dad7cd;
  --highlight: #a3b18a;
  --primary: #588157;
  --secondary: #3a5a40;
  --dark: #344e41;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --transition-speed: 0.3s;
  --border-radius: 4px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--light);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--secondary);
}

img {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.bg-dark {
  background-color: var(--secondary);
  color: var(--white);
}

.bg-dark h2,
.bg-dark h3,
.bg-dark h4 {
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 5px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-divider {
  width: 80px;
  height: 3px;
  background-color: var(--primary);
  margin: 0 auto 20px;
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
  color: inherit;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: transparent;
  border: none;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed);
  font-size: 16px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-full {
  width: 100%;
}

/* Header & Navigation */
#header {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #3a5a40;
  padding: 20px 0;
  transition: all 0.4s ease;
  z-index: 1000;
}

#header.scrolled {
  background-color: var(--white);
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark);
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--primary);
}

.nav-desktop {
  display: flex;
  align-items: center;
}

.nav-desktop ul {
  display: flex;
}

.nav-desktop li {
  margin: 0 12px;
}

.nav-desktop a {
  color: var(--light);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.nav-desktop a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark);
  margin: 5px 0;
  transition: all 0.4s ease;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--white);
  padding: 20px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 10px 10px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
}

.mobile-menu li {
  margin: 10px 0;
}

.mobile-menu a {
  display: block;
  color: var(--dark);
  font-weight: 500;
  padding: 10px;
}

.mobile-menu a:hover {
  background-color: var(--gray-100);
  border-radius: var(--border-radius);
}

/* Hero Section / Carousel */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.carousel {
  height: 100%;
  position: relative;
}

.carousel-inner {
  height: 100%;
  width: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-color: rgba(0, 0, 0, 0.4);
  background-blend-mode: multiply;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}

.carousel-slide:nth-child(1) {
  background-image: url("images/gallery/banner-1.jpg");
}

.carousel-slide:nth-child(2) {
  background-image: url("images/gallery/banner-2.jpg");
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-content {
  max-width: 800px;
  padding: 0 20px;
  margin-left: 10%;
  color: var(--white);
}

.carousel-slide h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease 0.2s;
}

.carousel-slide.active h1 {
  opacity: 1;
  transform: translateY(0);
}

.carousel-slide p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease 0.4s;
}

.carousel-slide.active p {
  opacity: 1;
  transform: translateY(0);
}

.carousel-slide .btn {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease 0.6s;
  font-size: 1.1rem;
  padding: 15px 30px;
}

.carousel-slide.active .btn {
  opacity: 1;
  transform: translateY(0);
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: background var(--transition-speed);
  z-index: 10;
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 255, 255, 0.4);
}

.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.indicator.active {
  background-color: var(--white);
  transform: scale(1.2);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  color: var(--white);
  padding: 15px 20px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 25px;
  color: var(--gray-700);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.feature {
  background-color: var(--light);
  border: 1px solid var(--highlight);
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  transition: all var(--transition-speed);
}

.feature-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature h4 {
  margin-bottom: 5px;
}

.feature p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.service {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 30px;
  border-radius: 8px;
  transition: all var(--transition-speed);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service:hover {
  transform: translateY(-5px);
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
}

.service h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.service p {
  color: var(--light);
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.gallery-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(52, 78, 65, 0.8);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-speed);
}

.gallery-item:hover .gallery-image img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: var(--white);
  margin-bottom: 5px;
}

.gallery-overlay p {
  font-size: 0.9rem;
  color: var(--light);
}

/* Testimonials Section */
.testimonial-slider-container {
  max-width: 800px;
  margin: 0 auto 40px;
  position: relative;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial-slide.active {
  opacity: 1;
}

.testimonial-card {
  background-color: var(--white);
  border: 1px solid var(--highlight);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  color: #ffb400;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.testimonial-card blockquote {
  font-style: italic;
  flex-grow: 1;
}

.testimonial-author {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-300);
}

.author-name {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0;
}

.author-location {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.testimonial-prev,
.testimonial-next {
  width: 40px;
  height: 40px;
  background-color: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background-color: var(--dark);
}

.testimonial-dots {
  display: flex;
  gap: 10px;
  margin: 0 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--gray-400);
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.dot.active {
  background-color: var(--primary);
  transform: scale(1.3);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  color: var(--primary);
  transition: all var(--transition-speed);
}

.link-more:hover {
  color: var(--secondary);
  gap: 8px;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.contact-icon {
  width: 45px;
  height: 45px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--white);
  flex-shrink: 0;
}

.contact-info h3,
.service-areas h3 {
  margin-bottom: 20px;
}

.contact-item h4 {
  color: var(--white);
  margin-bottom: 5px;
}

.contact-item p {
  color: var(--light);
  margin: 0;
}

.contact-item .small {
  font-size: 0.8rem;
  opacity: 0.7;
}

.service-areas {
  margin-top: 40px;
}

.service-areas p {
  color: var(--light);
  margin-bottom: 15px;
}

.service-areas ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  color: var(--light);
}

.contact-form-container {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 40px;
}

.contact-form {
  color: var(--white);
}

.contact-form h3 {
  color: var(--white);
  margin-bottom: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-group .required {
  color: #ff6b6b;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--highlight);
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 15px;
  padding-right: 40px;
}

.form-group select option {
  background-color: var(--dark);
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--light);
  padding-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 40px;
}

.footer-col {
  margin-bottom: 30px;
}

.footer-logo {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.footer-logo span {
  color: var(--primary);
}

.footer-col p {
  margin-bottom: 20px;
  color: var(--light);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed);
}

.social-link:hover {
  background-color: var(--highlight);
  color: var(--dark);
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--light);
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--highlight);
  padding-left: 5px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.contact-list li svg {
  margin-right: 10px;
  margin-top: 3px;
  color: var(--primary);
  flex-shrink: 0;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Scroll to top button */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99;
}

#scrollToTop.visible {
  opacity: 1;
  transform: translateY(0);
}

#scrollToTop:hover {
  background-color: var(--secondary);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 0;
  width: 350px;
  max-width: 90%;
  opacity: 0;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 9999;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  align-items: center;
  padding: 15px;
}

.toast-icon {
  width: 24px;
  height: 24px;
  margin-right: 15px;
  flex-shrink: 0;
}

.toast-icon.success {
  color: #28a745;
}

.toast-message {
  flex-grow: 1;
}

.toast-title {
  font-weight: 600;
  margin: 0 0 5px;
}

.toast-description {
  color: var(--gray-600);
  margin: 0;
  font-size: 0.9rem;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--gray-500);
  padding: 5px;
  cursor: pointer;
  margin-left: 10px;
}

/* Animation Classes */
.hover-grow {
  transition: transform var(--transition-speed);
}

.hover-grow:hover {
  transform: scale(1.05);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease-out;
}

.animate-on-scroll.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: 2;
  }

  .about-text {
    order: 1;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .carousel-slide h1 {
    font-size: 2.5rem;
  }

  .carousel-slide p {
    font-size: 1.2rem;
  }

  .carousel-content {
    margin-left: 5%;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .nav-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu {
    display: block;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-content {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }
}

@media (max-width: 480px) {
  .carousel-slide h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}
