/* style.css - Permanent Dark Mode & Top Bar */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
    /* --- PERMANENTNE CIEMNE KOLORY --- */
    --color-bg: #0f1012;         /* Głęboka czerń (Tło strony) */
    --color-navy: #ffffff;       /* Tekst główny (Biały) */
    --color-gold: #bfa17a;       /* Złoty akcent */
    --color-gold-hover: #a38660;
    --color-text: #cccccc;       /* Szary tekst opisów */
    --white: #1a1b1e;            /* Ciemny grafit (Tło kart) */
	--bk: #a38660;            /* Ciemny grafit (Tło kart) */
    
    /* Kolory Top Bara (ze zdjęcia) */
    --topbar-bg: #0f1012;        /* Ciemny granatowo-szary */
    --topbar-text: #bfa17a;      /* Jasny żółty/złoty */

    /* Efekty */
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    --border-radius: 12px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.8;
    overflow-x: hidden;
    display: flex; flex-direction: column; min-height: 100vh;
}

/* Typografia na ciemnym tle */
h1, h2, h3, h4 { font-family: 'Cinzel', serif; color: var(--color-navy); line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: 3.5rem; font-weight: 700; letter-spacing: -1px; }
h2 { font-size: 2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }

/* --- NOWY TOP BAR (Pasek nad menu) --- */
.top-bar {
    background-color: var(--color-bg);
    color: var(--topbar-text);
    padding: 2px 0;
    font-size: 0.9rem;
    position: fixed; /* Przyklejony do góry */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001; /* Wyżej niż nawigacja */
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-socials a, .top-contact a {
    color: var(--topbar-text);
    margin-right: 20px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-socials a:hover, .top-contact a:hover {
    color: var(--color-gold);
}

.top-socials i { font-size: 1.2rem; }

/* --- UKŁAD --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 0px; }
.container-full { max-width: 100%; padding: 0 40px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }

/* --- BUTTONS --- */
.btn {
    display: inline-block; padding: 16px 45px;
    background: var(--color-gold); 
    color: #000; /* Czarny tekst na złotym */
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem;
    border: 1px solid var(--color-gold); cursor: pointer; border-radius: 50px;
    transition: var(--transition);
}
.btn:hover { background: var(--bk); color: var(--color-gold); border-color: var(--color-gold); transform: translateY(-3px); }

.btn-outline {
    background: transparent; border: 2px solid var(--color-gold); color: var(--color-gold);
    padding: 16px 45px; font-weight: 700; text-transform: uppercase; border-radius: 50px; cursor: pointer;
    transition: var(--transition);
}
.btn-outline:hover { background: var(--color-gold); color: #000; }

/* --- HERO --- */
.hero {
    height: 115vh;
    position: relative;
    display: flex; align-items: center; justify-content: center; text-align: center;
    margin-top: -120px; /* Kompensacja (TopBar + Nav) */
    padding-top: 120px;
    color: var(--color-navy);
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 60%, var(--color-bg) 100%),
                url('image/2.jpeg');
    background-size: cover; background-position: center; background-attachment: fixed;
}
.hero h1 { text-shadow: 0 5px 20px rgba(0,0,0,0.8); }
.hero-accent { display: block; color: var(--color-gold); font-weight: 700; letter-spacing: 4px; margin-bottom: 15px; text-transform: uppercase; }

/* --- INNE STYLE (Split, CTA, Grid) --- */
.split-alt { display: flex; align-items: center; gap: 80px; margin-bottom: 120px; }
.split-alt.reverse { flex-direction: row-reverse; }
.split-text { flex: 1; }
.split-img { flex: 1; }
.split-img img { border-radius: 20px; box-shadow: var(--shadow-hover); height: 450px; width: 100%; object-fit: cover; }

.cta-strip {
    background-color: #111; 
    border-top: 1px solid var(--color-gold); border-bottom: 1px solid var(--color-gold);
    padding: 80px 0; margin: 100px 0; color: var(--color-navy); position: relative;
}
.cta-content { display: flex; align-items: center; justify-content: space-between; gap: 50px; }

.feature-card {
    padding: 40px; background: var(--white); border: 1px solid #333;
    text-align: center; transition: var(--transition); border-radius: var(--border-radius);
}
.feature-card:hover { transform: translateY(-10px); border-color: var(--color-gold); }
.icon-box { font-size: 3rem; color: var(--color-gold); margin-bottom: 20px; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .top-contact { display: none; } /* Na mobile ukrywamy numer tel w pasku */
    .top-bar { text-align: center; }
    .top-socials { width: 100%; justify-content: center; display: flex; }
    .split-alt, .split-alt.reverse, .cta-content { flex-direction: column; gap: 40px; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
}

/* GLOBALNY DARK MODE OVERRIDE */
.prod-card, .portfolio-card, .portfolio-info, .sticky-panel, .specs-container {
    background-color: #1a1b1e !important;
    border-color: #333 !important;
    color: #fff !important;
}
.prod-title, .portfolio-title, .opt-name, .spec-key, .spec-value {
    color: #fff !important;
}
.prod-price, .opt-cost {
    color: var(--color-gold) !important;
}

/* ==============================================
   MOBILE FIX (Wersja PANCERNA)
   Wklej to na sam koniec style.css
   ============================================== */

/* 1. HAMBURGER (Przycisk) */
.hamburger {
    display: none; /* Ukryty na PC */
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 24px;
    cursor: pointer;
    z-index: 2000; /* Musi być nad menu */
    position: relative;
    margin-left: auto; /* Dopycha do prawej */
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff; /* Białe kreski */
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Animacja Krzyżyka */
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }


/* ==============================================
   MOBILE FIX - Wersja z Ikonami i Kontaktem
   Wklej to na sam koniec style.css (zastąp poprzednie media query)
   ============================================== */

@media (max-width: 1024px) {
    
    /* 1. TOP BAR (Pasek na samej górze) */
    .top-bar { 
        display: block !important; 
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto; /* Niech rośnie w zależności od zawartości */
        min-height: 60px; /* Rezerwujemy miejsce na 2 linie */
        background-color: #000;
        z-index: 1002;
        border-bottom: 1px solid #222;
        padding: 10px 0;
    }

    .top-bar-content {
        display: flex;
        flex-direction: column; /* Układ pionowy: Ikony nad Kontaktem */
        align-items: center;
        justify-content: center;
        gap: 10px; /* Odstęp między ikonami a tekstem */
    }

    /* Ikony Social Media */
    .top-socials { 
        display: flex !important; 
        gap: 25px;
        margin: 0;
    }
    
    .top-socials a i { font-size: 1.2rem; color: var(--color-gold) !important; }

    /* Kontakt (Telefon i Mail) */
    .top-contact { 
        display: flex !important;
        flex-direction: row; /* Obok siebie, jeśli się zmieszczą */
        flex-wrap: wrap;     /* Jak nie, to spadnie niżej */
        justify-content: center;
        gap: 15px;
        font-size: 0.8rem;
    }
    
    .top-contact a {
        margin: 0 !important;
        color: #fff !important; /* Biały tekst, żeby było widać! */
    }

    /* 2. HEADER (Menu) - PRZESUNIĘTE W DÓŁ */
    nav {
        /* Przesuwamy menu o 90px w dół, żeby Top Bar go nie zasłaniał */
        top: 70px !important; 
        padding: 10px 0;
        background-color: #050505 !important;
        height: 60px;
        border-bottom: 1px solid #222;
    }

    .nav-content {
        justify-content: space-between;
        padding: 0 20px;
    }

    /* Logo */
    .logo-main { font-size: 1.4rem !important; }
    .logo-sub { display: none; } /* Ukrywamy mały dopisek na mobile dla czytelności */

    /* Hamburger */
    .hamburger { display: flex; }

    /* Ukrycie wersji desktop */
    .menu, .nav-btn, .lang-wrapper { display: none; }

    /* 3. WYSUWANE MENU MOBILNE */
    .nav-links-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #0f1012;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        z-index: 1500;
        padding-top: 80px; /* Żeby nie wchodziło na Top Bar */
    }

    .nav-links-wrapper.active { right: 0; }

    .nav-links-wrapper .menu {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .nav-links-wrapper .menu a {
        font-size: 1.4rem;
        color: #fff;
    }

    .nav-links-wrapper .nav-btn {
        display: block !important;
        margin: 30px 0;
        padding: 15px 40px;
    }
    
    .nav-links-wrapper .lang-wrapper { display: block !important; }

    body.no-scroll { overflow: hidden; }

    /* 4. POPRAWKI RESZTY STRONY */
    .hero {
        margin-top: 0;
        /* Odsunięcie Hero o (TopBar + Nav + luz) = 90 + 60 + 20 = 170px */
        padding-top: 170px; 
        height: 100vh;
        background-attachment: scroll;
    }
    .hero h1 { font-size: 1.8rem; padding: 0 10px; }

    /* Gridy w jednej kolumnie */
    .grid-3, .catalog-grid, .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
        padding: 0 20px;
    }

    .split-alt, .split-alt.reverse {
        flex-direction: column !important;
        gap: 30px;
    }
    .split-img img { height: 250px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-col a { justify-content: center; }
}