/* =========================================
   Reset i zmienne globalne
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #004b87; /* Profesjonalny, techniczny niebieski */
    --secondary-color: #f4f5f7;
    --text-color: #333333;
    --light-text: #ffffff;
    --accent-color: #e67e22; /* Akcent np. na przyciski */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth; /* Płynne przewijanie do sekcji */
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    padding-top: 70px; /* Miejsce na przyklejone menu */
}

/* =========================================
   Nawigacja (Header)
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 70px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu (ukryte na desktopie) */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* =========================================
   Główne sekcje i powtarzalne elementy
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 20px;
}

h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

.btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 5;
}

.btn-primary:hover {
    background-color: #003366;
}

/* =========================================
   Sekcja Hero (Video w tle)
   ========================================= */
#hero {
    position: relative;
    height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    padding: 0 20px;
    overflow: hidden;
    background-color: var(--primary-color); /* Fallback zanim załaduje się film */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Ciemna nakładka na wideo podnosząca czytelność tekstów */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 30, 60, 0.7), rgba(0, 30, 60, 0.7));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   Sekcja O nas
   ========================================= */
#o-nas {
    background-color: #ffffff;
    text-align: center;
}

#o-nas p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* =========================================
   Sekcja Usługi
   ========================================= */
#uslugi {
    background-color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.2rem;
    color: var(--primary-color);
    display: block;
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* =========================================
   Sekcja Opinie
   ========================================= */
#opinie {
    background-color: #ffffff;
}

/* =========================================
   Sekcja Kontakt
   ========================================= */
#kontakt {
    background-color: var(--secondary-color);
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-info p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

/* =========================================
   Stopka (Footer)
   ========================================= */
footer {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 4rem 20px 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info {
    flex: 1;
    text-align: left;
}

.footer-info p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.footer-info strong {
    color: #ffffff;
}

.footer-map {
    flex: 1;
    min-width: 300px;
}

.footer-map iframe {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.footer-links a, .footer-branding a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-branding a:hover {
    color: #ffffff;
}

.footer-branding a {
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* =========================================
   Przyklejony przycisk telefonu (domyślnie ukryty)
   ========================================= */
.sticky-phone {
    display: none;
}

/* =========================================
   Responsywność (Mobile - Media Queries)
   ========================================= */
@media (max-width: 768px) {
    /* Nawigacja */
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        gap: 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }

    /* Typografia i odstępy */
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .container {
        padding: 3rem 15px;
    }

    h2 {
        font-size: 1.8rem;
    }
    
    .service-item {
        padding: 1.5rem;
    }

    /* Stopka */
    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-info {
        text-align: center;
    }

    .footer-map {
        min-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* Przyklejony telefon na mobile */
    .sticky-phone {
        display: flex;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        background-color: var(--accent-color);
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        z-index: 9999;
        transition: transform 0.3s ease;
    }

    .sticky-phone:active {
        transform: scale(0.9);
    }

    .sticky-phone svg {
        width: 30px;
        height: 30px;
    }
}