/* ==========================================================
   STUDIO WEBER — SITE EXPERIENCE
   Contact + Global Footer
   ========================================================== */



/* ==========================================================
   GLOBAL STUDIO WEBER HEADER WORDMARK
   One consistent wordmark across Weber Intelligence,
   Stories, Contact, and future public pages.
   ========================================================== */

header .wp-block-site-title {
    margin: 0 !important;
    margin-left: -65px !important;
    line-height: 0 !important;
}

header .wp-block-site-title > a {
    display: block;

    width: 246px;

    color: inherit !important;

    font-size: 0 !important;
    line-height: 0 !important;

    text-decoration: none !important;
}

header .swi-site-wordmark {
    display: block;

    width: 246px;
    height: auto;

    margin: 0;
    padding: 0;
}

header .wp-block-site-title > a:focus-visible {
    outline: 2px solid #f15a24;
    outline-offset: 6px;
}

@media (max-width: 700px) {

    header .wp-block-site-title {
        margin-left: 0 !important;
    }

    header .wp-block-site-title > a,
    header .swi-site-wordmark {
        width: 190px;
    }
}

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

.swi-contact {
    box-sizing: border-box;

    width: calc(100vw - 96px);
    max-width: 1280px;

    margin:
        0
        auto;

    padding:
        18px
        0
        48px;

    color: #241f1d;
}


/* ==========================================================
   REMOVE THE THEME'S REDUNDANT PAGE TITLE
   Keep only the small Studio Weber "contact" kicker.
   ========================================================== */

body:has(.swi-contact) .wp-block-post-title,
body:has(.swi-contact) h1.wp-block-post-title,
body:has(.swi-contact) .entry-title,
body:has(.swi-contact) h1.entry-title {
    display: none !important;
}


/* Pull the WordPress content wrapper upward on Contact. */

body:has(.swi-contact) .wp-site-blocks > main,
body:has(.swi-contact) main,
body:has(.swi-contact) .entry-content,
body:has(.swi-contact) .wp-block-post-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


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

.swi-contact-intro {
    max-width: 920px;

    margin:
        0
        0
        24px;

    padding: 0;
}

.swi-contact-kicker {
    margin:
        0
        0
        9px;

    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.04em;

    color: #95897e;

    text-align: left;
}

.swi-contact-intro h1 {
    max-width: 820px;

    margin:
        0
        0
        14px;

    font-size:
        clamp(
            54px,
            5vw,
            76px
        );

    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.055em;

    color: #241f1d;

    text-align: left;
}

.swi-contact-lede {
    max-width: 680px;

    margin: 0;

    font-size: 19px;
    font-weight: 400;
    line-height: 1.28;
    letter-spacing: -0.025em;

    color: #95897e;

    text-align: left;
}


/* ==========================================================
   CONTACT GRID
   ========================================================== */

.swi-contact-grid {
    display: grid;

    grid-template-columns:
        minmax(
            300px,
            0.9fr
        )
        minmax(
            420px,
            1.1fr
        );

    gap:
        clamp(
            48px,
            6vw,
            84px
        );

    align-items: start;

    padding-top: 24px;

    border-top:
        1px solid
        rgba(
            70,
            55,
            48,
            0.16
        );
}


/* ==========================================================
   HUMAN SIDE
   ========================================================== */

.swi-contact-human {
    min-width: 0;
}


/* Five posture figures */

.swi-contact-postures {
    display: grid;

    grid-template-columns:
        0.72fr
        0.94fr
        0.92fr
        1.15fr
        1.42fr;

    align-items: end;

    gap: 16px;

    width: 100%;

    min-height: 92px;

    margin:
        0
        0
        17px;
}

.swi-contact-postures img {
    display: block;

    width: 100%;
    height: 84px;

    object-fit: contain;
    object-position: center bottom;

    opacity: 0.80;

    transition:
        opacity 180ms ease,
        transform 220ms ease;
}

.swi-contact-postures img:nth-child(2) {
    height: 74px;
}

.swi-contact-postures img:nth-child(3) {
    height: 65px;
}

.swi-contact-postures img:nth-child(4) {
    height: 67px;
}

.swi-contact-postures img:nth-child(5) {
    height: 42px;
}


/* Give the figures a little life */

.swi-contact-postures img:hover {
    opacity: 1;

    transform:
        translateY(
            -4px
        );
}


/* Human statement */

.swi-contact-human-copy {
    margin-top: 10px;
}

.swi-contact-human-copy p {
    margin: 0;
}

.swi-contact-human-copy p:first-child {
    margin-bottom: 4px;

    font-size: 24px;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.035em;

    color: #241f1d;
}

.swi-contact-human-copy p:last-child {
    font-size: 16px;
    line-height: 1.3;

    color: #95897e;
}


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

.swi-contact-form-wrap {
    min-width: 0;
}

.swi-contact-form-heading {
    margin:
        0
        0
        15px;

    font-size: 26px;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.035em;

    color: #241f1d;
}


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

.swi-contact-form {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap:
        10px
        16px;
}

.swi-contact-form label {
    display: block;

    margin: 0;
}

.swi-contact-form label > span {
    display: block;

    margin:
        0
        0
        4px;

    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.02em;

    color: #95897e;
}

.swi-contact-form input,
.swi-contact-form textarea {
    box-sizing: border-box;

    display: block;

    width: 100%;

    margin: 0;

    border:
        1px solid
        rgba(
            70,
            55,
            48,
            0.24
        );

    border-radius: 0;

    background: transparent;

    color: #241f1d;

    font-family: inherit;
    font-size: 15px;
    font-weight: 400;

    outline: none;

    transition:
        border-color 160ms ease,
        background-color 160ms ease;
}

.swi-contact-form input {
    min-height: 39px;

    padding:
        7px
        10px;
}

.swi-contact-form textarea {
    min-height: 76px;

    padding:
        9px
        10px;

    line-height: 1.35;

    resize: vertical;
}

.swi-contact-form input:focus,
.swi-contact-form textarea:focus {
    border-color: #f15a24;
}


/* Message field spans full width */

.swi-contact-form-message-field {
    grid-column:
        1 /
        -1;
}


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

.swi-contact-form button {
    grid-column:
        1 /
        -1;

    justify-self: start;

    width: fit-content;

    margin:
        2px
        0
        0;

    padding:
        11px
        20px;

    border:
        1px solid
        #f15a24;

    border-radius: 0;

    background: #f15a24;

    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.swi-contact-form button:hover {
    background: transparent;

    color: #f15a24;
}

.swi-contact-form button:active {
    transform:
        translateY(
            1px
        );
}


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

.swi-contact-message {
    margin:
        0
        0
        18px;

    padding:
        12px
        14px;

    border-left:
        3px solid
        #f15a24;

    font-size: 14px;
    line-height: 1.4;
}

.swi-contact-message-success {
    background:
        rgba(
            241,
            90,
            36,
            0.06
        );
}

.swi-contact-message-error {
    background:
        rgba(
            70,
            55,
            48,
            0.05
        );
}


/* ==========================================================
   GLOBAL STUDIO WEBER FOOTER
   ========================================================== */

.swi-site-footer {
    box-sizing: border-box;

    width: 100%;

    margin-top: 44px;

    padding:
        34px
        48px
        38px;

    border-top:
        1px solid
        rgba(
            70,
            55,
            48,
            0.12
        );

    background: #ffffff;

    color: #241f1d;
}

.swi-site-footer-inner {
    display: flex;

    width: 100%;
    max-width: 1360px;

    margin:
        0
        auto;

    align-items: flex-start;
    justify-content: space-between;

    gap: 60px;
}


/* Footer identity */

.swi-site-footer-brand {
    display: flex;
    flex-direction: column;

    align-items: flex-start;
}

.swi-site-footer-wordmark {
    display: block;

    width: 170px;

    line-height: 0;
}

.swi-site-footer-wordmark img {
    display: block;

    width: 100%;
    height: auto;
}

.swi-site-footer-line {
    margin:
        12px
        0
        0;

    font-size: 13px;
    line-height: 1.4;

    color: #95897e;
}


/* Footer navigation */

.swi-site-footer-nav {
    display: flex;

    align-items: center;

    gap: 28px;
}

.swi-site-footer-nav a {
    color: #241f1d;

    font-size: 14px;
    font-weight: 400;

    text-decoration: none;

    transition:
        color
        150ms
        ease;
}

.swi-site-footer-nav a:hover {
    color: #f15a24;
}


/* ==========================================================
   REMOVE OLD TWENTY TWENTY-FIVE FOOTER
   ========================================================== */

body > .wp-site-blocks > footer.wp-block-template-part,
.wp-site-blocks > footer.wp-block-template-part {
    display: none !important;
}


/* ==========================================================
   SHORT LAPTOP SCREENS
   ========================================================== */

@media (max-height: 850px) and (min-width: 901px) {

    .swi-contact {
        padding-top: 8px;
    }

    .swi-contact-intro {
        margin-bottom: 18px;
    }

    .swi-contact-kicker {
        margin-bottom: 7px;
    }

    .swi-contact-intro h1 {
        max-width: 760px;

        margin-bottom: 11px;

        font-size:
            clamp(
                50px,
                4.5vw,
                68px
            );
    }

    .swi-contact-lede {
        font-size: 18px;
    }

    .swi-contact-grid {
        padding-top: 19px;
    }

    .swi-contact-postures {
        min-height: 76px;

        margin-bottom: 13px;
    }

    .swi-contact-postures img {
        height: 72px;
    }

    .swi-contact-postures img:nth-child(2) {
        height: 64px;
    }

    .swi-contact-postures img:nth-child(3) {
        height: 56px;
    }

    .swi-contact-postures img:nth-child(4) {
        height: 58px;
    }

    .swi-contact-postures img:nth-child(5) {
        height: 36px;
    }

    .swi-contact-human-copy {
        margin-top: 7px;
    }

    .swi-contact-human-copy p:first-child {
        font-size: 22px;
    }

    .swi-contact-form-heading {
        margin-bottom: 12px;

        font-size: 23px;
    }

    .swi-contact-form {
        gap:
            8px
            14px;
    }

    .swi-contact-form input {
        min-height: 36px;
    }

    .swi-contact-form textarea {
        min-height: 66px;
    }
}


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

@media (max-width: 900px) {

    .swi-contact {
        width:
            calc(
                100vw -
                48px
            );

        padding:
            18px
            0
            52px;
    }

    .swi-contact-intro {
        max-width: 720px;

        margin-bottom: 28px;
    }

    .swi-contact-intro h1 {
        font-size:
            clamp(
                54px,
                10vw,
                78px
            );
    }

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

        gap: 42px;
    }

    .swi-contact-human,
    .swi-contact-form-wrap {
        max-width: 680px;
    }

    .swi-contact-form {
        grid-template-columns: 1fr;
    }

    .swi-contact-form-message-field,
    .swi-contact-form button {
        grid-column: auto;
    }

    .swi-site-footer {
        padding:
            34px
            28px
            40px;
    }

    .swi-site-footer-inner {
        flex-direction: column;

        gap: 26px;
    }
}


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

@media (max-width: 600px) {

    .swi-contact {
        width:
            calc(
                100vw -
                32px
            );

        padding:
            12px
            0
            44px;
    }

    .swi-contact-intro {
        margin-bottom: 24px;
    }

    .swi-contact-kicker {
        margin-bottom: 9px;
    }

    .swi-contact-intro h1 {
        margin-bottom: 14px;

        font-size:
            clamp(
                46px,
                14vw,
                64px
            );

        line-height: 0.94;
    }

    .swi-contact-lede {
        font-size: 17px;
    }

    .swi-contact-grid {
        gap: 34px;

        padding-top: 20px;
    }

    .swi-contact-postures {
        gap: 8px;

        min-height: 72px;
    }

    .swi-contact-postures img {
        height: 68px;
    }

    .swi-contact-postures img:nth-child(2) {
        height: 60px;
    }

    .swi-contact-postures img:nth-child(3) {
        height: 52px;
    }

    .swi-contact-postures img:nth-child(4) {
        height: 54px;
    }

    .swi-contact-postures img:nth-child(5) {
        height: 34px;
    }

    .swi-contact-human-copy p:first-child {
        font-size: 22px;
    }

    .swi-contact-form-heading {
        font-size: 24px;
    }

    .swi-contact-form textarea {
        min-height: 96px;
    }

    .swi-site-footer {
        margin-top: 36px;

        padding:
            30px
            20px
            34px;
    }

    .swi-site-footer-wordmark {
        width: 150px;
    }

    .swi-site-footer-nav {
        flex-wrap: wrap;

        gap:
            12px
            22px;
    }
}

/* ==========================================================
   CONTACT PAGE — ABSOLUTE HEADER ANCHOR
   Keep the Studio Weber wordmark fixed to the viewport
   instead of letting Twenty Twenty-Five's centered header
   container shift it as the browser resizes.
   ========================================================== */

@media (min-width: 901px) {

    /*
     * Make the Contact-page header a full-width positioning
     * context independent of the theme's centered layout.
     */
    body:has(.swi-contact)
    header.wp-block-template-part,
    body:has(.swi-contact)
    .wp-site-blocks > header {
        position:
            relative !important;

        width:
            100vw !important;

        max-width:
            none !important;

        min-height:
            74px !important;

        margin:
            0 !important;

        padding:
            0 !important;

        left:
            50% !important;

        right:
            auto !important;

        transform:
            translateX(
                -50%
            ) !important;

        box-sizing:
            border-box !important;
    }


    /*
     * Remove centered-container geometry from nested header
     * groups so they cannot influence the wordmark position.
     */
    body:has(.swi-contact)
    header.wp-block-template-part
    .wp-block-group,
    body:has(.swi-contact)
    .wp-site-blocks > header
    .wp-block-group {
        position:
            static !important;

        width:
            auto !important;

        max-width:
            none !important;

        margin:
            0 !important;

        padding:
            0 !important;

        transform:
            none !important;
    }


    /*
     * Override the older global -65px offset and pin the
     * Studio Weber wordmark directly to the viewport edge.
     */
    body:has(.swi-contact)
    header
    .wp-block-site-title,
    body:has(.swi-contact)
    header
    .site-title {
        position:
            absolute !important;

        top:
            19px !important;

        left:
            24px !important;

        right:
            auto !important;

        bottom:
            auto !important;

        width:
            auto !important;

        max-width:
            none !important;

        margin:
            0 !important;

        margin-left:
            0 !important;

        padding:
            0 !important;

        transform:
            none !important;

        z-index:
            5 !important;
    }


    /*
     * Pin the primary navigation to the opposite viewport edge.
     */
    body:has(.swi-contact)
    header.wp-block-template-part
    nav,
    body:has(.swi-contact)
    .wp-site-blocks > header
    nav {
        position:
            absolute !important;

        top:
            25px !important;

        right:
            24px !important;

        left:
            auto !important;

        bottom:
            auto !important;

        width:
            auto !important;

        margin:
            0 !important;

        padding:
            0 !important;

        transform:
            none !important;

        z-index:
            5 !important;
    }
}


/*
 * On tablet and phone, return the header to normal document
 * flow rather than forcing desktop positioning.
 */
@media (max-width: 900px) {

    body:has(.swi-contact)
    header.wp-block-template-part,
    body:has(.swi-contact)
    .wp-site-blocks > header {
        position:
            relative !important;

        width:
            100% !important;

        max-width:
            none !important;

        left:
            auto !important;

        transform:
            none !important;

        padding:
            0
            16px !important;

        box-sizing:
            border-box !important;
    }

    body:has(.swi-contact)
    header
    .wp-block-site-title,
    body:has(.swi-contact)
    header
    .site-title,
    body:has(.swi-contact)
    header.wp-block-template-part
    nav,
    body:has(.swi-contact)
    .wp-site-blocks > header
    nav {
        position:
            static !important;

        width:
            auto !important;

        margin:
            0 !important;

        margin-left:
            0 !important;

        transform:
            none !important;
    }
}
