:root {
  /* Colors */
  --color-primary: #6B8E23; /* Olive Drab */
  --color-secondary: #DAA520; /* Goldenrod */
  --color-accent: #8B6B3B; /* Dark Khaki for buttons */
  --color-text-dark: #333333;
  --color-text-light: #FDFDFD;
  --color-bg: #F8F8F0; /* Almost White */
  --color-footer-bg: #4F4F3F; /* Dark earth tone */

  --section-bg-1: #F8F8F0;
  --section-bg-2: #E6E6E0;
  --section-bg-3: #DEDECF;
  --section-bg-4: #EDECE5;
  --section-bg-5: #F2F2E9;

  /* Typography */
  --font-primary: 'Merriweather', serif; /* Earthy, classic feel */
  --font-secondary: 'Lato', sans-serif; /* Clean, modern contrast */
  --font-size-base: 18px;
  --line-height-base: 1.7;

  /* Spacing */
  --spacing-unit: 8px;
  --spacing-xs: calc(var(--spacing-unit) * 1);   /* 8px */
  --spacing-sm: calc(var(--spacing-unit) * 2);   /* 16px */
  --spacing-md: calc(var(--spacing-unit) * 3);   /* 24px */
  --spacing-lg: calc(var(--spacing-unit) * 5);   /* 40px */
  --spacing-xl: calc(var(--spacing-unit) * 8);   /* 64px */
  --spacing-xxl: calc(var(--spacing-unit) * 12); /* 96px */

  /* Visual effects */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --transition-speed: 0.35s;
  --transition-easing: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-dark);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-primary);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

h1 {
  font-size: calc(var(--font-size-base) * 2.8);
  letter-spacing: -0.03em;
  font-weight: 700;
}

h2 {
  font-size: calc(var(--font-size-base) * 2.2);
  letter-spacing: -0.02em;
  font-weight: 600;
}

h3 {
  font-size: calc(var(--font-size-base) * 1.8);
  font-weight: 600;
}

h4 {
  font-size: calc(var(--font-size-base) * 1.4);
  font-weight: 500;
}

h5 {
  font-size: calc(var(--font-size-base) * 1.2);
  font-weight: 500;
}

h6 {
  font-size: var(--font-size-base);
  font-weight: 500;
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-easing);
}

a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

ul, ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

li {
  margin-bottom: var(--spacing-xs);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Section Backgrounds with text color control */
.section-bg-1 {
  background-color: var(--section-bg-1);
  color: var(--color-text-dark) !important;
}
.section-bg-1 h1, .section-bg-1 h2, .section-bg-1 h3, .section-bg-1 h4, .section-bg-1 h5, .section-bg-1 h6,
.section-bg-1 p, .section-bg-1 span, .section-bg-1 div, .section-bg-1 a {
  color: var(--color-text-dark) !important;
}

.section-bg-2 {
  background-color: var(--section-bg-2);
  color: var(--color-text-dark) !important;
}
.section-bg-2 h1, .section-bg-2 h2, .section-bg-2 h3, .section-bg-2 h4, .section-bg-2 h5, .section-bg-2 h6,
.section-bg-2 p, .section-bg-2 span, .section-bg-2 div, .section-bg-2 a {
  color: var(--color-text-dark) !important;
}

.section-bg-3 {
  background-color: var(--section-bg-3);
  color: var(--color-text-dark) !important;
}
.section-bg-3 h1, .section-bg-3 h2, .section-bg-3 h3, .section-bg-3 h4, .section-bg-3 h5, .section-bg-3 h6,
.section-bg-3 p, .section-bg-3 span, .section-bg-3 div, .section-bg-3 a {
  color: var(--color-text-dark) !important;
}

.section-bg-4 {
  background-color: var(--section-bg-4);
  color: var(--color-text-dark) !important;
}
.section-bg-4 h1, .section-bg-4 h2, .section-bg-4 h3, .section-bg-4 h4, .section-bg-4 h5, .section-bg-4 h6,
.section-bg-4 p, .section-bg-4 span, .section-bg-4 div, .section-bg-4 a {
  color: var(--color-text-dark) !important;
}

.section-bg-5 {
  background-color: var(--section-bg-5);
  color: var(--color-text-dark) !important;
}
.section-bg-5 h1, .section-bg-5 h2, .section-bg-5 h3, .section-bg-5 h4, .section-bg-5 h5, .section-bg-5 h6,
.section-bg-5 p, .section-bg-5 span, .section-bg-5 div, .section-bg-5 a {
  color: var(--color-text-dark) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-md); /* Organic rounded corners */
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-base) * 0.95);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-speed) var(--transition-easing);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.02em;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text-light);
  border: 1px solid var(--color-accent);
}

.btn-primary:hover {
  background-color: darken(var(--color-accent), 10%);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  box-shadow: var(--shadow-sm);
}

/* Card Component - Claymorphism inspired */
.card {
  background-color: var(--color-bg);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.1), -6px -6px 12px rgba(255, 255, 255, 0.8); /* Claymorphism shadow */
  transition: transform var(--transition-speed) var(--transition-easing), box-shadow var(--transition-speed) var(--transition-easing);
  border: 1px solid rgba(0,0,0,0.05); /* Subtle border */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.12), -8px -8px 16px rgba(255, 255, 255, 0.9);
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
  color: var(--color-primary);
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-base) * 0.9);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  color: var(--color-text-dark);
  background-color: var(--color-bg);
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.05), inset -2px -2px 5px rgba(255, 255, 255, 0.5); /* Subtle neumorphic inset */
  transition: border-color var(--transition-speed) var(--transition-easing), box-shadow var(--transition-speed) var(--transition-easing);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary), 0.2); /* Focus ring */
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Navigation - basic styles for a flexible nav */
nav {
  background-color: var(--color-bg);
  padding: var(--spacing-sm) var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

nav ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0 var(--spacing-md);
}

nav a {
  font-family: var(--font-secondary);
  font-weight: 500;
  color: var(--color-text-dark);
  padding: var(--spacing-xs) 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-speed) var(--transition-easing);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* Footer */
footer {
  background-color: var(--color-footer-bg);
  color: var(--color-text-light);
  padding: var(--spacing-xl) var(--spacing-lg);
  font-size: calc(var(--font-size-base) * 0.9);
  text-align: center;
}

footer a {
  color: var(--color-secondary);
  text-decoration: underline;
}

footer a:hover {
  color: var(--color-primary);
}

/* Utility for Alpine.js x-cloak */
[x-cloak] {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: calc(var(--font-size-base) * 2.2);
  }

  h2 {
    font-size: calc(var(--font-size-base) * 1.8);
  }

  .btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-base);
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav li {
    margin: var(--spacing-xs) 0;
  }

  /* Tailwind 'hidden' class override for mobile nav */
  nav.hidden {
    display: none !important;
  }
}

@media (min-width: 768px) {
  /* Ensure nav is visible on larger screens if hidden by default for mobile */
  nav.hidden {
    display: flex !important;
  }
}

/* Organic Texture Overlay (subtle) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj4KICA8ZmlsdGVyIGlkPSJnIj4KICAgIDxmZU5vaXNlIHR5cGU9InR1cmJ1bGVuY2UiIGJhc2VGcmVxdWVuY3k9IjAuNiIgbnVtT2N0YXZlcz0iMiIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPgogICAgPGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPgogICAgPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDIgLTAuNiIvPgogIDwvZmlsdGVyPgogIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlci11cmw9InVybCgjZykiLz4KPC9zdmc+');
  background-size: 50px 50px;
  opacity: 0.03; /* Very subtle */
  pointer-events: none;
  z-index: -1;
}

/* Subtle border on main content area for structure */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: var(--spacing-lg);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  min-height: 100vh;
}


/* 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;
    }
}