/* =============================================================
   site-chrome.css — RackCity marketing chrome (www host)

   THE single source of truth for the global header + footer and
   the shared brand tokens (colors + Sora font) they ride on.

   Loaded via a plain <link> on every marketing page (landing,
   base_article and everything that extends it, terms, privacy),
   BEFORE each page's own inline <style>. It owns only the SHARED
   identity tokens + the nav and footer rules; page-specific tokens
   (--spacing-section, --radius-*, --shadow-card, form placeholder)
   stay in each page's own :root.

   Markup lives in templates/partials/_header.html + _footer.html.
   ============================================================= */

:root {
    /* Shared brand palette — canonical (adopted from the landing
       "homepage refresh"; resolves the old per-page --color-text-muted
       drift). Page-specific tokens are NOT here — they stay per page. */
    --color-primary:          #080c14;
    --color-primary-light:    #0d1420;
    --color-primary-border:   #1e2a3a;
    --color-primary-surface:  #0a1018;
    --color-secondary:        hsl(29, 100%, 52%);
    --color-secondary-hover:  hsl(21, 100%, 52%);
    --color-text-primary:     #ffffff;
    --color-text-body:        #e2e8f0;
    --color-text-muted:       #94a3b8;

    /* One font for the whole marketing site (Sora, self-hosted via
       /static/fonts/sora/sora.css — link it alongside this file). */
    --font-family:  "Sora Variable", "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: "Sora Variable", "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- NAV (global header) ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem clamp(1.5rem, 5vw, 4rem);
    background: rgba(11, 19, 35, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid hsla(213, 45%, 30%, 0.5);
}
.nav__wordmark {
    display: inline-flex;
    align-items: center;
    gap: 1.1rem;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
    text-decoration: none;
}
.nav__logo {
    flex: none;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.6rem;
    object-fit: cover;
}
.nav__wordmark-accent { color: var(--color-secondary); }
.nav__right { display: flex; align-items: center; gap: 2rem; }
.nav__links { display: flex; align-items: center; gap: 1.75rem; }
.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.nav__link:hover, .nav__link--active { color: var(--color-text-primary); }
.nav__divider {
    width: 1px;
    height: 1.1rem;
    background: var(--color-primary-border);
}
.nav__login {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-body);
    text-decoration: none;
    cursor: pointer;
    padding: 0.6rem 1.2rem;
    /* Ghost/outlined button — pairs with .nav__cta (same radius/height) but
       stays secondary: steel border, no orange (orange is CTA-only). */
    border: 1px solid #2a3a50;
    border-radius: 0.4rem;
    background: transparent;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.nav__login:hover {
    border-color: #4a5a70;
    color: var(--color-text-primary);
}
.nav__cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    padding: 0.6rem 1.4rem;
    border-radius: 0.4rem;
    background: var(--color-secondary);
    transition: background 0.2s ease;
    white-space: nowrap;
}
.nav__cta:hover { background: var(--color-secondary-hover); }
.nav__burger {
    display: none;
    background: none;
    border: 1px solid var(--color-primary-border);
    border-radius: 0.4rem;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.nav__burger svg {
    width: 1.2rem;
    height: 1.2rem;
    stroke: var(--color-text-body);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}
@media (max-width: 860px) {
    .nav__links { display: none; }
    .nav__burger { display: flex; }
    .nav--open .nav__links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.1rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1.1rem clamp(1.5rem, 5vw, 4rem) 1.4rem;
        background: rgba(11, 19, 35, 0.98);
        border-bottom: 1px solid var(--color-primary-border);
    }
    .nav--open .nav__divider { display: none; }
}

/* ---------- FOOTER (global, multi-column) ---------- */
.footer {
    padding: 3rem clamp(2rem, 5vw, 6rem) 2rem;
    border-top: 1px solid var(--color-primary-border);
    background: var(--color-primary-surface);
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto 2.5rem;
}
.footer__brand .footer__wordmark {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    display: inline-block;
}
.footer__brand .footer__wordmark::before {
    content: "";
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--color-secondary);
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
}
.footer__tagline {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    max-width: 280px;
}
.footer__col-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}
.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer__list li { margin-bottom: 0.55rem; }
.footer__list a {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer__list a:hover { color: var(--color-secondary); }
.footer__bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-primary-border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.footer__bottom a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer__bottom a:hover { color: var(--color-secondary); }
@media (max-width: 800px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}
@media (max-width: 480px) {
    .footer__grid { grid-template-columns: 1fr; }
}
