:root {
  /* Colors */
  --color-primary: #2F4F4F;
  --color-secondary: #F0EAD6;
  --color-background: #FDFBF7;
  --color-footer-bg: #203A3A;
  --color-button: #A2CCA4;
  --color-text-dark: var(--color-primary);
  --color-text-light: #FDFBF7;
  --color-section-bg-1: #FDFBF7;
  --color-section-bg-2: #E8F1F2;
  --color-section-bg-3: #F0EAD6;
  --color-section-bg-4: #D3DEDC;
  --color-section-bg-5: #F2F5EA;
  --color-section-bg-6: #CCE3DE;

  /* Typography */
  --font-family-primary: 'Montserrat', sans-serif;
  --font-family-secondary: 'Lora', serif;
  --font-size-base: 1.125rem; /* 18px */
  --font-size-h1: 3.5rem; /* 56px */
  --font-size-h2: 2.75rem; /* 44px */
  --font-size-h3: 2.25rem; /* 36px */
  --font-size-h4: 1.75rem; /* 28px */
  --font-size-h5: 1.5rem; /* 24px */
  --font-size-h6: 1.25rem; /* 20px */
  --line-height-base: 1.7;
  --letter-spacing-heading: -0.02em;

  /* Spacing */
  --spacing-unit: 1rem; /* 16px */
  --spacing-xs: calc(0.5 * var(--spacing-unit)); /* 8px */
  --spacing-sm: var(--spacing-unit); /* 16px */
  --spacing-md: calc(1.5 * var(--spacing-unit)); /* 24px */
  --spacing-lg: calc(2 * var(--spacing-unit)); /* 32px */
  --spacing-xl: calc(3 * var(--spacing-unit)); /* 48px */
  --spacing-xxl: calc(4 * var(--spacing-unit)); /* 64px */

  /* Border Radius */
  --border-radius: 12px;
  --border-radius-btn: 24px; /* More rounded for buttons */

  /* Shadows */
  --shadow-light: 0 4px 10px rgba(0, 0, 0, 0.08);
  --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-card: 0 6px 15px rgba(0, 0, 0, 0.07);

  /* Transitions */
  --transition-ease: all 0.3s ease-in-out;
  --transition-fast: all 0.2s ease-out;

  /* Gradients */
  --gradient-button: linear-gradient(45deg, #A2CCA4, #8BBF8D);
  --gradient-button-hover: linear-gradient(45deg, #8BBF8D, #A2CCA4);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  font-size: 16px; /* Base for rem units */
}

body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-dark);
  background-color: var(--color-background);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-secondary);
  color: var(--color-primary);
  line-height: 1.2;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  letter-spacing: var(--letter-spacing-heading);
}

h1 { font-size: var(--font-size-h1); font-weight: 700; }
h2 { font-size: var(--font-size-h2); font-weight: 600; }
h3 { font-size: var(--font-size-h3); font-weight: 600; }
h4 { font-size: var(--font-size-h4); font-weight: 500; }
h5 { font-size: var(--font-size-h5); font-weight: 500; }
h6 { font-size: var(--font-size-h6); font-weight: 500; }

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-button);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Classes (complementing Tailwind) */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

.section-padding {
  padding-top: var(--spacing-xxl);
  padding-bottom: var(--spacing-xxl);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-btn);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition-ease);
  box-shadow: var(--shadow-light);
  overflow: hidden; /* For gradient animation */
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-button);
  color: var(--color-text-light);
  border: 1px solid var(--color-button);
}

.btn-primary:hover {
  background: var(--gradient-button-hover);
  box-shadow: var(--shadow-heavy);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  border: 1px solid var(--color-secondary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  box-shadow: var(--shadow-heavy);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-light);
}

/* Cards */
.card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: var(--spacing-lg);
  transition: var(--transition-ease);
  overflow: hidden;
  position: relative;
}

.card:hover {
  box-shadow: var(--shadow-heavy);
  transform: translateY(-5px);
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-control {
  display: block;
  width: 100%;
  padding: var(--spacing-sm);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-dark);
  background-color: white;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-button);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(162, 204, 164, 0.25); /* Subtle focus ring */
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

label {
  display: inline-block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--color-primary);
}

/* Alpine.js specific styles for transitions */
[x-cloak] { display: none !important; }

.fade-enter-active, .fade-leave-active {
  transition: opacity var(--transition-fast);
}
.fade-enter, .fade-leave-to {
  opacity: 0;
}

.slide-down-enter-active, .slide-down-leave-active {
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.slide-down-enter, .slide-down-leave-to {
  opacity: 0;
  transform: translateY(-20px);
}

/* Sections with varying background colors */
.section-bg-1 { background-color: var(--color-section-bg-1); }
.section-bg-2 { background-color: var(--color-section-bg-2); }
.section-bg-3 { background-color: var(--color-section-bg-3); }
.section-bg-4 { background-color: var(--color-section-bg-4); }
.section-bg-5 { background-color: var(--color-section-bg-5); }
.section-bg-6 { background-color: var(--color-section-bg-6); }

/* Footer */
.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-text-light);
  padding: var(--spacing-xxl) 0;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--color-secondary);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-button);
  text-decoration: underline;
}

/* Organic touch with subtle texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSI4IiBjeT0iOCIgcj0iMSIgc3Ryb2tlPSIjMDAwIiBzdHJvc3ktd2lkdGg9IjAuMiIgZmlsbD0iI0ZGRkZGRiIgZmlsbC1vcGFjaXR5PSIwLjAiLz48L3N2Zz4='); /* Subtle noise texture */
  opacity: 0.03;
  pointer-events: none;
  z-index: -1;
}

/* Media Queries */
@media (max-width: 1024px) {
  :root {
    --font-size-h1: 3rem;
    --font-size-h2: 2.25rem;
    --font-size-h3: 1.8rem;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-base: 1rem;
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.6rem;
    --spacing-xl: calc(2.5 * var(--spacing-unit));
    --spacing-xxl: calc(3 * var(--spacing-unit));
  }

  .section-padding {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
  }

  .btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.4rem;
  }

  .container {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
  }
}

/* Scrollbar Styling (Webkit) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-background);
}

::-webkit-scrollbar-thumb {
  background: var(--color-button);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Selection Styling */
::selection {
  background-color: var(--color-button);
  color: var(--color-text-light);
}
::-moz-selection {
  background-color: var(--color-button);
  color: var(--color-text-light);
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-button);
  outline-offset: 2px;
}

.no-outline-on-click:focus:not(:focus-visible) {
  outline: none;
}

/* Custom organic divider */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-secondary);
  margin: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0) 0%, var(--color-secondary) 50%, rgba(0,0,0,0) 100%);
  opacity: 0.5;
}


/* 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;
    }
}