/*
 * Yumzip public shell (P2) — header, navigation, mobile drawer, footer.
 * Loaded once by resources/views/front/layout.blade.php (after the theme CSS, after page @styles — same cascade
 * position the former inline <style> in front/partials/header.blade.php had). Brand: white #FFFFFF, orange #FF5722,
 * navy #0B1B54. The block below "HEADER (moved verbatim)" is the previous inline CSS unchanged.
 */

/* ===== HEADER (moved verbatim from the former inline <style>) ===== */
    .header-area {
        position: relative;
        z-index: 9999;
        width: 100%;
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .header-area.is-sticky {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }

    .yz-brand-logo-link {
        display: inline-flex !important;
        align-items: center !important;
        text-decoration: none !important;
        padding: 4px 0 !important;
    }

    .yz-svg-logo {
        height: 42px !important;
        width: auto !important;
        display: block !important;
    }

    .main-responsive-nav { padding: 10px 0 !important; }

    /* Floating Card Mobile Drawer UI */
    #customMobileMenu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 9999999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 12px;
        box-sizing: border-box;
    }

    #customMobileMenu.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-card-container {
        width: 100%;
        max-width: 440px;
        max-height: calc(100dvh - 24px);
        background: #FFFFFF;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
        border: 1px solid rgba(226, 232, 240, 0.9);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        transform: translateY(-15px) scale(0.97);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    #customMobileMenu.active .mobile-card-container {
        transform: translateY(0) scale(1);
    }

    .mobile-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 18px;
        border-bottom: 1px solid #F1F5F9;
    }

    .mobile-card-close-btn {
        background: #F1F5F9;
        border: none;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        cursor: pointer;
        color: #0F172A;
    }

    .mobile-card-body {
        flex: 1;
        overflow-y: auto;
        padding: 14px 16px;
    }

    .mobile-menu-card-item {
        background: #F8FAFC;
        border: 1px solid #E2E8F0;
        border-radius: 12px;
        margin-bottom: 8px;
        padding: 10px 14px;
    }

    .mobile-menu-item-link {
        color: #0F172A !important;
        text-decoration: none !important;
        font-weight: 700 !important;
        font-size: 15px !important;
        display: block;
    }

    .mobile-submenu {
        list-style: none;
        padding: 0;
        margin: 8px 0 0 0;
        display: none;
        border-top: 1px dashed #E2E8F0;
        padding-top: 8px;
    }

    .mobile-submenu li a {
        color: #475569 !important;
        text-decoration: none;
        font-size: 13.5px;
        font-weight: 600;
        display: block;
        padding: 6px 8px;
    }

    /* Mobile Card Footer Layout (Login + Country Button) */
    .mobile-card-footer {
        padding: 14px 16px;
        background: #FFFFFF;
        border-top: 1px solid #F1F5F9;
        display: flex;
        gap: 12px;
        align-items: center;
    }

    .mobile-action-btn {
        background: #FF5722 !important;
        color: #FFFFFF !important;
        border-radius: 14px;
        height: 48px;
        padding: 0 20px;
        font-size: 16px;
        text-decoration: none !important;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 1;
    }

    /* Country Selector Button (Exact Match with Image 1000098738_2) */
    .country-selector-btn {
        background: #FFFFFF;
        border: 1px solid #E2E8F0;
        border-radius: 14px;
        height: 48px;
        padding: 0 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 15px;
        font-weight: 700;
        color: #0F172A;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
        flex: 1;
    }

    .country-selector-btn:hover {
        border-color: #FF5722;
    }

    .country-flag-icon {
        font-size: 20px;
        line-height: 1;
    }

    /* Country Picker Modal Overlay */
    #countryPickerModal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        background: rgba(15, 23, 42, 0.65);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: 99999999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        box-sizing: border-box;
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
    }

    #countryPickerModal.active {
        opacity: 1;
        visibility: visible;
    }

    .country-picker-card {
        background: #FFFFFF;
        width: 100%;
        max-width: 320px;
        border-radius: 24px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
        padding: 22px 16px;
        text-align: center;
        transform: scale(0.95);
        transition: transform 0.25s ease;
    }

    #countryPickerModal.active .country-picker-card {
        transform: scale(1);
    }

    .country-picker-title {
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 1px;
        color: #64748B;
        text-transform: uppercase;
        margin-bottom: 16px;
    }

    .country-option-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border-radius: 14px;
        color: #FF5722;
        font-weight: 700;
        font-size: 16px;
        background: #FFF1EC;
        border: 1px solid #FFD2C1;
        cursor: pointer;
        text-align: left;
        transition: all 0.2s ease;
    }

    .country-option-item:hover {
        background: #FFE5DC;
    }

    .country-option-item .flag {
        font-size: 24px;
        line-height: 1;
    }

    .more-option .primary-btn {
        background-color: #FF5722 !important;
        border-color: #FF5722 !important;
    }

    @media (max-width: 991px) {
        .main-navbar { display: none !important; }
        .main-responsive-nav { display: block !important; }
    }
    @media (min-width: 992px) {
        .main-responsive-nav { display: none !important; }
        .main-navbar { display: block !important; }
    }


/* ===== P2 additions: accessibility / focus / reduced motion ===== */
.yz-skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100000000;
    background: #0B1B54; color: #FFFFFF !important; padding: 10px 16px; border-radius: 0 0 10px 10px;
    font-weight: 700; text-decoration: none !important; transition: top .15s ease;
}
.yz-skip-link:focus { top: 0; outline: 3px solid #FF5722; outline-offset: 2px; }

.header-area a:focus-visible,
.header-area button:focus-visible,
#customMobileMenu a:focus-visible,
#customMobileMenu button:focus-visible,
#countryPickerModal button:focus-visible,
.yz-footer a:focus-visible,
.yz-footer button:focus-visible,
.yz-footer input:focus-visible {
    outline: 3px solid #FF5722; outline-offset: 2px; border-radius: 6px;
}

.yz-menu-toggle {
    background: none; border: none; font-size: 24px; color: #0F172A; padding: 0;
    min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.mobile-card-close-btn { min-width: 44px; min-height: 44px; width: 44px; height: 44px; }
.yz-submenu-toggle {
    background: none; border: none; color: #64748B; cursor: pointer; font-size: 12px;
    min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.yz-submenu-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.mobile-submenu.is-open { display: block; }
.yz-mobile-row { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu-item-link[aria-current="page"], .main-navbar .nav-link[aria-current="page"] { color: #FF5722 !important; }
.country-option-item { width: 100%; font-family: inherit; }

/* Keyboard access to desktop dropdowns (hover behaviour of the theme is unchanged). */
.main-navbar .nav-item.yz-open > .menu-dropdown {
    opacity: 1; visibility: visible; display: block;
}

@media (prefers-reduced-motion: reduce) {
    .header-area, #customMobileMenu, .mobile-card-container, #countryPickerModal, .country-picker-card, .yz-skip-link {
        transition: none !important;
    }
}

/* ===== FOOTER ===== */
.yz-footer { background-color: #0b0f19; }
.yz-footer-top {
    background-color: #151c2c; border-radius: 20px 20px 0 0; margin: 0 auto; max-width: 1320px;
}
.yz-footer-text { color: #a0aec0; font-size: 13.5px; line-height: 1.5; }
.yz-footer-social { gap: 8px; }
.yz-footer-social a {
    color: #fff; background: rgba(255,255,255,.1); width: 36px; height: 36px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 14px;
}
.yz-footer-social a:hover { background: #FF5722; }
.yz-footer-heading {
    color: #9aa5b1; font-size: 12px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .8px;
}
.yz-footer-links { list-style: none; margin: 0; padding: 0; }
.yz-footer-links li { margin-bottom: 6px; }
.yz-footer-links a { color: #e4e7eb; text-decoration: none; font-size: 13px; }
.yz-footer-links a:hover { color: #FF5722; text-decoration: underline; }
.yz-footer-contact { list-style: none; margin: 0; padding: 0; color: #e4e7eb; font-size: 13px; }
.yz-footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.yz-footer-contact i { color: #f56565; font-size: 15px; min-width: 18px; text-align: center; margin-top: 2px; }
.yz-footer-contact a { color: #e4e7eb; text-decoration: none; word-break: break-all; }
.yz-footer-contact a:hover { text-decoration: underline; }
.yz-footer-badges img { height: 34px; width: auto; }
.yz-footer-newsletter .input-group { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 4px; }
.yz-footer-newsletter .btn { border-radius: 6px; white-space: nowrap; font-size: 12px; font-weight: 600; min-height: 36px; }
.yz-footer-industry { border-top: 1px solid rgba(255,255,255,.08); margin-top: 8px; padding-top: 16px; }
.yz-footer-industry a { color: #fff; opacity: .8; text-decoration: none; font-size: 12px; }
.yz-footer-industry a:hover, .yz-footer-industry a:focus-visible { opacity: 1; text-decoration: underline; }
.yz-footer-bottom { background: rgba(0,0,0,.4); border-top: 1px solid rgba(255,255,255,.05); }
.yz-footer-bottom, .yz-footer-bottom a { color: #a0aec0; font-size: 12.5px; }
.yz-footer-licenses { font-size: 11.5px; color: #718096; }
.yz-footer-licenses strong { color: #a0aec0; }
.yz-footer-pay { background: #fff; border-radius: 4px; padding: 4px 8px; display: inline-flex; align-items: center; }
.yz-footer-pay img { height: 12px; width: auto; }
@media (max-width: 575.98px) {
    .yz-footer-links a, .yz-footer-contact a { display: inline-block; padding: 4px 0; }
}

