/* Tło całej strony z grafiką gór z Joomli */
body {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: 17px; /* Powiększona czcionka bazowa tekstu */
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #9e9dbf;
    background-image: url('https://willavita.pl/images/BackgroundWVG92.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    line-height: 1.75;
}

/* Centralny boks strony z lekką przezroczystością, przez którą widać tło */
.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    min-height: 100vh;
}

.container { width: 90%; max-width: 1140px; margin: auto; }

.site-header { background: #fff; border-bottom: 1px solid #ddd; position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.logo img { max-height: 70px; }

/* Menu główne strony (wielkie litery, większa czcionka, optymalna liczba pozycji) */
.main-nav ul { 
    list-style: none; 
    display: flex; 
    gap: 30px; 
    margin: 0; 
    padding: 0; 
    align-items: center;
}
.main-nav a { 
    text-decoration: none; 
    color: #401707; 
    font-weight: bold; 
    font-size: 16px; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.main-nav a:hover { color: #ca4916; }

.section { padding: 60px 0; }
.section h2 {
    font-size: 36px;
    color: #401707;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: bold;
    text-align: center; /* Wyśrodkowanie tytułów sekcji */
}
.section h3 {
    font-size: 24px;
    color: #401707;
}

.bg-light { background: rgba(245, 245, 245, 0.75); }
.row { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.col { flex: 1; min-width: 280px; }
.responsive-img { width: 100%; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.pricing-card { background: #fff; border: 1px solid #e0e0e0; padding: 25px; border-radius: 6px; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.pricing-card h3 { 
    color: #401707; 
    margin-top: 0; 
    font-size: 19px; /* Zmniejszony nagłówek, aby daty mieściły się w jednej linii */
}

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gallery-grid img { width: 100%; height: 120px; object-fit: cover; border-radius: 4px; transition: transform 0.2s; }
.gallery-grid img:hover { transform: scale(1.03); }

.site-footer { background: #222; color: #fff; text-align: center; padding: 30px 0; }
.site-footer a { color: #ca4916; text-decoration: none; }

/* Styl listy wyposażenia - bez bulletów i z większymi ikonami oraz tekstem */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    font-size: 18px;
    color: #333;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: #8c794b;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    flex-shrink: 0;
    font-size: 20px;
}

/* --- IDEALNY I STABILNY HERO SLIDER --- */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
}

.hero-slides-wrapper {
    position: relative;
    width: 100%;
    height: 480px; /* Stała wysokość slidera na komputerach */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Wypełnia kontener bez zniekształceń i spłaszczania */
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Elegancki blok z tekstem wewnątrz slajdu */
.hero-content {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 6px;
    text-align: center;
    width: 85%;
    max-width: 750px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.hero-content h1 {
    color: #ffffff;
    font-size: 30px;
    margin: 0 0 6px 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}

.hero-content p {
    color: #f0f0f0;
    font-size: 18px;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
}

/* Responsywność dla telefonów komórkowych */
@media (max-width: 768px) {
    .hero-slides-wrapper {
        height: 320px;
    }
    .hero-content {
        bottom: 15px;
        padding: 10px 15px;
    }
    .hero-content h1 {
        font-size: 20px;
    }
    .hero-content p {
        font-size: 14px;
    }
}

/* Sekcja: Nasi partnerzy */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.partner-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 6px;
    width: 200px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.partner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Styl menu administracyjnego z wymuszoną pełną klikalnością */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 12px;
    position: relative;
    z-index: 9999;
}

.nav-menu a {
    text-decoration: none;
    color: #401707;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    position: relative;
    z-index: 10000;
}

.nav-menu a:hover {
    background: #f0eae1;
    color: #ca4916;
}

.nav-menu a.active {
    background: #401707;
    color: white;
}

.nav-menu a.logout {
    margin-left: auto;
    color: #dc3545;
}

.nav-menu a.logout:hover {
    background: #fdf2f2;
    color: #bd2130;
}

/* Przycisk hamburgera domyślnie ukryty na komputerach */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: #401707;
    cursor: pointer;
    padding: 8px;
}

/* Styl dla widoku mobilnego (ekrany poniżej 768px) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Pokazujemy przycisk hamburgera na telefonach */
    }

    .main-nav {
        display: none; /* Domyślnie zwinięte menu */
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-bottom: 1px solid #ddd;
        box-shadow: 0 6px 15px rgba(0,0,0,0.15);
        padding: 20px 0;
        z-index: 2000;
    }

    .main-nav.active {
        display: block; /* Rozwinięcie menu po kliknięciu */
    }

    .main-nav ul {
        flex-direction: column;
        gap: 18px;
        align-items: center;
    }
}