/* -------------------------------- */
/* RESET + ZMIENNE GLOBALNE */
/* -------------------------------- */
:root {
    --primary: #800000;
    --secondary: #333;
    --bg: #fff;
    --accent: #f1c40f;
    --dark: #000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--secondary);
    line-height: 1.6;
    padding-top: 80px;
}

/* -------------------------------- */
/* NAGŁÓWEK I NAWIGACJA */
/* -------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--dark);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    flex-wrap: wrap;
}

.main-header .logo {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-header .logo i {
    font-size: 24px;
}

.top-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.top-nav a:hover,
.top-nav a.active {
    background: #333;
}

/* Przycisk hamburgera */
.hamburger-menu {
    display: none;
    font-size: 30px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 480px) {
    .hamburger-menu {
        font-size: 25px;
    }
}

/* -------------------------------- */
/* BANNER GÓRNY */
/* -------------------------------- */
.top-banner {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
}

.top-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.banner-text {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 8vw, 7rem);
    text-align: center;
    z-index: 2;
    opacity: 0.8;
}

.banner-caption {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(128, 0, 0, 0.5);
    color: #fff;
    padding: 8px 12px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 2;
}

/* -------------------------------- */
/* SEKCJE */
/* -------------------------------- */
section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: auto;
    background: var(--bg);
    color: var(--secondary);
}

h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 20px;
    text-align: center;
}

/* Separator */
.section-separator {
    position: relative;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    background-size: 200% auto;
    animation: moveLine 2s linear infinite;
    margin: 40px 0 20px;
    border-radius: 2px;
}

@keyframes moveLine {
    0% { background-position: -100% center; }
    100% { background-position: 100% center; }
}

/* -------------------------------- */
/* GALERIA */
/* -------------------------------- */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.gallery img {
    width: 100px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.5);
}

/* -------------------------------- */
/* OFERTA + CENNIK */
/* -------------------------------- */
.offer-categories {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 30px;
}

.offer-category,
.card {
    background: #f4f4f4;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.offer-category:hover,
.card:hover {
    transform: translateY(-10px);
}

.offer-category i,
.card i {
    font-size: 3rem;
    color: #0056b3;
    margin-bottom: 10px;
}

.offer-category h2,
.card h2 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.offer-category p,
.card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.card strong {
    font-size: 1.2rem;
    color: var(--secondary);
}

.pricing-cards {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
    margin-top: 30px;
}

.card {
    min-width: 250px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* -------------------------------- */
/* FORMULARZ KONTAKTOWY + SPOŁECZNOŚCI */
/* -------------------------------- */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: auto;
    background: var(--bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

input, button, select {
    padding: 15px;
    font-size: 1.2rem;
    border-radius: 8px;
    border: 2px solid #ccc;
    background-color: #f9f9f9;
    color: var(--secondary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus-visible, button:focus-visible, select:focus-visible {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(128, 0, 0, 0.5);
}

button {
    background-color: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #600000;
}

.form-heading {
    text-align: center;
    margin-bottom: 20px;
    font-size: clamp(1.3rem, 4vw, 1.7rem);
}

.socials {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.socials a {
    font-size: 2.5rem;
    color: white;
    transition: color 0.3s ease;
}

.socials a:hover {
    color: var(--accent);
}

/* -------------------------------- */
/* KONTAKT INFO */
/* -------------------------------- */
.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 30px 50px;
    margin-bottom: 30px;
    background: var(--primary);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
}

.contact-item i {
    font-size: 2.5rem;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent);
}

/* -------------------------------- */
/* O MNIE */
/* -------------------------------- */
.about-content {
    margin: 0 auto;
    text-align: justify;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--secondary);
}

.about-content h1,
.about-content h2 {
    text-align: left;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-content p,
.about-content li {
    margin-bottom: 20px;
}

.about-content ul {
    margin-left: 20px;
    margin-bottom: 30px;
}

.about-content .highlight {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 30px;
}

.about-images {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.about-images img, .about-images video {
    width: 30%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.about-images img:hover, .about-images video:hover {
    transform: scale(1.4);
}

/* -------------------------------- */
/* STOPKA */
/* -------------------------------- */
footer {
    background: var(--dark);
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 10px;
}

/* -------------------------------- */
/* MEDIA QUERIES */
/* -------------------------------- */
@media (max-width: 768px) {
    .main-header {
        flex-direction: row; /* Ustawienie elementów w jednej linii (zapobiega przechodzeniu hamburgera do nowej linii) */
        justify-content: space-between; /* Ustawienie przestrzeni między elementami */
        align-items: center; /* Wyrównanie elementów w poziomie */
        flex-wrap: nowrap; /* Zapobiega zawijaniu elementów */
    }

    .top-nav {
        display: none; /* Domyślnie menu jest ukryte */
        flex-direction: column;
        width: 100%;
        gap: 10px;
        background: var(--dark);
        padding: 10px 0;
        position: absolute;
        top: 100%; /* Ustawienie menu poniżej nagłówka */
        left: 0;
        z-index: 100;
    }

    .top-nav.show {
        display: flex;
    }

    .hamburger-menu {
        display: block;
        font-size: 28px; /* Dostosowanie rozmiaru hamburgera */
        background: transparent;
        border: none;
        color: #fff;
        cursor: pointer;
        margin-left: auto; /* Ustawienie hamburgera na końcu */
        white-space: nowrap; /* Zapewnia, że przycisk nie przejdzie do nowej linii */
    }

    .offer-categories,
    .pricing-cards {
        flex-direction: column;
        align-items: center;
        overflow-x: visible;
    }

    .offer-category,
    .card {
        width: 90%;
    }

    .contact-info {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        text-align: center;
    }

    .banner-text {
        top: 60%;
    }

    .about-images {
        flex-direction: column;
        align-items: center;
    }

    .about-images img,
    .about-images video {
        width: 70%;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 100px;
    }

    .banner-caption {
        font-size: 1rem;
        bottom: 5px;
        right: 5px;
        padding: 5px 8px;
    }

    input, button, select {
        font-size: 1rem;
        padding: 12px;
    }
}
