:root {
    /* Colors */
    --color-primary: #5D8A74;
    --color-secondary: #C9E4D3;
    --color-accent: #A2C4B7; /* Derived from primary/secondary */
    --color-background: #F0F5EE;
    --color-footer-bg: #4A6E5C;
    --color-text-dark: #333C3B;
    --color-text-light: #F8FBF7;
    --color-section-1: #E8F0EA;
    --color-section-2: #F8FBF7;
    --color-section-3: #F0F5EE;
    --color-section-4: #E2EDE4;
    --color-section-5: #D9E5DC;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lato', sans-serif;
    --font-size-base: 1rem; /* 16px */
    --line-height-base: 1.6;
    --line-height-heading: 1.2;

    /* Spacing */
    --spacing-unit: 0.5rem; /* 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 */

    /* Border Radius */
    --border-radius-sm: 0.375rem; /* 6px */
    --border-radius-md: 0.75rem; /* 12px */
    --border-radius-lg: 1.25rem; /* 20px */
    --border-radius-pill: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-input-focus: 0 0 0 3px rgba(93, 138, 116, 0.3); /* Primary color with transparency */
    --shadow-card-hover-glow: 0 0 15px rgba(201, 228, 211, 0.6); /* Secondary color glow */
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    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; /* Prevent horizontal scroll due to animations */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: var(--line-height-heading);
    color: var(--color-primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    font-weight: 500; /* Cormorant Garamond default */
}

h1 { font-size: 3.5rem; font-weight: 600; letter-spacing: -0.05em; }
h2 { font-size: 2.75rem; font-weight: 600; }
h3 { font-size: 2.25rem; font-weight: 500; }
h4 { font-size: 1.75rem; font-weight: 500; }
h5 { font-size: 1.375rem; font-weight: 500; }
h6 { font-size: 1.125rem; font-weight: 500; }

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

ul, ol {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

li {
    margin-bottom: var(--spacing-xs);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: saturate(0.9) brightness(1.05); /* Slightly desaturated to match palette */
}

/* Layout & Structure */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

section {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

section:nth-of-type(odd) {
    background-color: var(--color-section-1);
}

section:nth-of-type(even) {
    background-color: var(--color-section-2);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(240, 245, 238, 0.7); /* Background color with transparency */
    backdrop-filter: blur(10px); /* Glassmorphism blur */
    border-bottom: 1px solid rgba(201, 228, 211, 0.4); /* Soft border */
    padding: var(--spacing-sm) 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.header-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.header-logo::before {
    content: '🌿'; /* Organic leaf-like symbol */
    font-size: 1.2em;
    line-height: 1;
    display: inline-block;
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--spacing-lg);
}

.nav-menu-item a {
    color: var(--color-text-dark);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu-item a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-menu-item a:hover::after,
.nav-menu-item a.active::after {
    width: 100%;
}

.nav-menu-item a:hover {
    color: var(--color-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--border-radius-lg); /* Softly rounded */
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-text-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.2); /* Gentle inner shadow */
}

.btn:hover {
    transform: translateY(-2px) scale(1.02); /* Slight scale and lift */
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%); /* Color shift */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
}

/* Cards */
.card {
    background-color: var(--color-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-card-hover-glow); /* Faint glow */
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 200px; /* Example fixed height for images */
    object-fit: cover;
    display: block;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1); /* Light glassmorphism overlay */
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
    opacity: 1;
}

.card:hover .card-image::after {
    opacity: 0; /* Remove overlay on hover for clearer image */
}

.card-content {
    padding: var(--spacing-md);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: var(--spacing-xs);
}

.card-text {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-sm);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--color-text-dark);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--color-secondary);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    color: var(--color-text-dark);
    background-color: var(--color-background);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-input-focus); /* Light focus-glow */
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%235A7C6B" fill-opacity="0.1" d="M 0 0 L 50 100 L 100 0 Z M 0 100 L 50 0 L 100 100 Z" /></svg>'); /* Subtle organic pattern */
    background-size: 100px 100px;
    opacity: 0.15;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.footer-col h4 {
    color: var(--color-text-light);
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-col ul li a {
    color: var(--color-secondary);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--color-text-light);
    text-decoration: underline;
}

.footer-social-icons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.footer-social-icons a {
    color: var(--color-secondary);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-social-icons a:hover {
    color: var(--color-text-light);
}

.footer-bottom {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(201, 228, 211, 0.2);
    font-size: 0.875rem;
    color: var(--color-secondary);
}

/* Alpine.js specific styles (for x-show/x-transition) */
/* Fade in and slide up (for content sections) */
.fade-slide-up-enter-active {
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-slide-up-enter-from {
    opacity: 0;
    transform: translateY(20px);
}
.fade-slide-up-enter-to {
    opacity: 1;
    transform: translateY(0);
}

/* General transitions for interactive elements */
[x-cloak] { display: none !important; }

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.8rem; }
    .nav-menu {
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    .header-inner {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-social-icons {
        justify-content: center;
    }
    .card-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.9rem;
    }
    .card-image {
        height: 150px;
    }
    .nav-menu-item a {
        font-size: 0.9rem;
    }
}

/* Subtle glowing accents */
.glowing-text {
    position: relative;
    color: var(--color-primary);
    text-shadow: 0 0 5px var(--color-accent), 0 0 10px var(--color-accent);
}

.glowing-element {
    box-shadow: 0 0 8px rgba(201, 228, 211, 0.7), 0 0 16px rgba(201, 228, 211, 0.4);
    border-radius: var(--border-radius-md);
    transition: box-shadow 0.3s ease;
}

.glowing-element:hover {
    box-shadow: 0 0 12px rgba(201, 228, 211, 0.9), 0 0 24px rgba(201, 228, 211, 0.6);
}

/* Soft focus/bokeh effect for images (applied via Tailwind utilities or inline for specific elements) */
/* This is a visual suggestion for images, not a direct CSS rule to apply to all images, but rather a characteristic of how images should be prepared. */
/* If a specific class is needed, e.g., for hero images: */
.img-soft-focus {
    filter: blur(0.5px) saturate(0.9) brightness(1.05); /* Subtle blur + existing desaturation */
    /* For actual bokeh, it's usually done at the source image level or with more complex CSS filters/SVG. */
}

/* Custom section background colors */
.section-bg-1 { background-color: var(--color-section-1); }
.section-bg-2 { background-color: var(--color-section-2); }
.section-bg-3 { background-color: var(--color-section-3); }
.section-bg-4 { background-color: var(--color-section-4); }
.section-bg-5 { background-color: var(--color-section-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;
    }
}