/* ============================================================
   Praise Baptist Church - revamped mobile header & navigation
   Scoped to viewports < 992px; the desktop theme is untouched.
   ============================================================ */

:root {
    --pbc-blue: #00468c;
    --pbc-blue-dark: #003a73;
    --pbc-purple: #3e4095;
    --pbc-ink: #1c2430;
    --pbc-muted: #6b7688;
    --pbc-line: #e6e9f0;
}

/* -------------------------------------------------- Top bar */
.pbc-mobhead {
    display: none;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: #fff;
    box-shadow: 0 2px 14px rgba(16, 28, 51, .10);
}

.pbc-mobhead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 16px;
    min-height: 62px;
}

.pbc-mobhead__logo {
    display: inline-flex;
    align-items: center;
}

.pbc-mobhead__logo img {
    height: 40px;
    width: auto;
    display: block;
}

.pbc-burger {
    position: relative;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 12px;
    background: var(--pbc-blue);
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    transition: background .2s ease;
}

.pbc-burger:active {
    background: var(--pbc-blue-dark);
}

.pbc-burger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .25s ease, opacity .2s ease;
}

.pbc-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pbc-burger.is-open span:nth-child(2) { opacity: 0; }
.pbc-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------- Overlay */
.pbc-drawer-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(12, 20, 35, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 9991;
}

.pbc-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* -------------------------------------------------- Drawer */
.pbc-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 86vw;
    max-width: 350px;
    background: #fff;
    z-index: 9992;
    transform: translateX(105%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -14px 0 40px rgba(12, 20, 35, .18);
    overflow: hidden;
    will-change: transform;
}

.pbc-drawer.is-open {
    transform: translateX(0);
}

.pbc-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--pbc-blue), var(--pbc-purple));
    color: #fff;
    flex: 0 0 auto;
}

.pbc-drawer__head img {
    height: 38px;
    width: auto;
    display: block;
}

.pbc-drawer__close {
    border: 0;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease;
}

.pbc-drawer__close:hover {
    background: rgba(255, 255, 255, .3);
}

/* -------------------------------------------------- Nav list */
.pbc-drawer__nav {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.pbc-drawer__nav > li {
    margin: 0;
}

.pbc-drawer__nav a,
.pbc-drawer__nav .pbc-accordion__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    font-size: 15.5px;
    font-family: inherit;
    color: var(--pbc-ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--pbc-line);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.pbc-drawer__nav > li:last-child > a {
    border-bottom: 0;
}

.pbc-drawer__nav a:hover,
.pbc-drawer__nav .pbc-accordion__toggle:hover {
    background: #f5f8fc;
    color: var(--pbc-blue);
}

.pbc-drawer__nav a.is-active {
    color: var(--pbc-blue);
    font-weight: 600;
    background: #f2f7fd;
    box-shadow: inset 4px 0 0 var(--pbc-blue);
}

/* -------------------------------------------------- Accordion */
.pbc-accordion__toggle i {
    color: var(--pbc-blue);
    font-size: 13px;
    transition: transform .25s ease;
}

.pbc-accordion__toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.pbc-accordion__panel {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background: #f7f9fc;
    transition: max-height .3s ease;
}

.pbc-accordion.is-open .pbc-accordion__panel {
    max-height: 460px;
}

.pbc-accordion__panel a {
    padding: 13px 20px 13px 34px;
    font-size: 14.5px;
    border-bottom: 1px solid #eef1f6;
}

/* -------------------------------------------------- CTA + social */
.pbc-drawer__cta {
    flex: 0 0 auto;
    padding: 16px 20px 6px;
}

.pbc-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 13px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .3px;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.pbc-btn--solid {
    background: var(--pbc-blue);
    color: #fff;
}

.pbc-btn--solid:active {
    background: var(--pbc-blue-dark);
    color: #fff;
}

.pbc-drawer__social {
    display: flex;
    gap: 10px;
    padding: 14px 20px 22px;
    flex: 0 0 auto;
}

.pbc-drawer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef3fa;
    color: var(--pbc-blue);
    font-size: 16px;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.pbc-drawer__social a:active {
    background: var(--pbc-blue);
    color: #fff;
}

/* Lock page scroll while the drawer is open */
body.pbc-nav-open {
    overflow: hidden;
}

/* -------------------------------------------------- Breakpoints */
@media (max-width: 991px) {
    .pbc-mobhead {
        display: block;
    }

    /* Retire the legacy theme header + its dated mobile menu on small screens */
    .gc_main_menu_wrapper {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .pbc-mobhead,
    .pbc-drawer,
    .pbc-drawer-overlay {
        display: none !important;
    }
}
