/* =========================================
   AIR-VIEW - STYLE SHEET
   =========================================
   SPIS TREŚCI:
   1.  VARIABLES (Zmienne kolorów)
   2.  RESET & BASE (Podstawy i typografia)
   3.  LAYOUT & UTILITIES (Kontenery, tagi, spacing)
   4.  COMPONENTS (Przyciski)
   5.  HEADER & NAVBAR (Nawigacja)
   6.  HERO SECTIONS (Nagłówki stron)
   7.  FOOTER (Stopka)
   
   --- PODSTRONY ---
   8.  PAGE: HOME (Sekcje zaufania, statystyki)
   9.  PAGE: ANGEBOT (Karty Fancy Cards)
   10. PAGE: 3D MODELLE (Ciemny motyw, galeria)
   11. PAGE: ÜBER UNS (Grid informacyjny, zespół)
   12. PAGE: KONTAKT (Formularze)
   
   13. RESPONSIVE (Media Queries)
   ========================================= */

/* =========================================
   0. MOBILE MENU STYLES
   ========================================= */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 2000; /* Musi być nad menu */
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--light); /* Białe kreski na starcie */
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

header.scrolled .mobile-menu-btn span {
    background-color: var(--dark);
}
body.dark-mode header.scrolled .mobile-menu-btn span {
    background-color: var(--light);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--light); /* X zawsze biały na ciemnym menu */
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--light);
}

body.no-scroll {
    overflow: hidden;
}


/* =========================================
   1. VARIABLES
   ========================================= */
:root {
    --primary: #f59e0b; 
    --primary-hover: #d97706;
    --dark: #0f172a;
    --darker: #020617;
    --light: #ffffff;
    --gray-light: #f1f5f9;
    --text-muted: #64748b;
    --border: rgba(0,0,0,0.08);
}

/* =========================================
   2. RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Klasa dla ciemnych podstron (np. 3D Modelle) */
body.dark-mode {
    background-color: var(--darker);
    color: var(--light);
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4 {
    line-height: 1.1;
    font-weight: 800;
}

p {
    line-height: 1.6;
}

/* =========================================
   3. LAYOUT & UTILITIES
   ========================================= */
.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 100px 0; }
.text-center { text-align: center; }

/* Tag nad nagłówkiem (np. "SHOWROOM") */
.section-tag {
    display: inline-block;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    background: rgba(245, 158, 11, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 20px;
}

/* =========================================
   4. COMPONENTS (Buttons)
   ========================================= */
.btn-group { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

.btn { 
    padding: 18px 36px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 700; 
    display: inline-block; 
    transition: 0.3s; 
    cursor: pointer; 
    border: none; 
    font-size: 1rem; 
}

.btn-primary { 
    background-color: var(--primary); 
    color: white; 
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3); 
}
.btn-primary:hover { 
    transform: translateY(-3px); 
    background-color: var(--primary-hover); 
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4); 
}

.btn-secondary { 
    background: rgba(255,255,255,0.1); 
    color: white; 
    border: 1px solid rgba(255,255,255,0.2); 
    backdrop-filter: blur(10px); 
}
.btn-secondary:hover { 
    background: white; 
    color: var(--dark); 
}

/* Lista z "ptaszkami" (używana w Info) */
.check-list { list-style: none; margin: 30px 0 40px 0; padding: 0; }
.check-list li { position: relative; padding-left: 40px; margin-bottom: 15px; color: var(--dark); font-weight: 600; line-height: 1.4; font-size: 1.05rem; }
.check-list li::before {
    content: "✓";
    position: absolute; left: 0; top: 0;
    width: 28px; height: 28px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--primary);
    border-radius: 50%;
    text-align: center; line-height: 28px;
    font-weight: 800; font-size: 14px;
}

/* =========================================
   5. HEADER & NAVBAR
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 5%;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.03);
}

/* Specjalny styl nagłówka dla trybu ciemnego */
body.dark-mode header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--light);
    transition: color 0.3s;
    text-decoration: none;
}

/* Kolor linków w menu */
nav ul { display: flex; gap: 30px; list-style: none; }
nav ul li a { text-decoration: none; color: var(--light); font-weight: 600; transition: 0.3s; font-size: 15px; }
nav ul li a.active, nav ul li a:hover { color: var(--primary); }

/* Zmiana kolorów po przewinięciu (tylko na jasnych stronach) */
body:not(.dark-mode) header.scrolled .logo { color: var(--dark); }
body:not(.dark-mode) header.scrolled nav ul li a { color: var(--dark); }
body:not(.dark-mode) header.scrolled nav ul li a.active { color: var(--primary); }

/* =========================================
   6. HERO SECTIONS
   ========================================= */
.hero, .subpage-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: white;
}

/* Home Hero */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.4)), 
                      url('obraz2.png');
    background-size: cover;
    background-position: right;
}

/* Subpage Hero (Dla podstron) */
.subpage-hero {
    height: 50vh;
    min-height: 400px;
    background-color: var(--dark);
    background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), 
                      url('https://images.unsplash.com/photo-1506947411487-a56738267384?q=80&w=2038&auto=format&fit=crop');
    margin-bottom: 60px;
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    z-index: 5;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.divider { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 10; pointer-events: none; }
.divider svg { fill: var(--light); width: 100%; }
body.dark-mode .divider svg { fill: var(--darker); } /* Divider dla ciemnego tła */

/* =========================================
   7. FOOTER
   ========================================= */
.footer-wrapper { background-color: transparent; position: relative; z-index: 10; margin-top: auto; }
.footer-separator-tech { width: 100%; height: 100px; background: transparent; pointer-events: none; display: block; }
.footer-separator-tech svg { width: 100%; height: 100%; display: block; fill: #050505; }
footer { background-color: #050505; color: #cbd5e1; padding: 0 0 40px 0; font-size: 0.95rem; }
.accent-line { stroke: var(--primary); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.footer-container { max-width: 1400px; margin: 0 auto; padding: 40px 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.5fr 1fr; gap: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 50px; }
.footer-logo-text { font-size: 36px; font-weight: 800; color: white; letter-spacing: -1px; line-height: 1; }
.footer-logo-text span { color: var(--primary); }
.footer-col h4 { color: white; font-size: 1.2rem; margin-bottom: 30px; position: relative; display: inline-block; font-weight: 700; }
.footer-links li { display: flex; align-items: center; margin-bottom: 15px; }
.footer-links a { text-decoration: none; color: #94a3b8; transition: 0.3s; display: flex; align-items: center; gap: 10px; font-size: 1rem; }
.footer-links a:hover { color: var(--primary); transform: translateX(5px); }
.social-row { display: flex; gap: 15px; margin-top: 30px; }
.social-icon { width: 45px; height: 45px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; border-radius: 10px; color: white; transition: 0.3s; border: 1px solid rgba(255,255,255,0.05); text-decoration: none; }
.social-icon svg { width: 22px; height: 22px; fill: white; transition: 0.3s; }
.social-icon:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-5px); }
.contact-icon-svg { width: 20px; height: 20px; fill: var(--primary); margin-right: 12px; flex-shrink: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; font-size: 0.9rem; color: #64748b; }
.footer-bottom-links a { color: #64748b; text-decoration: none; margin-left: 30px; transition: 0.3s; }
.footer-bottom-links a:hover { color: white; }


/* =========================================
   8. PAGE: HOME (Index)
   ========================================= */
.trust-section { padding: 80px 0; background: var(--light); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: center; }
.experience-box h3 { font-size: 3.5rem; font-weight: 800; color: var(--primary); line-height: 1; margin: 0; }
.experience-box span { font-size: 1.5rem; font-weight: 700; color: var(--dark); text-transform: uppercase; display: block; }
.certs-box { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.cert-badge { background: var(--gray-light); padding: 15px 30px; border-radius: 12px; font-weight: 600; display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.cert-badge svg { width: 24px; fill: var(--primary); }

.offer-section { background: var(--light); }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
.offer-card { position: relative; height: 450px; border-radius: 30px; overflow: hidden; cursor: pointer; display: block; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.offer-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.offer-card:hover img { transform: scale(1.05); }
.offer-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: white; display: flex; flex-direction: column; justify-content: flex-end; }
.offer-overlay h3 { font-size: 2rem; margin: 0; }

/* Showroom Section (Na stronie głównej) */
.showroom-section {
    background: #070c18;
    color: white;
    padding: 150px 8%; 
    position: relative;
    overflow: hidden;
}
.showroom-section::before {
    content: ""; position: absolute; width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(245,158,11,0.08), transparent 60%);
    top: -200px; left: -200px; pointer-events: none;
}
.wave-separator-top { position: absolute; top: -1px; left: 0; width: 100%; line-height: 0; transform: rotate(180deg); }
.wave-separator-bottom { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.wave-separator-top svg { display: block; width: 100%; height: 80px; fill: var(--light); }
.wave-separator-bottom svg { display: block; width: 100%; height: 100px; fill: #050505; }

.showroom-intro { text-align: center; max-width: 850px; margin: 0 auto 100px auto; position: relative; z-index: 2; }
.showroom-block { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; margin-bottom: 200px; align-items: center; position: relative; z-index: 2; }
.showroom-model { position: sticky; top: 120px; height: 600px; border-radius: 50px; background: radial-gradient(circle at center, #1e293b 0%, #070c18 70%); box-shadow: inset 0 0 120px rgba(0,0,0,0.7); overflow: hidden; }
.showroom-model model-viewer { width: 100%; height: 100%; }

.showroom-text h3 { font-size: 2.5rem; margin-bottom: 20px; color: white; }
.showroom-text .lead { font-size: 1.4rem; color: var(--primary); font-weight: 600; margin-bottom: 40px; }
.showroom-text p { color: #94a3b8; font-size: 1.05rem; margin-bottom: 30px; }

.spec-line {
    position: relative; padding: 18px 0; font-size: 1.05rem; color: #cbd5e1;
    border-bottom: 1px solid rgba(255,255,255,0.06); transition: 0.3s ease;
}
.spec-line::before {
    content: ""; position: absolute; left: -30px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 2px; background: linear-gradient(90deg, var(--primary), transparent); opacity: 0.8; transition: 0.3s;
}
.spec-line:hover { color: white; transform: translateX(6px); }
.spec-line:hover::before { width: 28px; opacity: 1; }
.showroom-block.reverse .showroom-model { order: 2; }
.showroom-block.reverse .showroom-text { order: 1; }

/* =========================================
   9. PAGE: ANGEBOT (Offer)
   ========================================= */
.fancy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-bottom: 100px; padding: 25px;}
.fancy-card {
    position: relative; background-color: var(--darker); border-radius: 30px;
    overflow: hidden; height: 550px; box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease; display: flex; flex-direction: column;
}
.fancy-card:hover { transform: translateY(-10px); box-shadow: 0 25px 60px rgba(245, 158, 11, 0.15); }
.fancy-image { height: 55%; width: 100%; background-size: cover; background-position: center; transition: transform 0.5s ease; }
.fancy-card:hover .fancy-image { transform: scale(1.05); }

.fancy-content {
    position: relative; height: 46%; background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 20px 40px 40px 40px; display: flex; flex-direction: column; justify-content: space-between; z-index: 2;
}
.fancy-wave-separator { position: absolute; top: -40px; left: 0; width: 100%; height: 41px; z-index: 3; pointer-events: none; }
.fancy-wave-separator path { fill: #1e293b; }
.fancy-floating-icon {
    position: absolute; top: -35px; left: 40px; width: 70px; height: 70px;
    background: linear-gradient(135deg, #2d3748, #0f172a); border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); border: 2px solid var(--primary); z-index: 4;
}
.fancy-floating-icon svg { width: 32px; height: 32px; fill: var(--primary); }
.fancy-text-wrap { margin-top: 35px; }
.fancy-content h3 { font-size: 1.8rem; color: white; margin-bottom: 10px; font-weight: 800; }
.fancy-content p { font-size: 1rem; color: #94a3b8; }
.fancy-btn-wrap { text-align: right; }
.fancy-btn {
    display: inline-block; padding: 12px 30px; border: 1px solid var(--primary);
    color: var(--primary); text-decoration: none; font-weight: 600;
    border-radius: 8px; transition: 0.3s; font-size: 0.9rem; text-transform: uppercase;
}
.fancy-btn:hover { background: var(--primary); color: white; }

/* =========================================
   10. PAGE: 3D MODELLE (Dark Mode Page)
   ========================================= */
/* Siatka galerii 3D */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 50px; margin-bottom: 100px; }
.model-card {
    background: #0f172a; border: 1px solid rgba(255,255,255,0.1); border-radius: 40px;
    height: 550px; overflow: hidden; position: relative; transition: 0.3s;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.model-card model-viewer { width: 100%; height: 100%; --poster-color: transparent; background: radial-gradient(circle at center, #1e293b 0%, #0f172a 70%); }
.model-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 30px 80px rgba(245, 158, 11, 0.1); }

.model-info-overlay {
    position: absolute; bottom: 25px; left: 25px; right: 25px;
    background: rgba(15, 23, 42, 0.9); padding: 25px; border-radius: 20px;
    backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1);
}
.model-info-overlay h3 { color: white; font-size: 1.4rem; }
.model-info-overlay p { color: #a8a8a8;;}

/* =========================================
   11. PAGE: ÜBER UNS (Info & Team)
   ========================================= */
.info-section { background-color: var(--light); padding: 120px 0; position: relative; z-index: 5; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.info-sidebar img { width: 100%; border-radius: 30px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.info-content h2 { color: var(--dark); font-size: 2.5rem; margin-bottom: 20px; }
.info-content h3 { font-size: 1.5rem; margin: 30px 0 15px; color: var(--primary); }

/* =========================================
   12. PAGE: KONTAKT
   ========================================= */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 100px; }
.form-box { background: white; padding: 50px; border-radius: 30px; box-shadow: 0 15px 50px rgba(0,0,0,0.05); border: 1px solid var(--border); }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--dark); }
.form-control { width: 100%; padding: 18px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 1rem; transition: 0.3s; background: #fff; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1); }
textarea.form-control { resize: vertical; min-height: 150px; }

/* =========================================
   13. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 1100px) {
    .hero-content h1 { font-size: 4rem; }
    .showroom-block { gap: 60px; }
    .gallery-grid { gap: 30px; }
    .model-card { height: 450px; }
}

@media (max-width: 900px) {
    nav { display: none; } /* Uproszczenie na potrzeby demo - w produkcji dodać burger menu */
    .hero-content h1 { font-size: 3rem; }
    .trust-grid { grid-template-columns: 1fr; text-align: center; }
    .certs-box { justify-content: center; margin-top: 20px; }
    /* Stack layouts to single column */
    .offer-grid, .fancy-grid, .gallery-grid, .showroom-block, .info-grid, .contact-wrapper, .footer-grid { grid-template-columns: 1fr; }
    
    .showroom-model { position: relative; top: unset; height: 400px; margin-bottom: 40px; order: -1 !important; }
    .showroom-block.reverse .showroom-text { order: unset; }
    .fancy-card { height: 450px; }
    .info-sidebar { order: 1; margin-bottom: 40px; }
    .footer-grid { gap: 40px; }
}
@media (max-width: 700px){
    .fancy-btn-wrap {display: none;}

}
@media (max-width: 600px) {
    .subpage-hero { height: 40vh; min-height: 300px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .footer-bottom-links a { margin: 0 10px; }
}

/* --- MEDIA QUERY (Telefony i Tablety) --- */
@media (max-width: 900px) {
    /* Pokazujemy przycisk */
    .mobile-menu-btn {
        display: flex;
    }

    /* Stylujemy nawigację jako overlay na cały ekran */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Domyślnie schowane poza ekranem z prawej */
        width: 100%;
        height: 100vh;
        background-color: rgba(15, 23, 42, 0.98); /* Ciemne tło */
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1500;
    }

    /* Klasa dodawana przez JS - wjazd menu */
    .nav-menu.active {
        right: 0;
    }

    /* Układ linków w pionie */
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        text-align: center;
    }

    .nav-menu ul li a {
        font-size: 1.5rem; /* Większe litery na telefonie */
        font-weight: 700;
        color: var(--light);
    }
    
    /* Na białym navbarze linki też muszą być białe w trybie mobilnym (bo tło jest ciemne) */
    header.scrolled nav ul li a {
        color: var(--light); 
    }
}