/* ==========================================================================
   Chrome
   Page furniture around the content: the sticky nav and the footer.
   ========================================================================== */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid transparent;
    background: transparent;
    transition: background-color .2s ease, border-color .2s ease;
}

.nav.is-scrolled {
    background: var(--bg);
    border-bottom-color: var(--line);
}

.nav-start {
    display: flex;
    align-items: center;
    gap: 64px;
    min-width: 0;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 36px;
    font-size: 16px;
    font-weight: 700;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-end {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    line-height: 1.4;
}

.lang-switch:hover {
    color: var(--text);
    border-color: var(--text);
}

.nav .btn-primary {
    font-size: 16px;
    padding: 12px 22px;
}

.footer {
    padding-top: 64px;
    padding-bottom: 40px;
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 32px;
}

.footer-logo {
    height: 48px;
    width: auto;
}

.footer-about {
    margin-top: 24px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 340px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 15px;
}

.footer-col h2 {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 4px;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-email {
    direction: ltr;
    text-align: start;
}

.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    font-size: 13px;
    color: var(--muted);
}

/* mobile ---------------------------------------------------------------- */

@media (max-width: 900px) {
    .nav {
        height: 60px;
    }

    .nav-logo {
        height: 30px;
    }

    .nav-start {
        gap: 0;
    }

    .nav-links {
        display: none;
    }

    .nav-end {
        gap: 10px;
    }

    .lang-switch {
        font-size: 12px;
        padding: 5px 8px;
    }

    .nav .btn-primary {
        font-size: 14px;
        padding: 10px 14px;
        border-radius: 10px;
    }

    .footer {
        padding-top: 40px;
        padding-bottom: 28px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .footer-brand {
        display: contents;
    }

    .footer-logo {
        grid-column: 1 / -1;
        height: 36px;
    }

    .footer-about {
        order: 2;
        grid-column: 1 / -1;
        margin-top: 4px;
        font-size: 12px;
        max-width: none;
    }

    .footer-col {
        order: 1;
        font-size: 14px;
        gap: 8px;
    }

    .footer-col h2 {
        font-size: 12px;
    }

    .footer-bottom {
        order: 3;
        margin-top: 0;
        padding-top: 14px;
        font-size: 12px;
    }
}
