/* ============================================================
   PAGE TRANSITION CURTAIN
============================================================ */
#page-curtain {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #050b1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    /* Cover screen from the start — no transition to prevent flash */
    transform: translateY(0);
    transition: none;
    will-change: transform;
    pointer-events: all;
}
/* Subtle grid bg inside curtain */
#page-curtain::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,105,188,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,105,188,0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
}
/* Gradient glow blob */
#page-curtain::after {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,105,188,0.15) 0%, transparent 65%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.curtain-logo-wrap {
    position: relative;
    z-index: 1;
}
.curtain-logo {
    height: 56px;
    width: auto;
    animation: curtainLogoBreath 1.8s ease-in-out infinite;
    filter: brightness(0) invert(1);
}
@keyframes curtainLogoBreath {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50%       { opacity: 1;    transform: scale(1.04); }
}
/* Loading dots */
.curtain-dots {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.curtain-dots span {
    display: block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #0069BC;
    animation: curtainDot 1.2s ease-in-out infinite;
}
.curtain-dots span:nth-child(1) { animation-delay: 0s;    background: #0069BC; }
.curtain-dots span:nth-child(2) { animation-delay: 0.18s; background: #2d8fd4; }
.curtain-dots span:nth-child(3) { animation-delay: 0.36s; background: #54C2BA; }
@keyframes curtainDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%           { transform: scale(1.2); opacity: 1; }
}
/* Bottom gradient line */
.curtain-line {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0069BC 30%, #54C2BA 70%, transparent);
    z-index: 1;
    animation: curtainLinePulse 1.8s ease-in-out infinite;
}
@keyframes curtainLinePulse {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 1; }
}

/* ============================================================
   HEADER v2 — overrides base style.css
============================================================ */
header {
    background: rgba(255,255,255,0.97) !important;
    border-bottom: 1px solid rgba(0,105,188,0.1) !important;
    border-radius: 0 !important;
    transition: background 0.4s ease,
                box-shadow 0.4s ease,
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s ease !important;
    animation: none !important;
    padding: 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
header.hdr-hidden {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    box-shadow: none !important;
}
header.hdr-visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* Remove old animation entirely */
@keyframes changeColor { from{} to{} }

header.header-scrolled {
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-bottom: 1px solid rgba(0,105,188,0.1) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08) !important;
    animation: none !important;
}

.hdr-wrap {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 3rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* -------- LOGO -------- */
.hdr-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    height: 100%;
    padding: 10px 0;
}
.hdr-logo img {
    height: 54px;
    width: auto;
    transition: opacity 0.3s ease;
}
.hdr-logo:hover img { opacity: 0.85; }

/* -------- DESKTOP NAV -------- */
.hdr-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.hdr-nav > li > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    color: #2d3748;
    font-size: 14px;
    font-family: Yekan-Bakh-Bold;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    white-space: nowrap;
}
header.header-scrolled .hdr-nav > li > a { color: #2d3748; }

.hdr-nav > li > a:hover {
    background: rgba(0,105,188,0.08);
    color: #0069BC !important;
    text-decoration: none;
}

/* active indicator */
.hdr-nav > li > a .nav-active-dot {
    position: absolute;
    bottom: 0;
    right: 0; left: 0;
    width: 100%; height: 2px;
    background: #0069BC;
    border-radius: 0;
    display: none;
}
.hdr-nav > li > a.active-cu .nav-active-dot { display: block; }
.hdr-nav > li > a.active-cu { color: #0069BC !important; }

/* Dropdown */
.hdr-dropdown { position: relative; }
.hdr-dropdown > a {
    padding-left: 10px !important;
}
.hdr-dropdown > a .drop-arrow {
    width: 16px; height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    opacity: 0.6;
    font-size: 11px;
}
.hdr-dropdown:hover > a .drop-arrow { transform: rotate(180deg); }

.hdr-drop-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.13), 0 0 0 1px rgba(0,105,188,0.07);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.97);
    transform-origin: top right;
    transition: all 0.28s cubic-bezier(.16,1,.3,1);
    z-index: 200;
}
.hdr-dropdown:hover .hdr-drop-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.hdr-drop-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #333;
    font-size: 13px;
    font-family: Yekan-Bakh-Regular;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.hdr-drop-menu a:hover {
    background: rgba(0,105,188,0.07);
    color: #0069BC;
}
.hdr-drop-menu a .drop-dot {
    width: 6px; height: 6px;
    background: #54C2BA;
    border-radius: 50%;
    flex-shrink: 0;
}

/* -------- RIGHT ACTIONS -------- */
.hdr-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.hdr-phone-wrap {
    text-align: left;
    line-height: 1.3;
}
.hdr-phone-label {
    font-size: 11px;
    font-family: Yekan-Bakh-Bold;
    color: #999;
    display: block;
}
header.header-scrolled .hdr-phone-label { color: #999; }
.hdr-phone-num {
    font-size: 14px;
    font-family: Yekan-Bakh-Bold;
    color: #0069BC;
    text-decoration: none;
    direction: ltr;
    display: block;
    transition: color 0.3s ease;
}
header.header-scrolled .hdr-phone-num { color: #0069BC; }
.hdr-phone-num:hover { color: #54C2BA !important; }

.hdr-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0069BC;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-family: Yekan-Bakh-Bold;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 18px rgba(0,105,188,0.35);
}
.hdr-cta:hover {
    background: #0050a0;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,105,188,0.45);
    color: #fff !important;
}
.hdr-cta i { font-size: 14px; }

/* -------- HAMBURGER BUTTON -------- */
.hdr-burger {
    display: none;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    background: rgba(0,105,188,0.07);
    border: 1px solid rgba(0,105,188,0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    z-index: 1001;
    position: relative;
}
.hdr-burger:hover { background: rgba(0,105,188,0.15); }
header.header-scrolled .hdr-burger {
    background: rgba(0,105,188,0.07);
    border-color: rgba(0,105,188,0.15);
}
.hdr-burger .bar {
    display: block;
    width: 20px; height: 2px;
    background: #0069BC;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(.16,1,.3,1);
    transform-origin: center;
}
header.header-scrolled .hdr-burger .bar { background: #0069BC; }
.hdr-burger.is-open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hdr-burger.is-open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hdr-burger.is-open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------- MOBILE OVERLAY -------- */
.mob-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    background: #050b1a;
    z-index: 1000;
    transform: translateX(110%);
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(.16,1,.3,1),
                visibility 0s linear 0.45s;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 100vw;
}
.mob-overlay.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.45s cubic-bezier(.16,1,.3,1),
                visibility 0s linear 0s;
}

.mob-overlay-inner {
    min-height: 100vh;
    padding: 110px 32px 48px;
    display: flex;
    flex-direction: column;
}

/* grid overlay bg */
.mob-overlay::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,105,188,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,105,188,0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: -1;
}

.mob-nav { list-style: none; margin: 0; padding: 0; flex: 1; }
.mob-nav > li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}
.mob-nav > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    color: rgba(255,255,255,0.9);
    font-family: Yekan-Bakh-Bold;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.25s ease;
}
.mob-nav > li > a:hover { color: #54C2BA; text-decoration: none; }
.mob-nav > li > a i { font-size: 16px; opacity: 0.4; }

/* Close button */
.mob-close-btn {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 46px; height: 46px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.75);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.mob-close-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

/* Mobile sub links */
.mob-sub {
    list-style: none;
    padding: 0 0 10px 16px;
    margin: 0;
    display: none;
}
.mob-sub.open { display: block; }
.mob-sub li a {
    display: block;
    padding: 9px 0;
    color: rgba(255,255,255,0.55);
    font-size: 15px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: color 0.2s ease;
}
.mob-sub li a:hover { color: #54C2BA; }

/* Mobile bottom contact block */
.mob-contact-card {
    margin-top: 36px;
    background: rgba(0,105,188,0.12);
    border: 1px solid rgba(0,105,188,0.22);
    border-radius: 20px;
    padding: 24px 20px;
}
.mob-contact-card .mc-label {
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    font-family: Yekan-Bakh-Bold;
    margin-bottom: 4px;
}
.mob-contact-card .mc-phone {
    color: #54C2BA;
    font-family: Yekan-Bakh-Bold;
    font-size: 20px;
    direction: ltr;
    text-decoration: none;
    display: block;
    margin-bottom: 16px;
}
.mob-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0069BC;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: Yekan-Bakh-Bold;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(0,105,188,0.4);
    transition: all 0.3s ease;
}
.mob-cta-btn:hover { background: #0050a0; color: #fff !important; }

/* Mob social links */
.mob-socials {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.mob-social-link {
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}
.mob-social-link:hover { background: #0069BC; color: #fff; border-color: #0069BC; }

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
    .hdr-nav, .hdr-phone-wrap { display: none; }
    .hdr-burger { display: flex; }
}
@media (max-width: 575px) {
    .hdr-cta { display: none; }
    .hdr-wrap { padding: 0 20px; }
}
