:root {
    /* Colors */
    --color-primary: #2F6B38; /* Ciemna zieleń */
    --color-secondary: #8B5F2A; /* Ziemisty brąz */
    --color-background: #F4F0E6; /* Jasny beż */
    --color-footer-bg: #263D2F; /* Bardzo ciemna zieleń */
    --color-button: #4CAF50; /* Jasna zieleń dla przycisku */
    --color-text-dark: #263D2F; /* Ciemny tekst, zbliżony do koloru stopki */
    --color-text-light: #FBF8EF; /* Jasny tekst, zbliżony do jasnego tła */
    --color-focus-green: #6B8E23; /* Oliwkowa zieleń dla focusu */

    /* Section Backgrounds - derived from earthy tones */
    --section-bg-1: #F4F0E6; /* Jasny beż */
    --section-bg-2: #FBF8EF; /* Jaśniejszy beż */
    --section-bg-3: #E8E4D9; /* Szarawy beż */
    --section-bg-4: #D4CDC0; /* Ciemniejszy szarawy beż */
    --section-bg-5: #E0E2DD; /* Delikatna szarość z zielonym odcieniem */
    --section-bg-6: #C7C9B8; /* Zgaszona zieleń/szarość */

    /* Typography */
    --font-heading: 'Lora', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;

    /* Border Radius */
    --border-radius-base: 0.5rem; /* rounded-lg equivalent */

    /* Shadows */
    --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-xl */
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-background);
    line-height: 1.7; /* Increased for readability */
    margin: 0;
    padding: 0;
    -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-lg);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em; /* Subtle tightening for headings */
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

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-secondary);
    text-decoration: underline;
}

/* Utility Classes for Section Backgrounds */
.section-bg-1 { background-color: var(--section-bg-1); }
.section-bg-2 { background-color: var(--section-bg-2); }
.section-bg-3 { background-color: var(--section-bg-3); }
.section-bg-4 { background-color: var(--section-bg-4); }
.section-bg-5 { background-color: var(--section-bg-5); }
.section-bg-6 { background-color: var(--section-bg-6); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--border-radius-base);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: var(--shadow-base);
    background: linear-gradient(135deg, var(--color-button) 0%, #8BC34A 100%); /* Green to lime gradient */
    color: var(--color-text-light); /* White text for contrast */
    position: relative;
    overflow: hidden;
}

.btn:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px); /* Slight lift */
    background: linear-gradient(135deg, #8BC34A 0%, var(--color-button) 100%); /* Reverse gradient on hover */
}

/* Button pulse effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease-out, height 0.4s ease-out, opacity 0.4s ease-out;
}

.btn:hover::before {
    width: 150%;
    height: 150%;
    opacity: 1;
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-control {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--color-primary); /* Thin green border */
    border-radius: var(--border-radius-base);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    background-color: var(--section-bg-1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.form-control:focus {
    outline: none;
    border-color: var(--color-focus-green); /* Focus on green */
    box-shadow: 0 0 0 3px rgba(107, 142, 35, 0.2); /* Soft green glow */
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Header (assuming a flexbox or grid structure from Tailwind) */
.header {
    background-color: var(--section-bg-1);
    padding: var(--spacing-md) var(--spacing-lg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    color: var(--color-primary); /* Dark green logo */
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.header .nav-link {
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-base);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header .nav-link:hover {
    background-color: rgba(var(--color-primary), 0.05);
    color: var(--color-secondary);
    text-decoration: none;
}

/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding: var(--spacing-lg) var(--spacing-xl);
    text-align: center;
}

.footer a {
    color: var(--color-text-light);
    margin: 0 var(--spacing-sm);
    transition: text-shadow 0.3s ease, color 0.3s ease;
}

.footer a:hover {
    color: var(--color-button); /* Subtle glow effect for links */
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.6); /* Soft green glow */
    text-decoration: none;
}

.footer .social-icons img {
    width: 24px;
    height: 24px;
    margin: 0 var(--spacing-xs);
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%); /* Make icons white */
    transition: filter 0.3s ease;
}

.footer .social-icons img:hover {
    filter: invert(70%) sepia(50%) saturate(500%) hue-rotate(80deg) brightness(100%) contrast(100%); /* Green tint on hover */
}

/* Image Style */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-base); /* Organic, slightly rounded edges */
    object-fit: cover; /* Ensures images fill their space without distortion */
    filter: brightness(0.95) contrast(1.05); /* Subtle matte finish */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .header {
        flex-direction: column;
        text-align: center;
    }

    .header .nav-links {
        margin-top: var(--spacing-sm);
    }

    .header .nav-link {
        display: block;
        padding: var(--spacing-xs);
    }

    .footer {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .btn {
        padding: var(--spacing-sm);
        font-size: 0.9rem;
    }
}


/* 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;
    }
}