/* Import nowej czcionki */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

/* Resetowanie i Podstawowe Style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Płynne przewijanie po kliknięciu linku w nawigacji */
html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif; /* NOWA CZCIONKA */
    line-height: 1.7; /* Lepsza czytelność */
    color: #333333;
    background-color: #F8F8F8;
}

h1, h2, h3{
    color: #1A237E; /* Ciemny Granat */
    margin-bottom: 0.5em;
    font-weight: 600;
}

main{
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

section{
    padding: 60px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #EEEEEE;
}

/* --- Nawigacja --- */
.navbar{
    position: fixed; /* Przyklejenie do góry */
    top: 0;
    left: 0;
    width: 100%;
    background: transparent; /* Przezroczyste na górze */
    padding: 15px 50px;
    z-index: 1000;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.navbar.scrolled{
    background-color: #FFFFFF; /* Białe tło po przewinięciu */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.navbar-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo{
    font-size: 1.5em;
    font-weight: 800;
    color: #FFFFFF; /* Białe logo na górze */
    text-decoration: none;
    transition: color 0.3s;
}

.navbar.scrolled .nav-logo{
    color: #1A237E; /* Granatowe logo po przewinięciu */
}

.navbar-links{
    list-style: none;
    display: flex;
    gap: 20px;
}


.nav-link a{
    text-decoration: none;
    color: #FFFFFF; 
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    transition: color 0.3s, background-color 0.3s;
}

.navbar.scrolled .nav-link a{
    color: #1A237E; /* Granatowe linki po przewinięciu */
}

.nav-link a:hover{
    color: #FFC107; /* Złoty hover */
}

.nav-btn-kontakt{
    background-color: #FFC107;
    color: #1A237E !important;
    padding: 8px 15px !important;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-btn-kontakt:hover{
    background-color: #FFB300;
    color: #1A237E !important;
}


/* --- ZMIENIONA SEKCJA: Hero --- */
.hero{
    /* Użycie obrazu tła z nałożonym kolorem */
    background: linear-gradient(rgba(26, 35, 126, 0.7), rgba(26, 35, 126, 0.7)),
                url('images/ab928740-9548-40e3-b63f-0720d2f390da.jpg') no-repeat center center/cover;
    height: 90vh;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero-content{
    /* Animacja pojawiania się tekstu */
    animation: fadeIn 1.5s ease-in-out;
}

.hero h1{
    color: white;
    font-size: 3.5em;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.hero p{
    font-size: 1.5em;
    opacity: 0.9;
    font-weight: 300;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

@keyframes fadeIn{
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- O Nas (2 kolumny) --- */
.about{
    display: flex;
    align-items: center;
    gap: 40px;
}
.about-content{
    flex: 1; /* Tekst zajmuje 1 część */
}
.about-image{
    flex: 0.8; /* Obraz zajmuje 0.8 części */
}
.about-image img{
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}


/* --- Slider --- */
.slider-container{
    text-align: center;
}

.slider{
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

#sliderImage {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease-in-out; 
}


.prev-btn, .next-btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 35, 126, 0.7);
    color: white;
    border: 2px solid #FFC107;
    padding: 12px 18px; 
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: background 0.3s, transform 0.2s;
}

.prev-btn:hover, .next-btn:hover{
    background: #FFC107;
    color: #1A237E;
    transform: translateY(-50%) scale(1.05);
}

.prev-btn { left: 10px; border-radius: 0 4px 4px 0; }
.next-btn { right: 10px; border-radius: 4px 0 0 4px; }

/* --- Kategorie --- */
.categories{
    text-align: center;
    background-color: white;
    padding: 40px 0;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.category-grid{
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.category-item{
    background: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    border-top: 5px solid #FFC107;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex: 1;
    min-width: 280px;
    transition: transform 0.3s;
}

.category-item:hover{
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.category-item img{
    width: 100%;
    height: 200px; 
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}


/* --- Formularz Kontaktowy --- */
.contact{
    background-color: #FFFFFF;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group{
    margin-bottom: 20px;
}

.form-group label{
    display: block;
    margin-bottom: 5px;
    color: #1A237E;
    font-weight: 700;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea{
    width: 100%;
    padding: 12px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: 'Poppins', sans-serif; /* Ważne: czcionka w polach formularza */
}

#form-message {
    display: none;
}

.form-group textarea{
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus{
    border-color: #FFC107;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
    outline: none;
}


.submit-btn{
    background-color: #FFC107;
    color: #1A237E;
    padding: 14px 25px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s, transform 0.2s;
}

.submit-btn:hover{
    background-color: #FFB300;
    transform: translateY(-2px);
}

/* --- Footer --- */
footer{
    text-align: center;
    padding: 25px;
    background: #1A237E;
    color: white;
    margin-top: 40px;
}

/* --- Style dla Komunikatu Sukcesu --- */
.form-success-message{
    background-color: #FFF8E1; 
    color: #1A237E;
    border: 1px solid #FFC107; 
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: bold;
    display: block !important;
    opacity: 1;
    transition: opacity 0.5s;
}

.form-message-hide{
    opacity: 0;
    transition: opacity 0.5s;
}

/* ---  Animacje "Reveal on Scroll" --- */
.reveal{
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.5, 0, 0, 1), transform 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active{
    opacity: 1;
    transform: translateY(0);
}


/* --- Responsywność (max-width: 768px) --- */
/* --- Responsywność (max-width: 768px) --- */
@media (max-width: 768px){

    /* POPRAWKA 1: Mniejszy padding dla głównego kontenera */
    main{
        padding: 0 10px; /* Zmniejszony do 10px, aby zyskać więcej miejsca */
    }
    
    /* POPRAWKA 2: Zmniejszamy paddingi wokół logo/telefonu i przywracamy przezroczystość */
    .navbar{
        padding: 10px; /* Zredukowany padding do 10px ze wszystkich stron */
        background: transparent;
        box-shadow: none;
    }

    /* Ustawienia kontenera nawigacji (Logo | Telefon) */
    .navbar-container{
        justify-content: space-between; 
        align-items: center;
        /* WAŻNE: Wymuś mniejszą szerokość, aby zapobiec przepełnieniu */
        max-width: 100%; 
        padding: 0;
    }
    
    /* WAŻNE: Logo musi być BIAŁE na Granatowej sekcji Hero */
    .nav-logo{
        color: #FFFFFF; 
        font-size: 1.3em; /* Lekkie zmniejszenie czcionki logo */
    }

    /* Ukrywamy wszystkie linki wewnątrz listy */
    .nav-link{
        display: none;
    }
    
    /* WYJĄTEK: Wyświetlamy tylko link z numerem telefonu */
    .nav-link.nav-mobile-phone{
        display: block !important; 
        width: auto; 
    }
    
    /* POPRAWKA 3: ZMNIEJSZAMY PADDING i CZCIONKĘ PRZYCISKU TELEFONU */
    .nav-link.nav-mobile-phone a{
        padding: 6px 10px !important; /* Mniejszy padding wewnątrz przycisku */
        font-size: 0.9em; /* Mniejsza czcionka */
        white-space: nowrap; /* Zapobiega łamaniu się tekstu */
    }

    /* Wymuszamy, aby .navbar-links był nadal flex, ale tylko w celu poprawnego wyświetlenia .nav-mobile-phone */
    .navbar-links{
        display: flex;
        flex-direction: row;
        gap: 0;
        /* Dodatkowo, jeśli .navbar-links jest za szeroki: */
        max-width: 60%; 
        justify-content: flex-end;
    }

    /* Gdy przewiniesz, włączamy białe tło i Granatowe logo */
    .navbar.scrolled{
        background-color: #FFFFFF;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }
    
    .navbar.scrolled .nav-logo{
        color: #1A237E;
    }
    
    /* Korekty dla sekcji Hero, aby logo i telefon nie zakrywały treści */
    .hero{
        padding: 40px 15px;
        height: 60vh;
        padding-top: 80px; 
    }
    .hero h1{
        font-size: 2.5em;
    }
    .hero p{
        font-size: 1.1em;
    }

    /* Responsywność dla "O Nas" (układ kolumnowy) */
    .about{
        flex-direction: column;
    }
    .about-image{
        order: -1; 
        margin-bottom: 20px;
    }
    .about-image img{
        max-width: 100%; 
        height: auto;
    }
    
    /* Responsywność dla Slidera */
    .slider{
        max-width: 100%;
    }
    #sliderImage{
        height: 300px;
    }


    /* Responsywność dla Kategori (układ kolumnowy) */
    .category-grid{
        flex-direction: column;
        gap: 20px;
    }
    .category-item{
        min-width: 90%;
        margin: 0 auto;
    }
    
    /* Responsywność dla Formularza */
    .contact{
        padding: 30px 20px;
    }
}