/* ======== Globalne ustawienia ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f4f4f4;
}

/* ======== Nagłówek i logo ======== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #eef5e1;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .logo img {
    height: 50px;
}

/* Stylizacja logo tekstowego */
.logo-text {
    font-family: 'Arial', sans-serif;
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #2c5f2d;
    margin-right: 20px;
    display: inline-block;
}

/* ======== Nawigacja ======== */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* ======== Sekcja hero ======== */
#hero {
    background-image: url('./bg2.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 20px;
    text-align: center;
    color: white;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

#hero h1 {
    font-size: 3em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    max-width: 800px;
    margin: 20px auto 0;
}

/* ======== Sekcja produktów i kontakt ======== */
#product, #contact {
    padding: 50px 20px;
    text-align: center;
}

.product-info {
    max-width: 800px;
    margin: 0 auto;
}

.gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.gallery img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.contact-details p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

form {
    max-width: 500px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    padding: 10px 20px;
    background-color: #2c5f2d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #3c7634;
}

/* ======== Sekcja wyróżnionego produktu ======== */
#featured-product {
    background-color: #eef5e1;
    padding: 50px 0;
    width: 100%;
}

#featured-product .content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#featured-product h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 30px;
}

.product-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.product-description {
    flex: 1;
    font-size: 1.2em;
    line-height: 1.6;
}

.product-images {
    display: flex;
    gap: 20px;
    flex: 1;
}

.product-images img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ======== Sekcja pułapki na owady ======== */
.insect-trap {
    margin-top: 30px;
}

.insect-trap ul {
    list-style-type: disc;
    padding-left: 20px;
}

.insect-trap h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.insect-trap p {
    margin-bottom: 15px;
    font-size: 1.2em;
}

.insect-trap ul li {
    font-size: 1.1em;
    margin-bottom: 10px;
}

/* ======== Broszura informacyjna ======== */
.insect-trap-brochure {
    margin-top: 30px;
    text-align: center;
}

.download-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #2c5f2d;
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 5px;
}

.download-link:hover {
    background-color: #3c7634;
}

/* ======== Sekcja zalet pułapki ======== */
.insect-trap-advantages {
    margin-top: 30px;
    padding: 20px;
    background-color: #f0f4f1;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.insect-trap-advantages h3 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
    color: #2c5f2d;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.insect-trap-advantages ul {
    list-style-type: none;
    padding-left: 0;
}

.insect-trap-advantages ul li {
    font-size: 1.3em;
    margin-bottom: 15px;
    padding-left: 50px;
    position: relative;
    color: #333;
    background-color: #e9f5e9;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    padding-left: 50px;
}

.insect-trap-advantages ul li::before {
    content: "✔";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: #2c5f2d;
}

.insect-trap-advantages ul li:hover {
    background-color: #d1ecd1;
    transform: translateX(10px);
}

/* ======== Stopka ======== */
footer {
    background-color: #2c5f2d;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
}


/* Stylizacja galerii */
.gallery img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer; /* Zmieniamy kursor na wskaźnik */
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05); /* Efekt lekkiego powiększenia przy najechaniu */
}

/* Modal (okno powiększenia zdjęcia) */
.modal {
    display: none; /* Ukryty na początku */
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Czarne półprzezroczyste tło */
}

/* Stylizacja powiększonego zdjęcia */
.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
}

/* Stylizacja opisu */
#caption {
    text-align: center;
    color: white;
    padding: 10px;
    font-size: 1.2em;
}

/* Stylizacja przycisku zamknięcia */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
/* Sekcja zasobów */
#resources {
    padding: 50px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

#resources h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #2c5f2d;
}

/* Stylizacja listy załączników */
.attachments-list {
    list-style-type: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.attachments-list li {
    margin-bottom: 15px;
}

.attachment-link {
    display: inline-block;
    text-decoration: none;
    font-size: 1.2em;
    padding: 10px 20px;
    background-color: #2c5f2d;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.attachment-link:hover {
    background-color: #3c7634;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.attachment-link .icon {
    margin-right: 10px;
    font-size: 1.5em;
}


/* ======== Responsywność ======== */
@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
        text-align: center;
    }

    .product-images {
        flex-direction: column;
        gap: 15px;
    }

    .product-description {
        margin-bottom: 20px;
    }
}
