/* --- 1. RESET I PODSTAWA --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    text-align: center;
}

ul, li { list-style: none !important; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. NAWIGACJA (KOMPUTER I TELEFON) --- */
nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 5% !important;
    background: #c62828 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 120px !important;
}

.logo-container {
    display: flex !important;
    align-items: center !important;
}

.logo {
    height: 100px !important;
    width: auto !important;
}

.nav-links { 
    display: flex !important; 
    flex-direction: row !important;
    gap: 20px; 
}

.nav-links li a {
    color: #fff !important;
    text-decoration: none !important;
    font-weight: bold;
}

/* Przycisk hamburgera */
.menu-toggle {
    display: none; 
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 4px;
    background-color: white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* --- 3. SEKCJA HERO --- */
.hero {
    background-color: #000 !important;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: background-image 1s ease-in-out !important;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem) !important; 
    color: #fff !important;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.hero-btns {
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-top: 25px;
}

.hero-btns .btn {
    padding: 12px 28px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    background: transparent !important;
    display: inline-block;
}

/* --- 4. NAGŁÓWKI I TEKSTY (Wymuszenie czerni Z WYJĄTKIEM STOPKI) --- */
:not(footer) > h1, 
:not(footer) > h2, 
:not(footer) > h3, 
:not(footer) > h4, 
.container p:not(footer p), 
.container span:not(footer span) { 
    color: #000000 !important; 
    -webkit-text-fill-color: #000000 !important;
    margin-bottom: 15px;
}

/* Wyjątki dla białych napisów */
nav a, .hero-text h1 { 
    color: #fff !important; 
    -webkit-text-fill-color: #fff !important;
}

/* --- 5. KAFELKI I GALERIE --- */
.cards, .gallery-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important; 
    gap: 30px;
    padding: 40px 0;
}

.card, .card-link, .gallery-item {
    background: #fff !important;
    width: 320px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-top: 5px solid #c62828;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 15px;
    transition: 0.3s;
    text-decoration: none !important;
}

.card h3, .gallery-item h3, .container a { 
    color: #000 !important; 
}

.facebook-card h3 { 
    color: #1877F2 !important; 
    -webkit-text-fill-color: #1877F2 !important; 
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: contain !important; 
    background-color: #fff;
    display: block;
    margin-bottom: 10px;
}

/* --- 6. STOPKA (JASNA NA CIEMNYM) --- */
footer { 
    background: #222; 
    color: #ccc !important; 
    padding: 40px 20px; 
    margin-top: 40px; 
}

footer p, footer a, footer span, footer div { 
    color: #ccc !important; 
    -webkit-text-fill-color: #ccc !important; 
}

/* --- 7. WIDOK MOBILNY --- */
@media (max-width: 800px) {
    nav {
        height: 90px !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        padding: 0 15px !important;
    }

    .logo { 
        height: 70px !important; 
    }

    .menu-toggle {
        display: flex !important;
    }

    .nav-links {
        display: none !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 90px !important;
        left: 0 !important;
        width: 100% !important;
        background-color: #c62828 !important;
        padding: 20px 0 !important;
        z-index: 999 !important;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li { margin: 15px 0 !important; }
    .hero-btns { flex-direction: column; gap: 10px !important; }
    .card, .gallery-item { width: 100%; }
}
/* --- OSTATECZNA NAPRAWA STOPKI (BIAŁY TEKST) --- */
footer, 
footer p, 
footer span, 
footer div,
footer a {
    color: #ffffff !important; /* Wymuszenie czystej bieli */
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}

/* Na wypadek gdyby tekst był poza tagiem footer */
[class*="footer"] p,
[class*="copyright"] {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
/* --- ATAK NA OPORNY TEKST W STOPCE --- */
body > *:last-child, 
body > *:last-child p, 
body > *:last-child span,
body > *:last-child div {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Dodatkowo celujemy bezpośrednio w tekst z datą i gminą */
p {
    color: inherit; /* Pozwala dziedziczyć kolor z rodzica, jeśli nie zadziała inaczej */
}
/* --- ODZYSKIWANIE NAPISU FACEBOOK W DZIAŁALNOŚCI --- */
.facebook-card h3, 
.facebook-card a, 
[class*="facebook"] h3, 
[class*="facebook"] a {
    color: #1877F2 !important; /* Oficjalny niebieski Facebooka */
    -webkit-text-fill-color: #1877F2 !important;
    visibility: visible !important;
    display: block !important;
}

/* Jeśli pod kafelkiem jest zwykły tekst opisu */
.card p, .card span {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}
/* --- NAPRAWA KAFELKA FB W ZAKŁADCE O NAS --- */
.container .facebook-card, 
.container .card, 
.container .card h3, 
.container .card p {
    color: #000000 !important; /* Przywraca czarny kolor tekstu */
    -webkit-text-fill-color: #000000 !important;
}

.container .facebook-card h3 {
    color: #1877F2 !important; /* Przywraca niebieski kolor dla nagłówka FB */
    -webkit-text-fill-color: #1877F2 !important;
}

/* Jeśli cały kafelek jest linkiem */
.container a.card, 
.container a.facebook-card {
    text-decoration: none !important;
}

