:root {
    --color-primary: #2e7d32;
    --color-secondary: #b9f6ca;
    --color-background: #f5f5f5;
    --color-footer-bg: #1a4a1d;
    --color-button: #4caf50;
    --color-text-dark: #333333;
    --color-text-light: #f0f0f0;

    --section-bg-1: #E8F5E9;
    --section-bg-2: #DCEDC8;
    --section-bg-3: #C8E6C9;
    --section-bg-4: #B0DBB7;

    --font-family-primary: 'Kanit', sans-serif;

    --border-radius-btn: 2rem; /* Large rounded corners for buttons */
    --border-radius-input: 0.75rem;
    --border-radius-card: 1.5rem;

    --shadow-clay-light: 8px 8px 16px rgba(0, 0, 0, 0.1), -8px -8px 16px rgba(255, 255, 255, 0.7);
    --shadow-clay-hover: 4px 4px 8px rgba(0, 0, 0, 0.1), -4px -4px 8px rgba(255, 255, 255, 0.5);
    --shadow-glass: 0 4px 30px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);

    --glass-blur: blur(10px);
    --glass-bg-opacity: 0.6;

    --transition-ease: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    color: var(--color-text-dark);
    line-height: 1.7; /* Increased line-height for readability */
    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-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    letter-spacing: 0.05em; /* Slightly increased letter-spacing for headers */
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.8rem;
    line-height: 1.3;
}

h3 {
    font-size: 2.2rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-ease);
}

a:hover {
    color: var(--color-button);
    text-decoration: underline;
}

/* Header - Glassmorphism effect */
.header-glass {
    background-color: rgba(255, 255, 255, var(--glass-bg-opacity));
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-ease), border-bottom var(--transition-ease);
}

.header-scrolled {
    background-color: rgba(255, 255, 255, 0.85); /* Darker on scroll */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Buttons - Claymorphism-like */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-btn);
    background-color: var(--color-button);
    color: var(--color-text-light);
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-clay-light);
    transition: var(--transition-ease);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: var(--color-primary);
    box-shadow: var(--shadow-clay-hover);
    transform: translateY(-2px); /* Subtle lift */
}

.btn:active {
    transform: translateY(0);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2), inset -2px -2px 5px rgba(255, 255, 255, 0.8);
}

/* Input Fields */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.8rem 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-input);
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.05), inset -2px -2px 5px rgba(255, 255, 255, 0.5);
    transition: var(--transition-ease);
    font-family: var(--font-family-primary);
    font-size: 1rem;
    color: var(--color-text-dark);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-button);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2), var(--shadow-clay-hover); /* Subtle glow and clay-like shadow */
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Cards - Glassmorphism with natural gradient */
.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)); /* Very subtle base */
    border-radius: var(--border-radius-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition-ease);
    overflow: hidden;
    position: relative;
    /* Natural gradient overlay */
    background-image: linear-gradient(to right top, #d4edda, #e0f2e0, #edf7ed, #f9fbf9, #ffffff);
    background-blend-mode: overlay; /* Blends the gradient with the glass effect */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

/* Section Backgrounds for visual variety */
.section-bg-1 {
    background-color: var(--section-bg-1);
    padding: 4rem 0;
}

.section-bg-2 {
    background-color: var(--section-bg-2);
    padding: 4rem 0;
}

.section-bg-3 {
    background-color: var(--section-bg-3);
    padding: 4rem 0;
}

.section-bg-4 {
    background-color: var(--section-bg-4);
    padding: 4rem 0;
}

/* Footer */
footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding: 3rem 0;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.8;
}

footer a {
    color: var(--color-secondary);
}

footer a:hover {
    color: var(--color-button);
}

/* Icons (Placeholder for custom icon styling) */
.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    transition: var(--transition-ease);
}

/* Utility for spacing (Tailwind already handles most of this, but for clarity) */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Animations and Micro-interactions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .section-bg-1, .section-bg-2, .section-bg-3, .section-bg-4 {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .btn {
        width: 100%;
        padding: 0.7rem 1.5rem;
    }
}


/* 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;
    }
}