/* =========================================
   CONTACT PAGE - GLOBAL
========================================= */

.contact-page {
    width: 100%;
    overflow: clip;
    background: var(--color-white);
}

.contact-container {
    width: min(1240px, calc(100% - 60px));
    margin: 0 auto;
}

.contact-page a {
    text-decoration: none;
}

.contact-section-tag {
    display: inline-block;
    color: #946d4e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}


/* =========================================
   SECTION 3 & 4 - CONTACT + FORM
========================================= */

.contact-work-section {
    padding: 70px 0 110px;
    background: var(--color-white);
}

.contact-work-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 75px;
    align-items: start;
}

.contact-section-title {
    font-family: var(--font-heading);
    color: var(--color-black);
    font-size: clamp(34px, 3.5vw, 43px);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 18px;
}

.contact-section-title span {
    color: #8b5b38;
}

.contact-team-description {
    max-width: 430px;
    color: #716a64;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 35px;
}


/* Contact person card */

.contact-person-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #e9e2dc;
}

.contact-person-icon,
.contact-email-icon {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #48200b;
    background: var(--color-cream);
    border: 1px solid #e9e2dc;
}

.contact-person-icon svg,
.contact-email-icon svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-person-info {
    min-width: 0;
}

.contact-person-info h3 {
    color: var(--color-black);
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 5px;
}

.contact-person-info>span {
    display: block;
    color: #867d76;
    font-size: 12px;
    margin-bottom: 10px;
}

.contact-person-info a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #48200b;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.contact-person-info a:hover {
    color: #a8784e;
}

.contact-person-info a span {
    font-size: 14px;
}


/* Email card */

.contact-email-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 25px 0 0;
}

.contact-email-card>div:last-child {
    min-width: 0;
}

.contact-email-card>div:last-child>span {
    display: block;
    color: #867d76;
    font-size: 12px;
    margin-bottom: 7px;
}

.contact-email-card a {
    color: #48200b;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.contact-email-card a:hover {
    color: #a8784e;
}


/* Enquiry form card */

.contact-form-card {
    padding: 45px;
    background: var(--color-cream);
    border: 1px solid #e9e2dc;
    border-radius: 3px;
}

.contact-form-heading {
    margin-bottom: 30px;
}

.contact-form-heading h2 {
    font-family: var(--font-heading);
    color: var(--color-black);
    font-size: clamp(31px, 3vw, 39px);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 14px;
}

.contact-form-heading h2 span {
    color: #8b5b38;
}

.contact-form-heading p {
    color: #716a64;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}


/* Form grid */

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact-form-full {
    grid-column: 1 / -1;
}

.contact-form-group label {
    color: #282326;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 9px;
}

.contact-form-group label span {
    color: #a34b32;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
    width: 100%;
    min-height: 49px;
    padding: 13px 15px;
    border: 1px solid #ded5cd;
    border-radius: 2px;
    outline: none;
    background: #ffffff;
    color: #282326;
    font-family: inherit;
    font-size: 13px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
    color: #aaa19a;
}

.contact-form-group select {
    cursor: pointer;
}

.contact-form-group textarea {
    min-height: 115px;
    resize: vertical;
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
    border-color: #8b5b38;
    box-shadow: 0 0 0 3px rgba(139, 91, 56, 0.09);
}

.contact-submit-btn {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    padding: 14px 22px;
    border: 1px solid #48200b;
    background: #48200b;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-submit-btn:hover {
    background: #8b5b38;
    border-color: #8b5b38;
    transform: translateY(-2px);
}

.contact-submit-btn span {
    font-size: 17px;
}

.contact-form-note {
    color: #8b817a;
    font-size: 11px;
    margin: 13px 0 0;
    text-align: center;
}


/* Form success message */

.contact-success-message {
    padding: 14px 16px;
    margin-top: 20px;
    border: 1px solid #b8cdb9;
    background: #edf5ed;
    color: #285b32;
    font-size: 13px;
    line-height: 1.7;
}

.contact-success-message[hidden],
.contact-error-message[hidden] {
    display: none;
}

.contact-error-message {
    padding: 14px 16px;
    margin-top: 20px;
    border: 1px solid #e3b9b4;
    background: #fbefed;
    color: #8a2c22;
    font-size: 13px;
    line-height: 1.7;
}

/* Honeypot field: off-screen, never shown to visitors */
.contact-form-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form-group .field-error {
    display: block;
    margin-top: 6px;
    color: #a3352a;
    font-size: 12px;
}

.contact-form-group [aria-invalid="true"] {
    border-color: #c4554a;
}

.contact-submit-btn[disabled] {
    opacity: 0.65;
    cursor: wait;
}


/* =========================================
   SECTION 5 - LOCATIONS
========================================= */

.contact-locations-section {
    padding: 70px 0 105px;
    background: var(--color-cream);
}

.contact-locations-heading {
    max-width: 700px;
    margin-bottom: 50px;
}

.contact-locations-heading h2 {
    font-family: var(--font-heading);
    color: var(--color-black);
    font-size: clamp(36px, 4vw, 49px);
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.contact-locations-heading h2 span {
    color: #8b5b38;
}

.contact-location-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.contact-location-card {
    padding: 38px;
    background: var(--color-white);
    border: 1px solid #e9e2dc;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(72, 32, 11, 0.07);
}

.contact-location-featured {
    background: var(--color-white);
    border-color: rgba(72, 32, 11, 0.3);
    color: var(--color-black);
}

.contact-location-featured .contact-location-top>span {
    color: var(--color-brown);
}

.contact-location-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 32px;
}

.contact-location-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #48200b;
    background: var(--color-cream);
    border: 1px solid #e9e2dc;
}

.contact-location-icon svg {
    width: 27px;
    height: 27px;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-location-top>span {
    color: #a58c77;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.contact-location-card h3 {
    color: var(--color-black);
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 600;
    margin: 0 0 15px;
}

.contact-location-card>p {
    color: #716a64;
    font-size: 14px;
    line-height: 1.9;
    margin: 0 0 28px;
}

.contact-location-featured h3 {
    color: var(--color-black);
}

.contact-location-featured>p {
    color: #625c57;
}

.contact-map-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 7px;
    border-bottom: 1px solid #8b5b38;
    color: #48200b;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.contact-map-link:hover {
    color: #a8784e;
    gap: 20px;
}

.contact-location-featured .contact-map-link {
    color: var(--color-brown);
    border-color: var(--color-brown);
}


/* =========================================
   SECTION 6 - FINAL CTA
========================================= */

.contact-final-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 65px 0 100px;
    background: var(--color-white);
    color: var(--color-black);
    text-align: center;
}

.contact-final-cta::before,
.contact-final-cta::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid var(--color-brown);
    border-radius: 50%;
    pointer-events: none;
}

.contact-final-cta::before {
    width: 480px;
    height: 480px;
    top: -260px;
    left: -130px;
}

.contact-final-cta::after {
    width: 420px;
    height: 420px;
    right: -130px;
    bottom: -280px;
}

.contact-final-cta-content {
    max-width: 850px;
    margin: 0 auto;
}

.contact-final-cta .contact-section-tag {
    color: var(--color-brown);
}

.contact-final-cta h2 {
    font-family: var(--font-heading);
    color: var(--color-black);
    font-size: clamp(36px, 4.5vw, 55px);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 22px;
}

.contact-final-cta h2 span {
    color: var(--color-brown);
}

.contact-final-cta p {
    max-width: 650px;
    margin: 0 auto 32px;
    color: var(--color-black);
    font-size: 14px;
    line-height: 1.9;
}

.contact-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 52px;
    padding: 0 28px;
    background: var(--color-brown);
    border: 1px solid var(--color-brown);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.contact-cta-btn:hover {
    background: var(--color-cream);
    border-color: var(--color-brown);
    color: var(--color-black);
    transform: translateY(-3px);
}


/* =========================================
   RESPONSIVE DESIGN - TABLET
========================================= */

@media (max-width: 1024px) {

    .contact-work-grid {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 40px;
    }

    

    .contact-form-card {
        padding: 35px;
    }

}


/* =========================================
   RESPONSIVE DESIGN - MOBILE
========================================= */

@media (max-width: 767px) {

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

    /* Contact + form */

    .contact-work-section {
        padding: 50px 0 75px;
    }

    .contact-work-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .contact-form-card {
        padding: 30px 22px;
    }

    .contact-form-heading h2 {
        font-size: 33px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .contact-form-full {
        grid-column: auto;
    }

    .contact-form-group input,
    .contact-form-group select,
    .contact-form-group textarea {
        font-size: 16px;
    }


    /* Locations */

    .contact-locations-section {
        padding: 50px 0 75px;
    }

    .contact-locations-heading {
        margin-bottom: 32px;
    }

    .contact-locations-heading h2 {
        font-size: 37px;
    }

    .contact-location-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-location-card {
        padding: 28px 24px;
    }


    /* Final CTA */

    .contact-final-cta {
        padding: 50px 0 75px;
    }

    .contact-final-cta h2 {
        font-size: 37px;
    }

    .contact-final-cta p {
        font-size: 13px;
    }

}


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

@media (max-width: 380px) {

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

    

    

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

    .contact-person-card {
        gap: 13px;
    }

    .contact-person-icon,
    .contact-email-icon {
        width: 49px;
        height: 49px;
    }

    .contact-person-info h3 {
        font-size: 15px;
    }

    .contact-person-info a,
    .contact-email-card a {
        font-size: 12px;
    }

}
