/*
 * Nav and footer styles for the Zapfalcon theme.
 * Mobile-first: base rules target narrow viewports; wider screens override.
 * Brand tokens come from style.css :root (do not hardcode hex values here).
 */

/*
 * Global utility (unscoped, reusable from any template).
 * Visually hides content while keeping it available to screen readers.
 * Matches the WordPress core .screen-reader-text convention. Loaded with
 * nav.css so it is available on every page where the header renders.
 */
.screen-reader-text {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

/* ---------- Site header ---------- */

.site-header {
    background-color: var(--color-nav);
    color: var(--color-white);
    position: relative;
    /* Subtle separator from the lighter hero/content below. */
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-title {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.2;
}

/* SVG logo lockup inside .site-title. */
.site-logo {
    display: block;
    height: 40px;
    width: auto;
}

/* ---------- Hamburger toggle (mobile-only by default) ---------- */

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

/* ---------- Primary nav ---------- */

.site-nav {
    width: 100%;
}

.site-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    flex-direction: column;
    gap: 12px;
}

.site-nav-list.is-open {
    display: flex;
}

.site-nav-list > li {
    width: 100%;
}

.site-nav-link {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 8px 0;
}

.site-nav-link:hover,
.site-nav-link:focus {
    opacity: 0.8;
}

/*
 * CTA button styling for the early-access link.
 * Inverted (white-fill / blue text) so it stands out against the blue nav bar.
 * The Hero and Final CTA use the natural-fill (blue/white) variant on
 * light + navy backgrounds respectively -- this is the deliberate inverse.
 */
.site-nav-cta {
    display: inline-block;
    background-color: var(--color-white);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    text-align: center;
}

.site-nav-cta:hover,
.site-nav-cta:focus {
    filter: brightness(1.1);
}

/* ---------- Site footer ---------- */

.site-footer {
    background-color: var(--color-nav);
    color: rgba(255, 255, 255, 0.85);
    /* Subtle separator from the section above (white content pages, or navy #pricing). */
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.site-footer-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.site-footer-link:hover,
.site-footer-link:focus {
    color: var(--color-white);
}

.site-copyright {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    margin: 0;
}

/* ---------- Desktop layout (>=768px) ---------- */

@media (min-width: 768px) {
    .site-header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .nav-toggle {
        display: none;
    }

    .site-nav {
        width: auto;
    }

    .site-nav-list {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .site-nav-list > li {
        width: auto;
    }

    .site-nav-link {
        padding: 0;
    }

    .site-logo {
        height: 44px;
    }
}
