:root {
    /* Colors */
    --color-primary: #5CB85C;
    --color-secondary: #8BC34A;
    --color-accent: #009688;
    --color-background: #F0F4C3;
    --color-footer-bg: #388E3C;
    --color-text-dark: #333333;
    --color-text-light: #F8F8F8;
    --color-section-1: #E8F5E9;
    --color-section-2: #DCEDC8;
    --color-section-3: #C5E1A5;
    --color-section-4: #AED581;
    --color-section-5: #9CCC65;
    --color-section-6: #8BC34A;

    /* Fonts */
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.75rem; /* For buttons and cards */
    --border-radius-lg: 1.5rem; /* For menu items */

    /* Shadows */
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-deep: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.65;
    color: var(--color-text-dark);
    margin: 0;
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
}

h1 { font-size: 3.2rem; letter-spacing: -0.03em; }
h2 { font-size: 2.5rem; letter-spacing: -0.02em; }
h3 { font-size: 2rem; }
h4 { font-size: 1.6rem; }
h5 { font-size: 1.3rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

ul, ol {
    margin-left: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

li {
    margin-bottom: var(--spacing-sm);
}

/* Layout & Structure */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
}

section {
    padding: var(--spacing-xxl) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    background-color: var(--color-background); /* Default background for sections */
}

/* Section specific backgrounds */
.section-1 { background-color: var(--color-section-1); }
.section-2 { background-color: var(--color-section-2); }
.section-3 { background-color: var(--color-section-3); }
.section-4 { background-color: var(--color-section-4); }
.section-5 { background-color: var(--color-section-5); }
.section-6 { background-color: var(--color-section-6); }

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(240, 244, 195, 0.8), rgba(220, 237, 200, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-md) var(--spacing-lg);
    box-shadow: var(--shadow-soft);
    transform: skewY(-2deg); /* Inclined header */
    transform-origin: top left;
    margin-bottom: var(--spacing-xl);
}

.header > * { /* Counter-skew for content inside header */
    transform: skewY(2deg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.05em;
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--spacing-md);
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-lg);
    color: var(--color-text-dark);
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-menu a:hover {
    color: var(--color-text-light);
    box-shadow: var(--shadow-soft);
}

.nav-menu a:hover::before {
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-xl);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    color: var(--color-text-light);
    background: linear-gradient(145deg, var(--color-accent), var(--color-primary));
    box-shadow: var(--shadow-soft);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-deep);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-inset); /* Inset effect */
    background: linear-gradient(145deg, var(--color-primary), var(--color-accent)); /* Slight color shift */
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-lg);
}

label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--color-primary);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.2);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Cards */
.card {
    background-color: #ffffff;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-deep);
}

/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding: var(--spacing-xxl) var(--spacing-lg);
    text-align: center;
    margin-top: var(--spacing-xxl);
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer a {
    color: var(--color-text-light);
    text-decoration: underline;
    opacity: 0.8;
}

.footer a:hover {
    opacity: 1;
}

/* Utility Classes (to complement Tailwind) */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-accent { background-color: var(--color-accent); }

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

/* Alpine.js specific styles */
[x-cloak] {
    display: none !important;
}

/* Animations for Alpine.js transitions */
.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.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }

    .nav-menu a {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .grid-cols-2, .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .header {
        transform: skewY(-1deg); /* Less aggressive skew on mobile */
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }

    .btn {
        width: 100%;
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .container {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
}

/* Image styles - ensuring light and airy feel */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    display: block;
    margin: var(--spacing-lg) auto;
    opacity: 0.95; /* Subtle lightness */
}
/* Ensure images are not too dark or heavy */
.image-container {
    background-color: rgba(255, 255, 255, 0.5); /* Light overlay if needed */
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-md);
}

/* Accessibility (A11y) - Focus states */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: var(--border-radius-sm);
}

/* Custom Scrollbar for a natural feel */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-background);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    border-radius: 10px;
    border: 3px solid var(--color-background);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-secondary), var(--color-primary));
}


/* 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;
    }
}