/* shell.css — shared header + footer shell (nx-)
 *
 * Loaded by layout.php for every public page, and by admin.php / login.php so
 * the shared header/footer they include still render. Self-contained: every
 * token has a fallback, so it does not require nexera.css or components.css.
 * Replaces the Bootstrap navbar/footer rules that used to come from
 * cards.css + compat.css.
 */

/* ---------- Header ---------- */

.nx-nav {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: var(--nx-ink-900, #0f1b24);
    box-shadow: 0 12px 26px rgba(15, 32, 39, 0.16);
    color: #ffffff;
}

.nx-nav__inner {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0.5rem 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.nx-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #ffffff;
    text-decoration: none;
}

.nx-nav__brand svg {
    width: 44px;
    height: 44px;
    display: block;
}

.nx-nav__word {
    font-family: var(--font-heading, 'Sora', sans-serif);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #ffffff;
}

.nx-nav__toggle {
    display: none;
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    cursor: pointer;
}

.nx-nav__toggle-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nx-nav__menu {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.nx-nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nx-nav__link {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-heading, 'Sora', sans-serif);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-decoration: none;
}

.nx-nav__link:hover,
.nx-nav__link:focus {
    color: #ffe08a;
}

.nx-nav__actions {
    display: flex;
    align-items: center;
}

.nx-nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.1rem;
    font-family: var(--font-heading, 'Sora', sans-serif);
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1;
    color: #ffffff;
    background: var(--brand-band, #0e7c86);
    border: 1px solid var(--brand-band, #0e7c86);
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.16);
}

.nx-nav__cta:hover,
.nx-nav__cta:focus {
    color: #ffffff;
    background: var(--brand-stripe, #db5a66);
    border-color: var(--brand-stripe, #db5a66);
}

@media (max-width: 991px) {
    .nx-nav__toggle {
        display: inline-block;
    }

    .nx-nav__menu {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding-top: 0.5rem;
    }

    .nx-nav__menu.is-open {
        display: flex;
    }

    .nx-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nx-nav__link {
        padding: 0.6rem 0.25rem;
    }

    .nx-nav__actions {
        margin-top: 0.5rem;
    }

    .nx-nav__cta {
        width: 100%;
    }
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--nx-ink-900, #0f1b24);
    color: #ffffff;
    padding: 2.4rem 0;
    margin-top: 0;
}

.site-footer__container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(160px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.site-footer__brand,
.site-footer__column {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
}

.site-footer__logo svg {
    width: 40px;
    height: 40px;
    display: block;
}

.site-footer__summary,
.site-footer__meta {
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    line-height: 1.7;
}

.site-footer__column h2 {
    font-family: var(--font-heading, 'Sora', sans-serif);
    font-size: 1rem;
    margin: 0 0 0.2rem;
    color: #ffe08a;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #ffe08a;
    text-decoration: none;
}

.site-footer__legal {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

@media (max-width: 991px) {
    .site-footer__container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .site-footer {
        padding: 2rem 0;
    }

    .site-footer__container {
        grid-template-columns: 1fr;
    }
}
