/* --- 0. IMPORT CZCIONEK --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Playfair+Display:wght@400;700&display=swap');

/* --- 1. BAZA --- */
:root {
    --primary-bg: #F8FAFC;
    --zigo-gold: #B5935A;
    --zigo-dark: #1A1C1E;
    --transition-smooth: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body { 
    font-family: 'Inter', sans-serif; 
    margin: 0; 
    padding: 0; 
    overflow-x: hidden; 
    background-color: var(--primary-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.serif { font-family: 'Playfair Display', serif; }

/* --- 2. HERO & WIDEO FIX --- */
header { 
    position: relative; 
    z-index: 50; 
} 

#hero-video { 
    pointer-events: none; 
    object-fit: cover; 
    width: 100%;
    height: 100%;
}

.content-overlay { 
    position: relative; 
    z-index: 40; 
    background-color: transparent !important; 
    margin-top: -120px; 
}

/* --- 3. ANIMACJE FADE-IN --- */
.fade-in-section {
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
    will-change: opacity, transform;
}

.fade-in-section.is-visible { 
    opacity: 1 !important; 
    transform: translateY(0) !important; 
}

/* --- 4. GALERIA PORTFOLIO (Siatka) --- */
#portfolio-container {
    transition: all 0.5s ease;
}

.group:hover img {
    filter: grayscale(0);
}

/* --- 5. LIGHTBOX SYSTEM --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(15px);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Musi być nad wszystkim */
    padding: 20px;
}

.lightbox:target {
    display: flex; 
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
    transform: scale(0.95);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    object-fit: contain;
}

.lightbox:target img {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    color: var(--zigo-dark);
    text-decoration: none;
    font-weight: 200;
    transition: color 0.3s, transform 0.3s;
    line-height: 0.8;
}

.close-btn:hover {
    color: var(--zigo-gold);
    transform: rotate(90deg);
}

/* --- 6. RESPONSYWNOŚĆ --- */
@media (max-width: 768px) {
    h1 { font-size: 3rem !important; }
    
    .content-overlay { margin-top: 0 !important; }
    
    /* Na urządzeniach mobilnych wyłączamy animacje przesunięcia, 
       żeby scrollowanie było płynniejsze i nie "skakało" */
    .fade-in-section {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .close-btn {
        right: 20px;
        top: 20px;
        font-size: 40px;
    }

    #unmute-btn {
        bottom: 20px !important;
        right: 20px !important;
        transform: scale(0.85);
    }
}

/* --- 7. ZABEZPIECZENIA I TABELE --- */
img { 
    -webkit-user-drag: none; 
    user-select: none; 
    max-width: 100%; 
    height: auto;
}

table { 
    border-collapse: separate; 
    border-spacing: 0; 
    width: 100%; 
}

th { 
    border-bottom: 1px solid #E2E8F0; 
    padding: 15px; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    font-size: 10px; 
    color: var(--zigo-dark);
    text-align: left;
}

td { 
    border-bottom: 1px solid #F1F5F9; 
    padding: 15px; 
    font-size: 13px; 
    color: #64748B; 
}

/* Główne style stopki */
.site-footer {
    background-color: #0e0e0e; /* Ciemne tło ze screena */
    color: #ffffff;
    padding: 60px 20px;
    font-family: 'Inter', sans-serif; /* Możesz zmienić na swoją czcionkę */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Stylizacja Logo */
.footer-logo {
    height: 120px; /* Zwiększone logo - dostosuj wg uznania */
    width: auto;
}

/* Stylizacja Menu */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav a {
    color: #888; /* Szary kolor dla mniej ważnych linków */
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-nav .footer-email {
    color: #fff;
    margin-top: 10px;
    font-weight: bold;
}

/* Sekcja Prawna */
.footer-legal {
    text-align: right;
    font-size: 11px;
    color: #555;
    letter-spacing: 0.5px;
}

.footer-legal a {
    color: #555;
    text-decoration: none;
    display: block;
    margin-top: 10px;
}

.footer-legal a:hover {
    color: #bfbfbf;
}

/* RESPONSYWNOŚĆ (Smartfon) */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-legal {
        text-align: center;
    }

    .footer-logo {
        height: 70px; /* Nieco mniejsze logo na telefonie */
    }
}