:root {
  --primary-color: #2d5016;
  --primary-dark: #1f3a0f;
  --secondary-color: #d4a574;
  --accent-color: #7c9a5f;
  --light-bg: #f7f9f5;
  --dark-bg: #2a3f1a;
  --text-dark: #2d3e1f;
  --text-light: #5f7a4a;
  --border-color: #d9e5ce;
  --success-color: #4a7c59;
  --shadow-sm: 0 1px 2px 0 rgba(45, 80, 22, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(45, 80, 22, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(45, 80, 22, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(45, 80, 22, 0.15);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.navbar {
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  font-size: 1.75rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color);
}

.hero-section {
  position: relative;
  height: 650px;
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.carousel-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(45, 80, 22, 0.88) 0%, rgba(31, 58, 15, 0.82) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-headline {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out;
}

.hero-subheadline {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-cta-group {
  animation: fadeInUp 1.2s ease-out;
}

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

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid white;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-indicator.active {
  background: white;
  width: 40px;
  border-radius: 6px;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

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

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.service-features {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.service-features li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
}

.service-features li:before {
  content: "✓";
  color: var(--success-color);
  font-weight: bold;
}

.why-choose-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  height: 100%;
  transition: var(--transition);
  border: 2px solid transparent;
}

.why-choose-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.why-choose-icon {
  font-size: 3rem;
  color: var(--success-color);
  margin-bottom: 1rem;
}

.why-choose-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  height: 300px;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: white;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--secondary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
}

.image-comparison-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.comparison-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  user-select: none;
}

.comparison-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.after-image {
  clip-path: inset(0 50% 0 0);
}

.comparison-slider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: white;
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 10;
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  gap: 2px;
}

.slider-button i {
  font-size: 1rem;
  color: var(--primary-color);
}

.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.testimonial-rating {
  color: #fbbf24;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.25rem;
}

.testimonial-info h5 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.testimonial-info p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

.service-areas-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.area-badge {
  background: white;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  color: var(--text-dark);
  border: 2px solid var(--border-color);
  transition: var(--transition);
}

.area-badge:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.contact-section {
  background: linear-gradient(135deg, #228B22 0%, #1a6e1a 100%);
}

.contact-info {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-form-wrapper {
  background: white;
  border-radius: 12px;
  padding: 2rem;
}

.form-control, .form-select {
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.15);
}

.footer {
  background: var(--dark-bg);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  display: block;
  padding: 0.25rem 0;
}

.footer-links a:hover {
  color: white;
  padding-left: 0.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 8px;
  margin-right: 0.5rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

@media (max-width: 991px) {
  .hero-section {
    height: 500px;
  }

  .section-padding {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-headline {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .hero-section {
    height: 400px;
  }

  .section-padding {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-headline {
    font-size: 1.5rem;
  }

  .comparison-wrapper {
    height: 300px;
  }
}

html {
  scroll-behavior: smooth;
}

img[data-src] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[data-src].loaded {
  opacity: 1;
}
