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


/* ==========================================================
   CONTACT SECTION
   ========================================================== */

.contact-section {
    position: relative;
    width: 100%;
    margin-top: 10px;
    padding: 72px 0 78px;
    background: #FAFAF7;
    overflow: hidden;
}

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

.contact-container {
    position: relative;
    z-index: 2;

    width: min(1200px, calc(100% - 72px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(520px, 1.28fr);

    align-items: center;

    gap: 72px;
}


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

.contact-intro {
    position: relative;
    z-index: 3;

    max-width: 470px;
}


/* ==========================================================
   EYEBROW
   ========================================================== */

.contact-eyebrow {
    display: block;

    margin: 0 0 18px;

    color: #64883D;

    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;

    letter-spacing: .09em;
    text-transform: uppercase;
}


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

.contact-title {
    margin: 0 0 24px;

    color: #173F2E;

    font-family: "Playfair Display", serif;
    font-size: 54px;
    line-height: 1.06;
    font-weight: 600;

    letter-spacing: -.02em;
}


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

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

    margin: 0;

    color: #405A50;

    font-size: 15px;
    line-height: 1.75;
}


/* ==========================================================
   CONTACT DIVIDER
   ========================================================== */

.contact-divider {
    width: 38px;
    height: 2px;

    margin: 30px 0 28px;

    background: #6B8D45;
}


/* ==========================================================
   CONTACT DETAILS
   ========================================================== */

.contact-detail {
    display: flex;
    align-items: center;

    gap: 16px;

    margin-top: 22px;
}


.contact-detail-icon {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #6B8D45;
    color: #ffffff;

    font-size: 15px;

    box-shadow: 0 7px 18px rgba(50,76,47,.14);
}


.contact-detail-content {
    min-width: 0;
}


.contact-detail-content h2 {
    margin: 0 0 4px;

    color: #173F2E;

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


.contact-detail-content a,
.contact-detail-content p {
    margin: 0;

    color: #4B625A;

    font-size: 13px;
    line-height: 1.55;
}


.contact-detail-content a {
    transition: color .25s ease;
}


.contact-detail-content a:hover {
    color: #64883D;
}


/* ==========================================================
   CONTACT FORM CARD
   ========================================================== */

.contact-form-card {
    position: relative;
    z-index: 3;

    padding: 42px 44px 38px;

    background: #ffffff;

    border: 1px solid rgba(23,63,46,.06);
    border-radius: 18px;

    box-shadow:
        0 20px 55px rgba(24,55,42,.09);
}


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

.contact-form-header {
    margin-bottom: 26px;
}


.contact-form-header h2 {
    margin: 0 0 8px;

    color: #173F2E;

    font-family: "Playfair Display", serif;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 600;
}


.contact-form-header p {
    max-width: 600px;

    margin: 0;

    color: #65766F;

    font-size: 13px;
    line-height: 1.6;
}


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

.contact-form {
    width: 100%;
}


.contact-form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;
}


.contact-form-field {
    margin-bottom: 17px;
}


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

    margin: 0 0 7px;

    color: #173F2E;

    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
}


.contact-form-field label span {
    color: #6B8D45;
}


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

    box-sizing: border-box;

    border: 1px solid #D9E0DB;
    border-radius: 7px;

    background: #ffffff;

    color: #173F2E;

    font-family: "Inter", sans-serif;
    font-size: 13px;
    line-height: 1.5;

    outline: none;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


.contact-form-field input {
    height: 44px;

    padding: 0 13px;
}


.contact-form-field textarea {
    min-height: 118px;

    padding: 11px 13px;

    resize: vertical;
}


.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
    color: #98A29E;
}


.contact-form-field input:focus,
.contact-form-field textarea:focus {
    border-color: #6B8D45;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(107,141,69,.10);
}


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

.contact-submit-button {
    display: inline-flex;

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

    gap: 9px;

    min-height: 45px;

    padding: 0 22px;

    border: 0;
    border-radius: 999px;

    background: #6B8D45;
    color: #ffffff;

    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}


.contact-submit-button:hover {
    background: #58783A;

    transform: translateY(-1px);

    box-shadow:
        0 8px 18px rgba(73,101,48,.18);
}


.contact-submit-button i {
    font-size: 12px;
}


/* ==========================================================
   PRIVACY NOTE
   ========================================================== */

.contact-form-privacy {
    display: flex;

    align-items: flex-start;

    gap: 8px;

    max-width: 560px;

    margin: 17px 0 0;

    color: #89928E;

    font-size: 11px;
    line-height: 1.5;
}


.contact-form-privacy i {
    margin-top: 2px;

    color: #6B8D45;

    font-size: 10px;
}


/* ==========================================================
   FINAL CTA
   ========================================================== */

.final-cta-section {
    position: relative;

    width: 100%;

    margin-top: 10px;

    padding: 70px 0 60px;

    background: #173F2E;

    overflow: hidden;
}


.final-cta-container {
    position: relative;
    z-index: 2;

    width: min(1200px, calc(100% - 72px));

    margin: 0 auto;
}


.final-cta-content {
    position: relative;
    z-index: 3;

    display: grid;

    grid-template-columns: 220px minmax(0,1fr);

    align-items: center;

    gap: 70px;
}


/* ==========================================================
   FINAL CTA BRAND
   ========================================================== */

.final-cta-brand {
    position: relative;
    z-index: 3;
}


.final-cta-logo {
    display: block;

    width: 145px;
    height: auto;

    margin: 0 0 22px;
}


.final-cta-brand-text {
    max-width: 210px;

    margin: 0;

    color: rgba(255,255,255,.72);

    font-size: 13px;
    line-height: 1.65;
}


/* ==========================================================
   FINAL CTA MAIN
   ========================================================== */

.final-cta-main {
    position: relative;
    z-index: 3;

    max-width: 650px;
}


.final-cta-title {
    margin: 0 0 24px;

    color: #ffffff;

    font-family: "Playfair Display", serif;
    font-size: 40px;
    line-height: 1.12;
    font-weight: 600;
}


.final-cta-button {
    display: inline-flex;

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

    gap: 9px;

    min-height: 48px;

    padding: 0 24px;

    border-radius: 999px;

    background: #6B8D45;
    color: #ffffff;

    font-size: 13px;
    font-weight: 600;

    transition: .25s ease;
}


.final-cta-button:hover {
    background: #7C9F52;

    transform: translateY(-1px);
}


.final-cta-email {
    display: block;

    width: max-content;

    margin-top: 13px;

    color: rgba(255,255,255,.68);

    font-size: 12px;

    transition: .25s ease;
}


.final-cta-email:hover {
    color: #ffffff;
}


/* ==========================================================
   FINAL CTA DECORATION
   ========================================================== */

.final-cta-decoration {
    position: absolute;

    z-index: 1;

    top: -80px;
    right: -60px;
    bottom: -80px;

    width: 43%;

    background:
        linear-gradient(
            90deg,
            #173F2E 0%,
            rgba(23,63,46,.72) 18%,
            rgba(23,63,46,.18) 58%,
            rgba(23,63,46,0) 100%
        ),
        url("../images/sections/cta-background.png")
        center center / cover no-repeat;

    opacity: .72;

    pointer-events: none;
}


/* ==========================================================
   RESPONSIVE — TABLET
   ========================================================== */

@media (max-width: 1000px) {

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

        gap: 45px;
    }


    .contact-intro {
        max-width: 680px;
    }


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


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


    .final-cta-content {
        grid-template-columns: 190px minmax(0,1fr);

        gap: 45px;
    }


    .final-cta-title {
        font-size: 34px;
    }


    .final-cta-decoration {
        width: 48%;
    }

}


/* ==========================================================
   RESPONSIVE — MOBILE
   ========================================================== */

@media (max-width: 700px) {

    .contact-section {
        padding: 48px 0 55px;
    }


    .contact-container {
        width: min(100% - 32px, 560px);

        gap: 34px;
    }


    .contact-title {
        font-size: 44px;
    }


    .contact-form-card {
        padding: 30px 24px 28px;

        border-radius: 14px;
    }


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

        gap: 0;
    }


    .contact-form-header h2 {
        font-size: 27px;
    }


    .final-cta-section {
        padding: 55px 0 50px;
    }


    .final-cta-container {
        width: min(100% - 32px, 560px);
    }


    .final-cta-content {
        grid-template-columns: 1fr;

        gap: 32px;
    }


    .final-cta-logo {
        width: 135px;

        margin-bottom: 18px;
    }


    .final-cta-brand-text {
        max-width: 360px;
    }


    .final-cta-title {
        font-size: 32px;
    }


    .final-cta-decoration {
        top: auto;
        right: 0;
        bottom: 0;

        width: 100%;
        height: 230px;

        opacity: .28;

        background:
            linear-gradient(
                180deg,
                rgba(23,63,46,0) 0%,
                #173F2E 88%
            ),
            url("../images/sections/cta-background.png")
            center center / cover no-repeat;
    }

}


/* ==========================================================
   RESPONSIVE — SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {

    .contact-title {
        font-size: 38px;
    }


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


    .contact-form-card {
        padding: 26px 19px 25px;
    }


    .contact-form-header h2 {
        font-size: 25px;
    }


    .final-cta-title {
        font-size: 29px;
    }

}
/* ==========================================================
   CONTACT FORM STATUS MESSAGE
========================================================== */

.contact-status {
    display: none;

    align-items: flex-start;
    gap: 14px;

    margin: 0 0 22px;
    padding: 16px 18px;

    border-radius: 10px;

    font-size: 13px;
    line-height: 1.5;
}


/* ==========================================================
   STATUS — VISIBLE
========================================================== */

.contact-status.is-visible {
    display: flex;
}


/* ==========================================================
   SUCCESS
========================================================== */

.contact-status.is-success {
    background: #F1F6EC;
    border: 1px solid #D8E6CC;
    color: #36552C;
}


/* ==========================================================
   ERROR
========================================================== */

.contact-status.is-error {
    background: #FBF3F1;
    border: 1px solid #E8D4CF;
    color: #70453D;
}


/* ==========================================================
   STATUS ICON
========================================================== */

.contact-status-icon {
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 13px;
}


.contact-status.is-success .contact-status-icon {
    background: #6B8D45;
    color: #ffffff;
}


.contact-status.is-error .contact-status-icon {
    background: #A76558;
    color: #ffffff;
}


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

.contact-status-content {
    min-width: 0;
}


.contact-status-content h3 {
    margin: 0 0 3px;

    color: inherit;

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


.contact-status-content p {
    margin: 0;

    color: inherit;

    font-size: 12px;
    line-height: 1.55;
}


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

@media (max-width: 700px) {

    .contact-status {
        padding: 14px 15px;
        gap: 12px;
    }

}


/* ==========================================================
   HEADER — CONTACT PAGE MOBILE
   Keeps the Contact header consistent with Home
========================================================== */

@media (max-width: 700px) {

    .header .container{
        width: calc(100% - 32px);
        height: 68px;
        padding: 0;
        gap: 14px;
    }

    .header-logo{
        flex: 0 0 auto;
    }

    .header-logo img{
        width: 112px;
        height: auto;
    }

    .header-nav{
        margin-left: auto;
        flex: 1 1 auto;
    }

    .header-menu{
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 18px;
    }

    .header-menu a{
        font-size: 14px;
        white-space: nowrap;
    }

    .header-button{
        height: 42px;
        min-width: 112px;
        padding: 0 18px;
        font-size: 14px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}


/* ==========================================================
   HEADER — SMALL PHONES
========================================================== */

@media (max-width: 420px) {

    .header .container{
        width: calc(100% - 24px);
        height: 64px;
        gap: 10px;
    }

    .header-logo img{
        width: 92px;
    }

    .header-menu{
        gap: 12px;
    }

    .header-menu a{
        font-size: 13px;
    }

    .header-button{
        min-width: 98px;
        height: 40px;
        padding: 0 13px;
        font-size: 13px;
    }
}
