/* assets/css/layout.css */

/* --- HLAVNÍ HEADER & MENU --- */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    
    /* STICKY - Přilepení menu nahoru */
    position: sticky; 
    position: -webkit-sticky;
    top: 0; 
    z-index: 9999;
    
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.navbar-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding-right: 20px;
    flex-shrink: 0; /* Logo se nesmí zmenšovat */
}

.logo-img {
    height: 65px; /* Optimální velikost */
    width: auto;
    display: block;
    object-fit: contain;
}

/* NAVIGACE (Desktop) */
.nav-items { 
    display: flex; 
    gap: 5px; 
    background: rgba(241, 245, 249, 0.6); 
    padding: 5px; 
    border-radius: 50px; 
    border: 1px solid rgba(0,0,0,0.05); 
}

.nav-link { 
    font-weight: 700; 
    color: #4B5563; /* Tmavší šedá pro čitelnost */
    font-size: 0.95rem; 
    padding: 10px 20px; 
    border-radius: 25px; 
    transition: all 0.2s ease; 
    text-decoration: none;
    white-space: nowrap;
}

.nav-link:hover { 
    color: #0056D2; 
    background: white; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}

.nav-link.active { 
    color: #0056D2; 
    background: white; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
}

/* PRAVÁ ČÁST (Telefon) */
.nav-right-group { display: flex; align-items: center; gap: 20px; }

.header-cta { display: flex; align-items: center; gap: 12px; }

.cta-info { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-end; 
    line-height: 1.2; 
}

.cta-label { 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    font-weight: 800; 
    color: #94a3b8; 
    letter-spacing: 0.5px; 
}

.cta-sub { 
    font-size: 0.65rem; 
    color: #FF5E00; 
    font-weight: 700; 
    background: rgba(255, 94, 0, 0.1); 
    padding: 2px 6px; 
    border-radius: 4px; 
    margin-top: 2px; 
}

.cta-button { 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    background-color: #0F172A; 
    color: white; 
    padding: 10px 20px; 
    border-radius: 50px; 
    font-weight: 700; 
    font-size: 1.1rem; 
    transition: all 0.3s ease; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
    text-decoration: none; 
    white-space: nowrap;
}

.cta-button i { color: #FF5E00; font-size: 1rem; }
.cta-button:hover { 
    background-color: #0056D2; 
    transform: translateY(-2px); 
    box-shadow: 0 8px 15px rgba(0, 86, 210, 0.25); 
}


/* --- FOOTER --- */
footer {
    background-color: #111827;
    color: #E2E8F0;
    padding-top: 60px;
    position: relative;
    overflow: hidden;
}

.footer-top-border {
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-mascot-container { margin-bottom: 20px; display: flex; justify-content: flex-start; }
.footer-mascot-img { height: 180px; width: auto; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5)); }

.footer-desc { font-size: 0.9rem; line-height: 1.6; margin-bottom: 25px; max-width: 280px; color: #94A3B8; }

.social-links { display: flex; gap: 16px; }
.social-links a {
    width: 40px; height: 40px; background: rgba(255,255,255,0.05); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white;
    transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.1);
}
.social-links a:hover { background: #0056D2; border-color: #0056D2; transform: translateY(-3px); }

.footer-col h4 { color: white; margin-bottom: 25px; font-size: 1.2rem; font-weight: 700; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { display: flex; align-items: center; gap: 8px; transition: all 0.2s ease; color: #94A3B8; text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: white; }

.footer-contact-item { display: flex; gap: 15px; margin-bottom: 20px; align-items: center; }
.footer-icon {
    width: 40px; height: 40px; background: rgba(255,255,255,0.05); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #FF5E00; flex-shrink: 0;
}
.footer-contact-text { display: flex; flex-direction: column; }
.footer-contact-text span { font-size: 0.75rem; text-transform: uppercase; font-weight: 700; color: #64748B; margin-bottom: 2px; }
.footer-contact-text a, .footer-contact-text strong { color: white; font-weight: 600; font-size: 1rem; transition: color 0.2s; text-decoration: none; }
.footer-contact-text a:hover { color: #FF5E00; }

.footer-bottom {
    padding: 25px 0; border-top: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
    font-size: 0.85rem; color: #64748B;
}


/* =========================================
   RESPONSIVITA A MOBILNÍ MENU (TONDA FIX)
   ========================================= */

@media (max-width: 1100px) {
    .logo-img { height: 55px; }
}

@media (max-width: 992px) {
    /* Úprava rozložení hlavičky pro mobil */
    .navbar { padding: 10px 0; }
    
    .navbar-flex { 
        flex-direction: column; 
        gap: 15px; 
        align-items: stretch;
    }

    /* Horní řádek: Logo vlevo, Telefon vpravo */
    .nav-right-group { 
        justify-content: space-between; 
        width: 100%; 
        order: 1; /* První v pořadí */
        display: flex;
        margin: 0;
    }
    
    /* Logo posuneme do horního řádku k telefonu */
    .logo { 
        order: 0; 
        padding: 0;
        margin-right: auto; 
    }
    
    .cta-info { display: none; } /* Skryjeme text "Havarijní linka", necháme jen tlačítko */
    
    .cta-button {
        padding: 8px 16px;
        font-size: 1rem;
    }

    /* MENU - POSUVNÁ LIŠTA (To, co chtěl Tonda) */
    .nav-items { 
        order: 2; /* Druhé v pořadí (pod logem) */
        display: flex !important; /* Vynutit zobrazení */
        width: 100%;
        overflow-x: auto; /* Povolit posouvání do boku */
        white-space: nowrap; /* Zákaz zalamování */
        background: transparent;
        border: none;
        padding: 5px 0 10px 0; /* Trochu místa pro prst */
        margin: 0;
        gap: 8px;
        /* Skrytí posuvníku, ale zachování funkčnosti */
        -ms-overflow-style: none;  
        scrollbar-width: none;  
    }
    
    .nav-items::-webkit-scrollbar { display: none; }

    .nav-link {
        background: #f1f5f9;
        color: #334155;
        padding: 10px 18px;
        font-size: 0.9rem;
        flex-shrink: 0; /* Aby se tlačítka nesmrskla */
        border: 1px solid #e2e8f0;
    }
    
    .nav-link.active {
        background: #0056D2;
        color: white;
        border-color: #0056D2;
    }

    /* Footer úpravy pro mobil */
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-mascot-container { justify-content: center; }
    .footer-desc { margin: 0 auto 25px; }
    .footer-contact-item { justify-content: center; flex-direction: column; text-align: center; }
    .social-links { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
}