/* -----------------------
SPLASH
----------------------- */

#splash .contact-button {
    margin-left: 2rem;
    margin-right: 2rem;
    width: calc(100% - 4rem) !important;
}




/* -----------------------
SERVICES LAYOUT
----------------------- */

#services {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    box-sizing: border-box;
    margin-bottom: 8rem;
}

.inset-shadow {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: inset 0px 0px 30px 30px rgba(13, 20, 30, 0.304);
}

#services-wrapper {
    grid-column: 2 /  -2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 2rem;
}

.services-card img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    margin-top: 3em;
}

.services-card {
    position: relative;
    overflow: hidden;
}

.services-card .title-container {
    width: 100%;
    padding: 1em;
    padding-left: 1em;
    padding-right: 1em;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    interpolate-size: allow-keywords;

    background-color: var(--bright-pink);

    transition: height 0.2s ease-in, width 0.2s ease-out, bottom 0.2s;
    pointer-events: none;
}

.card-title {
    font-size: 1em;
    line-height: 1em;
    user-select: none;
    color: var(--white);
}

.services-card:hover .title-container {
    height: 100%;
    width: 100%;
}

.services-card:hover img {
    transition: border-radius 0.3s 0.05s ease-in;
}

@media (max-width: 1000px) {
    #services-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    #services-wrapper {
        width: calc(100% - 1rem);
        justify-self: center;
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5rem;
    }
}





/* -----------------------
CONTACT
----------------------- */

#contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-direction: row;
    margin-top: 0;
    margin-bottom: 0;
    background-color: var(--bright-pink);
}

@media (max-width: 900px) {
    #contact {
        display: flex;
        flex-direction: column-reverse;
        height: fit-content;
        max-height: fit-content;
    }

    #contact article {
        padding-left: calc(100vw/11);
        padding-right: calc(100vw/11);
        max-width: 100% !important;
        box-sizing: border-box;
        width: 100%;
    }

    #contact-large-img {
        height: auto !important;
        width: 100%;
        object-fit: cover;
        border-radius: 2em 2em 2em 2em;
        margin-bottom: -2em;
        z-index: 10;
    }
}

#contact-large-img {
    aspect-ratio: 3 / 4;
    width: 100%;
    object-fit: cover;
    min-height: 100%;
    max-height: 100%;
    height: 0;
}

#contact article {
    padding-left: calc(100vw/11);
    padding-right: calc(100vw/11);
    max-height: 100%;
    padding-top: 8rem;
    padding-bottom: 8rem;
    display: flex;
    flex-direction: column;
    color: var(--white);
}

#contact h1 {
    text-align: left;
    font-size: 4em;
}

#contact h2 {
    line-height: 1em;
    margin-top: 4rem;
}

#contact p {
    /* color: var(--dark-grey); */
}

#contact a {
    user-select: default;
}

#contact button {
    width: 100%;
    text-align: center;
    font-weight: bold;
    box-sizing: border-box;
}

.contact-link {
    display: grid;
    margin-top: 1em;
    grid-template-columns: auto auto;
    gap: 1em;
    width: fit-content;
}

.contact-link span {
    display: block;
    overflow-wrap: break-word;
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 430px) {
    .contact-link {
        grid-template-columns: auto;
        max-width: 100%;
    }
}