/* Template Footer */

body > footer {
    margin-top: auto;
    background-color: var(--template-header-background-color);
    color: #fff;
    padding: calc(var(--main-margin) * 2) var(--main-margin) var(--main-margin);
}



/* Top */

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: calc(var(--main-margin) * 3);
    padding-bottom: calc(var(--main-margin) * 1.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--main-margin);
}



/* Brand */

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--main-margin);
}

.footer-brand h2 {
    margin-block: 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: calc(var(--main-margin) / 2);
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.1em;
}

.footer-brand p {
    font-size: 0.85em;
    opacity: 0.6;
    line-height: 1.6;
    max-width: 28ch;
    margin: 0;
    text-align: justify;
}



/* Nav */

.footer-nav {
    text-align: center;
}

.footer-nav h2,
.footer-contact h2 {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.45;
    margin: 0 0 calc(var(--main-margin) * 0.75);
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--main-margin) / 2);
}

.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s ease;
}

.footer-nav ul li a:hover {
    color: #fff;
}



/* Contacts */

.footer-contact address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: calc(var(--main-margin) / 3);
}

.footer-contact address a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s ease;
}

.footer-contact address a:hover {
    color: #fff;
}

.footer-contact address p {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.5;
}

.footer-hours {
    font-size: 0.78em;
    opacity: 0.45;
    margin: calc(var(--main-margin) / 2) 0 0;
}



/* Bottom */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.78em;
    opacity: 0.4;
    margin: 0;
}

.footer-tagline {
    font-style: italic;
    letter-spacing: 0.05em;
}



/* Responsive */

@media (max-width: 45em) {
    .footer-top nav {
        text-align: end; /* FIXME */
    }
}

@media (max-width: 35em) {
    .footer-top {
        flex-direction: column;
        align-items: center;
    }

    .footer-top > *, .footer-top nav, .footer-top .footer-brand p {
        text-align: center;
    }

    .footer-brand {
        grid-column: 1;
        width: fit-content;
    }

    .footer-bottom {
        flex-direction: column;
        gap: calc(0.3 * var(--main-margin));
        text-align: center;
    }
}
