/* ===== Shared Nav & Footer — source of truth for all pages =====
 * Extracted from index.html (AIC-451). Every marketing page links this file
 * instead of duplicating nav/footer CSS inline.
 *
 * Requires CSS custom properties from the page's own :root {} block:
 *   --primary, --primary-dark, --text-dark, --text-body, --bg-white, --border-light
 */

/* ── NAV ─────────────────────────────────────────────── */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow 0.3s;
}

.nav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo span {
    color: var(--primary);
}

.nav-links {
    display: none;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.938rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    display: none;
    gap: 0.75rem;
    align-items: center;
}

/* Shared button base (nav CTA + mobile menu) */
.nav .btn,
.mobile-menu .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.938rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.nav .btn-primary,
.mobile-menu .btn-primary {
    background: var(--primary);
    color: #fff;
}

.nav .btn-primary:hover,
.mobile-menu .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.nav .btn-ghost {
    background: transparent;
    color: var(--text-body);
    padding: 0.5rem;
}

/* ── HAMBURGER ───────────────────────────────────────── */

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ── MOBILE MENU ─────────────────────────────────────── */

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 1.25rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    z-index: 99;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-body);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.063rem;
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu .btn-primary {
    display: block;
    text-align: center;
    margin-top: 1rem;
}

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

.footer {
    padding: 3rem 0 2rem;
    background: #141428;
    color: rgba(255, 255, 255, 0.5);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    font-size: 0.875rem;
    margin-top: 0.75rem;
    line-height: 1.6;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.25rem 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
    font-size: 0.813rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* ── RESPONSIVE ──────────────────────────────────────── */

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .nav-cta {
        display: flex;
    }

    .hamburger {
        display: none;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}
