﻿/* --- 1. BAZA I KOLORYSTYKA --- */
:root {
    --gold: #c5a059; /* Stonowane złoto */
    --navy: #182b3a; /* Głęboki granat */
    --bg-light: #fcfcfc; /* Złamana biel */
    --bg-off: #f4f4f4; /* Jasne szare tło sekcji */
    --text-main: #333333; /* Ciemnoszary tekst */
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.8;
    font-size: 16px;
    scroll-behavior: smooth;
}

/* --- 2. NAWIGACJA --- */
nav {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .logo span {
        color: var(--gold);
    }

.menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

    .menu a {
        text-decoration: none;
        color: var(--navy);
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: 0.3s;
    }

        .menu a:hover {
            color: var(--gold);
        }

/* --- 3. HERO (NAGŁÓWEK) --- */
header {
    height: 80vh;
    background: linear-gradient(rgba(24, 43, 58, 0.6), rgba(24, 43, 58, 0.5)), url('ja3.jpg');
    background-size: cover;
    background-position: 50% 20%; /* Dostosowano pozycjonowanie tła */
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

    header h1 {
        font-family: 'Playfair Display', serif;
        font-size: 3.5rem;
        margin-bottom: 20px;
        font-weight: 400;
        line-height: 1.2;
    }

    header p {
        font-size: 1.2rem;
        max-width: 600px;
        margin-bottom: 40px;
        font-weight: 300;
        opacity: 0.9;
    }

.btn-gold {
    display: inline-block;
    background-color: var(--gold);
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: 0.3s;
    border: 1px solid var(--gold);
    cursor: pointer;
    font-family: 'Lato', sans-serif;
}

    .btn-gold:hover {
        background-color: transparent;
        border-color: var(--white);
        color: var(--white);
    }

/* Wariant przycisku dla jasnego tła */
.btn-gold-dark:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* --- 4. SEKCJE (OGÓLNE) --- */
section {
    padding: 90px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--navy);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

    h2::after {
        content: '';
        display: block;
        width: 60px;
        height: 2px;
        background: var(--gold);
        margin: 20px auto 0;
    }

/* --- 5. O MNIE --- */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
    text-align: justify;
}

    .about-text p {
        margin-bottom: 20px;
    }

.about-img-box {
    flex: 1;
    min-width: 300px;
    height: 400px;
    /* UWAGA: Tutaj wstawiliśmy ścieżkę do folderu img dla porządku */
    background-image: url('ja.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: 15px 15px 0px var(--bg-off);
    border: 1px solid #ddd;
}

.links-container {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.link-btn {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 5px;
    transition: 0.3s;
}

    .link-btn:hover {
        color: var(--gold);
    }

/* --- 6. OFERTA --- */
.services-bg {
    background-color: var(--bg-off);
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-top: 3px solid var(--gold);
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: 0.3s;
    cursor: pointer;
}

    .service-card:hover {
        transform: translateY(-5px);
    }

    .service-card h3 {
        font-family: 'Playfair Display', serif;
        color: var(--navy);
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

/* Ukryta sekcja szczegółów */
#services-details {
    display: none;
    background: var(--white);
    padding: 40px;
    border: 1px solid #ddd;
    border-left: 5px solid var(--gold);
    margin-top: 30px;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.details-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.details-column h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

/* --- 7. GALERIA (SLIDER) --- */
.gallery-slider-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-slide {
    display: none;
    animation: fadeEffect 0.8s;
}

    .gallery-slide.active {
        display: block;
    }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    height: 250px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
        backface-visibility: hidden;
        transform: translateZ(0);
    }

    .gallery-item:hover img {
        transform: scale(1.05);
    }

/* Strzałki w Galerii */
.g-prev, .g-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -25px;
    padding: 16px;
    color: var(--white);
    background-color: var(--gold);
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s ease;
    border-radius: 50%;
    user-select: none;
    line-height: 1;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.g-next {
    right: -25px;
}

.g-prev {
    left: -25px;
}

    .g-prev:hover, .g-next:hover {
        background-color: var(--navy);
        transform: scale(1.1);
    }

/* --- 8. OPINIE (SLIDER) --- */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 50px;
}

.review-slide {
    display: none;
    text-align: center;
    animation: fadeEffect 1s;
}

    .review-slide.active {
        display: block;
    }

@keyframes fadeEffect {
    from {
        opacity: 0.4
    }

    to {
        opacity: 1
    }
}

.testimonial-text {
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
}

.testimonial-author {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    color: var(--navy);
}

/* Strzałki do slidera opinii */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: var(--gold);
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

    .prev:hover, .next:hover {
        color: var(--navy);
        background-color: rgba(0,0,0,0.05);
    }

/* --- 9. KONTAKT --- */
.contact-section {
    background-color: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

    .contact-section h2 {
        color: var(--white);
    }

        .contact-section h2::after {
            background: var(--white);
        }

.contact-box {
    font-size: 1.3rem;
    font-family: 'Playfair Display', serif;
    margin: 40px 0;
}

    .contact-box p {
        margin: 15px 0;
    }

    .contact-box a {
        color: var(--gold);
        text-decoration: none;
        transition: 0.3s;
    }

        .contact-box a:hover {
            color: var(--white);
        }

/* --- STOPKA --- */
footer {
    background: #111;
    color: #777;
    text-align: center;
    padding: 40px 0;
    font-size: 0.8rem;
}

/* --- RWD (MOBILE) --- */
@media (max-width: 768px) {
    header {
        /* Zmniejszamy wysokość nagłówka na telefonach */
        height: 60vh;
        min-height: 450px;
        /* Naprawia dziwne zachowanie tła na iPhone'ach */
        background-attachment: scroll;
        /* --- KLUCZOWE ZMIANY DO KADROWANIA --- */
        /* 1. Zakotwiczamy zdjęcie do GÓRY i ŚRODKA */
        /* Dzięki temu nie utnie Ci głowy */
        background-position: center top;
        /* 2. Trik na "ZOOM" (Zamiast 'cover') */
        /* Mówimy: "Ustaw szerokość zdjęcia na 140% szerokości ekranu, a wysokość dopasuj automatycznie" */
        /* Im większy procent, tym większy zoom i więcej utnie dołu */
        background-size: 140% auto; /* <-- NOWE */
    }

        /* (Reszta Twojego kodu dla h1, p, menu itp. poniżej...) */
        header h1 {
            font-size: 2.2rem;
        }

        header p {
            font-size: 1rem;
            margin-bottom: 20px;
        }

    /* --- Reszta Twoich starych ustawień mobilnych --- */
    .menu {
        display: none;
    }

    .nav-container {
        justify-content: center;
    }

    .about-wrapper {
        flex-direction: column;
    }

    .links-container {
        justify-content: center;
    }

    .details-columns {
        grid-template-columns: 1fr;
    }

    .testimonials-slider {
        padding: 0 30px;
    }

    .g-next {
        right: 0;
        border-radius: 5px 0 0 5px;
    }

    .g-prev {
        left: 0;
        border-radius: 0 5px 5px 0;
    }
}

