/* --- ZMIENNE I RESET --- */
:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #8c8c8c;
    --gold-accent: #bfa37c;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text-color); background-color: var(--bg-color); line-height: 1.6; overflow-x: hidden; }
html { scroll-behavior: smooth; }

/* --- TYPOGRAFIA --- */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

/* --- NAWIGACJA --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.nav-logo {
    height: 70px;
    width: auto;
    display: block;
    transition: 0.3s;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a { text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; font-weight: 500; }
.nav-links a:hover { color: var(--gold-accent); }

/* Burger Mobile */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 2px; background-color: #000; margin: 5px; }

/* --- HERO --- */
.hero {
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 100px; 
}

.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('Zdjecia/foto-glowne.jpg');
    background-size: cover; 
    background-position: center; 
    z-index: -1;
    background-color: #333; 
}

.hero h1 { font-size: 3rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero-btns { margin-top: 20px; display: flex; gap: 20px; justify-content: center; }

.btn { padding: 12px 30px; text-transform: uppercase; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: var(--gold-accent); color: #fff; }
.btn-outline { border: 1px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: #000; }

/* --- SEKCJE --- */
.section { padding: 80px 0; }
.section-title { font-size: 2.5rem; position: relative; display: inline-block; margin-bottom: 30px; }
.section-title::after { content: ''; display: block; width: 60px; height: 1px; background: var(--gold-accent); margin: 15px auto 0; }

/* --- TEAM --- */
.team-split { background: #f9f9f9; }
.reverse { background: #fff; }
.split-container { display: flex; align-items: center; gap: 50px; }
.image-box { flex: 1; }
.image-box img { width: 100%; height: auto; filter: grayscale(100%); transition: 0.5s; }
.image-box img:hover { filter: grayscale(0%); }
.text-box { flex: 1; }
.subtitle { text-transform: uppercase; color: var(--gold-accent); font-size: 0.8rem; letter-spacing: 2px; font-weight: 600; }
.services-list li { margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.services-list i { color: var(--gold-accent); }
.contact-link { display: inline-block; margin-top: 20px; font-size: 1.2rem; font-weight: 600; border-bottom: 1px solid var(--gold-accent); }
.contact-link i { margin-right: 10px; color: var(--gold-accent); }
.reverse .split-container { flex-direction: row-reverse; }

/* --- GALERIA --- */
.gallery-section { background: #fff; }

.gallery-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    border-left: 3px solid var(--gold-accent);
    padding-left: 15px;
    color: #444;
}

/* --- WIDEO GRID --- */
.video-grid {
    display: grid;
    /* 3 równe kolumny */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    max-width: 1200px;
    margin: 0 auto;
}

/* Kontener na lokalne wideo - ZMNIEJSZAMY DLA OSTROŚCI */
.local-video-wrapper {
    position: relative;
    width: 100%;
    
    /* Zmniejszamy max-width na PC do 320px. 
       To "zagęści" piksele i wideo będzie wyglądać na ostrzejsze. */
    max-width: 320px; 
    
    /* Centrowanie wideo w kolumnie, jeśli jest węższe */
    margin: 0 auto;
    
    height: auto; 
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.local-video-wrapper video {
    width: 100%;
    height: auto; 
    display: block;
}

/* --- PHOTO GRID --- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.gallery-item {
    display: block; 
    position: relative;
    height: 350px; 
    overflow: hidden;
    background: #f0f0f0;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.gallery-item:hover .zoom-icon {
    opacity: 1;
}

/* --- KONTAKT --- */
.contact-section { background: #111; color: #fff; padding-bottom: 40px; }
.contact-grid { display: flex; justify-content: center; gap: 50px; margin-bottom: 30px; }
.contact-card h3 { margin-bottom: 10px; color: var(--gold-accent); font-size: 1.2rem; }

.phone-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}
.phone-wrapper i { color: var(--gold-accent); }

.email-footer { font-size: 1.2rem; margin-bottom: 20px; color: #aaa; }
.socials a { font-size: 1.5rem; color: #fff; margin: 0 10px; }
.socials a:hover { color: var(--gold-accent); }
footer { background: #000; color: #444; text-align: center; padding: 20px; font-size: 0.8rem; }

/* --- MOBILE & TABLET --- */
@media screen and (max-width: 900px) {
    .nav-links {
        position: absolute; right: 0; height: 95vh; top: 100px;
        background: #fff; flex-direction: column; width: 70%;
        transform: translateX(100%); transition: 0.5s ease-in; 
        padding-top: 40px; padding-left: 40px; 
        align-items: flex-start;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }
    .nav-links.nav-active { transform: translateX(0%); }
    .burger { display: block; }
    
    .hero { margin-top: 100px; height: 80vh; }
    .hero h1 { font-size: 2rem; }

    .hero-btns {
        flex-direction: column; gap: 15px; width: 100%;
        max-width: 300px; margin-left: auto; margin-right: auto;
    }
    .hero-btns .btn { width: 100%; display: block; text-align: center; }
    
    .split-container, .reverse .split-container { flex-direction: column; }
    .contact-grid { flex-direction: column; gap: 20px; }
    
    /* Na mobilu wideo na 100% dostępnej szerokości */
    .video-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        width: 100%;
        max-width: 450px; /* Nieco szerzej na tablecie */
    }
    
    /* Na mobilu chcemy, żeby wideo było duże */
    .local-video-wrapper {
        max-width: 100%; 
    }
    
    .photo-grid { grid-template-columns: 1fr; }
}