/* ==========================================================================
   Priductive — layout: container, header, footer
   ========================================================================== */

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--section-y);
}

.section--tight {
    padding-block: var(--section-y-tight);
}

.section--white {
    background: var(--surface);
}

/* Header ------------------------------------------------------------------- */
.site-header {
    position: relative;
    z-index: 40;
    background: var(--bg);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-block: 1.15rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: none;
    text-decoration: none;
}

.brand img {
    height: 1.9rem;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-inline-start: auto;
}

.nav a {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: var(--fw-medium);
    text-decoration: none;
    color: var(--ink);
    transition: background-color 0.18s var(--ease-out);
}

.nav a:hover {
    background: rgba(0, 0, 0, 0.06);
}

.nav a[aria-current='page'] {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

.header-cta {
    flex: none;
}

.menu-toggle {
    display: none;
    margin-inline-start: auto;
    padding: 0.55rem 1rem;
    border: 2px solid var(--btn-blue-border);
    border-radius: 8px;
    background: var(--btn-blue);
    color: #fff;
    font-size: 0.875rem;
    font-weight: var(--fw-semibold);
    box-shadow: var(--btn-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* Footer ------------------------------------------------------------------- */
.site-footer {
    background: var(--surface);
    border-top: 0;
    padding: 0 0 1.75rem;
}

.site-footer > .container {
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(2, 1fr) 1fr;
    gap: 2.5rem;
}

.footer-wordmark img {
    height: 1.75rem;
    width: auto;
    margin-bottom: 1rem;
}

.footer-tagline {
    max-width: 22rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

.footer-col h2 {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: var(--fw-medium);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.9rem;
}

.footer-col ul {
    display: grid;
    gap: 0.55rem;
}

.footer-col a {
    font-size: 0.9375rem;
    text-decoration: none;
    color: var(--ink-soft);
}

.footer-col a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: background-color 0.18s var(--ease-out);
}

.footer-social a:hover {
    background: var(--field);
}

.footer-social img {
    width: 1rem;
    height: 1rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--muted);
}

.footer-bottom p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom__dot {
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 50%;
    background: var(--green);
}

/* Mobile menu -------------------------------------------------------------- */
html.menu-open {
    overflow: hidden;
}

.mobile-menu:focus,
.mobile-menu:focus-visible {
    outline: none;
}

.mobile-menu {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--bg);
    color: var(--ink);
}

.mobile-menu::backdrop {
    background: rgba(16, 21, 22, 0.45);
}

.mobile-menu__inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.15rem var(--gutter) 3rem;
}

.mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.mobile-menu__head img {
    height: 1.9rem;
    width: auto;
}

.mobile-menu__close {
    padding: 0.5rem 1rem;
    border: 2px solid var(--btn-green-border);
    border-radius: var(--radius-pill);
    background: var(--btn-green);
    color: #fff;
    font-size: 0.875rem;
    font-weight: var(--fw-semibold);
    box-shadow: var(--btn-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu nav a {
    padding-block: 1rem;
    border-bottom: 1px solid var(--line);
    font-size: clamp(2rem, 9vw, 2.75rem);
    font-weight: var(--fw-semibold);
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-decoration: none;
}

.mobile-menu__cta {
    margin-top: 2rem;
    align-self: flex-start;
}

@media (max-width: 900px) {
    .site-header .nav,
    .site-header .header-cta {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 380px) {
    .site-header__inner {
        gap: 0.75rem;
    }

    .brand img {
        height: 1.6rem;
    }

    .menu-toggle {
        padding: 0.5rem 0.85rem;
        font-size: 0.8125rem;
    }
}
