:root {
  /* Colors */
  --color-primary: #28A745;
  --color-secondary: #6BF26A;
  --color-background: #F0F8F1;
  --color-footer-bg: #1F2326;
  --color-text-light: #F0F8F1;
  --color-text-dark: #1F2326;
  --color-text-muted: #A0A0A0; /* A soft grey for less prominent text */

  --section-bg-1: #E6F2E6;
  --section-bg-2: #D9EBD9;
  --section-bg-3: #CCE4CD;
  --section-bg-4: #BFDCC0;
  --section-bg-5: #B2D4B3;

  /* Fonts */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;

  /* Spacing */
  --spacing-unit: 1rem;
  --spacing-md: calc(var(--spacing-unit) * 1.5);
  --spacing-lg: calc(var(--spacing-unit) * 2.5);
  --spacing-xl: calc(var(--spacing-unit) * 4);

  /* Border Radius */
  --border-radius-sm: 0.5rem;
  --border-radius-md: 1.5rem; /* For pill-shaped buttons */

  /* Shadows */
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08); /* A general soft shadow */
  --shadow-button: 0 6px 16px rgba(40, 167, 69, 0.2); /* Specific for buttons */
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--color-text-dark);
  background-color: var(--color-background);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  line-height: 1.2;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.8rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 2.2rem;
}

h4 {
  font-size: 1.8rem;
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-secondary);
  text-decoration: none;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
  padding: var(--spacing-unit) var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent; /* Default transparent */
}

.header.scrolled {
  background-color: var(--section-bg-1);
  box-shadow: var(--shadow-soft);
}

.header .logo img {
  height: 40px; /* Adjust as needed */
  display: block;
}

.header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--spacing-lg);
}

.header nav ul li a {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-dark);
  position: relative;
  padding: 0.5rem 0;
  overflow: hidden;
}

.header nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background-color: var(--color-secondary);
  transition: left 0.3s ease-out;
}

.header nav ul li a:hover::after {
  left: 0;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  border: none;
  border-radius: var(--border-radius-md); /* Pill shape */
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text-light);
  background: linear-gradient(135deg, var(--color-primary) 0%, darken(var(--color-primary), 10%) 100%);
  box-shadow: var(--shadow-button);
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Custom darken function for CSS (not natively supported, needs preprocessor or JS)
   For pure CSS, we'll approximate with a fixed darker shade or adjust hex values manually.
   Let's assume a slightly darker shade for the gradient end. */
.btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, #228B22 100%); /* #228B22 is a darker green */
}

.btn:hover {
  background: linear-gradient(45deg, var(--color-primary) 0%, #228B22 100%); /* Change gradient direction */
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3); /* Slightly increased shadow */
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.2);
}

/* Section Backgrounds */
.section-bg-1 {
  background-color: var(--section-bg-1);
}

.section-bg-2 {
  background-color: var(--section-bg-2);
}

.section-bg-3 {
  background-color: var(--section-bg-3);
}

.section-bg-4 {
  background-color: var(--section-bg-4);
}

.section-bg-5 {
  background-color: var(--section-bg-5);
}

/* Card Styles - Example */
.card {
  background-color: white;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-soft);
  padding: var(--spacing-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Footer Styles */
.footer {
  background-color: var(--color-footer-bg);
  color: var(--color-text-light);
  padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-md);
  font-size: 0.9rem;
}

.footer .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h4 {
  color: var(--color-text-light);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-unit);
  font-weight: 600;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 0.7rem;
}

.footer ul li a {
  color: var(--color-text-muted);
  font-weight: 400;
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding-bottom: 2px;
}

.footer ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-primary);
  transition: width 0.3s ease-out;
}

.footer ul li a:hover {
  color: var(--color-primary);
}

.footer ul li a:hover::after {
  width: 100%;
}

.footer .social-icons {
  display: flex;
  gap: var(--spacing-unit);
  margin-top: var(--spacing-unit);
}

.footer .social-icons a {
  color: var(--color-text-muted);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer .social-icons a:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.footer .copyright {
  text-align: center;
  margin-top: var(--spacing-md);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Utility Classes (to complement Tailwind) */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.text-center {
  text-align: center;
}

.icon-primary {
  color: var(--color-primary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .header {
    padding: var(--spacing-unit) var(--spacing-md);
  }

  .header nav ul {
    gap: var(--spacing-md);
  }

  .footer .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer .social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .header nav ul {
    display: none; /* Mobile navigation would typically be a hamburger menu */
  }
}

/* Keyframe Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-element {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0; /* Ensure it's hidden before animation */
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}