:root {
  --primary: #2d5a3d;
  --primary-dark: #1a3525;
  --primary-light: #3d7a52;
  --accent: #5c8a6f;
  --bg-light: #f8faf9;
  --text-dark: #1a2e23;
  --text-body: #4a5d54;
  --border-color: #d4e0d9;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Skip to main content link - accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-body);
  line-height: 1.7;
}

/* Navbar */
.navbar {
  background: rgba(26, 46, 35, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.8rem;
  color: #5c8a6f !important;
  transition: color 0.3s;
}

.navbar-brand:hover {
  color: #7ab394 !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  transition: color 0.3s;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover {
  color: #fff !important;
}

.nav-link.active {
  color: #7ab394 !important;
}

/* Scroll Progress */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0;
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a3525 0%, #2d5a3d 50%, #3d7a52 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

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

.hero-image {
  position: relative;
  z-index: 2;
  animation: fadeInRight 0.8s ease-out;
}

.hero-image img {
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero .lead {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn {
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(45, 90, 61, 0.3);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  transform: translateY(-2px);
}

/* Section Styling */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 10px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-body);
  margin-bottom: 3rem;
}

/* Feature Cards */
.feature-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.8rem;
}

.feature-card h4 {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--text-body);
  margin-bottom: 0;
  line-height: 1.7;
}

/* Content Box */
.content-box {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 2px solid var(--border-color);
}

.content-box h4 {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.content-box h4 i {
  color: var(--primary);
  font-size: 1.5rem;
}

/* Process Steps */
.process-step {
  position: relative;
  padding-left: 4rem;
  margin-bottom: 2rem;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.3rem;
}

.process-step h5 {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* Accordion */
.accordion-item {
  border: 2px solid var(--border-color);
  border-radius: 12px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  font-weight: 600;
  color: var(--text-dark);
  background: white;
  font-size: 1.1rem;
  padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  background: var(--bg-light);
  color: var(--primary);
  box-shadow: none;
}

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

.accordion-body {
  padding: 1.5rem;
}

/* Pricing Table */
.pricing-table {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.table {
  margin-bottom: 0;
}

.table thead {
  background: var(--primary);
  color: white;
}

.table thead th {
  border: none;
  padding: 1.25rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.table tbody tr {
  transition: background 0.2s;
}

.table tbody tr:hover {
  background: var(--bg-light);
}

.table tbody td {
  padding: 1.25rem;
  border-color: var(--border-color);
}

.pricing-highlight {
  background: linear-gradient(135deg, rgba(45, 90, 61, 0.1), rgba(92, 138, 111, 0.1));
  font-weight: 700;
}

.pricing-highlight td {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Contact Section */
.contact-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
}

.contact-card h3 {
  font-weight: 800;
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.contact-item i {
  font-size: 1.5rem;
}

/* Call Button Mobile */
.call-now {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(45, 90, 61, 0.4);
  display: none;
}

@media (max-width: 768px) {
  .call-now {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

/* Footer */
footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem 0;
}

/* Utilities */
.bg-light-custom {
  background-color: var(--bg-light);
}

/* Enhanced focus states for accessibility */
a:focus,
button:focus,
.btn:focus,
.nav-link:focus,
.accordion-button:focus {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.2);
}

/* Focus visible for modern browsers */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.2);
}

/* Remove default focus for mouse users, keep for keyboard users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

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

.animate-on-scroll {
  animation: fadeInUp 0.6s ease-out;
}

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: rgba(26, 46, 35, 0.98);
  backdrop-filter: blur(10px);
  color: white;
  z-index: 9998;
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
  transition: bottom 0.5s ease-out;
  padding: 1.5rem 0;
}

.cookie-consent.show {
  bottom: 0;
}

.cookie-consent-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cookie-consent-text {
  flex: 1;
}

.cookie-consent-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-consent-title i {
  color: var(--accent);
  font-size: 1.5rem;
}

.cookie-consent-text p {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-policy-link {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s;
}

.cookie-policy-link:hover {
  color: #7ab394;
}

.cookie-consent-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-consent-buttons .btn {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
}

.cookie-consent-buttons .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
}

.cookie-consent-buttons .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .cookie-consent-buttons {
    flex-direction: column;
  }

  .cookie-consent-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .cookie-consent {
    padding: 1.5rem 0;
  }
}

/* OpenStreetMap */
.map-container {
  height: 400px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 3px solid white;
}

.custom-map-marker {
  background: none;
  border: none;
}

.custom-map-marker i {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
  .map-container {
    height: 300px;
  }
}