/* ============================================
   HEADER.CSS - KOMPLETNÍ FINÁLNÍ VERZE
   Třísloupcové mega menu - Click to open
   Verze: 4.0 FINAL
   ============================================ */

/* ============================================
   ZÁKLADNÍ NAVIGACE
   ============================================ */

nav {
    background: var(--primary-blue);
    margin: 0;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 4px 7px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   LOGO A BRANDING
   ============================================ */

.brand-container {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    font-family: 'Raleway', sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: 1.5px;
}

.brand-text {
    color: white;
    display: flex;
    gap: 0.3rem;
    white-space: nowrap;
}

.nav-container .brand-container,
.nav-container .brand-container:visited {
    text-decoration: none;
}

.nav-container .brand-container .brand-main,
.nav-container .brand-container:visited .brand-main {
    color: white !important;
}

.nav-container .brand-container .brand-domain,
.nav-container .brand-container:visited .brand-domain {
    color: var(--light-blue) !important;
}

.brand-domain {
    color: var(--light-blue);
}

/* ============================================
   MOBILNÍ HAMBURGER MENU
   ============================================ */

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn .material-icons {
    font-size: 2rem;
}

/* ============================================
   NAVIGAČNÍ MENU
   ============================================ */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-item.mega-dropdown {
    position: relative;
}

.nav-links > a,
.dropdown-toggle {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-links > a i,
.dropdown-toggle > i {
    font-size: 1rem;
    width: 1.2rem;
    text-align: center;
    color: #25A9EA;
}

.dropdown-arrow {
    font-size: 0.75rem !important;
    width: auto !important;
    margin-left: 0.2rem;
    transition: transform 0.3s ease;
}

.nav-links > a:hover,
.nav-links > a.active,
.dropdown-toggle:hover {
    transform: scale(1.05);
    background: rgba(37, 169, 234, 0.1);
}

.nav-links > a:hover i,
.dropdown-toggle:hover i:not(.dropdown-arrow) {
    animation: iconRotate 0.6s ease;
}

/* ============================================
   OVERLAY - Ztmavnění pozadí
   ============================================ */

.mega-menu-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    pointer-events: none;
}

.mega-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ============================================
   MEGA MENU - TŘÍSLOUPCOVÝ LAYOUT
   Desktop (>1100px)
   ============================================ */

.mega-menu-fullwidth {
    position: fixed;
    left: 0;
    right: 0;
    top: 80px;
    
    background: #ffffff;
    padding: 3rem 2rem;
    
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    border-top: 4px solid var(--light-blue);
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
    
    z-index: 1000;
}

.mega-dropdown.active .mega-menu-fullwidth {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Vnitřní kontejner - 3 sloupce */
.mega-menu-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 380px 380px 1fr;
    gap: 2rem;
    align-items: start;
    
    background: linear-gradient(135deg, 
        rgba(230, 244, 251, 0.5) 0%, 
        rgba(255, 255, 255, 0) 50%
    );
    padding: 2rem;
    border-radius: 20px;
}

/* ============================================
   SLOUPEC 1 - Vizuální box (obrázek)
   ============================================ */

.mega-menu-visual {
    position: relative;
    height: 100%;
}

.mega-menu-image {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 30px rgba(102, 126, 234, 0.3),
        0 0 0 5px rgba(255, 255, 255, 0.5);
    position: relative;
}

.mega-menu-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 60%
    );
}

.placeholder-icon {
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 1;
}

.mega-menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
     transition: transform 0.3s ease;
}

.mega-menu-image:hover img {
    transform: scale(1.05); 
}

/* ============================================
   SLOUPEC 2 - CTA Box (uprostřed)
   ============================================ */

.mega-menu-visual-info {
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 0 0 2px rgba(37, 169, 234, 0.1);
    
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .9rem;
}

.mega-menu-visual-info h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 0;
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

.mega-menu-visual-info p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 0;
}

.mega-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: var(--primary-blue);
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 63, 99, 0.25);
    width: 100%;
}

.mega-cta-button:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 169, 234, 0.35);
}

.mega-cta-button i {
    font-size: 1.2rem;
}

/* ============================================
   SLOUPEC 3 - Karty služeb (vpravo)
   ============================================ */

.mega-menu-content {
    display: flex;
    flex-direction: column;
    height: 300px;
}

.mega-menu-title {
    display: none;
}

.mega-grid {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
}

.mega-item {
    padding: .9rem;
    border-radius: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    background: white;
    border: 2px solid rgba(37, 169, 234, 0.15);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(15, 63, 99, 0.05);
    flex: 1;
    min-height: 0;
}

.mega-item:hover {
    background: linear-gradient(135deg, 
        rgba(247, 250, 252, 1) 0%, 
        rgba(237, 242, 247, 1) 100%
    );
    border-color: #0F3F63;
    transform: translateX(5px);
    box-shadow: 
        0 8px 25px rgba(15, 63, 99, 0.2),
        0 0 0 2px rgba(15, 63, 99, 0.1);
}

.mega-item > i {
    font-size: 1.5rem !important;
    width: 1.5rem !important;
    color: #25A9EA !important;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.mega-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mega-content h4 {
    color: var(--primary-blue);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0;
    font-family: 'Raleway', sans-serif;
}

.mega-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   MOBILNÍ VERZE MEGA MENU
   ============================================ */

.mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: linear-gradient(135deg, rgba(37, 169, 234, 0.15) 0%, rgba(0, 0, 0, 0.2) 100%);
    margin: 0;
    border-radius: 0 0 8px 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
    min-width: auto;
    border: none;
}

/* ============================================
   KLIENTSKÁ ZÓNA
   ============================================ */

.client-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary-blue);
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    transition: all 0.3s ease;
}

.client-login:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

/* ============================================
   HERO SEKCE
   ============================================ */

.hero {
    position: relative;
    height: 800px;
    margin-top: 0;
    line-height: 0;
    background: #ffffff;
    margin: 0;
    padding: 0;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: middle;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 3rem;
    align-items: center;
    line-height: 1.6;
}

.hero-content h1 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

.hero-logo {
    width: 200px !important;
    height: 200px !important;
    object-fit: contain;
    flex-shrink: 0;
    max-width: 200px;
    max-height: 200px;
}

.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.search-box {
    background: white;
    border-radius: 24px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    min-height: 50px;
    position: relative;
    padding-left: 2.8rem;
    height: 50px;
    border: 1px solid #dfe1e5;
    margin: 0;
    cursor: default;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #0F3F63;
    font-size: 20px;
}

.search-cursor {
    order: 2;
    width: 2px;
    height: 20px;
    background: var(--primary-blue);
    margin-right: 0.5rem;
    animation: blink 1s infinite;
    color: #212121;
}

.search-text {
    order: 1;
    font-size: 1.2rem;
    color: var(--primary-blue);
    display: inline-block;
    color: #212121;
    font-family: 'Roboto';
}

.hero-cta {
    color: var(--primary-blue);
    font-size: 1.2rem;
    text-align: center;
    font-weight: 500;
}

.hero-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary-blue);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: center;
}

.hero-button:hover {
    background: var(--light-blue);
    color: #0F3F63;
    transform: translateY(-2px);
}

.hero-content .booking-button {
    background: var(--primary-blue);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    animation: pulse 5s infinite;
    animation-delay: 3s;
}

.hero-content .booking-button:hover {
    background: var(--light-blue);
    color: #0F3F63;
    transform: translateY(-2px);
    animation: none;
}

/* ============================================
   ANIMACE
   ============================================ */

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes iconRotate {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(45deg); }
    100% { transform: rotate(0deg); }
}

@keyframes shake {
    0% { transform: translate(0, 0); }
    1% { transform: translate(-4px, 0); }
    2% { transform: translate(4px, 0); }
    3% { transform: translate(-4px, 0); }
    4% { transform: translate(4px, 0); }
    5% { transform: translate(-4px, 0); }
    6% { transform: translate(4px, 0); }
    7% { transform: translate(-4px, 0); }
    8% { transform: translate(0, 0); }
    100% { transform: translate(0, 0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    15% { transform: scale(1.1); }
    30% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* ============================================
   RESPONSIVE - Střední obrazovky
   ============================================ */

@media (min-width: 1101px) and (max-width: 1300px) {
    .mega-menu-container {
        grid-template-columns: 320px 320px 1fr;
        gap: 1.5rem;
    }
    
    .mega-menu-image,
    .mega-menu-visual-info,
    .mega-menu-content {
        height: 420px;
    }
    
    .placeholder-icon {
        font-size: 8rem;
    }
    
    .mega-menu-visual-info {
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .mega-menu-visual-info h3 {
        font-size: 1.6rem;
    }
    
    .mega-menu-visual-info p {
        font-size: 1rem;
    }
    
    .mega-item {
        padding: 1.4rem;
    }
    
    .mega-item > i {
        font-size: 1.3rem !important;
    }
    
    .mega-content h4 {
        font-size: 1.05rem;
    }
    
    .mega-content p {
        font-size: 0.9rem;
    }
}

@media (min-width: 1101px) and (max-width: 1200px) {
    .nav-container {
        padding: 0.8rem 1.2rem;
    }
    
    .brand-logo {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .nav-links {
        gap: 0.8rem;
    }
    
    .nav-links a,
    .dropdown-toggle {
        font-size: 0.85rem;
        gap: 0.35rem;
        padding: 0.6rem 0.8rem;
    }
    
    .nav-links a i,
    .dropdown-toggle > i {
        font-size: 0.85rem;
        width: 1rem;
    }
}

/* ============================================
   DESKTOP - Skrýt mobilní verzi
   ============================================ */

@media (min-width: 1101px) {
    .mega-menu {
        display: none !important;
    }
    
    .mega-menu-fullwidth {
        display: block;
    }
    
    .mega-menu-overlay {
        display: block;
    }
}

/* ============================================
   MOBIL - Skrýt full-width verzi
   ============================================ */

@media (max-width: 1100px) {
    .mega-menu-fullwidth {
        display: none !important;
    }
    
    .mega-menu-overlay {
        display: none !important;
    }
    
    .mega-menu {
        display: block !important;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        background: var(--primary-blue);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .brand-logo {
        font-size: 1.3rem;
    }

    .hero-content {
        padding: 2.5rem;
    }

    .hero-logo {
        width: 140px;
        height: 140px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-links > a,
    .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.8rem;
        padding: 1rem;
        width: 100%;
        text-align: left;
        font-size: 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-links > a i,
    .dropdown-toggle > i {
        font-size: 1.1rem;
        width: 1.3rem;
    }

    .dropdown-arrow {
        margin-left: auto !important;
    }
    
    .nav-links > a:hover,
    .nav-links > a.active,
    .dropdown-toggle:hover {
        background: rgba(37, 169, 234, 0.2);
        transform: translateX(5px);
    }
    
    .nav-links > a:hover i,
    .dropdown-toggle:hover i:not(.dropdown-arrow) {
        animation: iconRotate 0.6s ease;
    }

    .mega-menu-title {
        color: white;
        font-size: 1.2rem;
        border-bottom-color: rgba(255, 255, 255, 0.3);
        margin-bottom: 1rem;
        padding-bottom: 0.8rem;
        display: block;
    }

    .mega-dropdown.active .mega-menu {
        max-height: 1000px;
        padding: 1rem;
    }

    .mega-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .mega-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .mega-item {
        color: white !important;
        padding: 1rem;
        font-size: 0.95rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
    }

    .mega-item:hover {
        background: rgba(37, 169, 234, 0.3) !important;
        border-color: rgba(37, 169, 234, 0.5);
        transform: translateY(0);
        box-shadow: none;
    }

    .mega-item > i {
        color: #25A9EA !important;
    }

    .mega-item h4 {
        color: white !important;
        font-size: 0.95rem;
    }

    .mega-item p {
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 0.85rem;
    }

    .client-login {
        width: 100%;
        justify-content: center;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .nav-overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .brand-logo {
        font-size: 1.3rem;
    }

    .hero {
        height: 600px;
    }

    .hero-content {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        text-align: center;
        width: 92%;
    }

    .hero-logo {
        width: 100px;
        height: 100px;
    }

    .search-box {
        padding: 0.8rem 1.2rem;
    }

    .search-text {
        font-size: 1.1rem;
    }

    .hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 0;
    }
    
    .hero-cta {
        font-size: 1rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 100%;
    }
    
    .brand-logo {
        font-size: 1.1rem;
    }

    .hero {
        height: 500px;
        min-height: 500px;
    }

    .hero img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 2rem 1.5rem;
        width: 92%;
        max-width: 500px;
        gap: 1.5rem;
        background: rgba(255, 255, 255, 0.85);
    }

    .hero-logo {
        width: 80px !important;
        height: 80px !important;
        max-width: 80px;
        max-height: 80px;
        margin: 0 auto;
        display: block;
    }

    .hero-content h1 {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 0;
    }

    .search-box {
        display: none;
    }

    .hero-cta {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-button {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
    
    .hero-button .material-icons {
        font-size: 1.2rem;
    }
}

@media (max-width: 360px) {
    .hero {
        height: 450px;
        min-height: 450px;
    }
    
    .hero img {
        display: block;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
        gap: 1.2rem;
    }
    
    .hero-logo {
        width: 70px !important;
        height: 70px !important;
        display: block;
    }
    
    .hero-content h1 {
        font-size: 1.3rem;
    }
    
    .hero-cta {
        font-size: 0.9rem;
    }
    
    .hero-button {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}