/* --- GLOBALNE STYLE I CZCIONKI --- */
:root {
    --primary-color: #0d6efd; /* Profesjonalny niebieski jako kolor główny */
    --dark-gray: #37383e;      /* Ciemny szary dla stopki (rgb(55, 56, 62)) */
    --light-gray: #f8f9fa;     /* Jasny szary dla tła sekcji */
    --text-color: #212529;     /* Ciemniejszy tekst dla lepszej czytelności */
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

/* Korekta dla stałej nawigacji */
/* Zapewnia, że nagłówki sekcji nie są zasłaniane przez menu po kliknięciu na linki */
[id] {
    scroll-margin-top: 100px;
}

body {
    font-family: 'Alegreya Sans', sans-serif;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6, .display-1 {
    font-family: 'Playfair Display', serif;
}

/* Klasa do ukrywania elementów w sposób dostępny dla czytników ekranu */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- NAWIGACJA --- */
.navbar {
    /* Ustawienie półprzezroczystego tła */
    background-color: rgba(255, 255, 255, 0.75); /* Białe tło z 75% kryciem dla lepszej czytelności */

    /* Efekt "oszronionego szkła" (opcjonalnie, ale wygląda nowocześnie) */
    -webkit-backdrop-filter: blur(10px); /* Dla przeglądarki Safari */
    backdrop-filter: blur(10px); /* Dla pozostałych przeglądarek */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Delikatny cień dla oddzielenia od treści */
}

.navbar .nav-link {
    font-size: 1.1rem; /* Powiększona czcionka */
    font-weight: 700;  /* Pogrubienie */
    text-transform: uppercase; /* Wielkie litery */
    margin: 0 5px; /* Marginesy */
}

.navbar .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-brand img {
    max-width: 200px;
}

/* --- SEKCJA GŁÓWNA (HERO) --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 500px;
    background-image: url('assets/images/7541510-xll-1-2000x1328.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efekt paralaksy */
    color: var(--white); /* Zmiana koloru tekstu na biały dla lepszego kontrastu */
}

/* Nakładka na tło, aby tekst był bardziej czytelny */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Subtelny gradient dla lepszego efektu wizualnego */
    background: linear-gradient(45deg, rgba(10, 20, 40, 0.5), rgba(10, 20, 40, 0.2));
    z-index: 1;
}

/* Ustawienie zawartości ponad nakładką */
.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1, .hero-section .lead {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Cień pod tekstem dla czytelności */
}

.hero-section .lead {
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 90%; /* Ograniczenie szerokości dla lepszego układu tekstu */
}

.hero-btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px; /* Zaokrąglone rogi */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* --- SEKCJE Z KARTAMI --- */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    object-fit: cover; 
    height: 200px; /* Stała wysokość obrazka */
}

.card-title {
    font-weight: 700;
    color: var(--primary-color);
}

/* --- STOPKA --- */
.site-footer {
    background-color: var(--dark-gray);
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer iframe {
    border: none;
    overflow: hidden;
}

/* Style dla iframe'ów */
.facebook-iframe,
.map-iframe {
    width: 100%;
}

/* Style dla iframe'ów */
.facebook-iframe,
.map-iframe {
    width: 100%;
}


/* --- MEDIA QUERIES --- */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
    }

    .hero-section {
        text-align: center;
    }

    .hero-section .lead {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll; /* Wyłączenie efektu paralaksy */
        height: auto;
        padding: 100px 0;
    }

    .display-1 {
        font-size: 2.5rem;
    }
}

/* --- STOPKA - LOGA PARTNERÓW --- */
.footer-logos img {
    height: 45px; /* Wysokość logo */
    margin: 10px 15px; /* Marginesy dla odstępów */
    filter: grayscale(100%); /* Loga w skali szarości */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-logos img:hover {
    filter: grayscale(0%); /* Kolorowe logo po najechaniu */
    opacity: 1;
    transform: scale(1.1);
}