/* ==================================================
   TRACEHAUS V3
   CONTACT
================================================== */


/* ==================================================
   CONTACT SECTION
================================================== */

.contact {

    position: relative;

    width: 100%;

    background: var(--black);

    color: var(--white);

}


/* ==================================================
   INNER
================================================== */

.contact-inner {

    position: relative;

    width: 100%;

    max-width: 1920px;

    min-height: 100vh;

    margin: 0 auto;

    padding:
        45px
        var(--page-padding)
        0;

    display: flex;

    flex-direction: column;

}


/* ==================================================
   LABEL
================================================== */

.contact-label {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

}


/* ==================================================
   LINE
================================================== */

.contact-label .section-line {

    width: 30px;

    height: 2px;

    margin-bottom: 12px;

    background: var(--accent);

}


/* ==================================================
   EYEBROW
================================================== */

.contact-label .eyebrow {

    display: block;

    color: var(--white);

}


/* ==================================================
   MAIN
================================================== */

.contact-main {

    flex: 1;

    display: grid;

    grid-template-columns:
        minmax(0, 1.6fr)
        minmax(250px, 0.8fr)
        220px;

    column-gap: 60px;

    align-items: center;

    padding:
        35px
        0
        60px;

}


/* ==================================================
   TITLE
================================================== */

.contact-title {

    align-self: center;

}


.contact-title h2 {

    margin: 0;

    font-size:
        clamp(
            65px,
            6.1vw,
            125px
        );

    line-height: 1;

    letter-spacing: -0.065em;

    font-weight: 400;

}


.contact-title h2 span {

    color: var(--accent);

}


/* ==================================================
   ACTION AREA
================================================== */

.contact-action {

    align-self: center;

}


.contact-action p {

    max-width: 280px;

    margin: 0;

    font-size: 14px;

    line-height: 1.45;

}


/* ==================================================
   CONTACT LINK
================================================== */

.contact-link {

    display: inline-flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 7px;

    margin-top: 65px;

    color: var(--white);

    text-decoration: none;

    font-size: 10px;

    font-weight: 600;

}


/* ==================================================
   PLUS
================================================== */

.contact-link-plus {

    color: var(--accent);

    font-size: 32px;

    line-height: 0.7;

    font-weight: 300;

    transition:
        transform 0.3s ease;

}


.contact-link:hover
.contact-link-plus {

    transform:
        rotate(90deg);

}


/* ==================================================
   H MARK
================================================== */

.contact-mark {

    width: 100%;

    aspect-ratio: 1 / 1;

    max-width: 215px;

    justify-self: end;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--accent);

}


.contact-mark span {

    color: var(--white);

    font-size:
        clamp(
            100px,
            8vw,
            170px
        );

    line-height: 1;

    font-weight: 600;

    letter-spacing: -0.08em;

}

.contact-mark a {
    display: inline-block;
    width: max-content;
    height: auto;
}

.contact-mark img {
    display: block;
    width: 100%;
    height: auto;
}


/* ==================================================
   FOOTER
================================================== */

.contact-footer {

    min-height: 90px;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );

    display: grid;

    grid-template-columns:
        180px
        1fr
        auto
        auto
        auto
        35px;

    align-items: center;

    column-gap: 55px;

}


/* ==================================================
   FOOTER BRAND
================================================== */

.footer-brand {

    font-size: 14px;

    letter-spacing: 0.08em;

    font-weight: 400;

}


.footer-brand span {

    font-weight: 700;

}


/* ==================================================
   FOOTER TAGLINE
================================================== */

.footer-tagline {

    font-size: 10px;

    line-height: 1.25;

    letter-spacing: 0.02em;

}


/* ==================================================
   FOOTER LINKS
================================================== */

.footer-email,
.footer-instagram,
.footer-copy {

    color: var(--white);

    font-size: 12px;

    text-decoration: none;

    white-space: nowrap;

}


.footer-instagram {

    transition:
        opacity 0.25s ease;

}


.footer-instagram:hover {

    opacity: 0.6;

}


/* ==================================================
   BACK TO TOP
================================================== */

.footer-top {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    color: var(--white);

    font-size: 30px;

    font-weight: 200;

    text-decoration: none;

    transition:
        transform 0.3s ease;

}


.footer-top:hover {

    transform:
        translateY(-5px);

}


/* =========================================================
   FOOTER CONTACT TOGGLE
   ========================================================= */

.footer-contact {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   TOGGLE
   ========================================================= */

.footer-contact-toggle {
    position: relative;
    z-index: 20;

    width: 32px;
    height: 32px;

    padding: 0;
    margin: 0;

    border: 0;
    background: transparent;

    color: #f5f5f5;

    font-family: inherit;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.25s ease,
        transform 0.3s ease;
}

.footer-contact-toggle:hover {
    color: #ff4567;
}

.footer-contact-toggle.is-open {
    color: #ff4567;
    transform: rotate(45deg);
}


/* =========================================================
   MODAL
   ========================================================= */

.footer-contact-modal {
    position: absolute;

    right: 0;
    bottom: calc(100% + 14px);

    width: 270px;

    padding: 24px;

    background: #0b0c11;

    border: 1px solid rgba(255, 255, 255, 0.16);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 10;
}


/* =========================================================
   MODAL OPEN
   ========================================================= */

.footer-contact-modal.is-open {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* =========================================================
   LABEL
   ========================================================= */

.footer-contact-label {
    position: relative;

    margin-bottom: 24px;

    padding-top: 10px;

    font-size: 10px;
    font-weight: 600;
    line-height: 1;

    color: #f5f5f5;
    text-transform: uppercase;
}

.footer-contact-label::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 24px;
    height: 2px;

    background: #ff4567;
}


/* =========================================================
   CONTACT INFO
   ========================================================= */

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* =========================================================
   CONTACT ITEM
   ========================================================= */

.footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-contact-item span {
    font-size: 8px;
    font-weight: 600;
    line-height: 1;

    color: rgba(255, 255, 255, 0.45);

    text-transform: uppercase;
}

.footer-contact-item p,
.footer-contact-item a {
    margin: 0;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;

    color: #f5f5f5;

    text-decoration: none;
}

.footer-contact-item a {
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: #ff4567;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .footer-contact-modal {
        right: -8px;
        bottom: calc(100% + 12px);

        width: 240px;

        padding: 20px;
    }

    .footer-contact-info {
        gap: 18px;
    }

}


/* ==================================================
   REVEAL ANIMATION
================================================== */

.contact-label,
.contact-title,
.contact-action,
.contact-mark,
.contact-footer {

    opacity: 0;

    transform:
        translateY(25px);

    transition:
        opacity 0.8s ease,
        transform 0.9s
        cubic-bezier(
            .22,
            .61,
            .36,
            1
        );

}


.contact.is-visible
.contact-label {

    opacity: 1;

    transform:
        translateY(0);

}


.contact.is-visible
.contact-title {

    opacity: 1;

    transform:
        translateY(0);

    transition-delay:
        0.08s;

}


.contact.is-visible
.contact-action {

    opacity: 1;

    transform:
        translateY(0);

    transition-delay:
        0.16s;

}


.contact.is-visible
.contact-mark {

    opacity: 1;

    transform:
        translateY(0);

    transition-delay:
        0.24s;

}


.contact.is-visible
.contact-footer {

    opacity: 1;

    transform:
        translateY(0);

    transition-delay:
        0.32s;

}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 1100px) {

    .contact-main {

        grid-template-columns:
            minmax(0, 1.5fr)
            minmax(220px, 0.8fr)
            170px;

        column-gap: 35px;

    }


    .contact-title h2 {

        font-size:
            clamp(
                55px,
                7vw,
                90px
            );

    }


    .contact-footer {

        column-gap: 30px;

    }

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 700px) {

    .contact-inner {

        min-height: auto;

        padding:
            45px
            var(--page-padding)
            0;

    }


    /* ----------------------------------------------
       MAIN
    ---------------------------------------------- */

    .contact-main {

        display: grid;

        grid-template-columns:
            1fr;

        row-gap: 50px;

        padding:
            55px
            0
            60px;

        align-items: start;

    }


    /* ----------------------------------------------
       TITLE
    ---------------------------------------------- */

    .contact-title h2 {

        font-size:
            clamp(
                55px,
                15vw,
                90px
            );

        line-height: 0.88;

    }


    /* ----------------------------------------------
       ACTION
    ---------------------------------------------- */

    .contact-action {

        padding-left: 0;

    }


    .contact-action p {

        max-width: 280px;

        font-size: 11px;

    }


    .contact-link {

        margin-top: 35px;

    }


    /* ----------------------------------------------
       H
    ---------------------------------------------- */

    .contact-mark {

        width: 130px;

        max-width: none;

        justify-self: start;

    }


    .contact-mark span {

        font-size: 100px;

    }


    /* ----------------------------------------------
       FOOTER
    ---------------------------------------------- */

    .contact-footer {

        min-height: auto;

        padding:
            25px
            0
            30px;

        display: grid;

        grid-template-columns:
            1fr
            1fr;

        row-gap: 25px;

        column-gap: 20px;

    }


    .footer-brand {

        grid-column: 1;

        grid-row: 1;

    }


    .footer-tagline {

        grid-column: 2;

        grid-row: 1;

        justify-self: end;

        text-align: right;

    }


    .footer-email {

        grid-column: 1;

        grid-row: 2;

    }


    .footer-instagram {

        grid-column: 2;

        grid-row: 2;

        justify-self: end;

    }


    .footer-copy {

        grid-column: 1;

        grid-row: 3;

    }


    .footer-top {

        grid-column: 2;

        grid-row: 3;

    }

}


/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width: 400px) {

    .contact-inner {

        padding:
            40px
            var(--page-padding)
            0;

    }


    .contact-main {

        padding-top: 45px;

    }


    .contact-title h2 {

        font-size: 15vw;

    }


    .contact-mark {

        width: 110px;

    }


    .contact-mark span {

        font-size: 85px;

    }

}