:root {
    /* Colors */
    --color-primary: #285F5D;
    --color-secondary: #F0F0E4;
    --color-background: #FDF0D5;
    --color-footer-bg: #1B3A36;
    --color-button: #3AB795;
    --color-text-dark: #1B3A36;
    --color-text-light: #F0F0E4;
    --color-accent-teal: #3AB795;

    --section-bg-1: #FDF0D5;
    --section-bg-2: #F0F0E4;
    --section-bg-3: #D9E9E0;
    --section-bg-4: #E0F2F1;
    --section-bg-5: #C2DEDC;
    --section-bg-6: #DDF2F1;

    /* Typography */
    --font-heading: 'Merriweather', serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;

    /* Border Radius */
    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
    --shadow-button-hover: 0 8px 15px rgba(58, 183, 149, 0.3);
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.8rem;
    font-weight: 600;
}

h3 {
    font-size: 2.2rem;
    font-weight: 600;
}

h4 {
    font-size: 1.8rem;
    font-weight: 500;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent-teal);
    text-decoration: underline;
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

section:nth-of-type(odd) {
    background-color: var(--section-bg-1);
}

section:nth-of-type(even) {
    background-color: var(--section-bg-2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease-in-out;
    letter-spacing: 0.03em;
    background-color: var(--color-button);
    color: var(--color-text-light);
    box-shadow: var(--shadow-sm);
    background-image: linear-gradient(45deg, var(--color-button) 0%, #30A485 100%); /* Subtle gradient */
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-button-hover);
    background-image: linear-gradient(45deg, #30A485 0%, var(--color-button) 100%);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Images */
.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-md); /* Consistent rounding */
    box-shadow: var(--shadow-sm); /* Soft shadow for depth */
}

/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding: var(--spacing-xl) 0;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    /* Subtle texture overlay */
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXc0NjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjYwIiBoZWlnaHQ9IjYwIiBmaWxsPSIjMUIzQTM2Ii8+PGNpcmNsZSBjeD0iMCIgY3k9IjAiIHI9IjIiIGZpbGw9IiMzMTUxNDkiIG9wYWNpdHk9IjAuMSIvPjxjaXJjbGUgY3g9IjYwIiBjeT0iNjAiIHI9IjIiIGZpbGw9IiMzMTUxNDkiIG9wYWNpdHk9IjAuMSIvPjxjaXJjbGUgY3g9IjMwIiBjeT0iMzAiIHI9IjIiIGZpbGw9IiMzMTUxNDkiIG9wYWNpdHk9IjAuMSIvPjwvZ3ZnPg==');
    background-size: 30px 30px;
}

/* Utility classes for Alpine.js dynamic elements */
[x-cloak] {
    display: none !important;
}

.fade-enter-active, .fade-leave-active {
    transition: opacity 0.5s ease;
}
.fade-enter, .fade-leave-to {
    opacity: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    .header.scrolled .nav-menu li a {
        color: var(--color-text-dark); /* Ensure links are visible on scrolled header */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    .btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 1rem;
    }
}

/* Specific section background colors */
.section-bg-primary { background-color: var(--section-bg-1); }
.section-bg-secondary { background-color: var(--section-bg-2); }
.section-bg-tertiary { background-color: var(--section-bg-3); }
.section-bg-quaternary { background-color: var(--section-bg-4); }
.section-bg-quinary { background-color: var(--section-bg-5); }
.section-bg-senary { background-color: var(--section-bg-6); }

/* Subtle image effects */
.img-natural {
    filter: saturate(1.1) brightness(0.95); /* Slightly richer colors, slightly darker */
    transition: filter 0.3s ease;
}

.img-natural:hover {
    filter: saturate(1.2) brightness(1);
}

/* Focus states for accessibility */
*:focus {
    outline: 2px solid var(--color-accent-teal);
    outline-offset: 2px;
    border-radius: 3px; /* Match button/input radius */
}

/* Alpine.js specific transitions for show/hide */
.transition-opacity-scale {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.transition-opacity-scale-enter-from,
.transition-opacity-scale-leave-to {
    opacity: 0;
    transform: scale(0.95);
}

.transition-opacity-scale-enter-to,
.transition-opacity-scale-leave-from {
    opacity: 1;
    transform: scale(1);
}


/* 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;
    }
}