﻿/* ==========================================================================
   1. ZMIENNE I RESET (ZACHOWANE)
   ========================================================================== */
: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 (ZACHOWANE - Gwarantuje poprawne menu)
   ========================================================================== */
.main-header {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/hero-dark.webp') 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; }

.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; }

.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 {
    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 & BUTTONS */
.hero-text-container {
    max-width: 1200px; margin: 150px auto 0; padding: 0 20px; color: var(--white);
    text-align: left; /* Możesz zmienić na center jeśli wolisz wyśrodkowany tekst */
}
.captionTitle { font-size: 4.5rem; text-transform: uppercase; font-weight: 900; margin-bottom: 15px; }
.header-seo-text { font-size: 1.8rem; max-width: 700px; color: #ccc; margin-bottom: 30px; }

.hub-badge {
    background: var(--corten);
    padding: 5px 12px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 4px;
    margin-bottom: 10px;
    display: inline-block;
}

.category-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-category {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}
.btn-category:hover { background: var(--corten); border-color: var(--corten); }

/* ==========================================================================
   3. SEKACJA PORADNIK (KARTY W MAIN)
   ========================================================================== */
.container-center {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.guide-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card-image {
    position: relative;
    height: 220px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--corten);
    color: var(--white);
    padding: 4px 10px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 3px;
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-content p {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 20px;
}

.btn-guide {
    margin-top: auto;
    color: var(--corten);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-guide:hover { color: var(--black); }

/* STOPKA PORADNIKA */
.guide-footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.guide-footer a { color: var(--corten); text-decoration: none; font-weight: 700; }

/* RWD */
@media (max-width: 768px) {
    .captionTitle { font-size: 3rem; }
    .hero-text-container { margin-top: 120px; }
    .main-ul { display: none; } /* Uproszczenie na mobile bez JS */
}
/* ==========================================================================
 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) - FINALNA WERSJA
   ========================================================================== */
@media (max-width: 1100px) {
    /* Hamburger i animacja X */
    .hamburger { 
        display: flex; 
        flex-direction: column; 
        gap: 5px; 
        cursor: pointer; 
        z-index: 2100; 
        padding: 10px;
        position: relative;
    }

    .hamburger span { 
        width: 30px; 
        height: 3px; 
        background: white; 
        transition: all 0.3s ease-in-out; 
        display: block;
    }
    
    .hamburger.active span { background: #000; }
    .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); }

    /* Panel Menu Mobilnego */
    .nav-menu {
        position: fixed; 
        top: 0; 
        right: -100%; 
        width: 280px; 
        height: 100vh;
        background: var(--white); 
        padding-top: 100px; 
        transition: 0.4s ease-in-out; 
        z-index: 1999;
        overflow-y: auto;
    }

    .nav-menu.active { 
        right: 0 !important; 
        box-shadow: -5px 0 15px rgba(0,0,0,0.3); 
    }

    /* Układ listy */
    .main-ul { display: flex; flex-direction: column; width: 100%; }

    /* 1. Domyślny kolor dla wszystkich linków (O nas, Galeria itp. będą czarne) */
    .main-ul li a { 
        color: #000000 !important; 
        padding: 15px 30px; 
        border-bottom: 1px solid #eee; 
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1.4rem;
        text-decoration: none;
        font-weight: 700;
    }

    /* 2. WYJĄTEK: Tylko "Produkty" (klasa .has-sub) zawsze w kolorze Corten */
    .nav-menu .has-sub > a {
        color: var(--corten) !important;
        font-weight: 800;
    }

    /* 3. Strzałka przy Produktach też w Corten */
    .nav-menu .has-sub > a::after {
        color: var(--corten) !important;
        content: "\f078";
        font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
        font-weight: 900;
        margin-left: 8px;
        transition: 0.3s;
    }

    /* Obrót strzałki po kliknięciu i otwarciu submenu */
    .has-sub.open > a::after {
        transform: rotate(180deg);
    }

    /* 4. Dropdown (Lista konkretnych produktów - czarna) */
    .dropdown { 
        position: static; 
        display: none; 
        background: #fdfdfd; 
    }
    
    .has-sub.open > .dropdown { 
        display: block !important; 
        width: 100%;
    }

    .dropdown li a {
        padding-left: 50px !important;
        color: #000000 !important;
        font-weight: 400;
        font-size: 1.3rem;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Layouty treści na podstronach */
    .product-row, .product-row.reverse, .info-grid, .guide-grid { 
        grid-template-columns: 1fr !important; 
        gap: 20px; 
    }
}
