:root {
    /* Colors */
    --color-primary: #28A745;
    --color-secondary: #17A2B8;
    --color-background: #F8F9FA;
    --color-footer-bg: #212529;
    --color-button: #28A745;
    --color-text-dark: #212529;
    --color-text-light: #F8F9FA;
    --color-section-1: #E9F7EF;
    --color-section-2: #D4EDDA;
    --color-section-3: #C3E6CB;
    --color-section-4: #B0D8C8;
    --color-section-5: #A2D0BF;
    --color-section-6: #94C8B6;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;

    /* Border Radius */
    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.5rem;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-dark);
    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-family: var(--font-heading);
    color: var(--color-text-dark);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

h1 { font-size: 3.5rem; font-weight: 700; letter-spacing: -0.05em; }
h2 { font-size: 2.5rem; font-weight: 600; }
h3 { font-size: 2rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 500; }
h5 { font-size: 1.25rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }

p {
    margin-bottom: var(--space-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;
}

ul, ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

li {
    margin-bottom: var(--space-xs);
}

/* Header - Lekki, przejrzysty z efektem szkla */
.header {
    background-color: rgba(255, 255, 255, 0.6); /* Slightly opaque for glasstic effect */
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.header .logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.header .nav-link {
    color: var(--color-text-dark);
    margin-left: var(--space-xl);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.header .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.header .nav-link:hover::after,
.header .nav-link.active::after {
    width: 100%;
}

/* Buttons - zaokrąglone z subtelnym cieniem (neo-brutalism light) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--border-radius-lg);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1); /* Neo-brutalism light shadow */
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-button);
    color: var(--color-text-light);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    color: var(--color-text-light);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.05);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
    color: var(--color-text-light);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.15);
}

.btn-secondary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.05);
}


/* Section Backgrounds - płynne przejścia, organiczne kształty */
.section {
    padding: var(--space-xxl) var(--space-lg);
    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);
}

.section-alt-1 { background-color: var(--color-section-3); }
.section-alt-2 { background-color: var(--color-section-4); }
.section-alt-3 { background-color: var(--color-section-5); }
.section-alt-4 { background-color: var(--color-section-6); }


/* Organic Shapes & Transitions - dla elementów tła lub dekoracji */
.organic-shape-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.organic-shape-bg::before,
.organic-shape-bg::after {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    opacity: 0.1;
    filter: blur(80px);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite both alternate;
}

.organic-shape-bg::before {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
}

.organic-shape-bg::after {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -150px;
    animation-delay: 2s;
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg) scale(1);
    }
    100% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: rotate(360deg) scale(1.05);
    }
}

/* Image Styling - zaokrąglone krawędzie i cień */
.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-fluid:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Cards - dla sekcji z korzyściami, usługami itp. */
.card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.card .icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-md);
}

.form-control {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid #ced4da;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding: var(--space-xxl) var(--space-lg);
    text-align: center;
}

.footer a {
    color: var(--color-secondary);
}

.footer a:hover {
    color: var(--color-primary);
}

.footer .social-icons {
    margin-top: var(--space-md);
}

.footer .social-icons a {
    font-size: 1.8rem;
    margin: 0 var(--space-sm);
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer .social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Alpine.js specific styles */
[x-cloak] {
    display: none !important;
}

/* Accordion for FAQ (example for Alpine.js) */
.accordion-item {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--space-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text-dark);
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.accordion-header .icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 var(--space-lg) var(--space-md);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }

    .header .nav-link {
        margin-left: var(--space-lg);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.2rem; }

    .header {
        padding: var(--space-sm) var(--space-md);
    }

    .header .logo {
        font-size: 1.5rem;
    }

    .header .nav-menu {
        display: none; /* Hidden by default, Alpine.js will handle toggle */
    }

    .section {
        padding: var(--space-xl) var(--space-md);
    }

    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }

    .organic-shape-bg::before,
    .organic-shape-bg::after {
        width: 300px;
        height: 300px;
        filter: blur(50px);
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }

    .header {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header .logo {
        width: 100%;
        text-align: center;
        margin-bottom: var(--space-sm);
    }

    .section {
        padding: var(--space-lg) var(--space-sm);
    }

    .card {
        padding: var(--space-lg);
    }

    .footer {
        padding: var(--space-xl) var(--space-md);
    }
}

/* Utility classes to integrate with Tailwind, if needed, for specific components */
/* These are examples and should be used sparingly if Tailwind is the primary framework */

.container-custom {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

.text-center {
    text-align: center;
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.mt-xxl {
    margin-top: var(--space-xxl);
}


/* 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;
    }
}