﻿/* ==========================================================================
   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; }

============================================================
/* --- KONTAKT: DOPASOWANIE DO RESZTY STRONY (DONICE) --- */
.contact-page-theme {
    max-width: 1400px;
    margin: 80px auto !important; /* Wyśrodkowanie całej sekcji względem okna */
    padding: 40px 20px;
}

.contact-layout-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
    justify-content: center; /* Wyśrodkowanie zawartości (karta + mapa) na desktop */
}

/* --- DANE KONTAKTOWE --- */
.contact-sidebar {
    flex: 1;
    min-width: 350px; /* Minimalna szerokość danych */
    max-width: 500px; /* Aby karta nie była nienaturalnie szeroka */
}

.contact-info-card {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 4px;
    border-left: 5px solid var(--antracyt);
    height: 100%; /* Wyrównanie wysokości do mapy jeśli to możliwe */
}

/* --- WIZUALNE (MAPA) --- */
.contact-visual-content {
    flex: 1.5;
    min-width: 350px;
    max-width: 800px; /* Ograniczenie szerokości mapy dla balansu */
}

.dept-item {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.dept-item h4 {
    color: var(--corten);
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 700;
}

/* Wielkie numery - dziedziczą font z reszty strony */
.dept-item p {
    font-size: 2.5rem !important; 
    font-weight: 800;
    margin: 5px 0;
    line-height: 1.2;
}

.dept-item p a {
    text-decoration: none;
    color: inherit;
}

/* --- MAPA --- */
.map-wrapper {
    position: relative;
    width: 100%;
    height: 450px; /* Zwiększyłem wysokość, by pasowała do dużej ilości tekstu obok */
    background: #eee;
    overflow: hidden;
    margin-bottom: 20px;
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* --- FIX DLA KOMÓREK --- */
@media (max-width: 1100px) {
    .contact-layout-grid {
        flex-direction: column;
        align-items: center; /* Centrowanie w pionie na mobile */
        gap: 30px;
    }

    .contact-sidebar, .contact-visual-content {
        max-width: 100%; /* Na mobile bierzemy całą szerokość */
        width: 100%;
    }

    .contact-page-theme {
        margin: 20px auto !important;
        padding: 20px 15px;
        overflow-x: hidden;
    }

    .dept-item p {
        font-size: 2rem !important;
    }

    .map-wrapper {
        height: 300px;
    }
}
/* WYMUSZENIE CZCIONKI ZGODNEJ Z PODSTRONĄ DONIC */
.contact-page-theme, 
.contact-page-theme p, 
.contact-page-theme h2, 
.contact-page-theme h4, 
.contact-page-theme a {
    font-family: inherit !important; /* Pobiera font z głównego body strony */
    -webkit-font-smoothing: antialiased; /* Poprawia wyrazistość na Mac/iOS */
    -moz-osx-font-smoothing: grayscale;
}

/* Grubość dla numerów telefonów, aby pasowała do nagłówków w donicach */
.dept-item p {
    font-weight: 800 !important; 
    letter-spacing: -0.5px; /* Delikatne zacieśnienie dla nowoczesnego wyglądu */
}
/* ==========================================================================
   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);
    }
  
