/* =========================================
   1. ZMIENNE I RESET
   ========================================= */
:root {
    --primary-color: #0066cc; /* Royal Blue - Główny kolor */
    --primary-dark: #004c99;  /* Ciemniejszy niebieski (hover) */
    --secondary-color: #1a1a1a; /* Ciemny grafit/Czerń */
    --accent-color: #ffaa00; /* Złoty (gwiazdki, wyróżnienia) */
    --text-color: #333;
    --light-bg: #f4f6f8;
    --white: #fff;
    --transition: all 0.4s ease; /* Czas animacji */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden; /* To musi być tu */
    position: relative;
    margin: 0;
    padding: 0;
}

/* Fix dla biblioteki AOS - zapobiega rozszerzaniu strony przez animacje */
[data-aos] {
    pointer-events: none;
}
.aos-animate {
    pointer-events: auto;
}

/* Dodatkowe zabezpieczenie dla kontenera głównego */
body > *:not(.mobile-menu) {
    max-width: 100%;
}

/* @media(min-width: 769px) {
    body { padding-bottom: 0; }
} */

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light { background: var(--light-bg); }
.bg-dark { background: var(--secondary-color); color: var(--white); }

/* =========================================
   2. ELEMENTY UI (Przyciski, Tytuły)
   ========================================= */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 10px;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--secondary-color);
}

.full-width {
    width: 100%;
    display: block;
    margin-top: 10px;
}

/* =========================================
   3. HEADER & NAV (POPRAWIONE)
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Przezroczyste tło z gradientem dla czytelności */
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 15px 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO - Startowo 160px (zamiast 250px) */
.logo img {
    height: 160px; 
    display: block;
    transition: var(--transition);
}

/* MENU DESKTOP */
.desktop-menu ul {
    display: flex;
    align-items: center;
}

.desktop-menu li {
    margin: 0 15px;
}

.desktop-menu a {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* Cień pod tekstem */
}

.desktop-menu a:hover {
    color: var(--primary-color);
}

/* STICKY STATE (Po przewinięciu w dół) */
header.sticky {
    background: var(--white); /* Białe tło */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 5px 0;
}

/* Logo zmniejsza się do 60px */
header.sticky .logo img {
    height: 60px; 
}

/* Linki zmieniają kolor na ciemny */
header.sticky .desktop-menu a {
    color: var(--secondary-color);
    text-shadow: none;
}

header.sticky .desktop-menu a:hover {
    color: var(--primary-color);
}

header.sticky .mobile-toggle {
    color: var(--secondary-color);
}

/* Przycisk telefonu w nagłówku (Desktop) */
.btn-phone {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
    animation: pulse 2s infinite;
    display: none;
}

@media(min-width: 769px) {
    .btn-phone { display: inline-block; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Hamburger Mobile */
.mobile-toggle {
    display: block;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    margin-left: 15px;
}

@media(min-width: 769px) {
    .mobile-toggle { display: none; }
}

/* =========================================
   4. HERO SECTION (POPRAWIONE)
   ========================================= */
#hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('tlo-glowne.jpg') no-repeat center center/cover;    position: relative;
    display: flex;
    align-items: center; /* Wyśrodkowanie pionowe */
    color: var(--white);
    padding-top: 0; /* Brak paddingu, header jest overlayem */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    /* Lekki margines górny, aby wizualnie odsunąć od dużego logo */
    margin-top: 60px; 
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.highlight {
    color: #4dabf7; /* Jasny błękit */
}

/* Główny opis */
#hero p {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 0;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* Mniejszy opis (sub-text) */
#hero p.sub-text {
    font-size: 1.1rem;
    font-weight: 400;
    color: #eee;
    margin-top: 10px;
    margin-bottom: 30px;
}

.hero-buttons {
    margin-top: 30px;
}

/* =========================================
   5. SEKCJE (Proces, Oferta, Lokalizacja)
   ========================================= */
/* Proces */
.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    flex: 1;
    min-width: 220px;
    text-align: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: var(--transition);
}

.step:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.step .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Oferta */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.offer-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.offer-card h3 {
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.offer-card ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.offer-card ul li i {
    color: var(--primary-color);
    margin-right: 12px;
}

.highlight-card {
    border: 2px solid var(--primary-color);
}

/* Lokalizacja (Miasta) */
.cities-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.city-tag {
    background: var(--white);
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    transition: 0.3s;
}

.city-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.seo-cities-text {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Opinie */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.review-card {
    background: #262626;
    padding: 30px;
    border-radius: 10px;
    border-top: 4px solid var(--primary-color);
}

.review-card .stars {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-card p {
    font-style: italic;
    color: #ccc;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.review-card .author {
    font-weight: 700;
    color: var(--white);
    text-align: right;
}

/* =========================================
   6. KONTAKT & FORMULARZ
   ========================================= */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-left, .contact-right {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
}

/* Formularz */
.form-box {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-box h3 {
    margin-bottom: 20px;
    text-align: center;
}

.input-group {
    margin-bottom: 15px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Mapa */
.map-container iframe {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    background: #111;
    color: #888;
    padding: 40px 0;
    text-align: center;
}

.footer-links a {
    margin: 0 10px;
    font-size: 0.9rem;
    color: #888;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.created-by {
    margin-top: 20px;
    font-size: 0.8rem;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.created-by a {
    color: #aaa;
    text-decoration: none;
    font-weight: 600;
}

.created-by a:hover {
    color: var(--primary-color);
}

/* =========================================
   8. MOBILE SPECIFIC (Sticky Bar & Menu)
   ========================================= */
/* Sticky Bar na dole */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    display: flex;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    /* Obsługa iPhone X+ (pasek home) */
    padding-bottom: env(safe-area-inset-bottom);
}

.sticky-btn {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    color: #fff;
    transition: 0.3s;
}

.sticky-btn i {
    margin-right: 8px;
}

.sticky-btn.call {
    background: #28a745; /* Zielony */
}

.sticky-btn.sms {
    background: var(--primary-color); /* Niebieski */
}

@media (min-width: 769px) {
    .mobile-sticky-bar {
        display: none;
    }
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0; /* Zmieniamy na lewo dla lepszej kontroli */
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* Ukrycie całkowite */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20px); /* Lekki efekt wpadania z góry zamiast z boku (bezpieczniejsze) */
    transition: all 0.3s ease-in-out;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-menu li {
    margin: 25px 0;
}

.mobile-menu a {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* =========================================
   9. MEDIA QUERIES (Responsywność)
   ========================================= */
@media (max-width: 768px) {
    .desktop-menu { display: none; }
    
    /* LOGO MOBILE: Na starcie 80px */
    .logo img { height: 80px; } 
    /* LOGO MOBILE: Po przewinięciu 50px */
    header.sticky .logo img { height: 50px; }
    
    #hero {
        padding-top: 0;
    }
    
    .hero-content {
        margin-top: 20px; /* Mniejszy margines na telefonie */
    }

    #hero h1 {
        font-size: 2.2rem;
    }

    #hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
/* Przycisk zamykania menu (X) */
.close-menu {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: 0.3s;
}

.close-menu:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}