:root {
  --bs-primary: #2e7d32;
  --bs-secondary: #81c784;
  --bs-background: #f8f8f8;
  --bs-footer-bg: #388e3c;
  --bs-button-color: #4caf50;
  --bs-section-bg-1: #ffffff;
  --bs-section-bg-2: #e8f5e9;
  --bs-section-bg-3: #f1f8e9;
  --bs-section-bg-4: #c8e6c9;

  --bs-font-sans-serif: 'Montserrat', sans-serif;
  --bs-font-serif: 'Merriweather', serif;

  --bs-border-radius: 0.75rem;
  --bs-border-radius-sm: 0.5rem;
  --bs-border-radius-lg: 1rem;

  --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);

  --bs-transition-base: all 0.3s ease-in-out;
}

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

body {
  font-family: var(--bs-font-sans-serif);
  background-color: var(--bs-background);
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--bs-font-serif);
  color: var(--bs-primary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

h1 {
  font-weight: 700;
  font-size: calc(1.75rem + 1.5vw);
  letter-spacing: -0.03em;
}

h2 {
  font-weight: 700;
  font-size: calc(1.5rem + 0.9vw);
  letter-spacing: -0.02em;
}

p {
  font-family: var(--bs-font-sans-serif);
  margin-bottom: 1rem;
  color: #555;
}

a {
  color: var(--bs-primary);
  text-decoration: none;
  transition: var(--bs-transition-base);
}

a:hover {
  color: var(--bs-secondary);
  text-decoration: underline;
}

.btn {
  font-family: var(--bs-font-sans-serif);
  font-weight: 600;
  border-radius: var(--bs-border-radius);
  padding: 0.75rem 1.75rem;
  transition: var(--bs-transition-base);
  box-shadow: var(--bs-box-shadow-sm);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background-color: var(--bs-button-color);
  border-color: var(--bs-button-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: #43a047;
  border-color: #43a047;
  transform: translateY(-2px);
  box-shadow: var(--bs-box-shadow);
}

.btn-outline-primary {
  color: var(--bs-button-color);
  border-color: var(--bs-button-color);
}

.btn-outline-primary:hover {
  background-color: var(--bs-button-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--bs-box-shadow);
}

.form-control {
  border-radius: var(--bs-border-radius-sm);
  border-color: #ddd;
  padding: 0.75rem 1rem;
  box-shadow: none;
  transition: var(--bs-transition-base);
}

.form-control:focus {
  border-color: var(--bs-secondary);
  box-shadow: 0 0 0 0.25rem rgba(129, 199, 132, 0.25);
}

.navbar {
  background-color: var(--bs-section-bg-1);
  box-shadow: var(--bs-box-shadow-sm);
  padding: 1rem 0;
}

.navbar-brand {
  font-family: var(--bs-font-serif);
  font-weight: 700;
  color: var(--bs-primary) !important;
  font-size: 1.75rem;
  letter-spacing: -0.05em;
}

.nav-link {
  font-family: var(--bs-font-sans-serif);
  font-weight: 500;
  color: #555 !important;
  margin: 0 0.75rem;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--bs-transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--bs-primary);
  transition: var(--bs-transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--bs-primary) !important;
}

.section-padding {
  padding: 4rem 0;
}

.section-bg-1 {
  background-color: var(--bs-section-bg-1);
}

.section-bg-2 {
  background-color: var(--bs-section-bg-2);
}

.section-bg-3 {
  background-color: var(--bs-section-bg-3);
}

.section-bg-4 {
  background-color: var(--bs-section-bg-4);
}

.card {
  border: none;
  border-radius: var(--bs-border-radius-lg);
  box-shadow: var(--bs-box-shadow);
  transition: var(--bs-transition-base);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--bs-box-shadow-lg);
}

.card-title {
  font-family: var(--bs-font-serif);
  color: var(--bs-primary);
  font-weight: 700;
}

.card-text {
  color: #666;
}

.img-fluid {
  border-radius: var(--bs-border-radius-sm);
}

.footer {
  background-color: var(--bs-footer-bg);
  color: #e0e0e0;
  padding: 3rem 0;
  font-family: var(--bs-font-sans-serif);
  box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.1);
}

.footer a {
  color: #e0e0e0;
  text-decoration: none;
}

.footer a:hover {
  color: var(--bs-secondary);
  text-decoration: underline;
}

.footer h5 {
  color: #fff;
  font-family: var(--bs-font-serif);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.text-primary-custom {
  color: var(--bs-primary) !important;
}

.text-secondary-custom {
  color: var(--bs-secondary) !important;
}

/* Custom Alpine.js transitions */
[x-cloak] {
  display: none !important;
}

.fade-enter-active, .fade-leave-active {
  transition: opacity 0.5s ease-in-out;
}
.fade-enter-from, .fade-leave-to {
  opacity: 0;
}

.slide-up-enter-active, .slide-up-leave-active {
  transition: all 0.4s ease-out;
}
.slide-up-enter-from, .slide-up-leave-to {
  opacity: 0;
  transform: translateY(20px);
}

/* Specific component enhancements */
.hero-section {
  background: linear-gradient(135deg, var(--bs-section-bg-2) 0%, var(--bs-section-bg-4) 100%);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: var(--bs-border-radius-lg);
  border-bottom-right-radius: var(--bs-border-radius-lg);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background-color: rgba(var(--bs-primary-rgb), 0.05);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  transform: rotate(20deg);
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background-color: rgba(var(--bs-secondary-rgb), 0.08);
  border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  transform: rotate(-30deg);
  z-index: 0;
}

.hero-section h1 {
  color: var(--bs-primary);
  font-size: calc(2.5rem + 2.5vw);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-section p {
  font-size: 1.25rem;
  color: #444;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  position: relative;
  z-index: 1;
}

.shadow-soft {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

/* Utility classes for spacing */
.mt-5-custom { margin-top: 3rem !important; }
.mb-5-custom { margin-bottom: 3rem !important; }
.py-6 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.py-7 { padding-top: 5rem !important; padding-bottom: 5rem !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.5rem;
  }
  .hero-section {
    padding: 4rem 0;
  }
  .hero-section h1 {
    font-size: calc(2rem + 1.5vw);
  }
  .hero-section p {
    font-size: 1rem;
  }
  .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .section-padding {
    padding: 3rem 0;
  }
  .hero-section h1 {
    font-size: calc(1.75rem + 1vw);
  }
}


/* Cookie Banner Additional Styles for Bootstrap */
.cookie-banner-custom {
    z-index: 1060;
    backdrop-filter: blur(10px);
}

.cookie-banner-custom .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}