/*
Theme Name: Niteczka Theme Ultimate (Bolid F1 - v24.0)
Author: WEYWOT Core
Description: Zintegrowane menu boczne, pogoda 3-dniowa, fix odstępów.
Version: 24.0
*/

:root {
    --primary-dark: #2c3e50;
    --accent: #e67e22;
    --menu-bg: #ffffff;
    --menu-text: #333333;
    --bg-body: #f8fbff;
    --font-main: 'Montserrat', sans-serif;
    --radius: 15px;
}

body { margin: 0; padding: 0; font-family: var(--font-main); background-color: var(--bg-body); color: var(--primary-dark); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3 { margin-top: 0; margin-bottom: 15px; font-weight: 800; line-height: 1.2; }

.header-container, .container, .footer-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* --- 1. TOP BAR (POGODA) --- */
.top-bar { background-color: #f1f2f6; padding: 8px 0; font-size: 11px; border-bottom: 1px solid #e1e1e1; color: #555; }
.top-bar-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap:10px; }
.top-info { display: flex; gap: 15px; align-items: center; }
.weather-box { display: flex; gap: 15px; align-items: center; }
.weather-day { display: flex; align-items: center; gap: 4px; }
.weather-day strong { color: var(--accent); }

/* --- 2. HEADER --- */
.site-header { background: #fff; padding: 20px 0; position: relative; z-index: 100; border-bottom: 1px solid #f0f0f0; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }

.company-name { margin: 0; font-size: 2rem; text-transform: uppercase; line-height: 1; }
.company-name a { color: var(--primary-dark); }
.company-sub { margin: 5px 0 0; font-size: 0.75rem; color: var(--accent); letter-spacing: 1px; font-weight: 700; text-transform: uppercase; }

.company-contact { text-align: right; }
.phone-link { font-size: 1.2rem; font-weight: 800; color: var(--primary-dark); display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.phone-icon { background: var(--accent); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* --- 3. MENU DESKTOP --- */
.main-nav { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 999; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.aj-menu { display: flex; justify-content: center; flex-wrap: wrap; }
.aj-menu > li > a { display: block; padding: 15px 20px; color: var(--menu-text); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; border-bottom: 2px solid transparent; }
.aj-menu > li:hover > a, .aj-menu > li.current-menu-item > a { color: var(--accent); border-bottom-color: var(--accent); }

/* Submenu Desktop */
.aj-menu ul.sub-menu { display: none; position: absolute; background: #fff; padding: 10px 0; border-radius: 0 0 10px 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); width: 220px; }
.aj-menu li:hover > ul.sub-menu { display: block; }
.aj-menu ul.sub-menu li a { padding: 10px 20px; font-size: 13px; font-weight: 500; text-transform: none; border-bottom: 1px solid #f9f9f9; }
.aj-menu ul.sub-menu li a:hover { background: #f8fbff; color: var(--accent); padding-left: 25px; }

/* --- 4. HERO SLIDER --- */
.hero { position: relative; background: linear-gradient(135deg, var(--primary-dark) 0%, #1a252f 100%); color: #fff; padding: 60px 20px; text-align: center; border-radius: 0 0 30px 30px; margin-bottom: 20px; }
.hero-slide { display: none; opacity: 0; transition: opacity 0.5s; }
.hero-slide.active { display: block; opacity: 1; }
.hero h2 { font-size: 2.2rem; margin-bottom: 10px; text-transform: uppercase; }
.hero-sub { font-size: 1.1rem; opacity: 0.9; margin-bottom: 10px; }
.btn-primary { background: var(--accent); color: #fff; border: none; padding: 12px 30px; font-weight: 800; border-radius: 50px; cursor: pointer; text-transform: uppercase; margin-top: 15px; display: inline-block; }
.btn-primary:hover { transform: scale(1.05); background: #d35400; }
.slider-dots { margin-top: 20px; }
.dot { height: 10px; width: 10px; margin: 0 5px; background: rgba(255,255,255,0.3); border-radius: 50%; display: inline-block; cursor: pointer; }
.dot.active { background: #fff; }

/* --- 5. MENU MOBILNE (SLIDE-OUT) - TWOJE ŻYCZENIE --- */
.mobile-menu-toggle { display: none; background: transparent; border: none; font-size: 28px; cursor: pointer; color: var(--primary-dark); z-index: 1000001; position: relative; }

@media (max-width: 992px) {
    .mobile-menu-toggle { display: block; }
    .company-contact.desktop-only { display: none; }
    .header-flex { justify-content: space-between; }
    
    /* Panel Boczny */
    .main-nav {
        display: block !important;
        position: fixed; top: 0; right: -100%; /* Schowane */
        width: 80%; max-width: 300px; height: 100vh;
        background: #fff; z-index: 1000000;
        transition: right 0.4s ease;
        padding-top: 80px; box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    /* Wjazd menu */
    .main-nav.toggled { right: 0; box-shadow: 0 0 0 10000px rgba(0,0,0,0.6); /* Backdrop */ }
    
    .aj-menu { flex-direction: column; align-items: flex-start; }
    .aj-menu > li { width: 100%; border-bottom: 1px solid #f0f0f0; }
    .aj-menu > li > a { padding: 15px 25px; color: #333; }
    
    /* Submenu Mobile */
    .aj-menu ul.sub-menu { position: static; box-shadow: none; width: 100%; display: none; background: #f9f9f9; padding-left: 10px; }
    .aj-menu li:hover > ul.sub-menu { display: block; }
    
    .top-bar-flex { flex-direction: column; text-align: center; }
}

/* --- 6. FIXY ODSTĘPÓW (COMPACT) --- */
.container.bg-light-blue, .container[style*="background"] { border-radius: 15px; padding: 30px 20px !important; margin-bottom: 10px !important; }
.aj-services-grid { gap: 10px !important; }

/* --- 7. FOOTER --- */
.site-footer { background: var(--primary-dark); color: #aaa; padding: 40px 0 10px; margin-top: 20px; border-top: 4px solid var(--accent); font-size: 0.9rem; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.footer-col h3 { color: #fff; border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 5px; }
.footer-credits { text-align: center; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; font-size: 0.75rem; }
.weywot-link { color: #fff; font-weight: bold; }

/* Modal Zamówienia */
.aj-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 9999999; display: none; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.aj-modal-content { background: #fff; width: 90%; max-width: 450px; padding: 30px; border-radius: 15px; position: relative; animation: ajPop 0.3s; }
.aj-modal-close { position: absolute; top: 10px; right: 15px; font-size: 30px; cursor: pointer; }
.aj-field { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 5px; }
.aj-btn-submit { width: 100%; padding: 15px; background: var(--accent); color: #fff; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; text-transform: uppercase; }
@keyframes ajPop { from {transform: scale(0.9); opacity: 0;} to {transform: scale(1); opacity: 1;} }