@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --gold: #b8965d;
    --gold-dark: #8e703e;
    --dark: #2d2d2d;
    --light-bg: #ffffff;
    --grey-light: #f9f9f9;
    --text-main: #333333;
    --text-muted: #777777;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden; /* Zapobiega przewijaniu na boki */
}

/* --- NAWIGACJA --- */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 20px 8%; display: flex; justify-content: space-between; align-items: center;
    background: rgba(255,255,255,0.98); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo { font-size: 24px; font-weight: 800; text-decoration: none; color: var(--dark); letter-spacing: 1px; }
.logo span { color: var(--gold); }

/* Styl dla logo obrazkowego */
.logo img {
    height: 40px; /* Ustaw wysokość pasującą do paska menu (zazwyczaj 40-60px) */
    width: auto;  /* Szerokość dopasuje się automatycznie, zachowując proporcje */
    display: block; /* Usuwa niechciane marginesy pod obrazkiem */
}

/* Jeśli wybrałeś Opcję B (obrazek + tekst), dodaj jeszcze to: */
.logo {
    display: flex;
    align-items: center; /* Wyrównuje obrazek i tekst do środka w pionie */
    gap: 10px; /* Odstęp między obrazkiem a tekstem */
}

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a {
    text-decoration: none; color: var(--text-main); font-size: 13px;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* Hamburger Menu (Mobilne) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.hamburger span {
    width: 25px; height: 3px; background-color: var(--dark);
    transition: var(--transition);
}

/* --- PRZYCISKI --- */
.btn {
    padding: 14px 30px; text-decoration: none; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; font-size: 12px;
    display: inline-block; transition: var(--transition); border: none; cursor: pointer;
    text-align: center;
}
.btn-gold { background: var(--gold); color: white; }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-3px); }

.btn-outline { border: 2px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: white; }

/* --- SEKCJE OGÓLNE --- */
section { padding: 80px 8%; }
.page-header {
    /* Ustawiamy wysokość na połowę ekranu */
    height: 50vh; 
    
    /* Tło */
    background-size: cover;
    background-position: center;
    background-color: #2d2d2d;
    position: relative;

    /* CENTROWANIE - Flexbox */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centruje elementy w pionie */
    align-items: center;     /* Centruje elementy w poziomie */
    text-align: center;      /* Centruje sam tekst */
    
    /* KLUCZOWA POPRAWKA: */
    /* 1. Resetujemy domyślny padding (żeby nie dziedziczył z 'section') */
    padding: 0; 
    /* 2. Dodajemy padding TYLKO od góry, równy wysokości Twojego menu.
       Dzięki temu "środek" optycznie przesunie się w dół i nie będzie schowany pod nawigacją. */
    padding-top: 80px; 
}

/* Przyciemnienie zdjęcia (overlay) */
.page-header::before {
    content: ''; 
    position: absolute; top:0; left:0; width:100%; height:100%;
    
}

/* Kontener na treść (tekst) */
.page-header-content { 
    position: relative; 
    z-index: 2; 
    width: 100%; 
    max-width: 900px;
    padding: 0 20px; /* Zabezpieczenie na telefonach, żeby tekst nie dotykał krawędzi */
}

/* Tytuł H1 */
.page-header h1 {
    font-size: 40px;
    font-weight: 800;
    /* ZMIANA: Usunięto margin-top i padding-top, które spychały tekst */
    margin: 0 0 15px 0; /* Tylko mały odstęp od dołu */
    padding: 0;
    line-height: 1.2;
    color: white;
}

/* Podtytuł P */
.page-header p { 
    font-size: 16px; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    color: var(--gold); 
    margin: 0;
    font-weight: 600;
}

.section-title { font-size: 32px; font-weight: 800; margin-bottom: 20px; text-transform: uppercase; color: var(--dark); }
.text-center { text-align: center; }

/* --- UKŁADY (GRIDS) --- */
/* Oferta */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px;
}
.service-card {
    background: white; padding: 40px; border: 1px solid #eee;
    transition: var(--transition); border-bottom: 3px solid transparent;
}
.service-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-bottom: 3px solid var(--gold); transform: translateY(-5px); }
.service-card i { font-size: 40px; color: var(--gold); margin-bottom: 20px; }
.service-card h3 { font-size: 20px; margin-bottom: 15px; }

/* Realizacje (Index) */
.realizations-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 40px; }
.realization-item img { width: 100%; height: 300px; object-fit: cover; }

/* Opinie */
.testimonials-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.testimonial-premium-card {
    background: white; padding: 40px; flex: 1; min-width: 300px; max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-top: 4px solid var(--gold);
}
.stars { color: var(--gold); margin-bottom: 15px; }

/* O nas (Split) */
.split-section { display: flex; gap: 50px; align-items: center; }
.split-text { flex: 1; }
.split-image { flex: 1; }
.split-image img { width: 100%; border-radius: 5px; box-shadow: 20px 20px 0 var(--grey-light); }

/* Kontakt */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info-box { padding: 30px; background: var(--grey-light); border-left: 4px solid var(--gold); margin-bottom: 20px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #ddd;
    font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }

/* --- FOOTER --- */
footer { background: #1a1a1a; color: white; padding: 60px 8% 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #bbb; text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
.social-icons a { color: white; margin-right: 15px; font-size: 18px; transition: var(--transition); }
.social-icons a:hover { color: var(--gold); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid #333; font-size: 12px; color: #666; }

/* --- RWD (RESPONSYWNOŚĆ) --- */
@media (max-width: 768px) {
    /* Nawigacja Mobilna */
    .hamburger { display: flex; }
    .nav-links {
        position: absolute; top: 70px; left: 0; width: 100%;
        background: white; flex-direction: column; align-items: center;
        padding: 40px 0; border-top: 1px solid #eee;
        transform: translateY(-150%); /* Ukryte */
        transition: transform 0.4s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .nav-links.active { transform: translateY(0); } /* Pokazane */
    
    section { padding: 60px 5%; }
    .split-section { flex-direction: column; }
    .contact-container { grid-template-columns: 1fr; }
    
    .page-header h1 { font-size: 28px; }
    header h1 { font-size: 32px !important; } /* Dla index.html */
    
    .fade-in { padding: 30px !important; } /* Poprawka dla boxa w headerze index */
}
/* --- GALERIA I LIGHTBOX (DODATEK) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding-bottom: 50px;
}

.gallery-item {
    height: 300px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

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

.gallery-item:hover img {
    transform: scale(1.1); /* Efekt przybliżenia przy najechaniu */
}

/* Styl okna powiększenia (Lightbox) */
.lightbox {
    display: none; /* Domyślnie ukryte */
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: 0.3s;
}
.lightbox-close:hover { color: var(--gold); }

/* --- AKORDEON OFERTY (Nowy Styl) --- */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.accordion-item {
    background: white;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: var(--transition);
    border-left: 5px solid var(--gold); /* Złoty akcent z lewej */
}

.accordion-header {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #fcfcfc;
}

.accordion-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    letter-spacing: 1px;
}

.accordion-header i {
    color: var(--gold);
    transition: transform 0.3s ease;
    font-size: 18px;
}

/* Styl dla aktywnego elementu */
.accordion-item.active .accordion-header i {
    transform: rotate(180deg); /* Obrót strzałki */
}

.accordion-item.active {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 30px;
    background: white;
}

.accordion-content p {
    padding-bottom: 25px;
    color: #555;
    line-height: 1.8;
}