:root {
    --color-primary: #2e7d32;
    --color-secondary: #ffb74d;
    --color-background: #f7fcf0;
    --color-footer-bg: #1a472a;
    --color-button: #4caf50;
    --color-section-1: #dcfbe0;
    --color-section-2: #f0f2ea;
    --color-section-3: #e5f5e8;
    --color-section-4: #ffffff;
    --color-text-dark: #1a472a;
    --color-text-light: #f7fcf0;
    --color-focus: #4caf50;
    --font-family-base: 'Inter', sans-serif;
    --font-family-heading: 'Poppins', sans-serif;
    --border-radius-base: 12px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 96px;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    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);
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 600;
}

h1 {
    font-size: 3.2em;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5em;
    line-height: 1.2;
}

h3 {
    font-size: 1.8em;
    line-height: 1.3;
}

h4 {
    font-size: 1.4em;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

ul, ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

/* Header */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: transparent;
    padding: var(--spacing-sm) var(--spacing-md);
    transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(8px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo {
    font-family: var(--font-family-heading);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-primary);
}

.header-logo:hover {
    color: var(--color-primary);
}

.nav-link {
    margin-left: var(--spacing-md);
    font-weight: 500;
    color: var(--color-text-dark);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8em 1.8em;
    border-radius: 9999px; /* Fully rounded */
    font-family: var(--font-family-base);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-button);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #66bb6a, #43a047); /* Brighter to darker green */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
}

.btn-secondary:hover {
    background-color: #ffa726;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: var(--spacing-xl) var(--spacing-md);
    margin: 0 auto;
    max-width: 1200px;
    opacity: 0; /* For fade-in animation */
    transform: translateY(20px); /* For slide-up animation */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section:nth-of-type(odd) {
    background-color: var(--color-section-1);
}

.section:nth-of-type(even) {
    background-color: var(--color-section-2);
}

.section-hero {
    background-color: var(--color-background);
    text-align: center;
    padding-top: 150px; /* Adjust for fixed header */
    padding-bottom: var(--spacing-xl);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Card */
.card {
    background-color: var(--color-section-4);
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-light);
    padding: var(--spacing-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-base) var(--border-radius-base) 0 0;
    margin-bottom: var(--spacing-sm);
}

/* Form Elements */
.form-group {
    margin-bottom: var(--spacing-sm);
}

.input-text, .input-textarea {
    width: 100%;
    padding: 0.8em 1em;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-base);
    font-family: var(--font-family-base);
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.input-text:focus, .input-textarea:focus {
    outline: none;
    border-color: var(--color-focus);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.input-checkbox {
    /* Custom checkbox styling */
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 50%; /* Round checkbox */
    margin-right: 8px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
}

.input-checkbox:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.input-checkbox:checked::before {
    content: '✔';
    display: block;
    color: var(--color-text-light);
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}


/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
}

.footer a {
    color: var(--color-secondary);
}

.footer a:hover {
    color: #ffa726;
}

/* Utility classes for layout (assuming Tailwind is present, these are custom additions) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.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);
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alpine.js specific transitions */
[x-transition:enter] {
    transition: all 0.5s ease-out;
}
[x-transition:enter-start] {
    opacity: 0;
    transform: translateY(10px);
}
[x-transition:enter-end] {
    opacity: 1;
    transform: translateY(0);
}
[x-transition:leave] {
    transition: all 0.3s ease-in;
}
[x-transition:leave-start] {
    opacity: 1;
    transform: translateY(0);
}
[x-transition:leave-end] {
    opacity: 0;
    transform: translateY(10px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-link {
        margin: 0.5em 0;
    }

    .header.scrolled .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .grid-cols-2, .grid-cols-3 {
        grid-template-columns: repeat(1, 1fr);
    }

    .section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.6em;
    }

    .btn {
        padding: 0.6em 1.2em;
        font-size: 0.9em;
    }
}


/* 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;
    }
}