/* =========================================
   FOOTER
========================================= */

/* Mobile - 0rem+ */

.site-footer {
    position: relative;

    padding: 5rem 0 2rem;

    background: #050605;
    color: var(--white);
}


/* =========================================
   FOOTER - MAIN LAYOUT
========================================= */

/* Mobile - 0rem+ */

.site-footer__main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem 1.5rem;

    text-align: center;
}


/* Brand takes full first row */

.site-footer__brand {
    grid-column: 1 / -1;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    max-width: 24rem;

    margin-inline: auto;
}


/*
 * Explore and Services automatically occupy
 * the two columns of the grid.
 */

.site-footer__column {
    min-width: 0;

    text-align: center;
}


/* Contact takes full row */

.site-footer__contact {
    grid-column: 1 / -1;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;

    text-align: center;
}


/* Tablet - 48rem+ */

@media (min-width: 48rem) {

    .site-footer {
        padding-top: 6rem;
    }

    .site-footer__main {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 4rem 3rem;

        text-align: left;
    }

    .site-footer__brand {
        grid-column: 1 / -1;

        align-items: flex-start;

        max-width: 26rem;

        margin-inline: 0;

        text-align: left;
    }

    .site-footer__column {
        text-align: left;
    }

    .site-footer__contact {
        grid-column: auto;

        align-items: flex-start;

        text-align: left;
    }

}


/* Desktop - 64rem+ */

@media (min-width: 64rem) {

    .site-footer {
        padding-top: 7rem;
    }

    .site-footer__main {
        grid-template-columns: 1.6fr 0.8fr 1fr 1.2fr;
        gap: 4rem;
    }

    .site-footer__brand {
        grid-column: auto;

        max-width: 24rem;
    }

}


/* =========================================
   FOOTER - BRAND
========================================= */

/* Mobile - 0rem+ */

.site-footer__logo {
    display: inline-block;

    margin: 0 auto 1.5rem;
}

.site-footer__logo img {
    display: block;

    width: 11rem;
    height: auto;
}

.site-footer__brand p {
    max-width: 22rem;

    margin: 0 auto;

    color: rgba(255, 255, 255, 0.55);

    font-size: 0.9rem;
    line-height: 1.8;

    text-align: center;
}

.site-footer__estimate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;

    margin-top: 1.5rem;

    color: var(--yellow);

    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.site-footer__estimate span {
    font-size: 1.1rem;

    transition: transform 200ms ease;
}


/* Tablet - 48rem+ */

@media (min-width: 48rem) {

    .site-footer__logo {
        margin-inline: 0;
    }

    .site-footer__logo img {
        width: 12rem;
    }

    .site-footer__brand p {
        margin-inline: 0;

        text-align: left;
    }

    .site-footer__estimate {
        justify-content: flex-start;
    }

}


/* Desktop - 64rem+ */

@media (min-width: 64rem) {

    .site-footer__logo img {
        width: 13rem;
    }

    .site-footer__estimate:hover span,
    .site-footer__estimate:focus-visible span {
        transform: translateX(0.35rem);
    }

}


/* =========================================
   FOOTER - COLUMN HEADINGS
========================================= */

/* Mobile - 0rem+ */

.site-footer__column h2 {
    margin: 0 0 1.25rem;

    color: var(--white);

    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.site-footer__column h2::after {
    content: "";

    display: block;

    width: 2rem;
    height: 0.15rem;

    margin: 0.65rem auto 0;

    background: var(--yellow);
}


/* Tablet - 48rem+ */

@media (min-width: 48rem) {

    .site-footer__column h2 {
        font-size: 0.78rem;

        text-align: left;
    }

    .site-footer__column h2::after {
        margin-right: 0;
        margin-left: 0;
    }

}


/* =========================================
   FOOTER - NAVIGATION LISTS
========================================= */

/* Mobile - 0rem+ */

.site-footer__column ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

.site-footer__column li {
    margin: 0;
}

.site-footer__column li a {
    color: rgba(255, 255, 255, 0.58);

    font-size: 0.88rem;

    transition:
        color 200ms ease,
        transform 200ms ease;
}


/* Tablet - 48rem+ */

@media (min-width: 48rem) {

    .site-footer__column ul {
        align-items: flex-start;
    }

}


/* Desktop - 64rem+ */

@media (min-width: 64rem) {

    .site-footer__column li a {
        display: inline-block;
    }

    .site-footer__column li a:hover,
    .site-footer__column li a:focus-visible {
        color: var(--yellow);

        transform: translateX(0.2rem);
    }

}


/* =========================================
   FOOTER - CONTACT
========================================= */

/* Mobile - 0rem+ */

.site-footer__contact h2 {
    width: 100%;

    text-align: center;
}

.site-footer__contact h2::after {
    margin-right: auto;
    margin-left: auto;
}

.site-footer__contact > a,
.site-footer__contact > p {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;

    margin: 0 0 1rem;

    color: rgba(255, 255, 255, 0.7);

    font-size: 0.88rem;
    line-height: 1.5;
    text-align: center;
}

.site-footer__contact > a span,
.site-footer__contact > p span {
    margin-bottom: 0.2rem;

    color: rgba(255, 255, 255, 0.35);

    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* Tablet - 48rem+ */

@media (min-width: 48rem) {

    .site-footer__contact h2 {
        width: auto;

        text-align: left;
    }

    .site-footer__contact h2::after {
        margin-right: 0;
        margin-left: 0;
    }

    .site-footer__contact > a,
    .site-footer__contact > p {
        align-items: flex-start;

        width: auto;

        font-size: 0.9rem;
        text-align: left;
    }

}


/* Desktop - 64rem+ */

@media (min-width: 64rem) {

    .site-footer__contact > a:hover,
    .site-footer__contact > a:focus-visible {
        color: var(--yellow);
    }

}


/* =========================================
   FOOTER - BOTTOM
========================================= */

/* Mobile - 0rem+ */

.site-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;

    margin-top: 4rem;
    padding-top: 1.75rem;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    text-align: center;
}

.site-footer__bottom > p {
    margin: 0;

    color: rgba(255, 255, 255, 0.38);

    font-size: 0.72rem;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

.site-footer__legal a {
    color: rgba(255, 255, 255, 0.38);

    font-size: 0.72rem;

    transition: color 200ms ease;
}


/* Tablet - 48rem+ */

@media (min-width: 48rem) {

    .site-footer__bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;

        margin-top: 5rem;

        text-align: left;
    }

    .site-footer__legal {
        justify-content: flex-start;
    }

}


/* Desktop - 64rem+ */

@media (min-width: 64rem) {

    .site-footer__legal a:hover,
    .site-footer__legal a:focus-visible {
        color: var(--yellow);
    }

}


/* =========================================
   FOOTER - AWS CREDIT
========================================= */

/* Mobile - 0rem+ */

.footer__credit {
    margin: 0;

    color: rgba(255, 255, 255, 0.5);

    font-size: 0.72rem;
    line-height: 1.5;
    text-align: center;
}

.footer__credit a {
    position: relative;

    color: rgba(255, 255, 255, 0.72);

    font-weight: 600;

    transition: color 200ms ease;
}

.footer__credit a::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: -0.2rem;
    left: 0;

    height: 1px;

    background: var(--yellow);

    transform: scaleX(0);
    transform-origin: right;

    transition: transform 250ms ease;
}

.footer__credit a:hover,
.footer__credit a:focus-visible {
    color: var(--white);
}

.footer__credit a:hover::after,
.footer__credit a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* Tablet - 48rem+ */

@media (min-width: 48rem) {

    .footer__credit {
        text-align: right;
    }

}


/* =========================================
   FOOTER - RIDGELINE
========================================= */

/* Mobile - 0rem+ */

.site-footer::before {
    content: "";

    position: absolute;
    z-index: 1;

    top: -2.5rem;
    left: 0;

    width: 100%;
    height: 2.6rem;

    background: #050605;

    clip-path: polygon(
        0 100%,
        0 78%,
        8% 70%,
        15% 38%,
        22% 68%,
        31% 58%,
        39% 18%,
        47% 62%,
        55% 45%,
        64% 72%,
        72% 32%,
        80% 63%,
        89% 48%,
        100% 72%,
        100% 100%
    );

    pointer-events: none;
}


/* Tablet - 48rem+ */

@media (min-width: 48rem) {

    .site-footer::before {
        top: -3rem;

        height: 3.1rem;

        clip-path: polygon(
            0 100%,
            0 82%,
            7% 68%,
            13% 42%,
            19% 67%,
            27% 54%,
            34% 24%,
            41% 63%,
            49% 48%,
            57% 70%,
            65% 37%,
            73% 64%,
            81% 46%,
            89% 69%,
            95% 55%,
            100% 70%,
            100% 100%
        );
    }

}


/* Desktop - 64rem+ */

@media (min-width: 64rem) {

    .site-footer::before {
        top: -3.5rem;

        height: 3.6rem;
    }

}