﻿/* ==========================================================================
   1. ZMIENNE I RESET
   ========================================================================== */
:root {
    --corten: #b87333;
    --corten-hover: #d2691e;
    --antracyt: #2a2a2a;
    --black: #1a1a1a;
    --white: #ffffff;
    --bg-light: #f4f4f4;
    --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333;
    background: var(--white);
    overflow-x: hidden;
}

/* ==========================================================================
   2. NAWIGACJA I HEADER
   ========================================================================== */
.main-header {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/tlo2.png') center/cover no-repeat;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.navigation-bar { background: url('../img/tlonav.jpg') center/cover no-repeat; position: fixed; top: 0; width: 100%; z-index: 2000; border-bottom: 2px solid rgba(255,255,255,0.2); }
.hamburger {
    display: none; /* Ukrywamy hamburger na komputerach */
}
.header-content {
    max-width: 1400px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px; height: 90px;
}

.logo img { max-height: 60px; }

/* Menu Desktop */
.main-ul { display: flex; list-style: none; }
.main-ul li { position: relative; }
.main-ul li a {
    color: var(--white); text-decoration: none; padding: 35px 20px;
    display: block; font-weight: 700; font-size: 1.3rem; text-transform: uppercase;
    transition: var(--transition);
}

.main-ul li a:hover, .main-ul li.selected > a { color: var(--corten); }

/* Dropdown */
.dropdown {
    position: absolute; top: 90px; left: 0; background: var(--black);
    min-width: 220px; display: none; list-style: none; border-top: 3px solid var(--corten);
}
.dropdown li a { padding: 15px 20px; text-transform: none; border-bottom: 1px solid #222; }
.has-sub:hover .dropdown { display: block; }

/* Hero Text */
.hero-text-container {
    max-width: 1200px; margin: 150px auto 0; padding: 0 20px; color: var(--white);
}
.hero-text-container .captionTitle h1{ font-size: clamp(2.8rem, 5vw, 4.2rem) !important; font-weight: 900; line-height: 1.1; margin-bottom: 20px; } .hero-text-container .header-seo-text { font-size: 1.5rem !important; max-width: 600px; line-height: 1.6; }

/* Kontener galerii */
/* --- SEKCJA FILTRÓW --- */
.gallery-filters { 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 10px; 
    margin-bottom: 30px; 
}

.filter-btn { 
    padding: 10px 25px; 
    border: 2px solid #333; 
    background: transparent; 
    color: #333;
    cursor: pointer; 
    font-weight: 600; 
    border-radius: 4px;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover { 
    background: #333; 
    color: #fff; 
}

/* --- SIATKA GALERII --- */
.gallery-grid { display: grid; /* minmax(300px, 1fr) jest bezpieczniejsze dla wąskich telefonów niż 250px */ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; max-width: 1200px; /* Zmienione ze 100px na 1400px */ margin: 0 auto; justify-content: center; padding: 20px; width: 100%; /* Dodaj to, aby wymusić elastyczność */ }

.gallery-item {
    position: relative;
    overflow: hidden; /* Przycina zdjęcie do ramki */
    height: 250px;    /* Stała wysokość kafelka */
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Wypełnia kadr bez rozciągania */
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Delikatne powiększenie przy najechaniu */
}

/* --- NAKŁADKA NA ZDJĘCIE --- */
.item-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-overlay span {
    color: white;
    border: 1px solid white;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

/* --- LIGHTBOX (POWIĘKSZENIE) --- */
.lightbox { 
    display: none; 
    position: fixed; 
    z-index: 9999; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.92); 
    justify-content: center; 
    align-items: center; 
    cursor: pointer; 
}

.lightbox img { 
    max-width: 90%; 
    max-height: 85%; 
    border: 4px solid white; 
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.close-lightbox { 
    position: absolute; 
    top: 20px; 
    right: 40px; 
    color: white; 
    font-size: 60px; 
    font-weight: 300;
    cursor: pointer; 
    line-height: 1;
}
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
    z-index: 10000;
}

.nav-arrow:hover { color: #ccc; }
.left { left: 20px; }
.right { right: 20px; }

/* Ukrycie strzałek na bardzo małych ekranach, by nie zasłaniały zdjęcia */
@media (max-width: 600px) {
    .nav-arrow { font-size: 30px; padding: 10px; }
}
.lightbox-content {
    text-align: center;
    max-width: 90%;
}

#lightbox-caption {
    color: white;
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 300;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block; /* Żeby tło pasowało do długości tekstu */
}

/* Poprawka, żeby strzałki nie nachodziły na tekst na małych ekranach */
@media (max-width: 768px) {
    #lightbox-caption { font-size: 1rem; }
}
/* ==========================================================================
   5. FOOTER I IKONY
   ========================================================================== */
.main-footer { background: var(--black); color: #999; padding: 60px 0 0; margin-top: 100px; }
.footer-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px 40px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px;
}
.footer-column h3 { color: var(--white); margin-bottom: 20px; border-left: 3px solid var(--corten); padding-left: 15px; }

.social-links { display: flex; gap: 15px; margin-top: 15px; }
.social-icon {
    width: 40px; height: 40px; background: #333; color: white;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; border-radius: 50%; transition: 0.3s;
}
.social-icon:hover { background: var(--corten); transform: translateY(-3px); }

.footer-bottom { background: #111; padding: 20px; text-align: center; font-size: 1.2rem; }

/* ==========================================================================
   6. RWD (MOBILNE)
   ========================================================================== */
@media (max-width: 1100px) {
    .hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
    .hamburger span { width: 30px; height: 3px; background: white; transition: 0.3s; }
   .hamburger { 
        display: flex; 
        flex-direction: column; 
        gap: 5px; 
        cursor: pointer; 
        z-index: 2100; /* Musi być wyżej niż nav-menu */
        padding: 10px;
        position: relative;
    }

    .hamburger span { 
        width: 30px; 
        height: 3px; 
        background: white; /* Kolor kresek gdy menu jest zamknięte */
        transition: all 0.3s ease-in-out; 
        display: block;
        transform-origin: center;
    }
    
    /* KLUCZ: Zmiana koloru na czarny po otwarciu, żeby widzieć krzyżyk na białym tle menu */
    .hamburger.active span {
        background: #000; 
    }

    /* Tworzenie krzyżyka (X) */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: var(--white); padding-top: 100px; transition: 0.4s; z-index: 1999;
    }
    .nav-menu.active { right: 0; box-shadow: -5px 0 15px rgba(0,0,0,0.3); }
    .main-ul { flex-direction: column; }
    .main-ul li a { color: var(--black); padding: 15px 30px; border-bottom: 1px solid #eee; }
    
    .dropdown { position: static; display: none; background: #f9f9f9; }
    
    .product-row, .product-row.reverse { grid-template-columns: 1fr; gap: 30px; }
    .info-grid { grid-template-columns: 1fr; }
}
/* Pokazywanie submenu na mobile po kliknięciu */
    .nav-menu .has-sub.open .dropdown {
        display: block !important;
        width: 100%;
    }
/* Profesjonalna strzałka V przy submenu */
    .has-sub > a::after {
        content: "\f078"; /* Kod ikony chevron-down w FontAwesome */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1rem;
        margin-left: 8px;
        display: inline-block;
        transition: transform 0.3s ease; /* Animacja obrotu */
    }

    /* Obrót strzałki po otwarciu menu */
    .has-sub.open > a::after {
        transform: rotate(180deg);
        color: var(--corten);
    }
  
