/* Silverbowl – Header & Footer */

/* ── Site Header ────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    max-width: var(--max-width);
    margin: 0 auto;
    height: 68px;
}

/* Logo */
.site-logo {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--color-text);
    text-decoration: none;
    line-height: 1;
}

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

/* Nav */
.nav-menu {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
}

.nav-menu li a {
    display: block;
    padding: .5rem .85rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: var(--color-primary-l);
    color: var(--color-primary);
}

/* Nav CTA */
.nav-cta {
    margin-left: .75rem;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: .5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 4px;
    transition: all var(--transition);
}

/* ── Mobile Nav ─────────────────────────────────────────────── */
@media (max-width: 820px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: transform .3s ease;
        opacity: 0;
        pointer-events: none;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        padding: .8rem 1rem;
        border-radius: var(--radius-sm);
    }

    .nav-cta {
        width: 100%;
        margin-left: 0;
    }

    .nav-cta .btn {
        width: 100%;
        justify-content: center;
        margin-top: .5rem;
    }
}

/* ── Site Footer ────────────────────────────────────────────── */
.site-footer {
    background: #0d1117;
    color: rgba(255, 255, 255, .75);
    padding: 4.5rem 0 0;
    margin-top: 5rem;
}

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

.footer-brand .logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1rem;
    display: block;
}

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

.footer-brand p {
    font-size: .87rem;
    color: rgba(255, 255, 255, .6);
    line-height: 1.7;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 1.1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: .5rem;
}

.footer-col ul li a {
    font-size: .875rem;
    color: rgba(255, 255, 255, .7);
    transition: color var(--transition);
}

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

.footer-newsletter p {
    font-size: .85rem;
    color: rgba(255, 255, 255, .6);
    margin-bottom: .9rem;
}

.footer-newsletter .inline-form {
    display: flex;
    gap: .5rem;
}

.footer-newsletter input {
    flex: 1;
    padding: .6rem .85rem;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .07);
    color: white;
    font-size: .85rem;
    font-family: var(--font-body);
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, .35);
}

.footer-newsletter input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.footer-newsletter button {
    padding: .6rem 1rem;
    white-space: nowrap;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: .8rem;
    color: rgba(255, 255, 255, .4);
}

.footer-bottom a {
    color: rgba(255, 255, 255, .4);
}

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

.footer-bottom-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-newsletter .inline-form {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}