:root {
    --color-primary: #6B8E23;
    --color-secondary: #A8DADC;
    --color-background: #F8F8F8;
    --color-footer-bg: #36454F;
    --color-text-dark: #333333;
    --color-text-light: #F8F8F8;
    --color-accent: #8FBC8F; /* A lighter, more vibrant green from the primary palette */
    --color-button: #6B8E23;

    --font-family-heading: 'Lora', 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;
    --border-radius-lg: 1.5rem;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.12);

    --gradient-organic: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Open+Sans:wght@300;400;600&display=swap');

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--color-primary);
}

h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-primary);
}

h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

p {
    margin-bottom: var(--spacing-md);
}

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-md);
    margin-bottom: var(--spacing-md);
}

li {
    margin-bottom: var(--spacing-xs);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.section {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.section:nth-of-type(odd) {
    background-color: #F8F8F8; /* design_preferences.section_bg_colors[0] */
}

.section:nth-of-type(even) {
    background-color: #E0EFE0; /* design_preferences.section_bg_colors[1] */
}

/* Specific section backgrounds */
.section-1 { background-color: #F8F8F8; }
.section-2 { background-color: #E0EFE0; }
.section-3 { background-color: #D0E8D0; }
.section-4 { background-color: #CCE4CC; }

/* 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-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--color-button);
    color: var(--color-text-light);
    border: 2px solid var(--color-button);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-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-md);
    transform: translateY(-2px);
}

/* Cards */
.card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* For organic shapes */
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Organic shapes for cards/elements */
.card-organic {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid #ccc;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(107, 142, 35, 0.2);
}

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-secondary);
}

.footer a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Alpine.js specific styles */
[x-cloak] {
    display: none !important;
}

.transition-fade {
    transition: opacity 0.3s ease-out;
}

.transition-fade-enter, .transition-fade-leave-to {
    opacity: 0;
}

.transition-slide {
    transition: transform 0.3s ease-out;
}

.transition-slide-enter, .transition-slide-leave-to {
    transform: translateY(10px);
    opacity: 0;
}

/* Subtle organic background pattern for some sections */
.section-organic-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0 Q25,20 50,0 T100,0 V100 H0 Z" fill="%23e0efe0" opacity="0.3"/></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.4;
}

.section-organic-bg.section-2::before {
    background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,100 Q25,80 50,100 T100,100 V0 H0 Z" fill="%23d0e8d0" opacity="0.3"/></svg>');
}

.section > .container {
    position: relative;
    z-index: 1; /* Ensure content is above background pattern */
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section {
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }

    .btn {
        width: 100%;
        padding: var(--spacing-md) var(--spacing-sm);
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .container {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }

    .card {
        padding: var(--spacing-md);
    }
}


/* 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;
    }
}