/* Base Styles */
:root {
  --primary: #2A7E43;
  --secondary: #68A678;
  --accent: #E8B75F;
  --background: #F8F7F2;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --footer-bg: #1D5B30;
  --light-accent: #E9F1EA;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--background);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

.btn {
  border-radius: 0;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--secondary);
  border-color: var(--secondary);
  box-shadow: none;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary);
  color: var(--text-light);
  box-shadow: none;
}

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--text-dark);
}

.btn-accent:hover, .btn-accent:focus {
  background-color: #d9a84d;
  border-color: #d9a84d;
  color: var(--text-dark);
}

/* Navigation */
.navbar {
  background-color: var(--text-light);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  height: 40px;
}

.navbar-toggler {
  border: none;
  outline: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(42, 126, 67, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

/* Hero Section */
.hero {
  position: relative;
  padding: 8rem 0;
  background-color: var(--light-accent);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  border-radius: 10px;
  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: auto;
}

/* Features Section */
.features {
  padding: 5rem 0;
}

.feature-card {
  padding: 2rem;
  border-radius: 10px;
  background-color: var(--text-light);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  transition: var(--transition);
  height: 100%;
  border-left: 3px solid transparent;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-left: 3px solid var(--primary);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: var(--light-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon i {
  font-size: 1.8rem;
  color: var(--primary);
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: var(--light-accent);
}

.about-image img {
  border-radius: 10px;
  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: auto;
}

/* Services Section */
.services {
  padding: 5rem 0;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 2rem;
  height: 300px;
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  padding: 2rem;
  color: var(--text-light);
  transition: var(--transition);
}

.service-card:hover .service-image {
  transform: scale(1.05);
}

.service-card:hover .service-overlay {
  background: linear-gradient(to top, rgba(42,126,67,0.9), rgba(42,126,67,0.5), rgba(0,0,0,0));
}

.service-overlay h3 {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background-color: var(--light-accent);
}

.testimonial-card {
  background-color: var(--text-light);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: "\201C";
  font-size: 4rem;
  position: absolute;
  top: 10px;
  left: 20px;
  color: var(--light-accent);
  font-family: serif;
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 500;
  color: var(--primary);
}

/* Contact Section */
.contact {
  padding: 5rem 0;
}

.contact-form {
  background-color: var(--text-light);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-control {
  border-radius: 0;
  border: 1px solid #e9e9e9;
  padding: 0.75rem;
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--primary);
}

.contact-info {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 2rem;
  border-radius: 10px;
  height: 100%;
}

.contact-info h3 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.contact-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  margin-right: 1rem;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon i {
  color: var(--text-light);
}

.contact-text {
  flex: 1;
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 1.5rem;
}

.footer-links h4 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-light);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
}

.footer-bottom p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.6);
}

/* Map */
#map {
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--text-light);
  padding: 1.5rem;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: none;
}

.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  display: none;
}

.cookie-settings-content {
  background-color: var(--text-light);
  border-radius: 10px;
  padding: 2rem;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-category {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e9e9e9;
}

.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Analytics Page */
.analytics-article {
  background-color: var(--text-light);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  border-left: 3px solid var(--primary);
}

.analytics-article h3 {
  margin-bottom: 1rem;
}

.analytics-article p:last-child {
  margin-bottom: 0;
}

/* Thanks Page */
.thanks-container {
  padding: 8rem 0;
  text-align: center;
}

.thanks-icon {
  width: 100px;
  height: 100px;
  background-color: var(--light-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.thanks-icon i {
  font-size: 3rem;
  color: var(--primary);
}

/* Privacy Pages */
.privacy-content {
  background-color: var(--text-light);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.privacy-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-content h2:first-child {
  margin-top: 0;
}

.privacy-content ul {
  margin-bottom: 1.5rem;
}

/* Utilities */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--accent);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
}

.bg-light-accent {
  background-color: var(--light-accent);
}

.text-primary {
  color: var(--primary) !important;
}

/* Tel input customization */
.iti {
  width: 100%;
}

.iti__flag {
  background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.1/build/img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .iti__flag {
    background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.1/build/img/flags@2x.png");
  }
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .hero {
    padding: 6rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding: 4rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .contact-info {
    margin-top: 2rem;
  }
  
  .service-card {
    height: 250px;
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
  }
  
  .feature-icon i {
    font-size: 1.5rem;
  }
  
  .service-overlay {
    padding: 1rem;
  }
  
  .service-overlay h3 {
    font-size: 1.2rem;
  }
}