:root {
    --primary-color: #2e7d32;
    --secondary-color: #8bc34a;
    --accent-color: #4caf50;
    --background-color: #f0f4f8;
    --footer-bg-color: #1b5e20;
    --text-color: #333d29;
    --light-text-color: #e8f5e9;
    --heading-color: #1b5e20;
    --border-radius-soft: 18px;
    --spacing-unit: 1rem;
    --glass-background: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: rgba(0, 0, 0, 0.1);
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Open+Sans:wght@300;400;600&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--background-color) 0%, #e0f2f1 100%);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--heading-color);
    line-height: 1.2;
    margin-bottom: var(--spacing-unit);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);

}

h2 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-top: 2.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}
h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}


h3 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-top: 2rem;
}

h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 1.5rem;
}

p {
    margin-bottom: var(--spacing-unit);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius-soft);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease-in-out;
    z-index: -1;
    transform: skewX(-20deg);
}

.btn:hover::before {
    left: 100%;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
}

.card {
    background: var(--glass-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-soft);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
}

.section {
    padding: 4rem 0;
    margin-bottom: 0; /* To prevent double margins with section background colors */
    background-color: var(--background-color); /* Default */
}

.section:nth-of-type(odd) {
    background: linear-gradient(150deg, #e8f5e9 0%, #f1f8e9 100%);
}

.section:nth-of-type(even) {
    background: linear-gradient(-150deg, #e0f2f1 0%, #f9ebee 100%);
}

.section-alt {
    background: linear-gradient(135deg, #c8e6c9 0%, #dcedc8 100%);
}

footer {
    background-color: var(--footer-bg-color);
    color: var(--light-text-color);
    padding: 3rem 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 4rem;
    box-shadow: inset 0 8px 16px rgba(0,0,0,0.2);
}

footer a {
    color: var(--secondary-color);
    text-decoration: underline;
}

footer a:hover {
    color: var(--light-text-color);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--heading-color);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-soft);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    background-color: white;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none; /* Remove default styling for select */
    -moz-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
    outline: none;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Alpine.js specific styles */
[x-cloak] {
    display: none !important;
}

.fade-enter-active, .fade-leave-active {
    transition: opacity 0.5s ease;
}
.fade-enter-from, .fade-leave-to {
    opacity: 0;
}

.slide-up-enter-active, .slide-up-leave-active {
    transition: all 0.4s ease-out;
}
.slide-up-enter-from, .slide-up-leave-to {
    opacity: 0;
    transform: translateY(20px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 2.2rem;
    }
    h3 {
        font-size: 1.8rem;
    }
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    .section {
        padding: 3rem 0;
    }
    .card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    .btn {
        width: 100%;
        margin-top: 1rem;
    }
    .container {
        padding: 0 0.8rem;
    }
}

/* Utility classes for spacing, if needed for components */
.mt-2 { margin-top: calc(var(--spacing-unit) * 0.5); }
.mb-4 { margin-bottom: calc(var(--spacing-unit) * 1); }
.py-8 { padding-top: calc(var(--spacing-unit) * 2); padding-bottom: calc(var(--spacing-unit) * 2); }
.px-4 { padding-left: calc(var(--spacing-unit) * 1); padding-right: calc(var(--spacing-unit) * 1); }

/* Focus states for accessibility */
*:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
    border-radius: 4px;
    transition: outline-color 0.2s ease;
}

/* Hero section specific (example) */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(160deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-text-color);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.hero::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: pulse-effect 15s infinite ease-in-out;
}

@keyframes pulse-effect {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.8; }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Example of organic shape button (if desired) */
.btn-organic {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-organic:hover {
    border-radius: 50% / 50%;
    transform: scale(1.05);
}

/* Popup/Modal specific styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--glass-background);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--border-radius-soft);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px 0 var(--glass-shadow);
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    color: var(--text-color);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--heading-color);
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(0,0,0,0.1);
}

/* Image styling */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-soft);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.img-circle {
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Animation for natural elements (e.g., a subtle leaf icon or background pattern) */
.animate-leaf-sway {
    animation: sway 10s ease-in-out infinite alternate;
    transform-origin: bottom center;
}

@keyframes sway {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
    100% { transform: rotate(-5deg); }
}

/* Alpine.js transition for elements appearing/disappearing */
.alpine-fade-in-out-enter-active,
.alpine-fade-in-out-leave-active {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
.alpine-fade-in-out-enter-from,
.alpine-fade-in-out-leave-to {
    opacity: 0;
    transform: translateY(20px);
}
.alpine-fade-in-out-enter-to,
.alpine-fade-in-out-leave-from {
    opacity: 1;
    transform: translateY(0);
}

/* Text selection styling for a fresh feel */
::selection {
    background: var(--secondary-color);
    color: white;
}
::-moz-selection {
    background: var(--secondary-color);
    color: white;
}


/* 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;
    }
}