/* RESET I ZMIENNE GLOBALNE */
:root {
    --color-gold: #D4AF37;
    --color-dark: #1a1a1a;
    --color-light: #f8f8f8;
    --color-slate: #2c3e50;
    --color-white: #ffffff;
    --font-sans: 'Montserrat', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-light);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.logo img {
    width: 200px
}

/* KONTENERY */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* NAWIGACJA */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.text-gold { color: var(--color-gold); }

.nav-links {
    display: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
}

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

.btn-contact {
    padding: 0.5rem 1.5rem;
    background-color: var(--color-dark);
    color: var(--color-white) !important;
    border-radius: 9999px;
    font-weight: 500;
}

.btn-contact:hover {
    background-color: var(--color-gold);
}

/* Menu Mobilne */
.mobile-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
    .mobile-toggle { display: none; }
    .mobile-menu { display: none; }
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--color-white);
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: panImage 20s linear infinite alternate;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 1rem;
    margin-top: 5rem;
}

.subtitle {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s 0.2s forwards;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s 0.4s forwards;
}

.hero-desc {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: #e5e7eb;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 1s 0.6s forwards;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s 0.8s forwards;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: var(--color-gold);
    color: white;
}

.btn-primary:hover {
    background-color: white;
    color: black;
}

.btn-outline {
    border: 1px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: black;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: rgba(255,255,255,0.8);
}

@media (min-width: 768px) {
    .hero h1 { font-size: 4.5rem; }
    .hero-buttons { flex-direction: row; }
}

/* SEKCJE OGÓLNE */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    color: var(--color-gold);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
}

/* O MNIE */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.about-image {
    position: relative;
    width: 100%;
}

.about-image img {
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.about-frame {
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-gold);
    border-radius: 0.5rem;
}

.about-text h3 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-gold);
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .about-content { flex-direction: row; }
    .about-image, .about-text { width: 50%; }
}

/* USŁUGI */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.service-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s;
}

.service-card:hover .icon-wrapper {
    background: rgba(212, 175, 55, 0.1);
}

.service-icon {
    font-size: 1.875rem;
    color: #374151;
    transition: transform 0.3s, color 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--color-gold);
}

.service-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card ul {
    list-style: none;
    font-size: 0.875rem;
    color: #4b5563;
}

.service-card li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.service-card li span {
    color: var(--color-gold);
    margin-right: 0.5rem;
    font-size: 1rem;
}

@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

/* PORTFOLIO (Masonry) */
.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.link-btn {
    color: #6b7280;
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
}
.link-btn:hover { color: var(--color-gold); }

.masonry-grid {
    column-count: 1;
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    transition: transform 0.7s;
}

.masonry-item:hover img {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.masonry-item:hover .item-overlay {
    opacity: 1;
}

@media (min-width: 640px) { .masonry-grid { column-count: 2; } }
@media (min-width: 1024px) { .masonry-grid { column-count: 3; } }

/* OPINIE */
.reviews-section {
    background-color: var(--color-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.reviews-slider {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}
.reviews-slider::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.review-card {
    min-width: 300px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    scroll-snap-align: center;
}

@media (min-width: 768px) { .review-card { min-width: 400px; } }

.review-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--color-gold);
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.stars {
    color: var(--color-gold);
    font-size: 0.875rem;
}

/* --- NAWIGACJA SLIDERA (STRZAŁKI) --- */

.slider-wrapper {
    position: relative; /* Ważne: przyciski będą pozycjonowane względem tego pudełka */
    padding: 0 1rem; /* Zróbmy trochę miejsca po bokach na strzałki */
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Centrowanie w pionie */
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1); /* Półprzezroczyste tło */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-gold);
    cursor: pointer;
    z-index: 20; /* Musi być nad kafelkami */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.slider-btn:hover {
    background: var(--color-gold);
    color: var(--color-dark);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5); /* Złota poświata */
}

/* Pozycje przycisków */
.slider-btn.prev {
    left: -1rem; /* Wysuwamy lekko w lewo */
}

.slider-btn.next {
    right: -1rem; /* Wysuwamy lekko w prawo */
}

/* Na telefonach (gdzie można przesuwać palcem) możemy ukryć strzałki, żeby nie zasłaniały */
/* Lub zostawić, jeśli chcesz. Poniższy kod je ukrywa na małych ekranach: */
@media (max-width: 768px) {
    .slider-btn {
        display: none;
    }
    .slider-wrapper {
        padding: 0;
    }
}

/* INNE USŁUGI (Kafelki) */
.och-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.och-card {
    position: relative;
    height: 20rem;
    border-radius: 1rem;
    overflow: hidden;
    display: block;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* NOWE: To sprawia, że CAŁY kafelek (zdjęcie, ikony, tekst) jest szary */
    filter: grayscale(100%); 
    
    /* Płynne przejście kolorów dla całego kafelka */
    transition: filter 0.7s ease;
}

/* Kiedy najedziesz na kafelek, wracają kolory */
.och-card:hover {
    filter: grayscale(0%);
}

/* Styl obrazka wewnątrz */
.och-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    /* Tu zostawiamy TYLKO animację powiększania (transform) */
    /* Usunęliśmy stąd 'filter', bo jest teraz w .och-card wyżej */
    transition: transform 0.7s;
}

/* Zoom zdjęcia po najechaniu na kafelek */
.och-card:hover img {
    transform: scale(1.1);
}

/* Reszta elementów (gradient, content) zostaje bez zmian... */
.card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4), transparent);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2rem;
    width: 100%;
    color: white;
}

.card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
}

.och-link {
    font-size: 0.875rem;
    font-weight: 700;
    margin-top: 1rem;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) { .och-grid { grid-template-columns: repeat(3, 1fr); } }

/* KONTAKT */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-wrapper {
    /* To jest kontener z formularzem */
    width: 100%;
}

.info-item {
    display: flex;
    align-items: flex-start;
}

.info-icon {
    width: 3rem;
    height: 3rem;
    background: white;
    color: var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    font-family: inherit;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--color-gold);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--color-dark);
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover { background: var(--color-gold); }

/* --- STYLOWANIE MAPY (B&W + ZŁOTY ZNACZNIK) --- */

.map-container {
    position: relative; /* Ważne dla pozycjonowania pinezki */
    /* Reszta Twoich styli (flex, width itp.) zostaje bez zmian */
    height: 400px; 
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    display: flex;
}

/* Styl dla mapy (iframe) */
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    
    /* MAGIA: Robimy mapę czarno-białą i zwiększamy kontrast */
    filter: grayscale(100%) contrast(1.2);
    
    /* Opcjonalnie: Jeśli chcesz mapę "Dark Mode" (ciemną), użyj tego zamiast powyższego: */
    /* filter: grayscale(100%) invert(90%) contrast(1.2); */
}

/* WERSJA DESKTOP (Komputer) */
@media (min-width: 1024px) {
    .contact-container {
        flex-direction: row; /* Ustawiamy obok siebie */
        align-items: stretch; /* KLUCZ DO SUKCESU: Rozciągnij oba do równej wysokości */
    }

    .contact-info-wrapper {
        width: 50%;
    }

    .map-container {
        width: 50%;
        height: auto; /* KLUCZ: Resetujemy sztywną wysokość 400px */
        min-height: 100%; /* Mapa musi zająć całą dostępną wysokość */
    }
}

@media (min-width: 1024px) {
    .contact-container { flex-direction: row; }
    .contact-info-wrapper { width: 50%; }
    .map-container { width: 50%; }
    .form-grid { grid-template-columns: 1fr 1fr; }
}

/* FOOTER */
footer {
    background: var(--color-dark);
    color: white;
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.social-links a { color: #9ca3af; margin: 0 0.5rem; }
.social-links a:hover { color: white; }

@media (min-width: 768px) {
    .footer-content { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ANIMACJE */
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes panImage {
    0% { transform: scale(1.1) translate(0, 0); }
    100% { transform: scale(1.2) translate(-2%, -2%); }
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 25%); }
}

/* Narzędzie do ukrywania elementów animowanych przed przewinięciem */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

#lightbox.visible { opacity: 1; }
#close-lightbox {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    background: none;
    border: none;
    cursor: pointer;
}
#lightbox-img {
    max-height: 90vh;
    max-width: 90vw;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}