@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&display=swap');

:root {
    /* Colors */
    --color-primary: #28B463;
    --color-secondary: #F5B041;
    --color-accent: #2ECC71; /* Button color */
    --color-background: #F8F9F3;
    --color-footer-bg: #2C3E50;
    --color-text-dark: #333333;
    --color-text-light: #ffffff;
    --color-section-1: #E8F6F3;
    --color-section-2: #FEF9E7;
    --color-section-3: #D0ECE7;
    --color-section-4: #FDEBD0;
    --color-section-5: #EAF2F8;
    --color-section-6: #F5EEF8;

    /* Fonts */
    --font-family-base: 'Nunito', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px 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-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;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

a:hover {
    color: var(--color-secondary);
    transform: translateY(-1px);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-dark);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-md);
}

ul, ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

ul li, ol li {
    margin-bottom: var(--spacing-xs);
}

/* Layout */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

/* Header */
.header {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    padding: var(--spacing-sm) var(--spacing-md);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text-light);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.logo a {
    color: inherit;
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--spacing-lg);
}

.nav-menu li a {
    color: var(--color-text-light);
    font-weight: 600;
    padding: var(--spacing-xs) 0;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease-out;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: linear-gradient(45deg, var(--color-accent) 0%, var(--color-primary) 100%);
    color: var(--color-text-light);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--color-primary) 0%, var(--color-accent) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.6);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    box-shadow: 0 5px 15px rgba(245, 176, 65, 0.4);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 176, 65, 0.6);
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.section:nth-of-type(odd) {
    background-color: var(--color-section-1);
}

.section:nth-of-type(even) {
    background-color: var(--color-section-2);
}

/* Specific section 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); }

/* Cards/Panels - Example of a common component */
.card {
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--color-text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid #cccccc;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family-base);
    font-size: 1rem;
    box-shadow: var(--shadow-inset);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(40, 180, 99, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Alpine.js specific styles for transitions */
[x-cloak] { display: none !important; }

.fade-enter-active, .fade-leave-active {
    transition: opacity 0.5s ease;
}
.fade-enter, .fade-leave-to {
    opacity: 0;
}

/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding: var(--spacing-xl) 0 var(--spacing-md) 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-column h4 {
    color: var(--color-secondary);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-column ul li a:hover {
    color: var(--color-text-light);
    transform: translateX(3px);
}

.footer-social-icons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.footer-social-icons a {
    color: var(--color-secondary);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-icons a:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .header-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column ul {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }

    .section {
        padding: var(--spacing-lg) 0;
    }
}

/* Utility for Alpine.js x-show transitions */
.transition-opacity-scale {
    transition-property: opacity, transform;
    transition-duration: 300ms;
    transition-timing-function: ease-out;
}
.transition-opacity-scale-enter, .transition-opacity-scale-leave-to {
    opacity: 0;
    transform: scale(0.95);
}
.transition-opacity-scale-enter-to, .transition-opacity-scale-leave {
    opacity: 1;
    transform: scale(1);
}

/* Focus states for accessibility */
*:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
    border-radius: var(--border-radius-sm);
}

/* A subtle grain background for texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjEwcHgiIGhlaWdodD0iMTBweCIgdmlld0JveD0iMCAwIDEwIDEwIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAxMCAxMCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBhdGggZmlsbD0iI0FBQUFBQSIgZD0iTTUgMGg1djVoNVYwSDVMNSAwek01IDVoNVYxMGg1VjVINUwyLjUgMi41TDUgNy41TDIuNSA1TDUgMi41eiIvPjwvc3ZnPg==');
    background-size: 2px;
    opacity: 0.03; /* Very subtle */
    pointer-events: none;
    z-index: -1; /* Ensure it's behind content */
}

/* Glassmorphism effect for certain elements, e.g. a specific card */
.card-glass {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    color: var(--color-text-light); /* Assuming it's used on a dark background */
}

.card-glass h3, .card-glass p {
    color: var(--color-text-light);
}


/* 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;
    }
}