/* TaskEye website: the header and footer (the te-header and te-footer
   blocks in the header and footer parts). */

/* Header ----------------------------------------------------------------- */

.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.25rem 1rem;
    padding-top: 0.75rem;
}

.brand {
    display: inline-grid;
    justify-items: start;
    gap: 0.1rem;
    min-height: var(--tap);
    align-content: center;
    text-decoration: none;
}

.brand__logo {
    width: auto;
    height: 2.4rem;
}

.brand__sub {
    color: var(--ink-soft);
    font-size: 0.875rem;
    line-height: 1.2;
}

.site-nav {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.25rem;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0.25rem var(--gutter) 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding-inline: 0.7rem;
    font-size: 1.0625rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--blue-ink);
    box-shadow: inset 0 -3px 0 var(--blue);
}

.site-nav a[aria-current="page"] {
    font-weight: 700;
}

.header-cta {
    grid-row: 1;
    grid-column: 2;
}

@media (max-width: 420px) {
    .header-cta {
        padding-inline: 0.7rem;
    }

    .header-cta .icon {
        display: none;
    }
}

@media (min-width: 960px) {
    .site-header__inner {
        grid-template-columns: auto 1fr auto;
        padding-block: 0.6rem;
    }

    .site-nav {
        grid-row: 1;
        grid-column: 2;
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    .header-cta {
        grid-column: 3;
    }
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
    padding-block: 3rem 5.5rem;
    background: var(--ink);
    color: #dfe5ef;
    font-size: 1rem;
}

.site-footer :focus-visible {
    outline-color: var(--canary);
    box-shadow: none;
}

.site-footer a {
    color: #ffffff;
}

.site-footer__top {
    display: grid;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.16);
}

.site-footer__brand {
    display: grid;
    gap: 0.9rem;
    max-width: 22rem;
}

.site-footer .brand {
    padding: 0.55rem 0.8rem;
    border-radius: var(--radius);
    background: #ffffff;
}

.site-footer address {
    font-style: normal;
}

.site-footer__title {
    margin: 0 0 0.4rem;
    color: #ffffff;
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 800;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding-top: 1.25rem;
    color: #b9c3d3;
    font-size: 0.9375rem;
}

.site-footer__inner p,
.site-footer__top p {
    margin: 0;
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (min-width: 840px) {
    .site-footer__top {
        grid-template-columns: 1.3fr 1fr 1fr;
    }
}
