/* ==================================================
   NAVBAR — centered, starts at image top, concave outer top corners
================================================== */
#nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    pointer-events: none;
    padding: 0;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
}

/* Prevent w-100 on #header-container from breaking centered flex layout */
#header-container {
    display: contents;
}

.liquid-navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: fit-content;
    background: var(--white-bg);
    border-radius: 0;
    padding: 28px 160px 36px;
    box-shadow: none;
    pointer-events: auto;
    position: relative;
    z-index: 10;
    margin: 0;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 400 100'%3E%3Cpath d='M0,0 C100,0 20,100 105,100 L295,100 C380,100 300,0 400,0 Z' fill='white'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 400 100'%3E%3Cpath d='M0,0 C100,0 20,100 105,100 L295,100 C380,100 300,0 400,0 Z' fill='white'/%3E%3C/svg%3E");
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
}


/* Logo — top-left corner, aligned to Bootstrap container left edge */
.nav-brand-corner {
    position: fixed;
    top: 32px;
    left: max(24px, calc((100vw - 1320px) / 2 + 24px));
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 1rem;
    pointer-events: auto;
    white-space: nowrap;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
}

.nav-brand-corner .brand-icon {
    width: 22px;
    height: 22px;
    color: var(--primary-mid, #2563eb);
}

.nav-brand-corner .brand-highlight {
    color: var(--primary-mid, #2563eb);
}

/* "Get Started" button — top-right corner, mirrored from logo left edge */
.nav-cta-corner {
    position: fixed;
    top: 26px;
    right: max(24px, calc((100vw - 1320px) / 2 + 24px));
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    pointer-events: auto;
    white-space: nowrap;
    z-index: 20;
    transition: background 0.2s, transform 0.2s;
    opacity: 0;
    visibility: hidden;
}

.nav-cta-corner:hover {
    background: var(--primary-mid, #2563eb);
    color: #fff;
    transform: translateY(-1px);
}

/* Top corners handled directly by navbar border-radius — no pseudo-elements needed */
.liquid-navbar::before,
.liquid-navbar::after {
    display: none;
}

.liquid-navbar:hover {
    transform: none;
}

/* Nav links inside the pill */
.nav-links {
    display: flex;
    gap: 44px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    text-decoration: none;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.2s;
    white-space: nowrap;
    position: relative;
    padding-bottom: 4px;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: var(--primary-mid, #2563eb);
    border-radius: 2px;
    transition: transform 0.25s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-mid);
}

/* Mobile hamburger — hidden on desktop */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #1a1a2e;
    cursor: pointer;
    padding: 4px;
}

/* ==================================================
   DYNAMIC SCROLL MODE (Dark Background Adaptation)
================================================== */
/* .liquid-navbar.nav-dark-mode {
    background: linear-gradient(-75deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    box-shadow: 
        inset 0 0.125em 0.125em rgba(255, 255, 255, 0.1), 
        inset 0 -0.125em 0.125em rgba(0, 0, 0, 0.5), 
        0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.5), 
        0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.1), 
        0 0 0 0 rgba(0, 0, 0, 1);
    border-color: transparent;
}

.liquid-navbar.nav-dark-mode:hover {
    box-shadow: 
        inset 0 0.125em 0.125em rgba(255, 255, 255, 0.1), 
        inset 0 -0.125em 0.125em rgba(0, 0, 0, 0.5), 
        0 0.15em 0.125em -0.125em rgba(0, 0, 0, 0.6), 
        0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2), 
        0 0 0 0 rgba(0, 0, 0, 1);
}

.liquid-navbar.nav-dark-mode .nav-brand,
.liquid-navbar.nav-dark-mode .nav-item,
.liquid-navbar.nav-dark-mode .mobile-toggle {
    color: white;
}

.liquid-navbar.nav-dark-mode .brand-highlight,
.liquid-navbar.nav-dark-mode .brand-icon {
    color: var(--sec-muted);
}

.liquid-navbar.nav-dark-mode .nav-item::after {
    background: white;
}

.liquid-navbar.nav-dark-mode .btn-primary-glass {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.liquid-navbar.nav-dark-mode .btn-primary-glass:hover {
    background: rgba(255, 255, 255, 0.2);
} */

/* Mobile-only "Get Started" inside the dropdown — hidden on desktop */
.nav-mobile-cta {
    display: none;
}

.nav-mobile-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 24px;
    background: #1a1a2e;
    color: #fff;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.nav-mobile-cta-btn:hover {
    background: var(--primary-mid, #2563eb);
    color: #fff;
}

@media (max-width: 991px) {

    /* Navbar collapses to a single hamburger button pinned top-right */
    #nav-wrapper {
        justify-content: flex-end;
    }

    .liquid-navbar {
        min-width: unset;
        width: auto;
        padding: 0;
        gap: 0;
        margin: 16px 16px 0 0;
        background: transparent;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        background: transparent;
        color: #1a1a2e;
        filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.4));
    }

    /* White icon on pages with dark hero backgrounds */
    body.country-page .mobile-toggle,
    body.contact .mobile-toggle {
        color: #ffffff;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
    }

    /* Dropdown opens below the hamburger, right-aligned */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: auto;
        transform: none;
        width: max-content;
        min-width: 220px;
        background: #ffffff;
        border-radius: 18px;
        padding: 18px 22px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
        gap: 14px;
        z-index: 100;
    }

    .nav-links.active {
        display: flex;
    }

    /* Get Started lives inside the dropdown; hide the corner button */
    .nav-mobile-cta {
        display: block;
        margin-top: 4px;
        padding-top: 14px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .nav-cta-corner {
        display: none;
    }

    /* Logo stays top-left, slightly tightened */
    .nav-brand-corner {
        top: 24px;
        left: 16px;
        font-size: 0.95rem;
    }
}

/* ==================================================
   PREMIUM FOOTER
================================================== */
/* ==================================================
   PREMIUM FOOTER REDESIGN (COMPLETE & FIXED)
================================================== */
#footer-placeholder,
#footer-container {
    display: block;
    position: relative;
    width: 100%;
    clear: both;
    z-index: 10;
}

.premium-footer {
    background-color: #020617;
    color: #f8fafc;
    border-radius: 2.5rem 2.5rem 0 0;
    position: relative;
    padding-top: 7rem;
    padding-bottom: 0;
    z-index: 10;
    width: 100%;
    display: block;
    overflow: hidden;
    margin-top: -2.5rem;
}

.premium-footer .container {
    width: 100%;
}

.premium-footer .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.premium-footer [class*="col-"] {
    min-width: 0;
}

.footer-brand-title {
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.footer-desc-text {
    font-size: 1rem;
    line-height: 1.9;
    color: #94a3b8;
}

/* Link Styles */
.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-link::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #0ea5e9;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #fff !important;
    transform: translateX(8px);
}

.footer-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Newsletter Section */
.footer-newsletter-box {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 2.5rem;
    position: relative;
}

.newsletter-input-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 6px;
    display: flex;
    transition: all 0.3s ease;
}

.newsletter-input-group:focus-within {
    border-color: #0ea5e9;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.newsletter-input-group .form-control {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    box-shadow: none !important;
    padding: 10px 15px;
    height: auto;
}

.newsletter-submit {
    background: #0ea5e9;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 10px 20px !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.newsletter-submit:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

/* Contact Info */
.footer-contact-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.footer-contact-item:hover .footer-contact-icon {
    background: #0ea5e9;
    color: #fff;
}

/* Recognized By */
.footer-recognition {
    margin: 4rem 0 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.recognition-badge {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    transition: all 0.3s ease;
    cursor: default;
}

.recognition-badge:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 12px;
}

.footer-social-btn {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #94a3b8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.footer-social-btn:hover {
    background: #0ea5e9;
    color: #fff;
    border-color: #0ea5e9;
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

.footer-col-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
}

.footer-main-row {
    padding-bottom: 1rem;
}

/* Footer Bottom Strip */
.footer-bottom-strip {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    margin-top: 5rem;
}
.footer-bottom-strip p{
    font-size: 0.85rem;
}

.footer-bottom-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    position: relative;
}

.footer-bottom-link:hover {
    color: #fff;
}

/* Restored Core Utilities */
.hover-scale { transition: transform 0.3s ease; }
.hover-scale:hover { transform: scale(1.05); }
.hover-text-white { transition: color 0.3s ease; }
.hover-text-white:hover { color: #fff !important; }
.tracking-wider { letter-spacing: 0.1em; }

/* Ambient Glows */
.footer-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    overflow: hidden;
}

.footer-glow-top {
    top: -300px;
    left: -200px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2), transparent);
}

.footer-glow-bottom {
    bottom: -300px;
    right: -200px;
    background: radial-gradient(circle, rgba(46, 63, 191, 0.15), transparent);
}

@media (max-width: 991px) {
    .premium-footer { padding-top: 4rem; }
    .footer-newsletter-box { margin-top: 2rem; padding: 2rem; }
}

/* Global Reset for Bottom Space */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
}

/* ==================================================
   DARK-HERO PAGE NAV OVERRIDES
   Pages with dark hero backgrounds (about, contact, all country pages)
   need white logo + CTA text so they're visible, matching the home
   page's navbar appearance when floating over a dark hero image.
================================================== */
body.country-page .nav-brand-corner,
body.contact .nav-brand-corner {
    color: #ffffff;
}

body.country-page .nav-brand-corner .brand-icon,
body.contact .nav-brand-corner .brand-icon {
    color: #60a5fa;
}

body.country-page .nav-brand-corner .brand-highlight,
body.contact .nav-brand-corner .brand-highlight {
    color: #60a5fa;
}

body.country-page .nav-cta-corner,
body.contact .nav-cta-corner {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.country-page .nav-cta-corner:hover,
body.contact .nav-cta-corner:hover {
    background: var(--primary-mid, #2563eb);
    border-color: var(--primary-mid, #2563eb);
    color: #ffffff;
}
