/* assets/css/front.css */

:root {
    --bg-dark: #030407;
    --bg-carbon: #080a0f;
    --bg-glass: rgba(5, 5, 5, 0.98);
    --bg-panel: rgba(15, 17, 20, 0.6);
    
    /* CTA - Electric Blue */
    --cta-blue: #00d2ff;
    --cta-blue-hover: #00e5ff;
    --cta-glow: rgba(0, 210, 255, 0.4);
    
    --accent-red: #e60000;
    
    --text-light: #ffffff;
    --text-muted: #8892b0;
    --border-dark: #121826;
    --border-glass: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Michroma', sans-serif;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --header-height: 80px;
}

* { 
    margin: 0;
    padding: 0; 
    box-sizing: border-box; 
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    background-image: radial-gradient(circle at 50% 0%, var(--bg-carbon) 0%, var(--bg-dark) 100%);
}

/* ==========================================
   Swup.js Transitions
   ========================================== */
.transition-fade { transition: 0.4s; opacity: 1; transform: translateY(0); }
html.is-animating .transition-fade { opacity: 0; transform: translateY(15px); }

/* ==========================================
   Pływający Przycisk (FAB - Electric Blue)
   ========================================== */
.fab-phone {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background: rgba(0, 210, 255, 0.1); border: 1px solid var(--cta-blue); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    color: var(--cta-blue); box-shadow: 0 0 15px var(--cta-glow); z-index: 9999;
    transition: all 0.3s ease; backdrop-filter: blur(5px); animation: pulse-blue 2s infinite;
}
.fab-phone:hover {
    transform: scale(1.1); background: var(--cta-blue); color: #000;
    box-shadow: 0 0 25px var(--cta-blue-hover); animation: none;
}
.fab-phone svg { width: 24px; height: 24px; }

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(0, 210, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

/* ==========================================
   Header & Navigation
   ========================================== */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
    background: var(--bg-glass); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-dark); z-index: 1000; display: flex;
    align-items: center; justify-content: space-between; padding: 0 5%;
}

.logo { display: flex; align-items: center; height: 100%; padding: 5px 0; text-decoration: none; }
.logo img { height: 100%; max-height: 70px; width: auto; object-fit: contain; transition: transform 0.3s ease; }
.logo:hover img { transform: scale(1.05); }

.main-nav { display: flex; gap: 2.5rem; align-items: center; height: 100%; }

.nav-item {
    color: var(--text-light); text-decoration: none; font-weight: 600; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1.5px; transition: color 0.3s; height: 100%;
    display: flex; align-items: center; cursor: pointer; position: relative;
}
.nav-item:hover, .nav-item.active-menu-item { color: #fff; }
.nav-item::after {
    content: ''; position: absolute; bottom: 25px; left: 0; width: 0; height: 2px;
    background: var(--cta-blue); transition: width 0.3s ease;
}
.nav-item:hover::after, .nav-item.active-menu-item::after { width: 100%; }

/* Mega Menu */
.has-mega-menu { position: relative; }
.has-mega-menu::after { display: none; }

.mega-menu {
    position: absolute; top: var(--header-height); left: 50%; transform: translateX(-50%) translateY(10px);
    width: 90vw; max-width: 1000px; background: var(--bg-glass); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border-dark);
    border-top: 2px solid var(--cta-blue); border-radius: 0 0 8px 8px; padding: 3rem;
    display: flex; gap: 4rem; opacity: 0; visibility: hidden; transition: all 0.3s ease;
    pointer-events: none; box-shadow: 0 30px 60px rgba(0,0,0,0.95);
}
.has-mega-menu:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }

.mega-section { flex: 1; }
.mega-col { margin-bottom: 2rem; flex: 1; }
.mega-col:last-child { margin-bottom: 0; }

.mega-col h3 {
    color: #fff; font-family: var(--font-heading); font-size: 0.9rem; letter-spacing: 1px;
    margin-bottom: 1.2rem; display: flex; align-items: center; gap: 10px;
}
.mega-col h3::before { content: ''; display: block; width: 4px; height: 16px; background: var(--cta-blue); }

.mega-link {
    display: block; color: var(--text-muted); text-decoration: none; font-size: 0.95rem;
    font-weight: 500; margin-bottom: 0.8rem; transition: color 0.2s, transform 0.2s;
}
.mega-link:hover { color: #fff; transform: translateX(5px); }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-light); font-size: 1.8rem; cursor: pointer; z-index: 1100; }

/* ==========================================
   Przyciski Globalne
   ========================================== */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 210, 255, 0.1);
    color: var(--text-light); text-decoration: none; padding: 1rem 2rem; border-radius: 4px;
    font-family: var(--font-heading); font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    transition: all 0.3s ease; border: 1px solid var(--cta-blue); box-shadow: 0 0 15px var(--cta-glow);
    cursor: pointer; font-size: 0.85rem; text-shadow: 0 0 5px rgba(255,255,255,0.3); text-align: center;
}
.btn-primary:hover { background: var(--cta-blue); color: #000; box-shadow: 0 0 25px var(--cta-blue-hover); text-shadow: none; }

.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; background: transparent;
    color: var(--text-light); text-decoration: none; padding: 1rem 2rem; border-radius: 4px;
    font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    transition: all 0.3s ease; border: 1px solid var(--border-glass); cursor: pointer; font-size: 0.85rem; text-align: center;
}
.btn-outline:hover { border-color: var(--cta-blue); color: var(--cta-blue); background: rgba(0, 210, 255, 0.05); }

/* ==========================================
   HERO SECTION (Twardy Grid 1/3 + 2/3)
   ========================================== */
.hero-section {
    width: 100%; min-height: 100vh; padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 2rem; display: grid; grid-template-columns: 1fr 2fr;
    align-items: center; gap: 2rem; max-width: 1600px; margin: 0 auto;
    padding-left: 5%; padding-right: 5%;
    position: relative; /* <--- TO JEST DODANE */
}

/* NOWY BLOK: Kinowa winieta chroniąca tekst */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 55%; /* Cień zajmuje tylko lewą stronę ekranu */
    height: 100%;
    /* Gradient przechodzący z czarnego tła do pełnej przezroczystości */
    background: linear-gradient(to right, var(--bg-dark) 0%, var(--bg-dark) 80%, rgba(3, 4, 7, 0) 100%);
    z-index: 5; /* Cień jest nad karuzelą... */
    pointer-events: none; /* Pozwala "klikać" przez cień */
}

.hero-content {
    width: 100%; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 10;
}

.hero-car-name {
    font-family: var(--font-heading); font-size: clamp(1.8rem, 3.5vw, 3.5rem);
    line-height: 1.15; text-transform: uppercase; color: #fff; letter-spacing: -1px;
    margin-bottom: 2.5rem; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis;
    word-break: normal; hyphens: none;
}

.hero-stats { display: flex; flex-wrap: nowrap; gap: 2rem; margin-bottom: 3rem; }

.stat-box { display: flex; flex-direction: column; }

.stat-value {
    font-family: var(--font-heading); font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    color: var(--text-light); line-height: 1; margin-bottom: 0.5rem;
    display: flex; align-items: baseline; gap: 5px;
}
.stat-value span:first-child { display: inline-block; min-width: 3.5ch; text-align: right; }
.stat-value span:last-child { font-size: 0.85rem; color: var(--text-muted); font-family: var(--font-main); }
.stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; white-space: nowrap; }

.hero-actions { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 1rem; align-items: center; }

.hero-slider-container { width: 100%; min-width: 0; position: relative; display: flex; justify-content: center; }

.swiper-container { width: 100%; padding-top: 20px; padding-bottom: 60px; }
.swiper-slide { width: 400px; aspect-ratio: 3/4; height: auto; display: flex; align-items: center; justify-content: center; }

.car-poster {
    width: 100%; height: 100%; position: relative; border-radius: 8px; overflow: hidden;
    background: transparent; box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    transition: transform 0.3s; border: 1px solid var(--border-glass);
}
.car-poster img {
    width: 100%; height: 100%; object-fit: cover; object-position: bottom center;
    display: block; opacity: 0.6; transition: opacity 0.4s;
}
.swiper-slide-active .car-poster img { opacity: 1; }

.promo-ribbon {
    position: absolute; 
    top: 30px; 
    right: -80px; /* Odsunięcie mocniej w prawo */
    width: 280px; /* Sztywna, szeroka belka */
    text-align: center; /* Tekst idealnie na środku */
    background: var(--accent-red); 
    color: #fff;
    padding: 10px 0 6px 0; /* Zdejmujemy boczny padding, szerokość robi robotę */
    font-size: 0.6rem; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transform: rotate(45deg); 
    box-shadow: 0 5px 20px rgba(230,0,0,0.6); 
    z-index: 10;
    white-space: nowrap; /* Zakaz łamania wierszy */
}

.swiper-pagination { bottom: 0 !important; }
.swiper-pagination-bullet { background: var(--text-muted); opacity: 0.3; width: 8px; height: 8px; transition: all 0.3s; }
.swiper-pagination-bullet-active { background: var(--cta-blue); opacity: 1; width: 24px; border-radius: 4px; box-shadow: 0 0 10px var(--cta-glow); }

.swiper-button-next, .swiper-button-prev { display: none; }


/* ==========================================
   Szklane Panele (Nowy, czysty układ sekcji treściowych)
   ========================================== */
.content-section {
    padding: 4rem 5%; width: 100%; position: relative; z-index: 1;
}

.glass-panel {
    background: rgba(15, 17, 20, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass); border-radius: 12px; padding: 4rem; max-width: 1100px;
    margin: 0 auto 2rem; position: relative; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    text-align: center;
}

.section-watermark {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-family: var(--font-heading); font-size: 12vw; color: rgba(255,255,255,0.015);
    white-space: nowrap; z-index: 0; pointer-events: none; user-select: none;
    letter-spacing: -2px; line-height: 1;
}

.text-content-wrapper {
    position: relative; z-index: 1; max-width: 800px; margin: 0 auto; width: 100%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 5vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    word-break: normal;
    overflow-wrap: normal;
    hyphens: normal;
}
.section-title span { color: var(--cta-blue); }

.section-subtitle { font-size: clamp(1rem, 1.5vw, 1.1rem); color: var(--text-muted); line-height: 1.8; margin-bottom: 2rem; font-weight: 400; }
.text-content-wrapper p { color: var(--text-muted); font-size: clamp(0.95rem, 1.5vw, 1.05rem); line-height: 1.8; margin-bottom: 2rem; font-weight: 400; }

/* ==========================================
   Siatka Oferty (Grid)
   ========================================== */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; position: relative; z-index: 1; text-align: left; }
.offer-card { background: var(--bg-panel); border: 1px solid var(--border-glass); border-radius: 8px; padding: 1.5rem; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.offer-card:hover { transform: translateY(-5px); border-color: var(--cta-blue); box-shadow: 0 15px 30px rgba(0, 210, 255, 0.1); }

.offer-img-wrapper { aspect-ratio: 3/4; height: auto; width: 100%; margin-bottom: 1.5rem; position: relative; border-radius: 4px; overflow: hidden; }
.offer-img-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: bottom center; }

.offer-title { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }
.offer-stats { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.8rem; margin-bottom: 2rem; border-top: 1px solid var(--border-dark); padding-top: 1rem; font-weight: 600; }
.offer-stats span strong { color: #fff; font-size: 0.95rem; font-family: var(--font-heading); }
.offer-price { color: var(--cta-blue) !important; font-size: 1.1rem !important; text-shadow: 0 0 10px rgba(0,210,255,0.3); }

/* ==========================================
   Moduł FAQ & Formularz Kontaktowy
   ========================================== */
.faq-container { width: 100%; text-align: left; position: relative; z-index: 1; }
details { background: transparent; border-bottom: 1px solid var(--border-dark); margin-bottom: 0; overflow: hidden; }
summary { padding: 1.5rem 0; font-size: clamp(0.95rem, 1.5vw, 1.1rem); font-weight: 600; color: var(--text-light); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: color 0.3s; }
summary:hover { color: var(--cta-blue); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--cta-blue); font-size: 1.5rem; font-weight: 300; transition: transform 0.4s ease; }
details[open] summary::after { transform: rotate(45deg); color: var(--accent-red); }
details p { padding: 0 0 1.5rem 0; color: var(--text-muted); line-height: 1.8; font-size: 0.95rem; margin: 0; }

.contact-form-wrapper { width: 100%; text-align: left; position: relative; z-index: 1; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }
.form-group input, .form-group textarea { width: 100%; background: rgba(0,0,0,0.5); border: 1px solid var(--border-dark); color: var(--text-light); padding: 1rem; border-radius: 6px; font-size: 1rem; outline: none; transition: border-color 0.3s; font-family: var(--font-main); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--cta-blue); }
.honeypot-field { opacity: 0; position: absolute; top: 0; left: 0; height: 0; width: 0; z-index: -1; pointer-events: none; }

/* ==========================================
   Footer
   ========================================== */
.site-footer { background: #020305; border-top: 1px solid var(--border-dark); padding: 4rem 5% 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; max-width: 1200px; margin: 0 auto; }
.footer-col h4 { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 800; font-family: var(--font-heading); }
.footer-col p, .footer-col a { color: var(--text-muted); font-size: 0.9rem; line-height: 2; text-decoration: none; display: block; margin-bottom: 0.5rem; transition: color 0.3s; }
.footer-col a:hover { color: #fff; }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-links a { display: inline-flex; width: 40px; height: 40px; border: 1px solid var(--border-dark); border-radius: 50%; align-items: center; justify-content: center; font-weight: bold; transition: all 0.3s; color: var(--text-light); }
.social-links a:hover { background: var(--cta-blue); color: #000; border-color: var(--cta-blue); box-shadow: 0 0 10px var(--cta-glow); }
.footer-bottom { text-align: center; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border-dark); color: #444; font-size: 0.8rem; }
.footer-bottom a { color: #666; text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--text-light); }

/* ==========================================
   Responsywność (Mobile Twardy Reset)
   ========================================== */
@media (max-width: 992px) {
    .logo img { max-height: 50px; }
    .mobile-menu-btn { display: block; }
    
    .main-nav {
        position: fixed; top: var(--header-height); left: 0;
        width: 100%; height: calc(100vh - var(--header-height));
        background: var(--bg-glass); flex-direction: column; align-items: flex-start;
        padding: 2rem 5%; transform: translateX(-100%); transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        overflow-y: auto; overflow-x: hidden; z-index: 999;
    }
    .main-nav.active { transform: translateX(0); }
    .nav-item { height: auto; margin-bottom: 2rem; font-size: 1.2rem; }
    .nav-item::after { display: none; }
    
    .has-mega-menu { width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
    
    .has-mega-menu:hover .mega-menu { 
        transform: none; 
    }

    .mega-menu {
        position: relative; top: 0; left: 0; transform: none; width: 100%;
        grid-template-columns: 1fr; padding: 1.5rem 0 1rem 1rem;
        background: transparent; border: none; border-left: 2px solid var(--border-dark);
        display: none; opacity: 1; visibility: visible; pointer-events: auto; box-shadow: none;
    }
    .has-mega-menu.mobile-open .mega-menu { display: grid; }

   /* HERO Mobile - Twardy pion i brak ucinania */
    .hero-section { 
        display: flex; flex-direction: column; grid-template-columns: 1fr; 
        padding-top: calc(var(--header-height) + 1rem); min-height: auto; 
        height: auto; width: 100%; overflow: hidden; gap: 0;
    }
    
    /* DODANE: Pancerne usuwanie winiety na Androidzie */
    .hero-section::before {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        content: none !important;
    }
    
    .hero-content {
        width: 100%; padding: 1rem 5%; flex: none; text-align: center;
        order: 2; margin-top: 1rem;
    }
    
    .hero-car-name { font-size: clamp(1.8rem, 7vw, 2.5rem); margin-bottom: 1.5rem; }
    
    .hero-stats { display: none; } 
    
    .hero-actions { justify-content: center; flex-direction: row; flex-wrap: nowrap; gap: 0.8rem; width: 100%; }
    .hero-actions a { width: 50%; text-align: center; padding: 1rem 0.5rem; font-size: 0.8rem; } 

    .hero-slider-container { width: 100%; flex: none; height: auto; background: none; order: 1; }
    .swiper-container { padding-top: 10px; padding-bottom: 40px; }
    .swiper-slide { width: 85vw; max-width: 380px; aspect-ratio: 3/4; height: auto; }    
    .car-poster { aspect-ratio: 3/4; height: auto; }

    /* Szklane Panele na Mobile - Wymuszenie ramek */
    .content-section { padding: 3rem 5%; width: 100%; box-sizing: border-box; }
    .glass-panel { padding: 2rem 1.5rem; width: 100%; border-radius: 8px; }
    
    .section-watermark { font-size: 20vw; }
    
    .offer-grid { grid-template-columns: 1fr; gap: 1.5rem; width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; width: 100%; }
}

/* ==========================================
   GLOBAL POPUP (NEON GLASSMORPHISM Z UŻYCIEM ZMIENNYCH)
   ========================================== */
.promo-popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}

.promo-popup-overlay.active {
    opacity: 1; pointer-events: auto;
}

.promo-popup-box {
    background: var(--bg-panel);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid var(--cta-blue); 
    padding: 3.5rem 2.5rem; 
    border-radius: 16px; 
    width: 90%; max-width: 550px;
    position: relative; 
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center; 
    
    /* Poświata korzystająca z globalnych zmiennych i natywnych wartości hex */
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 
                0 0 30px rgba(0, 210, 255, 0.2), 
                inset 0 0 20px rgba(0, 210, 255, 0.1);
}

.promo-popup-overlay.active .promo-popup-box {
    transform: translateY(0) scale(1);
}

.promo-popup-close {
    position: absolute; top: 15px; right: 20px;
    background: none; border: none; 
    color: rgba(255, 255, 255, 0.5); 
    font-size: 2.2rem; cursor: pointer; 
    transition: all 0.3s ease; line-height: 1;
}

.promo-popup-close:hover { 
    color: var(--cta-blue); 
    text-shadow: 0 0 15px var(--cta-blue); 
    transform: scale(1.1);
}

/* FORMATOWANIE ZWYKŁEGO TEKSTU (ŚWIECĄCY NEON) */
.promo-popup-content { 
    color: #e0f7fa; 
    font-size: 1.5rem; 
    line-height: 1.5; 
    font-weight: 400;
    text-shadow: 0 0 8px var(--cta-blue), 0 0 15px rgba(0, 210, 255, 0.6); 
}

/* NAPRAWA TAGU <b> ORAZ <strong> (ZDJĘCIE GLOBALNYCH GRADIENTÓW I WYMUSZENIE BIELI) */
#promoPopup .promo-popup-content b, 
#promoPopup .promo-popup-content strong {
    color: var(--text-light) !important; 
    -webkit-text-fill-color: var(--text-light) !important; 
    background: none !important; 
    font-weight: 900 !important; 
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--cta-blue), 0 0 20px var(--cta-blue), 0 0 35px var(--cta-blue) !important;
}