/* Resetowanie stylów i czcionka Montserrat */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    color: #e0e0e0;
    line-height: 1.6;
    /* Ujednolicone tło z kolorem Twojego logo z Photoshopa */
    background-color: #161513; 
    overflow-x: hidden;
}

.gold-text {
    color: #e6c35c;
}

/* NAGŁÓWEK (Menu) */
header {
    background-color: #161513; /* Tło zgrane z logo */
    padding: 15px 8%; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e6c35c;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* KONTENER LOGO (bez gilotyny, samo naturalne wyświetlanie) */
header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 70px; /* Wysokość dopasowana do paska - w razie czego możesz powiększyć np. na 85px */
    width: auto;
    display: block;
}

header nav {
    display: flex;
    gap: 20px;
}

/* RAMKI W MENU */
header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1.05rem; 
    border: 1px solid rgba(230, 195, 92, 0.6);
    padding: 12px 28px; 
    border-radius: 4px;
    transition: all 0.3s ease;
}

header nav a:hover {
    background-color: #e6c35c;
    color: #161513;
    border-color: #e6c35c;
    box-shadow: 0 0 15px rgba(230, 195, 92, 0.4);
}

/* SEKCJA POWITALNA (HERO) */
.hero {
    position: relative;
    text-align: center;
    min-height: 90vh; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    padding: 20px;
    z-index: 1;
    overflow: hidden; 
}

.hero::before {
    content: "";
    position: absolute;
    top: -20px; left: -20px; right: -20px; bottom: -20px; 
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?q=80&w=1920&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    filter: blur(8px) brightness(0.25); 
    z-index: -1;
}

.hero-content {
    margin-top: -50px; 
}

.hero h1 {
    color: #e6c35c;
    font-size: 3.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #000, -1px -1px 0px #000, 1px -1px 0px #000, -1px 1px 0px #000, 1px 1px 0px #000, 0px 10px 20px rgba(0,0,0,1);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ddd;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* CEL NA DOLE EKRANU */
.hero-mission {
    position: absolute;
    bottom: 30px; 
    max-width: 800px;
    color: #eee;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
    text-align: center;
}

.hero-mission strong {
    color: #e6c35c;
    font-weight: 700;
}

/* ANIMOWANA STRZAŁKA W DÓŁ */
.scroll-arrow {
    font-size: 2rem;
    color: #e6c35c;
    margin-top: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

.btn {
    display: inline-block;
    background-color: #e6c35c;
    color: #161513;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.btn:hover {
    background-color: #d4b045;
    transform: scale(1.05);
}

/* TYTUŁ WPROWADZAJĄCY DO USŁUG */
.services-intro {
    padding: 80px 20px 40px;
    text-align: center;
    background-color: #161513; /* Zgrane z resztą strony */
}

.services-intro h2 {
    color: #e6c35c;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* USŁUGI (Większe bloki ze zdjęciami) */
.service-row {
    position: relative;
    padding: 120px 20px;
    text-align: center;
    border-bottom: 3px solid #e6c35c;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    z-index: 1;
}

.service-row::before {
    content: "";
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px; 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(6px) brightness(0.2);
    z-index: -1;
}

/* ZDJĘCIA USŁUG */
#srv-auto::before { background-image: url('https://images.unsplash.com/photo-1552930294-6b595f4c2974?q=80&w=1920&auto=format&fit=crop'); }
#srv-apartamenty::before { background-image: url('https://images.unsplash.com/photo-1522708323590-d24dbb6b0267?q=80&w=1920&auto=format&fit=crop'); }
#srv-budowy::before { background-image: url('https://images.unsplash.com/photo-1584622650111-993a426fbf0a?q=80&w=1920&auto=format&fit=crop'); }
#srv-pranie::before { background-image: url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?q=80&w=1920&auto=format&fit=crop'); }
#srv-domy::before { background-image: url('https://images.unsplash.com/photo-1527515637462-cff94eecc1ac?q=80&w=1920&auto=format&fit=crop'); }

.service-content {
    max-width: 800px;
    background-color: rgba(22, 21, 19, 0.8); /* Lekko przezroczysty kolor główny pod tekstami */
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #333;
}

.service-content h2 {
    color: #e6c35c;
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
}

.service-content p {
    font-size: 1.4rem;
    color: #fff;
    line-height: 1.8;
}

/* OPINIE */
.reviews {
    padding: 80px 10%;
    text-align: center;
    background-color: #161513; /* Tło zgrane z resztą strony */
}

.reviews h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #ffffff;
}

.reviews-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap; 
}

.review-card {
    background-color: #202124; /* Oryginalny szary kolor kart z Google */
    border-radius: 8px;
    padding: 25px;
    width: 350px; 
    text-align: left; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    border-bottom: 2px solid #e6c35c; 
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
}

.author h4 {
    color: #e8eaed; 
    font-size: 1rem;
    margin-bottom: 2px;
}

.author span {
    font-size: 0.8rem;
    color: #9aa0a6; 
}

.rating {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #9aa0a6;
}

.stars {
    color: #fbbc04; 
    letter-spacing: 2px;
    margin-right: 8px;
}

.review-text {
    color: #e8eaed;
    font-size: 1rem;
    line-height: 1.5;
    font-style: italic;
}

/* STOPKA */
footer {
    background-color: #161513; /* Tło zgrane z resztą strony */
    color: #ccc;
    text-align: center;
    padding: 60px 20px;
    border-top: 2px solid #333;
}

footer h2 {
    color: #e6c35c;
    margin-bottom: 15px;
}

/* ANIMACJE (Scroll reveal) */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(5px);
    transition: all 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.reviews-grid .review-card:nth-child(1) { transition-delay: 100ms; }
.reviews-grid .review-card:nth-child(2) { transition-delay: 200ms; }
.reviews-grid .review-card:nth-child(3) { transition-delay: 300ms; }
.reviews-grid .review-card:nth-child(4) { transition-delay: 400ms; }
.reviews-grid .review-card:nth-child(5) { transition-delay: 500ms; }


/* =========================================
   DOPASOWANIE DO TELEFONÓW (RWD)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Przebudowa menu - logo na górze, przyciski pod spodem */
    header {
        flex-direction: column;
        padding: 15px 5%;
    }
    
    header .logo img {
        height: 55px; /* Mniejsze logo na telefon */
        margin-bottom: 15px; /* Odstęp między logo a przyciskami */
    }
    
    header nav {
        gap: 10px;
        flex-wrap: wrap; /* Zezwala przyciskom na przejście do nowej linii */
        justify-content: center;
    }
    
    header nav a {
        padding: 8px 15px; /* Mniejsze przyciski */
        font-size: 0.85rem; /* Mniejsza czcionka w menu */
    }

    /* 2. Zmniejszenie gigantycznych napisów w sekcji powitalnej */
    .hero {
        height: auto; 
        min-height: 100vh;
        padding-top: 40px;
        padding-bottom: 50px;
    }

    .hero h1 {
        font-size: 2.2rem; 
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-mission {
        position: relative; /* Odpina tekst od dolnej krawędzi ekranu */
        bottom: auto;
        margin-top: 50px; /* Robi bezpieczny, duży odstęp od przycisku */
        font-size: 1rem;
        padding: 10px 20px;
        border-left: 2px solid #e6c35c;
        border-right: 2px solid #e6c35c;
    }

    /* 3. Dopasowanie napisów w sekcjach usług */
    .services-intro h2, .reviews h2 {
        font-size: 1.8rem;
    }
    
    .service-content {
        padding: 25px;
    }
    
    .service-content h2 {
        font-size: 2rem;
    }
    
    .service-content p {
        font-size: 1.1rem;
    }

    /* 4. Kafelki z opiniami rozciągnięte na całą szerokość telefonu */
    .review-card {
        width: 100%;
        margin: 0 10px;
    }
}