:root {
    /* Colors */
    --color-primary: #4CAF50; /* Green 500 */
    --color-secondary: #8BC34A; /* Light Green 500 */
    --color-accent: #2E7D32; /* Green 800 for buttons */
    --color-background: #F0F4F8; /* Blue Grey 50 - Light background */
    --color-footer-bg: #304049; /* Blue Grey 800 - Dark footer */
    --color-text-dark: #304049; /* Dark text for readability */
    --color-text-light: #F0F4F8; /* Light text for dark backgrounds */
    --color-card-bg-1: #E8F5E9; /* Light Green 50 for sections */
    --color-card-bg-2: #F1F8E9; /* Light Green 100 for sections */
    --color-card-bg-3: #E3F2FD; /* Light Blue 50 for sections */
    --color-card-bg-4: #FFFDE7; /* Yellow 50 for sections */
    --color-card-bg-5: #F9FBE7; /* Lime 50 for sections */

    /* Typography */
    --font-family-heading: 'Poppins', sans-serif;
    --font-family-body: 'Roboto', sans-serif;
    --font-size-base: 1rem; /* 16px */
    --line-height-body: 1.65;
    --line-height-heading: 1.25;

    /* Spacing */
    --spacing-xs: 0.5rem;   /* 8px */
    --spacing-sm: 1rem;     /* 16px */
    --spacing-md: 1.5rem;   /* 24px */
    --spacing-lg: 2rem;     /* 32px */
    --spacing-xl: 3rem;     /* 48px */
    --spacing-xxl: 4rem;    /* 64px */

    /* Border Radius */
    --border-radius-sm: 0.5rem; /* 8px */
    --border-radius-md: 1rem;   /* 16px */
    --border-radius-lg: 1.5rem; /* 24px */

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Ensure base is 16px for rem calculations */
}

body {
    font-family: var(--font-family-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-body);
    color: var(--color-text-dark);
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--color-text-dark);
    line-height: var(--line-height-heading);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em; /* Subtle tightening for modern feel */
}

h1 {
    font-size: 3rem; /* 48px */
    font-weight: 700;
}

h2 {
    font-size: 2.25rem; /* 36px */
    font-weight: 600;
}

h3 {
    font-size: 1.75rem; /* 28px */
    font-weight: 600;
}

h4 {
    font-size: 1.25rem; /* 20px */
    font-weight: 500;
}

h5 {
    font-size: 1rem; /* 16px */
    font-weight: 500;
}

h6 {
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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;
}

/* Lists */
ul, ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    padding: 0;
}

li {
    margin-bottom: var(--spacing-xs);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family-heading);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    border-radius: var(--border-radius-lg); /* More rounded than default */
    padding: var(--spacing-sm) var(--spacing-lg); /* Slightly more padding */
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-sm) var(--spacing-lg);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-text {
    background: none;
    color: var(--color-primary);
    box-shadow: none;
    padding: var(--spacing-xs) var(--spacing-sm);
}

.btn-text:hover,
.btn-text:focus {
    color: var(--color-accent);
    text-decoration: underline;
    background-color: rgba(var(--color-primary), 0.05);
    transform: none;
    box-shadow: none;
}

/* Cards & Sections - Organic Minimalism */
.card {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.section-hero {
    background-color: var(--color-card-bg-1);
    padding: calc(var(--spacing-xxl) * 1.5) var(--spacing-lg);
    text-align: center;
    overflow: hidden;
    position: relative;
    border-bottom-left-radius: var(--border-radius-lg);
    border-bottom-right-radius: var(--border-radius-lg);
}

.section-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: radial-gradient(circle at 50% 10%, var(--color-secondary) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.section-hero > * {
    position: relative;
    z-index: 1;
}

.section {
    padding: var(--spacing-xxl) var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius-md);
}

.section:nth-of-type(even) {
    background-color: var(--color-card-bg-2);
}

.section:nth-of-type(odd) {
    background-color: var(--color-card-bg-3);
}

/* 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 rgba(var(--color-text-dark), 0.15);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family-body);
    font-size: var(--font-size-base);
    color: var(--color-text-dark);
    background-color: white;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--color-primary), 0.2);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    margin-top: var(--spacing-xxl);
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
}

.footer a {
    color: var(--color-secondary);
}

.footer a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Alpine.js Transitions (x-transition) */
[x-cloak] {
    display: none !important;
}

[x-transition:enter] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[x-transition:enter-start] {
    opacity: 0;
    transform: translateY(10px);
}

[x-transition:enter-end] {
    opacity: 1;
    transform: translateY(0);
}

[x-transition:leave] {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[x-transition:leave-start] {
    opacity: 1;
    transform: translateY(0);
}

[x-transition:leave-end] {
    opacity: 0;
    transform: translateY(10px);
}

/* Specific styling for Alpine.js elements */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(var(--color-footer-bg), 0.6); /* Dark semi-transparent overlay */
    backdrop-filter: blur(5px); /* Glassmorphism effect */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xl);
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    z-index: 1001;
    border: 1px solid rgba(var(--color-primary), 0.1); /* Subtle border */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.4rem;
    }

    .section-hero {
        padding: var(--spacing-xl) var(--spacing-sm);
    }

    .section {
        padding: var(--spacing-xl) var(--spacing-sm);
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.2rem;
    }

    .section-hero {
        padding: var(--spacing-lg) var(--spacing-xs);
    }

    .section {
        padding: var(--spacing-lg) var(--spacing-xs);
    }

    .btn {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
}

/* Utility for spacing with Tailwind */
.mt-space-md { margin-top: var(--spacing-md); }
.mb-space-md { margin-bottom: var(--spacing-md); }
.py-space-lg { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.px-space-md { padding-left: var(--spacing-md); padding-right: var(--spacing-md); }

/* Custom class for section background colors */
.bg-section-1 { background-color: var(--color-card-bg-1); }
.bg-section-2 { background-color: var(--color-card-bg-2); }
.bg-section-3 { background-color: var(--color-card-bg-3); }
.bg-section-4 { background-color: var(--color-card-bg-4); }
.bg-section-5 { background-color: var(--color-card-bg-5); }

/* Text colors for specific cases */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }
.text-dark { color: var(--color-text-dark); }
.text-light { color: var(--color-text-light); }

/* Organic Shape for certain elements (example) */
.shape-organic {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transition: border-radius 0.5s ease;
}

.shape-organic:hover {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
}

/* Glassmorphism for specific elements */
.glass-effect {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius-md);
}

/* Example of a subtle pattern background for a section */
.section-patterned {
    background-color: var(--color-card-bg-5); /* One of the section colors */
    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='%239CCC65' fill-opacity='0.15' fill-rule='evenodd'%3E%3Cpath d='M0 0h12v12H0V0zm12 12h12v12H12V12zm12 12h12v12H24V24zm12 12h12v12H36V36zm12 12h12v12H48V48zM0 12h12v12H0V12zm12 24h12v12H12V36zm12-12h12v12H24V24zm12 0h12v12H36V24zm12-12h12v12H48V12zM0 24h12v12H0V24zm12-12h12v12H12V12zm24 0h12v12H24V12zm12 24h12v12H36V36zm12 0h12v12H48V36zM0 36h12v12H0V36zm12 0h12v12H12V36zm24-12h12v12H24V24zm12 0h12v12H36V24zm12-12h12v12H48V12zM0 48h12v12H0V48zM24 48h12v12H24V48zM48 0h12v12H48V0z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
}


/* 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;
    }
}