/* ============================================================
   GROWY MOBILE NAV — clean rebuild 2026
   Author: Antigravity (fresh file, no !important wars)
   ============================================================ */

/* ---- Hamburger button (gn-btn) ---- */
#gn-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #1e293b;
    border-radius: 8px;
    transition: background 0.15s;
    line-height: 0;
}

#gn-btn:hover {
    background: #f1f5f9;
}

/* ---- Backdrop ---- */
#gn-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 9000;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#gn-backdrop.gn-open {
    display: block;
    opacity: 1;
}

/* ---- Panel ---- */
html body #gn-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: min(320px, 85vw) !important;
    height: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    background: #fff !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-shadow: none !important;
    transform: translateX(100%) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: transform !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

html body #gn-panel.gn-open {
    transform: translateX(0) !important;
    box-shadow: -10px 0 50px rgba(15, 23, 42, 0.15) !important;
}

/* ---- Panel header ---- */
#gn-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

#gn-panel-close {
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    transition: background 0.15s;
    flex-shrink: 0;
}

#gn-panel-close:hover {
    background: #e2e8f0;
}

/* ---- Nav links ---- */
#gn-panel-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0;
}

.gn-link {
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.12s, color 0.12s;
}

.gn-link:hover,
.gn-link:active {
    background: #f8fafc;
    color: #329766;
}

.gn-sub {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    padding-left: 2rem;
}

.gn-sub:hover {
    color: #329766;
}

.gn-label {
    display: block;
    padding: 1rem 1.5rem 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
}

/* ---- CTA footer ---- */
#gn-panel-cta {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid #f1f5f9;
    background: #fff;
}

.gn-btn-solid {
    display: block;
    text-align: center;
    padding: 0.85rem 1.5rem;
    background: #329766;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s;
    box-shadow: 0 4px 12px rgba(50, 151, 102, 0.25);
}

.gn-btn-solid:hover {
    background: #236947;
}

.gn-btn-ghost {
    display: block;
    text-align: center;
    padding: 0.8rem 1.5rem;
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.15s;
}

.gn-btn-ghost:hover {
    background: #e2e8f0;
}

/* ---- Body scroll lock ---- */
body.gn-locked {
    overflow: hidden;
}

/* ============================================================
   SHOW/HIDE based on breakpoint
   ============================================================ */
@media (min-width: 1200px) {
    #gn-btn {
        display: none !important;
    }

    #gn-panel {
        display: none !important;
    }

    #gn-backdrop {
        display: none !important;
    }
}

@media (max-width: 1199px) {
    #gn-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================================
   MOBILE HERO CLAIMS — vedle sebe (flex-row)
   ============================================================ */
.hero-usp-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.5rem 1.25rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 1.5rem !important;
}

.hero-usp-list li {
    display: flex !important;
    align-items: center !important;
}

@media (max-width: 1199px) {
    .hero-usp-list {
        opacity: 1 !important;
        transform: none !important;
        justify-content: center !important;
    }
}

/* Fix claims for very small screens (iPhone SE) */
@media (max-width: 390px) {
    .hero-usp-list li {
        font-size: 0.85rem !important;
    }

    .hero-usp-list {
        gap: 0.4rem 0.75rem !important;
    }
}

/* ============================================================
   MOBILE HERO — badge pryč, buttons pod sebou
   ============================================================ */
@media (max-width: 1199px) {

    /* Skrýt badge "Pro moderní české firmy" na mobilu */
    .hero-badge {
        display: none !important;
    }

    /* Tlačítka pod sebou */
    #hero-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }

    #hero-actions a.btn {
        width: 100% !important;
        max-width: 320px !important;
        text-align: center !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================================
   MOBILE DASHBOARD — větší, vycentrovaný, no backgrounds/shadows
   ============================================================ */
@media (max-width: 1199px) {
    #mob-hero-visual {
        max-width: 100% !important;
        width: 100% !important;
        margin: 1.5rem auto 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        overflow: visible !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    #mob-hero-visual img {
        width: 100% !important;
        max-width: 440px !important;
        height: auto !important;
        display: block !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        filter: none !important;
        -webkit-filter: none !important;
    }
}