/* ==========================================================================
   SITE CHROME — Homepage navbar (pill) styles for subpages (articles, blogs)
   Footer styles come from footer-revamp.css
   ========================================================================== */

/* Spacer so page content clears the fixed pill nav */
.site-chrome-active { padding-top: 120px; }

/* === Top Navigation Pill (ported from hero-revamp.css) === */
.nav-pill-wrapper {
    position: fixed;
    top: 2.5rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 1400px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.desktop-logo-fixed {
    position: absolute;
    left: 4.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.4rem;
    color: #111;
    text-decoration: none;
}

.site-logo-wordmark {
    display: block !important;
    width: clamp(142px, 11vw, 178px) !important;
    max-width: 178px !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: 48px !important;
    object-fit: contain !important;
    object-position: left center !important;
    flex: 0 0 auto !important;
}

.desktop-logo-fixed .site-logo-wordmark {
    width: clamp(150px, 12vw, 190px) !important;
    max-width: 190px !important;
}

.nav-pill-wrapper > a.desktop-logo-fixed {
    max-width: 210px !important;
    height: 54px !important;
    overflow: hidden !important;
}

.nav-pill {
    background-color: #ffffff;
    border-radius: 9999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    padding: 0.5rem 0.5rem 0.5rem 2.5rem;
    gap: 2.5rem;
    border: 1px solid rgba(0,0,0,0.03);
}

.nav-pill-links {
    display: flex;
    gap: 1.5rem;
}

.nav-pill-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-pill-link:hover {
    color: #2534f9;
}

.nav-pill-btn {
    background-color: #2534f9;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(37, 52, 249, 0.3);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.nav-pill-btn:hover {
    background-color: #1e2bcc;
    transform: translateY(-1px);
}

/* Mobile nav inside the pill */
.mobile-nav {
    display: none;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: #111;
    text-decoration: none;
}

.mobile-logo .site-logo-wordmark {
    width: 138px !important;
    max-width: 138px !important;
    max-height: 42px !important;
}

.mobile-menu-btn {
    background: #2534f9;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Mobile dropdown menu */
.mobile-menu-panel {
    display: none;
    position: fixed;
    top: 94px;
    left: 1.25rem;
    right: 1.25rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.75rem;
    z-index: 999;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-menu-panel.open,
.mobile-menu-panel.is-open { display: flex; }

.mobile-menu-link {
    gap: 0.65rem;
}

.mobile-menu-link iconify-icon {
    width: 1.2rem;
    height: 1.2rem;
    color: currentColor;
}

.mobile-menu-link.mobile-menu-cta {
    background: #eef1ff;
    color: #2534f9;
}

.mobile-menu-panel a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.75rem 0.9rem;
    box-sizing: border-box;
    border-radius: 13px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.mobile-menu-panel a:hover,
.mobile-menu-panel a:focus-visible {
    background: #eef2ff;
    color: #2534f9;
    outline: none;
}

@media (max-width: 768px) {
    .site-chrome-active { padding-top: 100px; }
    .desktop-logo-fixed { display: none; }
    .desktop-nav { display: none; }
    .nav-pill-wrapper {
        top: 1.25rem;
        padding: 0 1.25rem;
        box-sizing: border-box;
    }
    .mobile-nav {
        display: flex;
        width: 100%;
        min-height: 64px;
        padding: 0.5rem 0.55rem 0.5rem 1rem;
        box-sizing: border-box;
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.07);
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    }
    .mobile-menu-btn {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        flex-shrink: 0;
    }
    .nav-pill {
        padding: 0.5rem 0.5rem 0.5rem 1rem;
        gap: 0;
        width: 90%;
        margin: 0 auto;
    }
}
