/* ==========================================================================
   BOMIREX - GŁÓWNY PLIK STYLÓW (styles.css)
   Wersja: 2.1 (Zoptymalizowana pod mobilki i animacje)
   ========================================================================== */

/* --- 1. RESET I PODSTAWY --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #ced7eb, #e5d1ae);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #2b2b2b;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- 2. ZMIENNE --- */
:root {
    --navy: #0b2340;
    --navy-light: #1a3a5f;
    --accent: #2b2b2b;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --container-width: 1200px;
}

/* --- 3. UKŁAD (LAYOUT) --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.center {
    text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* --- 4. NAGŁÓWEK I NAWIGACJA --- */
.site-header {
    background: linear-gradient(90deg, rgba(11, 35, 64, 0.98), rgba(11, 35, 64, 0.95));
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
}

.logo img {
    height: 55px;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Menu główne */
.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
    opacity: 0.9;
}

.main-nav a:hover {
    opacity: 1;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.cta {
    background: var(--white);
    color: var(--navy);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    transition: var(--transition);
}

.main-nav a.cta:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.main-nav a.cta::after {
    display: none;
}

/* Przycisk mobilny */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1100;
    transition: transform 0.3s ease;
}

/* --- 5. STRONA GŁÓWNA (SLIDER) --- */
.home-centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 2rem 0;
}

.hero-slider {
    width: 100%;
    max-width: 900px;
    height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    background: #000;
}

.hero-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slider img.active {
    opacity: 1;
}

/* --- 6. OFERTA (GALERIA I SEKCJE) --- */
.content-section {
    padding: 4rem 0;
    flex: 1;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--navy);
    text-align: center;
}

.offer-section {
    background: rgba(255, 255, 255, 0.4);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    backdrop-filter: blur(5px);
}

.offer-section h2 {
    color: var(--navy);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-left: 10px;
    border-left: 5px solid var(--navy);
}

/* Galeria 3 zdjęcia obok siebie */
.offer-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.offer-gallery img {
    width: 100%;
    height: 160px; /* Stała, zgrabna wysokość */
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.offer-gallery img:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.offer-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    margin: 4rem 0;
}

/* --- 7. STRONA O NAS (NAPRAWA) --- */
.about-text {
    background: rgba(255, 255, 255, 0.85);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #444;
}

.about-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--navy);
    font-size: 1.4rem;
}

.about-text ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-text li {
    margin-bottom: 0.5rem;
}

/* Kafelki cech */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
}

.feature h3 {
    color: var(--navy);
    margin-bottom: 1rem;
}

/* --- 8. REALIZACJE I PROJEKTY (LIGHTBOX) --- */
.gallery-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-grid img, .projects-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.gallery-grid img:hover, .projects-grid img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* Lightbox - tło */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none; /* Sterowane przez JS */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    cursor: zoom-out;
}

.lightbox.open {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: white;
    font-size: 3rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- 9. KONTAKT --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(11, 35, 64, 0.1);
}

.form-message {
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    display: none;
}

/* --- 10. STOPKA --- */
.site-footer {
    background: #111;
    color: #eee;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 0px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-grid h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-grid p, .footer-grid a {
    color: #bbb;
    text-decoration: none;
    margin-bottom: 0.8rem;
    display: block;
}

.footer-grid a:hover {
    color: #ffffff;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #777;
}

/* --- 11. PRZYCISKI --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--navy-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--navy);
    color: var(--navy);
}

/* --- 12. ANIMACJE (SCROLL REVEAL) --- */
.reveal-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- 13. RESPONSYWNOŚĆ (MOBILE) --- */

@media (max-width: 1024px) {
    .features, .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    
    .mobile-menu-toggle {
        display: block;
    }

    /* Ukryte menu mobilne */
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(11, 35, 64, 0.98);
        padding: 2rem;
        text-align: center;
        gap: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }

    .main-nav.mobile-open {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .main-nav a {
        font-size: 1.2rem;
    }

    /* Galeria w ofercie na mobilki (1 kolumna) */
    .offer-gallery {
        grid-template-columns: 1fr;
    }
    
    .offer-gallery img {
        height: 220px;
    }

    .contact-grid, .footer-grid, .features {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        height: 350px;
    }

    .about-text {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 250px;
    }
    
    .logo img {
        height: 45px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}
