/* ================= ROOT ================= */
.ak-header-scope {
    font-family: 'Poppins', sans-serif;
    /* CRITICAL: never set overflow on this wrapper — it would trap fixed descendants */
}

/* ================= HEADER ================= */
.ak-header-scope .ak-header {
    background: transparent;
    color: white;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: background 0.4s ease;
    overflow: visible;
}

/* ================= TOP BAR ================= */
.ak-header-scope .ak-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    position: relative;
    z-index: 2;
}

/* ================= PILL BUTTONS ================= */
.ak-header-scope .ak-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 400;
    color: #ffffff;
    background: transparent;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}

.ak-header-scope .ak-pill:hover {
    border-color: rgba(255, 160, 0, 0.7);
    box-shadow: 0 0 12px rgba(255, 160, 0, 0.2);
}

.ak-header-scope .ak-pill .ak-pill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e87722;
    color: #fff;
    flex-shrink: 0;
    font-size: 12px;
}

.ak-header-scope .ak-pill .ak-pill-text {
    color: #ffffff;
    font-weight: 400;
    font-size: 13.5px;
}

.ak-header-scope .ak-pill a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.ak-header-scope .ak-pill a:hover {
    color: #ffd966;
}

/* ================= BRAND PILL (LEFT - DESKTOP) ================= */
.ak-header-scope .ak-brand-pill {
    padding: 6px 18px 6px 6px;
    gap: 12px;
    border-color: rgba(255, 160, 0, 0.45);
    background: rgba(255, 255, 255, 0.05);
}

.ak-header-scope .ak-brand-pill:hover {
    background: rgba(255, 160, 0, 0.08);
    border-color: rgba(255, 160, 0, 0.8);
    box-shadow: 0 0 18px rgba(255, 160, 0, 0.25);
}

.ak-header-scope .ak-pill-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 165, 0, 0.6);
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.35);
    flex-shrink: 0;
}

.ak-header-scope .ak-brand-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffd580;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================= LOGO ================= */
.ak-header-scope .ak-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    top: 50%;
    margin-top: -10px;
    z-index: 10;
}

.ak-header-scope .ak-logo img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 0 12px rgba(255, 165, 0, 0.4);
}

.ak-header-scope .ak-main-logo {
    z-index: 3;
    box-shadow: 0 0 25px rgba(255, 165, 0, 0.5) !important;
    animation: logoFloat 5s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-5px); }
}

.ak-header-scope .ak-side-img {
    z-index: 2;
    opacity: 0.95;
    transition: transform 0.4s ease;
}

.ak-header-scope .ak-logo:hover .ak-side-img {
    transform: scale(1.05);
}

/* ================= GOLD DIVIDER LINE ================= */
.ak-header-scope .ak-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        #c8960c 15%,
        #f5c518 45%,
        #f5c518 55%,
        #c8960c 85%,
        transparent 100%
    );
    position: relative;
    z-index: 1;
}

/* ================= NAV ================= */
.ak-header-scope .ak-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 40px 12px 40px;
    position: relative;
    z-index: 2;
}

.ak-header-scope .ak-menu {
    display: flex;
    gap: 38px;
    align-items: center;
}

.ak-header-scope .ak-menu a {
    color: #d8d8d8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}

.ak-header-scope .ak-menu a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 1.5px;
    background: #e87722;
    left: 0;
    bottom: -4px;
    transition: 0.3s;
}

.ak-header-scope .ak-menu a:hover::after { width: 100%; }
.ak-header-scope .ak-menu a:hover { color: #ffffff; }

/* ================= ORANGE ICON BUTTON ================= */
.ak-header-scope .ak-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e87722;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s ease;
    flex-shrink: 0;
}

.ak-header-scope .ak-icon-btn:hover {
    background: #ff9f3c;
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(232, 119, 34, 0.6);
}

/* ================= HAMBURGER ================= */
.ak-header-scope .ak-hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
}

.ak-header-scope .ak-hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: #e87722;
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.4s ease;
}

/* ================= MOBILE CALL BAR (hidden on desktop) ================= */
.ak-header-scope .ak-mobile-call-bar {
    display: none;
}

/* ================= MOBILE GRID ICON (hidden on desktop) ================= */
.ak-header-scope .ak-mobile-grid-icon {
    display: none;
}

/* ================= RIGHT GROUP ================= */
.ak-header-scope .ak-right-group {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    padding-right: 0;
}

.ak-header-scope .ak-religion-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.ak-header-scope .ak-religion-img:hover {
    transform: scale(1.05);
}

/* ================= SCROLL SHRINK — shared rules ================= */
.ak-header-scope .ak-header.shrink .ak-nav {
    padding: 10px 40px;
}

.ak-header-scope .ak-header.shrink .ak-logo img {
    width: 85px;
    height: 85px;
}
.ak-header-scope.ak-inner-page .ak-header {
    background: rgba(8, 12, 30, 0.96);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    /* NOTE: backdrop-filter intentionally omitted on mobile —
       it creates a containing block that traps position:fixed children (mobile menu).
       Applied only on desktop via media query below. */
}

@media (min-width: 769px) {
    .ak-header-scope.ak-inner-page .ak-header {
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
}

.ak-header-scope.ak-inner-page .ak-header.shrink {
    background: rgba(8, 12, 30, 0.99);
}

/* Same fix for scroll-shrink state */
.ak-header-scope .ak-header.shrink {
    background: rgba(8, 12, 30, 0.82);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

@media (min-width: 769px) {
    .ak-header-scope .ak-header.shrink {
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
}

/* ============================================================
   MOBILE MENU (full-screen overlay)
============================================================ */

.ak-header-scope .ak-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 340px;
    /* Cover full viewport including browser chrome on mobile */
    height: 100vh;
    height: 100dvh;
    min-height: -webkit-fill-available;
    background: linear-gradient(160deg, #1a0f05 0%, #2a1508 40%, #1c0e04 100%);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 9999;
    overflow: hidden; /* NO scroll — everything must fit */
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
}

.ak-header-scope .ak-mobile-menu.active {
    right: 0;
}

/* Close button */
.ak-header-scope .ak-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(232, 119, 34, 0.15);
    border: 1.5px solid rgba(232, 119, 34, 0.4);
    color: #e87722;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.ak-header-scope .ak-menu-close:hover {
    background: rgba(232, 119, 34, 0.3);
    border-color: #e87722;
}

/* Branding block */
.ak-header-scope .ak-menu-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 24px 18px;
    border-bottom: 1px solid rgba(255, 165, 0, 0.15);
    gap: 8px;
    flex-shrink: 0;
}

.ak-header-scope .ak-menu-brand-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid rgba(255, 165, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.3);
}

.ak-header-scope .ak-menu-brand-name {
    font-size: 12px;
    font-weight: 600;
    color: #ffd580;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

/* Nav links — flex:1 fills remaining space, space-evenly distributes all 6 rows */
.ak-header-scope .ak-menu-links {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-evenly;
    padding: 0;
}

.ak-header-scope .ak-menu-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #e8d5c0;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    padding: 0 28px;
    height: 52px;
    border-bottom: 1px solid rgba(255, 165, 0, 0.08);
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    letter-spacing: 0.2px;
    box-sizing: border-box;
}

.ak-header-scope .ak-menu-links a i {
    width: 18px;
    text-align: center;
    color: #e87722;
    font-size: 13px;
    flex-shrink: 0;
}

.ak-header-scope .ak-menu-links a:hover {
    background: rgba(232, 119, 34, 0.1);
    color: #ffd580;
    padding-left: 36px;
}

.ak-header-scope .ak-mobile-menu.active .ak-menu-links a {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered entrance */
.ak-header-scope .ak-mobile-menu.active .ak-menu-links a:nth-child(1) { transition-delay: 0.05s; }
.ak-header-scope .ak-mobile-menu.active .ak-menu-links a:nth-child(2) { transition-delay: 0.10s; }
.ak-header-scope .ak-mobile-menu.active .ak-menu-links a:nth-child(3) { transition-delay: 0.15s; }
.ak-header-scope .ak-mobile-menu.active .ak-menu-links a:nth-child(4) { transition-delay: 0.20s; }
.ak-header-scope .ak-mobile-menu.active .ak-menu-links a:nth-child(5) { transition-delay: 0.25s; }
.ak-header-scope .ak-mobile-menu.active .ak-menu-links a:nth-child(6) { transition-delay: 0.30s; }

/* Call CTA button at bottom */
.ak-header-scope .ak-menu-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 12px 20px 20px;
    padding: 13px 20px;
    background: linear-gradient(135deg, #e87722, #c95e0f);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    box-shadow: 0 4px 18px rgba(232, 119, 34, 0.45);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.ak-header-scope .ak-mobile-menu.active .ak-menu-call-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

.ak-header-scope .ak-menu-call-btn:hover {
    background: linear-gradient(135deg, #ff9f3c, #e87722);
    box-shadow: 0 6px 24px rgba(232, 119, 34, 0.6);
    transform: translateY(-1px);
}

/* ================= OVERLAY ================= */
.ak-header-scope .ak-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 9998;
}

.ak-header-scope .ak-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ============================================================
   MOBILE — complete override (max-width: 768px)
============================================================ */
@media (max-width: 768px) {

    /* Hide desktop-only elements */
    .ak-header-scope .ak-left-pill,
    .ak-header-scope .ak-right-pill,
    .ak-header-scope .ak-nav,
    .ak-header-scope .ak-divider,
    .ak-header-scope .ak-side-img,
    .ak-header-scope .ak-religion-img,
    .ak-header-scope .ak-right-group {
        display: none !important;
    }

    /* HEADER WRAPPER */
    .ak-header-scope .ak-header {
        background: #12182e !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow: visible; /* CRITICAL: never clip — fixed children escape sticky context */
    }

    /* TOP ORANGE CALL BAR */
    .ak-header-scope .ak-mobile-call-bar {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 12px 16px;
        background: #e87722;
        font-size: 16px;
        font-weight: 700;
        color: #ffffff;
        letter-spacing: 0.5px;
        text-decoration: none;
        box-sizing: border-box;
        font-family: 'Poppins', sans-serif;
    }

    .ak-header-scope .ak-mobile-call-bar i {
        font-size: 15px;
        color: #fff;
    }

    /* TOP ROW */
    .ak-header-scope .ak-top {
        padding: 12px 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: transparent;
    }

    /* HAMBURGER */
    .ak-header-scope .ak-hamburger {
        display: flex;
        flex: 0 0 auto;
    }

    .ak-header-scope .ak-hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .ak-header-scope .ak-hamburger.active span:nth-child(2) { opacity: 0; }
    .ak-header-scope .ak-hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* LOGO: centered */
    .ak-header-scope .ak-logo {
        position: static;
        transform: none;
        flex: 1;
        display: flex;
        justify-content: center;
        margin-top: 0;
        gap: 0;
    }

    .ak-header-scope .ak-logo img {
        width: 64px;
        height: 64px;
        box-shadow: 0 0 14px rgba(255, 165, 0, 0.45);
        animation: none;
    }

    .ak-header-scope .ak-main-logo {
        animation: none !important;
    }

    /* APP-GRID ICON */
    .ak-header-scope .ak-mobile-grid-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 38px;
        height: 38px;
        border: 1.5px solid rgba(232, 119, 34, 0.6);
        border-radius: 8px;
        color: #e87722;
        font-size: 17px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        background: transparent;
    }

    .ak-header-scope .ak-mobile-grid-icon:hover {
        background: rgba(232, 119, 34, 0.12);
        border-color: #e87722;
    }

    /* Mobile menu: full width on small phones */
    .ak-header-scope .ak-mobile-menu {
        width: 85%;
        max-width: 100%;
        overflow: hidden;
    }

}

/* ── DESKTOP PHONE LINK ── */
.ak-desktop-phone {
    display: none; /* hidden on mobile */
    align-items: center;
    gap: 6px;
    color: #b8860b;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.ak-desktop-phone:hover { opacity: 0.85; }
.ak-desktop-phone .ak-svg-icon { width: 15px; height: 15px; }

@media (min-width: 769px) {
    .ak-desktop-phone { display: flex; }
}