/* ==========================================================================
   1. PROMĚNNÉ, RESET A ZÁKLADNÍ NASTAVENÍ
   ========================================================================== */
:root {
    --color-navy: #05204A;
    --color-blue: #3281D5;
    --color-blue-hover: #2264ab;
    --bg-light: #f7f7f7;
}

html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 95px;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: #333333;
    background-color: #ffffff;
    overflow-x: hidden;
}

h1 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 25px;
    color: var(--color-navy);
    padding: 0 0 0 5px;
}

h2 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #579BDA;
    padding: 0;
}
h2.logo {
    padding: 0 0 0 5px;
}

.text-navy { color: var(--color-navy); }
.text-primary-blue { color: var(--color-blue); }
.bg-light-section { background-color: var(--bg-light); }

/* ==========================================================================
   2. HLAVIČKA A NAVIGACE (HEADER & NAVBAR)
   ========================================================================== */
.wf-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header-hidden {
    transform: translateY(-100%);
}

.wf-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wf-logo {
    display: flex;
    align-items: center;
    padding: 5px;
    border: none;
    background: transparent;
}

.logo-img {
    height: 75px;
    width: auto;
}

.nav-spacer {
    flex-grow: 1;
}

.wf-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    margin-left: 40px;
}

.nav-center-group {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.nav-right-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Odkazy a položky v menu */
.nav-item > a,
.menu-trigger {
    display: block;
    padding: 10px 16px;
    color: #4a4a4a;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    background-color: transparent !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0px !important;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-center-group > .nav-item > a:hover,
.nav-center-group > .nav-item > .menu-trigger:hover {
    color: var(--color-blue) !important;
    background-color: transparent !important;
    text-decoration: none !important;
    border-bottom-color: var(--color-blue) !important;
}

.menu-trigger {
    cursor: pointer;
    background: none;
    border: none;
}

.menu-trigger .arrow {
    font-size: 9px;
    margin-left: 4px;
    vertical-align: middle;
    display: inline-block;
}

/* Submenu (Podmenu) */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    border-radius: 16px;
    padding: 8px;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.submenu-item > a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #4a4a4a;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 14px;
    border-radius: 10px;
    border: none !important;
    background: transparent;
    transition: all 0.2s ease-in-out;
}

.submenu-item > a:hover {
    background: #f5f5f5 !important;
    color: var(--color-navy) !important;
    text-decoration: none !important;
    border: none !important;
}

/* Kontaktní tlačítko v menu */
.nav-contact-btn > a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background-color: var(--color-blue) !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    font-size: 15px !important;
    border: 2px solid var(--color-blue) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
    cursor: pointer;
}

.nav-contact-btn > a:hover {
    background-color: #ffffff !important;
    border-color: var(--color-blue) !important;
    color: var(--color-blue) !important;
    text-decoration: none !important;
}

/* Mobilní tlačítko Hamburger & Overlay */
.header-right {
    display: none;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333333;
    transition: all 0.2s ease;
}

/* Upravený overlay v style.css */
.wf-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5); /* Zatmavení */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Aby neblokoval klikání v zavřeném stavu */
    z-index: 998; /* Musí být pod hlavičkou/menu, ale nad běžným obsahem */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Při otevřeném menu aktivujeme overlay */
body.menu-open .wf-overlay,
.wf-header.menu-open ~ .wf-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Aktivujeme klikatelnost pro zavření */
}

/* ==========================================================================
   3. TLAČÍTKA (CUSTOM CSS)
   ========================================================================== */
.btn-primary-custom {
    background-color: var(--color-blue);
    color: #ffffff;
    padding: 10px 22px;
    font-weight: bold;
    border: 2px solid var(--color-blue);
    transition: all 0.2s ease;
}

.btn-primary-custom:hover {
    background-color: #ffffff;
    color: var(--color-blue);
}

.btn-secondary-custom {
    background-color: #ffffff;
    color: var(--color-blue);
    padding: 10px 22px;
    font-weight: bold;
    border: 2px solid var(--color-blue);
    transition: all 0.2s ease;
}

.btn-secondary-custom:hover {
    background-color: var(--color-blue);
    color: #ffffff;
}

.rounded-pill:hover {
    background-color: white;
    color: var(--color-blue);
    border: 2px solid var(--color-blue);
}

/* ==========================================================================
   4. HERO BANNER
   ========================================================================== */
.hero-container {
    background: #fff9f0 url('img/bg.png') no-repeat center / cover;
    padding: 140px 0 80px 0;
}

.hero-card {
    max-width: 480px;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 35px;
    border-radius: 24px;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.hero-title {
    font-size: 2.5rem;
    color: var(--color-navy);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #595959;
    font-weight: 600;
}

/* ==========================================================================
   5. KARTY & BENEFITY
   ========================================================================== */
.feature-icon-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-wrapper2 {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-green  { background-color: #f1f6ed; }
.bg-blue   { background-color: #E8F0FE; }
.bg-yellow { background-color: #FFF3E0; }
.bg-pink   { background-color: #FCE4EC; }
.bg-purple { background-color: #F3E5F5; }
.bg-orange { background-color: #FFF0E6; }

.feature-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.feature-icon2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-title {
    font-size: 1.1rem;
    color: var(--color-navy);
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-text {
    font-size: 0.9rem;
    color: #666;
}

.feature-card-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    height: 100%;
}

.feature-card-item:hover {
    background: #f4f8fd;
    border-color: var(--color-blue);
    transform: translateY(-2px);
}

/* ==========================================================================
   6. KALENDÁŘ AKCÍ
   ========================================================================== */
.calendar-row:hover {
    background-color: #f4f8fd;
    border-color: var(--color-blue) !important;
    transform: translateY(-2px);
}

.calendar-date-badge {
    min-width: 55px;
    background: #fdfbf7;
}

.tag-parents { background-color: #eff6ff; color: #1e40af; border-radius: 25px;}
.tag-trip    { background-color: #f0fdf4; color: #166534; border-radius: 25px;}
.tag-theater { background-color: #fdf2f8; color: #9d174d; border-radius: 25px;}

.badge {
border-radius: 25px;
}


/* ==========================================================================
   7. FOOTER / PATIČKA
   ========================================================================== */
.footer-container {
    background: var(--bg-light) url('img/footer-bg.png') no-repeat right top;
    padding: 75px 0 20px 0;
    position: relative;
    border-top: 0px solid rgba(0, 0, 0, 0.05);
}

.footer-box {
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    height: 100%;
}

.footer-logo {
    height: 38px;
    width: auto;
}

.footer-link {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--color-blue);
    text-decoration: underline;
}

/* ==========================================================================
   8. RESPONZIVITA (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .header-right {
        display: block !important;
    }

    .wf-nav {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        max-height: 0 !important;
        overflow: hidden !important;
        background: #ffffff !important;
        flex-direction: column !important;
        align-items: stretch !important;
        margin-left: 0 !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
        transition: max-height 0.3s ease-in-out !important;
        z-index: 999 !important;
    }

    .menu-open .wf-nav {
        border-top: 1px solid #eaeaea !important;
        max-height: calc(100vh - 81px) !important;
        overflow-y: auto !important;
    }

    .menu-open .hamburger span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
    .menu-open .hamburger span:nth-child(2) { opacity: 0; }
    .menu-open .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }
    .menu-open .wf-overlay { opacity: 1; visibility: visible; }

    .nav-center-group {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 20px 20px 10px 20px !important;
        gap: 0 !important;
    }

    .nav-right-group {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 0 20px 20px 20px !important;
        gap: 20px !important;
    }

    .nav-item {
        width: 100% !important;
    }

    .nav-item > a, .menu-trigger {
        padding: 12px 16px !important;
        border-radius: 10px !important;
        font-size: 16px !important;
        text-align: left !important;
        width: 100% !important;
        border-bottom: none !important;
    }

    .submenu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        border: none !important;
        border-left: 2px solid var(--color-blue) !important;
        border-radius: 0 !important;
        padding: 0 0 0 15px !important;
        margin: 0 0 10px 15px !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .has-submenu.open .submenu {
        max-height: 500px;
    }

    .has-submenu:hover .submenu {
        transform: none !important;
    }

    .submenu-item > a {
        justify-content: flex-start !important;
    }

    .nav-contact-btn > a {
        width: auto !important;
        display: inline-flex !important;
    }
}

@media (max-width: 991.88px) {
    .footer-container {
        padding: 35px 0 15px 0;
    }

    .footer-box {
        padding: 15px;
    }
}
/* Zelené tlačítko pro volání se zachováním výšky a vlastností webových tlačítek */
.btn-call-custom {
    background-color: #198754;
    border-color: #198754;
    color: #ffffff;
}

.btn-call-custom:hover,
.btn-call-custom:focus,
.btn-call-custom:active {
    background-color: #146c43 !important;
    border-color: #13653f !important;
    color: #ffffff !important;
}
.profile-img-top {
    object-position: top !important;
}
.crop-top {
    object-fit: cover !important;
    object-position: top !important;
}
/* Zrušení přímo na prvku s poměrem stran */
.ratio.custom-no-stretch {
    width: none !important;
}

/* Nebo zrušení na obrázku uvnitř containeru */
.ratio.custom-no-stretch > img {
    width: none !important;
    height: none !important;
}
