:root {
    --color-primary: #2e7d32;
    --color-secondary: #a3e635;
    --color-accent: #4caf50;
    --color-background: #f0fdf4;
    --color-footer-bg: #1a471c;
    --color-text-dark: #1a471c;
    --color-text-light: #f0fdf4;
    --color-neutral-light: #f9fafb;
    --color-section-1: #f9fafb;
    --color-section-2: #ecfdf5;
    --color-section-3: #dcfce7;
    --color-section-4: #f0fdf4;
    --color-section-5: #e0ffe8;
    --color-section-6: #ccfbf1;

    --font-family-heading: 'Poppins', sans-serif;
    --font-family-body: 'Inter', 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;
    --border-radius-lg: 1.5rem;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700&display=swap');

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: var(--font-family-body);
    line-height: 1.65;
    color: var(--color-text-dark);
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

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);
    border-bottom: 1px solid var(--color-accent);
}

ul, ol {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

ul li, ol li {
    margin-bottom: var(--spacing-xs);
}

/* Layout & Structure */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-section-4); /* Default section background */
}

section:nth-of-type(odd) {
    background-color: var(--color-section-2);
}

/* Glassmorphism Effect for Cards and Panels */
.glass-card {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}

/* 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-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #388e3c; /* A slightly darker shade of accent */
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background-color: #8bc34a; /* A slightly darker shade of secondary */
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-2px);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--color-primary);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid rgba(46, 125, 50, 0.3);
    border-radius: var(--border-radius-sm);
    background-color: rgba(255, 255, 255, 0.6);
    color: var(--color-text-dark);
    transition: all 0.3s ease;
    font-family: var(--font-family-body);
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
    background-color: rgba(255, 255, 255, 0.9);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* 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-secondary);
    border-bottom-color: var(--color-secondary);
}

footer a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* 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-out;
}
.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.4s ease-out;
}
.slide-up-enter, .slide-up-leave-to {
    opacity: 0;
    transform: translateY(10px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    .glass-card {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.9rem;
    }
}

/* Utility classes (can coexist with Tailwind, for specific custom needs) */
.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);
}

/* Hero Section Specific */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-text-light);
    padding: var(--spacing-xl) 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotateBackground 20s linear infinite;
    opacity: 0.3;
}

@keyframes rotateBackground {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero h1 {
    color: var(--color-text-light);
    font-size: 4.5rem;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
    letter-spacing: -0.05em;
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    opacity: 0.9;
}

.hero .btn-primary {
    background-color: var(--color-text-light);
    color: var(--color-primary);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    font-size: 1.1rem;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 9999px; /* Pill shape */
}

.hero .btn-primary:hover {
    background-color: #e0ffe8; /* slightly off-white */
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-item {
    text-align: center;
}

.feature-item .icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    background: rgba(255, 255, 255, 0.4);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: var(--shadow-sm);
}

.feature-item h3 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-dark);
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(45deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
    color: var(--color-text-dark);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 60px 60px;
    opacity: 0.6;
    mix-blend-mode: overlay;
}

.cta-section h2 {
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-section p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    opacity: 0.9;
}

.cta-section .btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.cta-section .btn-primary:hover {
    background-color: var(--color-footer-bg); /* Darker green */
}

/* Header (assumes basic HTML structure, e.g., nav > ul > li > a) */
.main-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(46, 125, 50, 0.1);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-family-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--spacing-md);
}

.main-nav a {
    color: var(--color-text-dark);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* Hide nav by default on small screens, Alpine.js would handle toggle */
    }
    .main-header .container {
        flex-wrap: wrap;
    }
}

/* Custom Gradients for Sections - Example */
.section-gradient-1 {
    background: linear-gradient(to right, var(--color-section-1), var(--color-section-2));
}

.section-gradient-2 {
    background: linear-gradient(to right, var(--color-section-3), 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;
    }
}