/* --- ZMIENNE --- */
:root {
    --primary-color: #1e2b38; /* Granat */
    --accent-color: #B08D55;  /* Złoto */
    --bg-light: #f8f9fa;
    --text-dark: #2c2c2c;
    --text-grey: #555;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 18px;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    line-height: 1.2;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* --- NAWIGACJA --- */
nav {
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 15px 5%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: none; 
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 10px;
}

.nav-links a:hover { 
    color: var(--accent-color); 
}

.nav-links a.active-page {
    border-bottom: 2px solid var(--primary-color);
}

.nav-btn-highlight {
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    color: var(--accent-color) !important;
    transition: all 0.3s ease;
}

.nav-btn-highlight:hover {
    background-color: var(--accent-color);
    color: var(--white) !important;
}

/* --- HERO (STRONA GŁÓWNA) --- */
.hero {
    min-height: 90vh;
    background: linear-gradient(rgba(30, 43, 56, 0.85), rgba(30, 43, 56, 0.85)), url('tlo.png');
    background-color: var(--primary-color); 
    background-size: cover;
    background-position: center;
    
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 5%;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    width: 100%;
}

.hero-logo-wrapper img {
    height: 250px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
}

.hero-text-wrapper {
    text-align: left;
    color: var(--white);
}

.hero-text-wrapper h1 {
    font-size: 4.5rem;
    margin-bottom: 15px;
    color: var(--white);
    line-height: 1.1;
}

.hero-text-wrapper p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
    opacity: 0.9;
}

.btn {
    padding: 15px 40px;
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    display: inline-block;
}
.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* --- SEKCJE OGÓLNE --- */
section { padding: 80px 10%; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.8rem; }
.section-title p { color: var(--accent-color); text-transform: uppercase; font-weight: 700; font-size: 0.85rem; }

/* --- O NAS --- */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-collage {
    position: relative;
    height: 450px;
    width: 100%;
}

.collage-img {
    position: absolute;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    transition: transform 0.4s ease;
}

.img-back {
    width: 70%;
    height: auto;
    top: 0;
    left: 0;
    z-index: 1;
    transform: rotate(-3deg);
}

.img-front {
    width: 65%;
    height: auto;
    bottom: 0;
    right: 10px;
    z-index: 2;
    border: 8px solid var(--white);
    transform: rotate(3deg);
}

.about-collage:hover .img-back { transform: rotate(-5deg) scale(1.02); }
.about-collage:hover .img-front { transform: rotate(5deg) scale(1.02); }

.about-text p { color: var(--text-grey); margin-bottom: 20px; text-align: justify; }

/* --- EWANGELIA --- */
.gospel-section { background-color: var(--bg-light); }
.gospel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.gospel-card {
    background: var(--white);
    padding: 25px;
    border-left: 3px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.gospel-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.gospel-cta { text-align: center; max-width: 700px; margin: 0 auto; padding: 30px; background: #fff; border: 1px solid #ddd; }

/* --- HORN --- */
.publishing-section {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    /* Dodajemy jawne pozycjonowanie do zera, by była punktem odniesienia */
    background-position: 0px 0px; 
}
.publishing-content h3 { color: var(--white); margin-bottom: 15px; font-size: 2rem; }
.publishing-content p { margin-bottom: 30px; opacity: 0.9; }
.btn-outline { border: 2px solid var(--white); background: transparent; padding: 12px 30px; color: var(--white); text-transform: uppercase; font-weight: bold; }
.btn-outline:hover { background: var(--white); color: var(--primary-color); }

/* --- OBOZY BIBLIJNE (KONTRAST Z WYRAŹNĄ TEKSTURĄ) --- */
.camps-section {
    
    /* ========================================================
       TUTAJ ZMIENIAJ WARTOŚĆ ABY PRZESUWAĆ WZOREK GÓRA/DÓŁ!
       Spróbuj np: 10px, 24px, -15px, dopóki sześciany
       nie złączą się z sekcją HORN powyżej. 
       ======================================================== */
    --przesuniecie: 12px;

    background-color: #F8EEDD; 
    
    background-image: 
        url('https://www.transparenttextures.com/patterns/cubes.png'),
        url('https://www.transparenttextures.com/patterns/cubes.png'),
        url('https://www.transparenttextures.com/patterns/cubes.png');
    
    background-blend-mode: multiply; 
    
    /* Zmienna automatycznie przesuwa wszystkie trzy warstwy */
    background-position: 0px var(--przesuniecie), 0px var(--przesuniecie), 0px var(--przesuniecie);
    
    text-align: center;
    padding: 60px 20px;
    border-bottom: 1px solid #e0e0e0;
}
.camps-content h3 {
    color: var(--primary-color); 
    margin-bottom: 15px;
    font-size: 2rem; 
}
.camps-content p {
    color: var(--text-grey);
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- SPOTKANIA --- */
.schedule { background-color: var(--white); }
.schedule-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; }
.schedule-card {
    background: var(--white);
    padding: 30px 20px;
    width: 320px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
    text-align: center;
}
.schedule-card.main-card { border-top-color: var(--accent-color); transform: scale(1.05); }

.service-times li {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #eee; padding-bottom: 10px;
}
.service-times .time { font-weight: 700; color: var(--primary-color); font-size: 1.2rem; }

/* --- CYTAT --- */
.verse { 
    background-color: var(--primary-color); 
    text-align: center; 
    padding: 100px 10%; 
    position: relative;
    overflow: hidden;
}
.verse::before {
    content: '"';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12rem;
    font-family: 'Playfair Display', serif;
    color: rgba(255,255,255, 0.04);
    pointer-events: none;
}
.verse-content { position: relative; z-index: 2; }
.verse h3 { 
    font-style: italic; 
    color: var(--accent-color); 
    margin-bottom: 15px; 
    font-size: 2.2rem;
    font-weight: 400;
}
.verse p { color: rgba(255, 255, 255, 0.8); font-size: 1rem; letter-spacing: 2px; text-transform: uppercase; }

/* --- MIEJSCE SPOTKAŃ --- */
.meeting-place {
    background-color: var(--bg-light);
    text-align: center;
    padding: 80px 5%;
}

.meeting-place-content p {
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: var(--text-grey);
    font-size: 1.1rem;
}

.meeting-img-wrapper {
    max-width: 1200px; 
    margin: 0 auto;
    width: 100%;
    aspect-ratio: 2048 / 921; 
    background-color: #ddd; 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.meeting-img-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; 
    transition: transform 0.5s ease;
}

/* Responsywność dla telefonów */
@media (max-width: 768px) {
    .meeting-place { padding: 40px 15px; }
    .meeting-img-wrapper { aspect-ratio: 16 / 9; max-width: 100%; }
}

/* --- LOKALIZACJA --- */
.location-visual {
    background-color: var(--white);
    text-align: center;
    padding: 60px 5% 40px; 
}
.location-img-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.location-img-container img { width: 100%; height: auto; display: block; }

/* --- FOOTER --- */
footer { background-color: #111; color: #aaa; padding: 50px 5% 20px; text-align: center; }
.footer-content { display: flex; justify-content: space-around; flex-wrap: wrap; text-align: left; margin-bottom: 30px; }
.footer-col { margin-bottom: 20px; min-width: 200px; }
.footer-col h4 { color: #fff; margin-bottom: 15px; }
.copyright { border-top: 1px solid #333; padding-top: 20px; font-size: 0.8rem; }
.fade-in { opacity: 0; transform: translateY(20px); transition: 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   GALERIA I LIGHTBOX
   ========================================= */

.page-header {
    height: 40vh;
    background: linear-gradient(rgba(30, 43, 56, 0.8), rgba(30, 43, 56, 0.8)), url('tlo.png');
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}
.page-header h1 { font-size: 3rem; margin-bottom: 10px; color: var(--accent-color); }
.page-header p { font-size: 1.1rem; letter-spacing: 2px; text-transform: uppercase; }

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}
.filter-btn {
    padding: 10px 25px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 4px;
}
.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}
.filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 250px;
}
.gallery-item.hide { display: none; }
.gallery-item.show { display: block; animation: fadeIn 0.5s ease-in-out; }

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.overlay { display: none; }

/* --- LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    object-fit: contain; 
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2010;
}
.close-lightbox:hover { color: var(--accent-color); }

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 2010;
}
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev { left: 0; border-radius: 3px 0 0 3px; }
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
    color: var(--accent-color);
}

/* --- RESPANSYWNOŚĆ --- */
@media (max-width: 768px) {
    nav { flex-direction: column; padding: 15px 10px; height: auto; }
    .nav-links { width: 100%; flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 15px; }
    .nav-links a { font-size: 0.85rem; padding: 5px; }

    .hero { padding: 80px 20px; min-height: auto; }
    .hero-content { flex-direction: column; gap: 30px; text-align: center; }
    .hero-text-wrapper { text-align: center; }
    .hero-logo-wrapper img { height: 150px; }
    .hero-text-wrapper h1 { font-size: 2.8rem; }
    .hero-text-wrapper p { font-size: 1.1rem; }
    
    .about { grid-template-columns: 1fr; gap: 30px; }
    .about-collage { height: auto; position: static; display: flex; flex-direction: column; align-items: center; gap: 15px; margin-bottom: 20px; }
    .collage-img { position: static; width: 100%; max-width: 400px; transform: none !important; border: none; }
    
    .gallery-grid { grid-template-columns: 1fr; }
    .prev, .next { font-size: 30px; padding: 10px; }

    section { padding: 50px 5%; }
}