/**
 * Trillium Salon - footer.
 *
 * Rebuilds the old Gantry #g-footer: a white bar under a soft top shadow, with
 * the booking link as an outlined button on the left and the copyright block on
 * the right. Gantry sized those two blocks 70/30; `space-between` on the row
 * puts them in the same places without pinning either to a fixed width.
 */

.container-footer {
    margin-top: 0;
    padding-block: 1rem;
    color: var(--trillium-dark);
    background-color: #fff;
    background-image: none;
    box-shadow: 0 0 4px 0 rgb(0 0 0 / 10%);
}

.container-footer a:not(.btn),
.container-footer .btn-link {
    transition: color .2s;
}

/**
 * Base colour comes from --link-color, but the hover has to stay: Cassiopeia's
 * own `.footer a:not(.btn):hover` fades footer links to --gray-200, which is
 * more specific than the token and would win.
 */
.container-footer a:not(.btn):hover,
.container-footer a:not(.btn):focus,
.container-footer .btn-link:hover,
.container-footer .btn-link:focus {
    color: var(--link-hover-color);
}

/* Cassiopeia stacks the footer in a column; this design is a single row */
.container-footer .grid-child {
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 0;
}

.container-footer .moduletable {
    margin: 0;
}

/* ------------------------------------------------- menu as outlined buttons */

.container-footer .mod-menu {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.container-footer .mod-menu > li {
    padding: 0;
}

.container-footer .mod-menu > li > a {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    font-family: "Raleway", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--trillium-dark);
    border: 1px solid var(--trillium-dark);
    transition: all .3s;
}

/* Cassiopeia's global `.mod-list li a:hover` underlines menu links; this one
   is a button, and the old design only swapped its background. */
.container-footer .mod-menu > li > a:hover,
.container-footer .mod-menu > li > a:focus {
    color: var(--trillium-dark);
    background-color: var(--trillium-accent);
    text-decoration: none;
}

/* ------------------------------------------------------------- copyright */

.container-footer .mod-intergen-footer {
    font-size: .8125rem;
    line-height: 1.5;
}

/* copyright links carry the double rule underline from the old design */
.container-footer .mod-intergen-footer a {
    text-decoration: underline;
    text-decoration-style: double;
    text-decoration-color: rgb(0 0 0 / 30%);
    text-underline-offset: 3px;
}

.container-footer .mod-intergen-footer a:hover,
.container-footer .mod-intergen-footer a:focus {
    text-decoration-color: var(--link-hover-color);
}

/* ---------------------------------------------------------- breakpoints */

@media (max-width: 767.98px) {
    .container-footer .grid-child {
        text-align: center;
    }

    .container-footer .mod-menu {
        justify-content: center;
    }
}
@media (max-width: 609px) {
    .container-footer .grid-child {
        justify-content: center;
    }
}
