/* --- ZMIENNE I RESET --- */
:root {
    --gold: #d4af37;
    --dark: #1a1a1a;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background: var(--white);
}

/* --- WSPÓLNA NAWIGACJA --- */
.main-nav {
    background: rgba(26, 26, 26, 0.95);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid var(--gold);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo { color: var(--gold); font-weight: bold; letter-spacing: 2px; text-transform: uppercase; }

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: bold;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--gold); }

/* --- SEKCJA HERO (Strona Główna) --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../galeria/nagrobki/0017.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero h1 { font-size: clamp(2rem, 8vw, 3.5rem); letter-spacing: 5px; text-transform: uppercase; margin: 10px 0; }
.hero h1 span { color: var(--gold); }
.hero .subtitle { color: var(--gold); font-size: 1.2rem; margin-bottom: 30px; }

/* --- ELEMENTY WSPÓLNE (Przyciski, Nagłówki) --- */
.section-header { text-align: center; margin-bottom: 50px; padding: 0 20px; }
.divider { width: 70px; height: 3px; background: var(--gold); margin: 15px auto; }

.btn { 
    padding: 15px 30px; 
    text-decoration: none; 
    font-weight: bold; 
    text-transform: uppercase; 
    transition: var(--transition); 
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn-gold { background: var(--gold); color: #000; border: 2px solid var(--gold); }
.btn-outline { border: 2px solid var(--gold); color: var(--gold); background: transparent; }
.btn:hover { transform: translateY(-3px); opacity: 0.9; }

/* --- USŁUGI --- */
.services { padding: 100px 0; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background: white;
    padding: 40px;
    text-align: center;
    border: 1px solid #eee;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-card:hover { transform: translateY(-10px); border-color: var(--gold); }
.s-icon { font-size: 3rem; color: var(--gold); margin-bottom: 20px; }

/* --- GALERIA --- */
.gallery { padding: 100px 0; background: var(--light-bg); }
.filter-buttons { text-align: center; margin-bottom: 40px; }
.btn-filter {
    background: white;
    border: 1px solid #ddd;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: var(--transition);
}
.btn-filter.active, .btn-filter:hover { background: var(--gold); border-color: var(--gold); color: white; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.gallery-item { aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }
.hidden { display: none !important; }

/* --- O NAS --- */
.about { padding: 100px 20px; }
.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-quote {
    background: var(--light-bg);
    padding: 40px;
    border-left: 5px solid var(--gold);
    font-style: italic;
}
.feature-list { list-style: none; padding: 0; }
.feature-list li { margin: 10px 0; }
.feature-list li::before { content: "✔"; color: var(--gold); margin-right: 10px; font-weight: bold; }

/* --- STRONA KONTAKT (Specyficzne style) --- */
.contact-page { padding: 120px 20px 60px; background: var(--light-bg); }
.contact-grid { 
    display: grid; 
    grid-template-columns: 1fr 1.2fr; 
    gap: 40px; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.info-box { 
    background: white;
    padding: 80px 60px; 
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    box-sizing: border-box;
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.info-item { display: flex; align-items: flex-start; margin-bottom: 25px; }
.info-item i { font-size: 1.5rem; color: var(--gold); margin-right: 20px; margin-top: 5px; margin-bottom: 40px; width: 30px; text-align: center; }
.info-item h4 { margin: 0; text-transform: uppercase; font-size: 0.75rem; color: #888; letter-spacing: 1px; }
.info-item p { margin: 5px 0 0; font-size: 1.2rem; font-weight: bold; margin-top: 8px; }
.info-item a { color: inherit; text-decoration: none; transition: 0.3s; }
.info-item a:hover { color: var(--gold); }

.form-box { background: var(--dark); color: white; padding: 40px; border-radius: 4px; margin-top: 30px; }
.form-box h3 { color: var(--gold); margin-top: 0; text-transform: uppercase; letter-spacing: 2px; }

.contact-form input, .contact-form textarea { 
    width: 100%; padding: 12px; margin-bottom: 15px; 
    border: 1px solid #444; background: #222; color: white; 
    font-family: inherit; box-sizing: border-box;
}

.map-wrapper { 
    height: 100%; min-height: 500px; 
    border: 10px solid white; border-radius: 4px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    overflow: hidden;
}

/* --- STOPKA --- */
footer { background: var(--dark); color: white; text-align: center; padding: 50px 20px; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-page { padding-top: 100px; }
    .map-wrapper { min-height: 400px; }
}

@media (max-width: 768px) {
    .about-container { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero h1 { font-size: 2.2rem; }
}

/* Poprawka dla logo jako linku */
.logo { 
    color: var(--gold); 
    font-weight: bold; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    text-decoration: none; /* Usuwa podkreślenie jeśli użyjesz tekstu */
    display: flex;
    align-items: center;
}

.logo img {
    transition: var(--transition);
}

.logo:hover img {
    opacity: 0.8; /* Delikatny efekt po najechaniu na logo */
}

/* Styl dla telefonów (ekrany mniejsze niż 768px) */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column; /* Układa logo i menu jedno pod drugim */
        padding: 10px;
    }

    .hero h1 {
        font-size: 1.8rem; /* Mniejszy napis na telefonie */
        letter-spacing: 2px;
    }

    .services-grid, .about-container {
        grid-template-columns: 1fr; /* Wszystkie kolumny zmieniają się w jedną */
        gap: 20px;
    }

    .info-box {
        padding: 30px 20px; /* Mniejsze marginesy w kontakcie */
    }
}

img {
    max-width: 100%; /* Obrazek nigdy nie wyjdzie poza ekran */
    height: auto;
}
