/* --- 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;
    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; }
    
    .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; 
}

/* --- 8. STOPKA (SITE FOOTER) - POPRAWIONA --- */
.site-footer {
    background-color: #0e0e0e !important;
    color: #ffffff !important;
    padding: 80px 24px 60px 24px;
    font-family: 'Inter', sans-serif;
    margin-top: 80px;
    border-top: 1px solid #1a1a1a;
    width: 100%;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

/* Sekcja Logo */
.footer-logo-area {
    display: flex;
    align-items: center;
}

.footer-logo-area a {
    color: #ffffff !important;
    text-decoration: none;
}

.footer-logo {
    height: 60px;
    width: auto;
}

/* Stylizacja Menu Nawigacji */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-nav a {
    color: #888888 !important;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.2em;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #B5935A !important;
}

/* Sekcja Prawna */
.footer-legal {
    text-align: right;
    font-size: 11px;
    color: #666666;
    max-width: 420px;
    line-height: 1.7;
    letter-spacing: 0.05em;
}

.footer-legal p {
    margin: 0 0 12px 0;
}

.footer-legal a {
    color: #555555 !important;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #888888 !important;
}

/* RESPONSYWNOŚĆ STOPKI */
@media (max-width: 768px) {
    .site-footer {
        padding: 60px 20px 40px 20px;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 36px;
    }

    .footer-legal {
        text-align: left;
        max-width: 100%;
    }
}