:root {
    --color-primary: #2E8B57;
    --color-secondary: #F0F8FF;
    --color-accent: #50C878;
    --color-background: #FDFDFC;
    --color-footer-bg: #2E474F;
    --color-text-light: #FDFDFC;
    --color-text-dark: #333333;
    --color-section-1: #FDFDFC;
    --color-section-2: #E0F2F1;
    --color-section-3: #D4EEE3;

    --font-family-heading: 'Merriweather Sans', sans-serif;
    --font-family-body: 'Open Sans', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;

    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;

    --shadow-soft-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-soft-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-soft-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans:wght@300;400;700&family=Open+Sans:wght@300;400;600&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-body);
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: var(--spacing-lg);
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: var(--spacing-md);
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

ul, ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

li {
    margin-bottom: var(--spacing-xs);
}

/* Layout and Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.section-1 {
    background-color: var(--color-section-1);
}

.section-2 {
    background-color: var(--color-section-2);
}

.section-3 {
    background-color: var(--color-section-3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-family: var(--font-family-heading);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-soft-sm);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-soft-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-soft-md);
    transform: translateY(-2px);
}

/* Cards */
.card {
    background-color: var(--color-secondary);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-soft-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft-lg);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--color-primary);
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    background-color: var(--color-background);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(80, 200, 120, 0.2); /* Accent color with transparency */
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.footer a {
    color: var(--color-accent);
}

.footer a:hover {
    color: var(--color-text-light);
}

/* Alpine.js specific styles */
[x-cloak] {
    display: none !important;
}

/* Transitions for Alpine.js elements */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.5s ease;
}
.fade-enter, .fade-leave-to /* .fade-leave-active in <2.1.8 */ {
    opacity: 0;
}

.slide-up-enter-active, .slide-up-leave-active {
    transition: all 0.5s ease-out;
}
.slide-up-enter, .slide-up-leave-to {
    opacity: 0;
    transform: translateY(20px);
}

/* Visual Enhancements */
/* Subtle Gradient Overlay on Hero/Header */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-text-light);
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotateGradient 15s linear infinite;
    opacity: 0.3;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-section h1 {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    text-shadow: var(--shadow-soft-sm);
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg) auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Glassmorphism for specific elements (e.g., modals, popups, or special cards) */
.glass-effect {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft-md);
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    .hero-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.9rem;
    }
}

/* Utility classes (can complement Tailwind) */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mt-lg { margin-top: var(--spacing-lg); }
.pt-lg { padding-top: var(--spacing-lg); }
.pb-lg { padding-bottom: var(--spacing-lg); }
.grid-cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--spacing-md); }
.grid-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-md); }

@media (max-width: 768px) {
    .grid-cols-2, .grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

/* Subtle background texture for sections */
.section-1, .section-2, .section-3 {
    position: relative;
}

.section-1::before, .section-2::before, .section-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zm0 18v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0 18v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zm0 18v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0 18v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM50 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zm0 18v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0 18v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM17 9v-3h-3v3h-3v3h3v3h3v-3h3v-3h-3zm0 18v-3h-3v3h-3v3h3v3h3v-3h3v-3h-3zm0 18v-3h-3v3h-3v3h3v3h3v-3h3v-3h-3zm15-27v-3h-3v3h-3v3h3v3h3v-3h3v-3h-3zm0 18v-3h-3v3h-3v3h3v3h3v-3h3v-3h-3zm0 18v-3h-3v3h-3v3h3v3h3v-3h3v-3h-3zm15-27v-3h-3v3h-3v3h3v3h3v-3h3v-3h-3zm0 18v-3h-3v3h-3v3h3v3h3v-3h3v-3h-3zm0 18v-3h-3v3h-3v3h3v3h3v-3h3v-3h-3z'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.05;
    z-index: -1;
}

/* Focus states for accessibility */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: var(--border-radius-sm);
}


/* 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;
    }
}