/* =========================================================
   CONTACT PAGE
========================================================= */

.contact-page {
    background: var(--bg);
    color: var(--white);
}


/* =========================================================
   HERO
========================================================= */

.contact-page__hero {
    display: flex;
    min-height: 72svh;
    align-items: flex-end;

    padding:
        clamp(10rem, 18vw, 16rem)
        0
        clamp(5rem, 8vw, 8rem);

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-page__hero-inner {
    width: 100%;
}

.contact-page__hero h1 {
    max-width: 11ch;

    margin:
        clamp(1.5rem, 3vw, 2.5rem)
        0;

    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 400;
    line-height: 0.94;
    letter-spacing: -0.055em;
}

.contact-page__lead {
    max-width: 42rem;
    margin: 0;

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

    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 2;
}


/* =========================================================
   CONTENT
========================================================= */

.contact-page__content {
    padding: clamp(6rem, 10vw, 10rem) 0;
}

.contact-page__grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.85fr)
        minmax(0, 1.15fr);

    gap: clamp(4rem, 9vw, 9rem);

    align-items: start;
}


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

.contact-page__intro {
    position: sticky;
    top: 9rem;
}

.contact-page__intro .section-label {
    margin-bottom: 0;
}

.contact-page__category {
    margin: 2.5rem 0 0;

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

    font-size: 0.72rem;
    line-height: 1;
    letter-spacing: 0.22em;
}

.contact-page__intro h2 {
    margin: 1.5rem 0 2rem;

    font-size: clamp(2.2rem, 4.5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.contact-page__intro > p:last-child {
    max-width: 32rem;
    margin: 0;

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

    line-height: 2;
}


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

.contact-page__form {
    min-width: 0;
}

.contact-page__article,
.contact-page__article .entry-content {
    margin: 0;
}

.contact-page__article .entry-content > :first-child {
    margin-top: 0;
}

.contact-page__article .entry-content > :last-child {
    margin-bottom: 0;
}


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

.contact-page__form label {
    display: block;

    margin-bottom: 0.75rem;

    font-size: 0.9rem;
    letter-spacing: 0.08em;
}


/* =========================================================
   INPUT / TEXTAREA / SELECT
========================================================= */

.contact-page__form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.contact-page__form textarea,
.contact-page__form select {
    width: 100%;

    padding: 1rem 0;

    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;

    background-color: transparent;

    color: #fff;

    font: inherit;

    outline: none;

    transition:
        border-color 0.3s ease,
        background-color 0.3s ease;
}

.contact-page__form textarea {
    min-height: 12rem;
    resize: vertical;
}

.contact-page__form input:focus,
.contact-page__form textarea:focus,
.contact-page__form select:focus {
    border-color: rgba(255, 255, 255, 0.9);
}


/* =========================================================
   SELECT
========================================================= */

.contact-page__form select {
    padding-right: 3rem;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            #fff 50%
        ),
        linear-gradient(
            135deg,
            #fff 50%,
            transparent 50%
        );

    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;

    background-size:
        6px 6px,
        6px 6px;

    background-repeat: no-repeat;
}

.contact-page__form select option {
    background: #080a18;
    color: #fff;
}


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

.contact-page__form input[type="submit"],
.contact-page__form button[type="submit"] {
    display: inline-flex;

    min-width: 13rem;
    min-height: 3.75rem;

    align-items: center;
    justify-content: space-between;

    margin-top: 1.5rem;

    padding: 0.9rem 1.5rem;

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;

    background: transparent;

    color: #fff;

    font: inherit;
    letter-spacing: 0.12em;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.contact-page__form input[type="submit"]:hover,
.contact-page__form button[type="submit"]:hover {
    border-color: #fff;

    background: #fff;

    color: #080a18;

    transform: translateY(-2px);
}


/* =========================================================
   HIDE DUPLICATE WORDPRESS CONTENT
========================================================= */

.contact-page__form .wp-block-heading,
.contact-page__form .entry-content > h1,
.contact-page__form .entry-content > h2,
.contact-page__form .entry-content > p:first-child {
    display: none;
}


/* =========================================================
   PRIVACY POLICY
========================================================= */

.contact-page__privacy-link {
    display: inline-flex;

    align-items: center;

    gap: 0.6rem;

    margin-top: 0.75rem;

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

    font-size: 0.78rem;
    line-height: 1.5;
    letter-spacing: 0.06em;

    text-decoration: none;

    transition:
        color 0.3s ease;
}

.contact-page__privacy-link span {
    transition:
        transform 0.3s ease;
}

.contact-page__privacy-link:hover {
    color: #fff;
}

.contact-page__privacy-link:hover span {
    transform: translate(3px, -3px);
}


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

@media (max-width: 767px) {

    .contact-page__hero {
        min-height: 62svh;

        padding:
            9rem
            0
            4.5rem;
    }

    .contact-page__hero h1 {
        font-size: clamp(3.5rem, 17vw, 6rem);
    }

    .contact-page__lead {
        font-size: 0.95rem;
        line-height: 1.9;
    }


    /* CONTENT */

    .contact-page__content {
        padding: 5rem 0 6rem;
    }

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

        gap: 4rem;
    }


    /* INTRO */

    .contact-page__intro {
        position: static;
    }

    .contact-page__category {
        margin-top: 2rem;
    }

    .contact-page__intro h2 {
        margin:
            1.25rem
            0
            1.5rem;
    }


    /* FORM */

    .contact-page__form textarea {
        min-height: 10rem;
    }


    /* SUBMIT */

    .contact-page__form input[type="submit"],
    .contact-page__form button[type="submit"] {
        width: 100%;

        min-width: 0;

        justify-content: center;
    }


    /* PRIVACY */

    .contact-page__privacy-link {
        font-size: 0.75rem;
    }
}


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

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

    .contact-page__form input,
    .contact-page__form textarea,
    .contact-page__form select,
    .contact-page__form button,
    .contact-page__privacy-link,
    .contact-page__privacy-link span {
        transition: none;
    }

    .contact-page__form input[type="submit"]:hover,
    .contact-page__form button[type="submit"]:hover {
        transform: none;
    }
}
