/* ============================================================
   PARDAFAS ONLINE — NAVBAR CSS
   File: web/css/navbar.css
   ============================================================ */

/* ----------------------------------------
   1. STICKY WRAPPER
---------------------------------------- */
#pf-main-nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9000;
    background: #005bab;
    border-top: 3px solid #b8202f;
    border-bottom: 3px solid #b8202f;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s ease;
}

#pf-main-nav.pf-nav-scrolled {
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.25);
}

#pf-main-nav.pf-nav-hidden {
    transform: translateY(-110%);
}

/* ----------------------------------------
   2. DESKTOP NAV WRAPPER
---------------------------------------- */
.pf-nav-desktop {
    width: 100%;
}

.pf-nav-desktop #cssmenu {
    width: 100%;
}

/* ----------------------------------------
   3. MOBILE NAV BAR
---------------------------------------- */
.pf-nav-mobile {
    width: 100%;
}

.pf-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
    padding: 0 12px;
    position: relative;
}

.pf-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    flex-shrink: 0;
    width: 40px;
}

.pf-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.pf-hamburger.pf-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pf-hamburger.pf-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.pf-hamburger.pf-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.pf-mobile-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    line-height: 0;
}

.pf-mobile-logo img {
    height: 38px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.pf-mobile-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #ffffff;
    border-radius: 4px;
    flex-shrink: 0;
    width: 40px;
}

/* ----------------------------------------
   4. MOBILE SEARCH OVERLAY
---------------------------------------- */
.pf-search-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9500;
    background: #004a8e;
    height: 54px;
    align-items: center;
    padding: 0 10px;
    gap: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}

.pf-search-overlay.pf-search-active { display: flex; }

.pf-search-close {
    background: none; border: none; color: #fff;
    cursor: pointer; padding: 6px; flex-shrink: 0;
    display: flex; align-items: center;
}

.pf-search-form {
    display: flex; align-items: center; flex: 1;
    background: rgba(255,255,255,0.15);
    border-radius: 6px; padding: 0 10px; gap: 8px;
}

.pf-search-form input[type="text"] {
    flex: 1; background: none; border: none; outline: none;
    color: #fff; font: 400 15px 'Mukta', sans-serif;
    padding: 8px 0; min-width: 0;
}

.pf-search-form input[type="text"]::placeholder { color: rgba(255,255,255,0.55); }

.pf-search-form button[type="submit"] {
    background: none; border: none; color: rgba(255,255,255,0.8);
    cursor: pointer; padding: 4px; display: flex; align-items: center; flex-shrink: 0;
}

/* ----------------------------------------
   5. MOBILE DRAWER
---------------------------------------- */
.pf-drawer {
    position: fixed; inset: 0; z-index: 9200; pointer-events: none;
}
.pf-drawer.pf-drawer-open { pointer-events: all; }

.pf-drawer-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0; transition: opacity 0.3s ease;
}
.pf-drawer.pf-drawer-open .pf-drawer-overlay { opacity: 1; }

.pf-drawer-panel {
    position: absolute; top: 0; left: 0; bottom: 0;
    width: 290px; max-width: 88vw;
    background: #005bab;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
.pf-drawer.pf-drawer-open .pf-drawer-panel { transform: translateX(0); }

.pf-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.pf-drawer-logo { height: 36px; width: auto; max-width: 140px; object-fit: contain; }
.pf-drawer-close {
    background: none; border: none; color: rgba(255,255,255,0.8);
    cursor: pointer; padding: 4px; display: flex; align-items: center; border-radius: 4px;
}
.pf-drawer-close:hover { color: #fff; background: rgba(255,255,255,0.1); }

.pf-drawer-search { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.pf-drawer-search-wrap {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.12); border-radius: 6px; padding: 8px 12px;
}
.pf-drawer-search-wrap input[type="text"] {
    background: none; border: none; outline: none;
    color: #fff; font: 400 14px 'Mukta', sans-serif; width: 100%;
}
.pf-drawer-search-wrap input[type="text"]::placeholder { color: rgba(255,255,255,0.5); }

.pf-drawer-nav { padding-bottom: 20px; }

.pf-drawer-menu-list { list-style: none; padding: 0; margin: 0; }
.pf-drawer-menu-list > li > a {
    display: block; padding: 13px 20px;
    color: rgba(255,255,255,0.92) !important;
    text-decoration: none !important;
    font: 500 17px 'Mukta', sans-serif;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    transition: background 0.2s;
}
.pf-drawer-menu-list > li > a:hover,
.pf-drawer-menu-list > li.active > a {
    background: rgba(255,255,255,0.12); color: #fff !important;
}
.pf-drawer-menu-list ul { list-style: none; padding: 0; margin: 0; background: rgba(0,0,0,0.15); }
.pf-drawer-menu-list ul li a {
    display: block; padding: 11px 20px 11px 34px;
    color: rgba(255,255,255,0.75) !important;
    text-decoration: none !important;
    font: 400 15px 'Mukta', sans-serif;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s;
}
.pf-drawer-menu-list ul li a:hover { background: rgba(255,255,255,0.1); color: #fff !important; }

/* ----------------------------------------
   6. BODY SCROLL LOCK
---------------------------------------- */
body.pf-no-scroll { overflow: hidden; }

/* ----------------------------------------
   7. RESPONSIVE VISIBILITY
---------------------------------------- */
@media (min-width: 992px) {
    .pf-nav-mobile { display: none !important; }
    .pf-nav-desktop { display: block; }
}

@media (max-width: 991px) {
    .pf-nav-desktop { display: none !important; }
    .pf-nav-mobile { display: block; }
}

/* ----------------------------------------
   8. SCROLL PADDING
---------------------------------------- */
html { scroll-padding-top: 60px; }
