/* ── NAVIGATION ─────────────────────────────────────────── */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 12px 16px 0;
    transition: transform 0.3s ease-in-out;
}

.nav-outer {
    max-width: 1400px;
    margin: 0 auto;
}

/* Pill container — overflow:hidden so expand panel stays inside */
.nav-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

/* Top bar row */
.nav-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 20px;
    position: relative;
}

/* ── Logo ── */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    /* Mobile: absolute center */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-logo-img {
    height: 30px;
    width: auto;
}

.nav-logo-text {
    font-size: 15px;
    font-weight: 700;
    color: #18181b;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* ── Hamburger (mobile only) ── */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #18181b;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Desktop nav links (hidden on mobile) ── */
.nav-links {
    display: none;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.nav-links a {
    color: #71717a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 50px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
    color: #18181b;
    background: rgba(24, 24, 27, 0.06);
}

.nav-links a.active {
    color: #583595;
    background: rgba(88, 53, 149, 0.1);
    font-weight: 700;
}

/* ── CTA button ── */
.nav-cta {
    display: none; /* hidden on mobile — available in expand panel */
    background: #583595;
    color: white !important;
    padding: 9px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(88, 53, 149, 0.3);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.nav-cta:hover {
    background: #472a78;
    box-shadow: 0 4px 20px rgba(88, 53, 149, 0.4);
    transform: translateY(-1px);
}

/* ── Mobile expand panel ── */
.mobile-expand {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.mobile-expand.open {
    max-height: 520px;
    opacity: 1;
}

.mobile-expand-inner {
    border-top: 1px solid #f3f4f6;
    padding: 12px 16px 20px;
}

.mobile-expand-inner a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 10px;
    border-radius: 12px;
    color: #111827;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.mobile-expand-inner a:hover {
    background: rgba(0, 0, 0, 0.04);
}

.mobile-expand-inner a.active {
    color: #583595;
    background: rgba(88, 53, 149, 0.07);
    font-weight: 600;
}

.mobile-expand-inner a svg {
    color: #d1d5db;
    flex-shrink: 0;
}

.mobile-expand-cta {
    margin-top: 12px;
    display: flex;
}

.mobile-expand-cta a {
    flex: 1;
    justify-content: center;
    background: #583595 !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: 14px !important;
    padding: 14px !important;
    font-size: 15px !important;
    box-shadow: 0 2px 12px rgba(88, 53, 149, 0.25);
}

.mobile-expand-cta a:hover {
    background: #472a78 !important;
}

/* ── Desktop breakpoint ── */
@media (min-width: 1024px) {
    nav {
        padding: 16px 40px 0;
    }

    .nav-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
    }

    /* Logo: static left on desktop (not absolute) */
    .nav-logo {
        position: static;
        transform: none;
    }

    .nav-cta {
        display: inline-block;
        font-size: 14px;
        padding: 10px 22px;
    }

    /* Mobile expand never shows on desktop */
    .mobile-expand {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    nav {
        padding: 12px 24px 0;
    }
}


/* ── FOOTER ─────────────────────────────────────────────── */

footer {
    background: #18181b;
    color: white;
    padding: 60px 20px 40px;
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-desc {
    color: #a1a1aa;
    line-height: 1.6;
    font-size: 15px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #a78bfa;
}

.footer-bottom {
    max-width: 1600px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    color: #71717a;
    font-size: 14px;
}

/* TABLET - Footer */
@media (min-width: 768px) {
    footer {
        padding: 50px 60px 30px;
    }

    .footer-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* DESKTOP - Footer */
@media (min-width: 1024px) {
    footer {
        padding: 60px 100px 40px;
    }

    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 60px;
        margin-bottom: 40px;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 40px;
        text-align: left;
    }
}
