/* =========================================
   DEVORBIT — CONTACT SECTION
========================================= */

.contact-section {
    position: relative;

    padding: 150px 0 120px;

    background: var(--bg);

    color: var(--text);

    border-top: 1px solid var(--border);
}


/* =========================================
   CONTAINER
========================================= */

.contact-container {
    width: min(
        1400px,
        calc(100% - 120px)
    );

    margin: 0 auto;
}


/* =========================================
   SECTION HEADER
========================================= */

.contact-header {
    margin-bottom: 75px;
}


.contact-section-label {
    display: flex;

    align-items: center;

    gap: 14px;

    color: var(--text-secondary);

    font-size: 13px;

    font-weight: 500;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


.contact-section-line {
    display: block;

    width: 50px;

    height: 1px;

    background: var(--text-secondary);
}


/* =========================================
   MAIN GRID
========================================= */

.contact-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.78fr)
        minmax(0, 1.22fr);

    column-gap: 80px;

    align-items: start;
}


/* =========================================
   INTRO
========================================= */

.contact-intro {
    padding-right: 30px;
}


/* =========================================
   CONTACT TITLE
========================================= */

.contact-title {
    margin: 0;

    color: var(--text);

    font-size:
        clamp(
            4rem,
            6vw,
            6.4rem
        );

    font-weight: 500;

    line-height: 0.92;

    letter-spacing: -0.065em;
}


.contact-title span {
    display: block;
}


/* =========================================
   DESCRIPTION
========================================= */

.contact-description {
    max-width: 560px;

    margin-top: 42px;

    color: var(--text-muted);

    font-size: 19px;

    line-height: 1.8;
}


/* =========================================
   AVAILABILITY
========================================= */

.contact-availability {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-top: 32px;

    color: var(--text-muted);

    font-size: 16px;
}


.contact-status-dot {
    display: block;

    width: 10px;

    height: 10px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #00a94f;

    box-shadow:
        0 0 0 4px
        rgba(0, 169, 79, 0.08);
}


/* =========================================
   EMAIL
========================================= */

.contact-email-block {
    margin-top: 52px;

    padding-top: 26px;

    border-top:
        1px solid
        var(--border);
}


.contact-small-label {
    display: block;

    margin-bottom: 16px;

    color: var(--text-muted);

    font-size: 12px;

    line-height: 1;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}


.contact-email {
    display: inline-flex;

    align-items: center;

    gap: 14px;

    color: var(--text);

    font-size: 20px;

    line-height: 1.4;

    text-decoration: none;

    transition:
        opacity 300ms ease,
        transform 300ms var(--ease);
}


.contact-email:hover {
    opacity: 0.65;

    transform:
        translateX(3px);
}


.contact-email span {
    font-size: 18px;
}


/* =========================================
   FORM WRAPPER
========================================= */

.contact-form-wrap {
    width: 100%;
}


.contact-form {
    width: 100%;
}


/* =========================================
   FORM FIELD
========================================= */

.contact-field {
    position: relative;

    width: 100%;

    padding:
        30px 0
        28px;

    border-top:
        1px solid
        var(--border);
}


.contact-field:last-of-type {
    border-bottom:
        1px solid
        var(--border);
}


/* =========================================
   FORM LABEL
========================================= */

.contact-field label {
    display: block;

    margin-bottom: 18px;

    color: var(--text-muted);

    font-size: 12px;

    line-height: 1;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}


/* =========================================
   INPUT + TEXTAREA
========================================= */

.contact-field input,
.contact-field textarea {
    display: block;

    width: 100%;

    box-sizing: border-box;

    margin: 0;

    padding: 0;

    border: 0;

    outline: none;

    border-radius: 0;

    background: transparent;

    color: var(--text);

    font-family: inherit;

    font-size: 20px;

    font-weight: 400;

    line-height: 1.5;

    letter-spacing: -0.015em;

    appearance: none;
}


/* =========================================
   TEXTAREA
========================================= */

.contact-field textarea {
    min-height: 150px;

    resize: vertical;
}


/* =========================================
   PLACEHOLDER
========================================= */

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: var(--text-muted);

    opacity: 0.48;

    transition:
        opacity 250ms ease;
}


.contact-field input:focus::placeholder,
.contact-field textarea:focus::placeholder {
    opacity: 0.22;
}


/* =========================================
   FOCUS
========================================= */

.contact-field input:focus,
.contact-field textarea:focus {
    color: var(--text);
}


/* =========================================
   SUBMIT ROW
========================================= */

.contact-submit-row {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    padding-top: 24px;
}


/* =========================================
   SUBMIT BUTTON
========================================= */

.contact-submit {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 28px;

    min-width: 210px;

    min-height: 56px;

    padding:
        0 28px;

    border: 0;

    border-radius: 0;

    outline: none;

    background: var(--text);

    color: var(--bg);

    cursor: pointer;

    font-family: inherit;

    font-size: 16px;

    font-weight: 500;

    line-height: 1;

    transition:
        transform 350ms var(--ease),
        opacity 300ms ease;
}


.contact-submit:hover {
    opacity: 0.88;

    transform:
        translateY(-3px);
}


.contact-submit:active {
    transform:
        translateY(0);
}


/* =========================================
   SUBMIT ARROW
========================================= */

.contact-submit-arrow {
    font-size: 20px;

    line-height: 1;

    transition:
        transform 300ms var(--ease);
}


.contact-submit:hover
.contact-submit-arrow {
    transform:
        translate(3px, -3px);
}


/* =========================================
   DARK THEME
========================================= */

[data-theme="dark"] .contact-section,
.dark-theme .contact-section {
    background: var(--bg);

    color: var(--text);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .contact-section {
        padding:
            120px 0
            100px;
    }


    .contact-container {
        width:
            calc(100% - 80px);
    }


    .contact-grid {
        grid-template-columns:
            minmax(0, 0.8fr)
            minmax(0, 1.2fr);

        column-gap: 55px;
    }


    .contact-title {
        font-size:
            clamp(
                3.5rem,
                6vw,
                5.5rem
            );
    }


    .contact-description {
        font-size: 17px;
    }

}


/* =========================================
   TABLET / SMALL LAPTOP
========================================= */

@media (max-width: 900px) {

    .contact-section {
        padding:
            100px 0
            90px;
    }


    .contact-container {
        width:
            calc(100% - 60px);
    }


    .contact-grid {
        grid-template-columns: 1fr;

        gap: 80px;
    }


    .contact-intro {
        padding-right: 0;
    }


    .contact-title {
        max-width: 700px;

        font-size:
            clamp(
                4rem,
                9vw,
                6rem
            );
    }


    .contact-description {
        max-width: 620px;
    }


    .contact-form-wrap {
        width: 100%;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .contact-section {
        padding:
            85px 0
            70px;
    }


    .contact-container {
        width:
            calc(100% - 40px);
    }


    .contact-header {
        margin-bottom: 50px;
    }


    .contact-section-label {
        gap: 10px;

        font-size: 10px;

        letter-spacing:
            0.14em;
    }


    .contact-section-line {
        width: 32px;
    }


    .contact-grid {
        gap: 65px;
    }


    .contact-title {
        max-width: 100%;

        font-size:
            clamp(
                3.2rem,
                15vw,
                5rem
            );

        line-height: 0.94;

        letter-spacing:
            -0.06em;
    }


    .contact-description {
        margin-top: 30px;

        font-size: 16px;

        line-height: 1.7;
    }


    .contact-availability {
        margin-top: 26px;

        font-size: 14px;
    }


    .contact-status-dot {
        width: 8px;

        height: 8px;

        flex-basis: 8px;
    }


    .contact-email-block {
        margin-top: 42px;

        padding-top: 22px;
    }


    .contact-small-label {
        margin-bottom: 14px;

        font-size: 10px;
    }


    .contact-email {
        max-width: 100%;

        font-size: 15px;

        word-break: break-word;
    }


    .contact-email span {
        font-size: 16px;
    }


    /* FORM */

    .contact-field {
        padding:
            24px 0
            22px;
    }


    .contact-field label {
        margin-bottom: 14px;

        font-size: 10px;

        letter-spacing:
            0.16em;
    }


    .contact-field input,
    .contact-field textarea {
        font-size: 16px;

        line-height: 1.5;
    }


    .contact-field textarea {
        min-height: 130px;
    }


    .contact-submit-row {
        padding-top: 18px;
    }


    .contact-submit {
        width: 100%;

        min-height: 54px;

        font-size: 15px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .contact-section {
        padding:
            70px 0
            60px;
    }


    .contact-container {
        width:
            calc(100% - 32px);
    }


    .contact-title {
        font-size:
            clamp(
                2.8rem,
                15vw,
                4rem
            );
    }


    .contact-description {
        font-size: 15px;
    }


    .contact-email {
        font-size: 13px;
    }


    /* =====================================
       FORM FIELD
    ===================================== */

    .contact-field {
        padding:
            22px 0
            20px;
    }


    .contact-field input,
    .contact-field textarea {
        width: 100%;

        font-size: 15px;

        line-height: 1.5;
    }


    /* =====================================
       MESSAGE
    ===================================== */

    .contact-field textarea {
        height: 100px;

        min-height: 100px;

        resize: none;
    }


    /* =====================================
       SEND BUTTON
    ===================================== */

    .contact-submit-row {
        padding-top: 18px;
    }


    .contact-submit {
        width: 100%;

        min-height: 52px;

        padding:
            0 20px;
    }

}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .contact-email,
    .contact-submit,
    .contact-submit-arrow {
        transition: none;
    }

}