/* RESET I OGÓLNE STYLE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
}

/* NAWIGACJA (NAVBAR) */
nav {
    background-color: #2e1a47; /* Ciemny fiolet */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    height: 70px;
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: #ffcd94; /* Kolor tekstu FunEvents */
    font-weight: bold;
}

.logo_img{
    height: 10rem;
    position:absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    
}

/* Menu linki */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffcd94;
}

/* SEKCJA HERO (GŁÓWNA) */
.hero {
    position: relative;
    height: 600px; /* Wysokość sekcji */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Nagłówek H1 */
.hero h1 {
    font-size: 3.5rem;
    color: #ffcd94; /* Jasny pomarańczowy/złoty */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

/* Tekst pod nagłówkiem */
.hero p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* Przycisk CTA */
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background-color: #f5b700;
    color: #2e1a47;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 15px;
}

/* hover */
.btn-primary:hover {
    background-color: #d99e00;
    transform: translateY(-1px);
}

/* reset dla button */
button.btn-primary {
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
    box-shadow: none;
}

/* Sekcja Oferty */
.offer-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    color: #2e1a47; /* Ciemny fiolet z poprzedniego projektu */
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 700;
}

/* GRID (Siatka kart) */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Karta Oferty */
.offer-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    transform: translateY(-5px);
}

/* Zdjęcie w karcie */
.card-image {
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* NOWA GALERIA W KARCIE */
.card-image-gallery {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #000;
    cursor: pointer;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.gallery-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Strzałki nawigacji (widoczne tylko na dużych ekranach) */
.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
    display: none;
}

.gallery-prev:hover,
.gallery-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

/* Kropki wskaźnika */
.gallery-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: rgba(255, 255, 255, 1);
}

/* LIGHTBOX GALERIA */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.lightbox-close:hover {
    color: #ffcd94;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    font-size: 3rem;
    padding: 15px 25px;
    cursor: pointer;
    z-index: 1001;
    transition: background-color 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1rem;
}

/* Treść karty */
.card-content {
    padding: 25px;
    flex-grow: 1;
}

.card-title {
    color: #2e1a47;
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Lista szczegółów (ikony + tekst) */
.card-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-details li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #555;
    font-size: 0.95rem;
}

.card-details li i {
    width: 25px;
    color: #6c7ae0; /* Niebieskawy odcień ikon ze zdjęcia */
    margin-right: 10px;
    text-align: center;
}

    /* --- NOWA SEKCJA: O NAS --- */
.about-section {
    background-color: #fff; /* Białe tło sekcji */
    padding: 80px 20px;     /* Duży odstęp góra/dół */
    text-align: center;
}

.about-container {
    max-width: 900px;       /* Ograniczona szerokość tekstu dla czytelności */
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;       /* Większy odstęp między liniami */
    color: #4a4a4a;         /* Ciemnoszary, nie czarny (lepszy dla oczu) */
    margin-bottom: 25px;
}

/* --- STOPKA (FOOTER) --- */
footer {
    background-color: #2e1a47; /* Główny ciemny fiolet */
    color: #fff;
    margin-top: 0;
}

.footer-contact {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Nadpisujemy kolor tytułu dla ciemnego tła stopki */
.footer-contact .section-title {
    color: #ffcd94; 
}

/* Pudełko z danymi kontaktowymi */
.contact-box {
    background-color: rgba(255, 255, 255, 0.08); /* Lekko jaśniejsze tło (przezroczystość) */
    padding: 40px;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    text-align: left; /* Tekst wyrównany do lewej wewnątrz pudełka */
}

.contact-box h3 {
    color: #ffcd94;
    font-size: 1.2rem;
    margin-bottom: 25px;
    margin-top: 0;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1rem;
}

/* Ikony w stopce */
.contact-info-item i {
    color: #ffcd94; /* Złoty kolor ikon */
    font-size: 1.2rem;
    width: 30px; /* Stała szerokość dla równego ułożenia */
    margin-right: 15px;
}

.contact-info-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info-item a:hover {
    color: #ffcd94;
}

/* Dolny pasek z prawami autorskimi */
.footer-bottom {
    background-color: #1a0e2e; /* Bardzo ciemny fiolet/czarny */
    padding: 20px;
    text-align: center;
    color: #ffcd94;
    font-size: 0.9rem;
}

/* --- STOPKA: GRID --- */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

/* FORMULARZ */
.contact-form-box {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 10px;
}

.contact-form-box h3 {
    color: #ffcd94;
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 15px;
    color: #fff;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-top: 5px;
    padding: 10px 12px;
    border-radius: 6px;
    border: none;
    font-size: 0.95rem;
}

.contact-form textarea {
    resize: vertical;
}

/* KOMUNIKATY */
.form-success {
    background-color: rgba(0, 255, 0, 0.15);
    color: #b6ffb6;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.form-error {
    background-color: rgba(255, 0, 0, 0.15);
    color: #ffb6b6;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}




/* RESPANSYWNOŚĆ (Dla telefonów) */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    nav {
        padding: 15px 20px;
    }

    .nav-links {
        display: none; /* Ukryte na małych ekranach dla uproszczenia */
    }

                .section-title {
        font-size: 2rem;
    }

    .about-text {
        font-size: 1rem;
        padding: 0 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

        /* Na małych ekranach: pokaż kropki, ukryj strzałki */
    .gallery-prev,
    .gallery-next {
        display: none;
    }
    
    .gallery-dots {
        display: flex;
    }
}


/* RESPONSYWNOŚĆ */
@media (min-width: 769px) {
    /* Na dużych ekranach: pokaż strzałki, ukryj kropki */
    .gallery-prev,
    .gallery-next {
        display: block;
    }
    
    .gallery-dots {
        display: none;
    }
    
    /* Klikanie w zdjęcie otwiera lightbox */
    .card-image-gallery {
        cursor: zoom-in;
    }
}