@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&family=Raleway:wght@200;300;400;500;600;700&display=swap');

:root {
    /* Colors */
    --color-primary: #2e7d32; /* Główna zieleń */
    --color-secondary: #a5d6a7; /* Jasna zieleń */
    --color-background: #f5f5f5; /* Jasne tło */
    --color-footer-bg: #1b5e20; /* Ciemna zieleń stopki */
    --color-button: #4caf50; /* Zieleń przycisku */
    --color-text-dark: #333;
    --color-text-light: #f0f0f0;
    --color-accent: #66bb6a; /* Lekki akcent */

    /* Section Backgrounds */
    --section-bg-1: #e8f5e9;
    --section-bg-2: #dce8dc;
    --section-bg-3: #c8e6c9;
    --section-bg-4: #b2dfdb; /* Dodatkowy odcień z palety */

    /* Fonts */
    --font-primary: 'Raleway', sans-serif;
    --font-secondary: 'Merriweather', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;

    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;

    /* Shadows */
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base for rem units */
}

body {
    font-family: var(--font-primary);
    line-height: 1.7; /* Increased line-height for readability */
    color: var(--color-text-dark);
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary); /* Brutalistyczny akcent w typografii */
    color: var(--color-primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    letter-spacing: -0.02em; /* Lekki brutalistyczny akcent */
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: var(--spacing-xl); /* Większe odstępy między sekcjami */
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: var(--color-button);
    transform: translateY(-1px);
}

/* Layout & Spacing */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0; /* Duże odstępy między sekcjami */
    position: relative;
    overflow: hidden; /* Dla brutalistycznych akcentów na krawędziach */
}

/* Brutalistyczne krawędzie sekcji */
section:not(:last-of-type)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px; /* Grubość linii */
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    transform: skewY(-0.5deg); /* Lekkie brutalistyczne skrzywienie */
    transform-origin: 0% 100%;
    z-index: 1;
}

/* 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); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-button);
    color: var(--color-text-light);
    border: none;
    border-radius: var(--border-radius-md); /* Zaokrąglone prostokąty */
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: var(--shadow-soft); /* Delikatny cień */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1); /* Glassmorphism na hover */
    filter: blur(20px);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    z-index: -1;
}

.btn:hover::before {
    transform: scale(1);
    opacity: 1;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.85); /* Lekko przezroczysty */
    backdrop-filter: blur(8px); /* Efekt rozmycia */
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header .logo span {
    color: var(--color-secondary);
}

.header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--spacing-md);
}

.header nav a {
    color: var(--color-text-dark);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

.header nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.header nav a:hover::after {
    width: 100%;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--color-footer-bg), darken(var(--color-footer-bg), 10%)); /* Lekkie gradienty */
    color: var(--color-text-light);
    padding: var(--spacing-lg) 0;
    font-size: 0.9rem;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--color-accent);
}

.social-icons a {
    display: inline-block;
    margin-right: var(--spacing-sm);
    color: var(--color-text-light);
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    color: var(--color-accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-sm); /* Lekkie zaokrąglenie dla naturalnego wyglądu */
    box-shadow: var(--shadow-soft);
    object-fit: cover;
}

/* Glassmorphism effect for cards/elements (if needed) */
.glass-card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-glass);
    padding: var(--spacing-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--color-secondary);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-text-dark);
    background-color: var(--color-background);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    .header .container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        min-width: unset;
        width: 100%;
    }

    .social-icons {
        margin-top: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    .btn {
        padding: var(--spacing-xs) 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;
    }
}