/**********************************************************************
 *
 *  UTOPIA CONTACT US PAGE
 *
 *  Public contact and winery request experience.
 *
 **********************************************************************/


/* ==================================================================
   PAGE FOUNDATION
================================================================== */

:root {
    --contact-background: #f4efe6;
    --contact-surface: #fffdf8;
    --contact-surface-soft: #ebe3d6;
    --contact-text: #27221d;
    --contact-muted: #6e655b;
    --contact-border: rgba(39, 34, 29, 0.14);
    --contact-border-strong: rgba(39, 34, 29, 0.24);
    --contact-accent: #6f2f35;
    --contact-accent-dark: #4f2025;
    --contact-shadow:
        0 24px 60px rgba(48, 37, 28, 0.11);
    --contact-shadow-soft:
        0 14px 34px rgba(48, 37, 28, 0.08);
    --contact-radius-large: 30px;
    --contact-radius-medium: 20px;
    --contact-radius-small: 12px;
    --contact-content-width: 1240px;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body.contact-us-page {
    margin: 0;

    min-width: 320px;

    background:
        linear-gradient(
            180deg,
            #f7f3ec 0%,
            var(--contact-background) 38%,
            #eee6da 100%
        );

    color: var(--contact-text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    overflow-x: hidden;
}


body.contact-us-page img {
    display: block;

    max-width: 100%;
}


body.contact-us-page a {
    color: inherit;
}


body.contact-us-page button,
body.contact-us-page input,
body.contact-us-page select,
body.contact-us-page textarea {
    font: inherit;
}


.contact-us-main {
    width: 100%;
}


/* ==================================================================
   SHARED TYPOGRAPHY
================================================================== */

.contact-eyebrow,
.contact-section-kicker {
    margin: 0 0 14px;

    color: var(--contact-accent);

    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.17em;
    line-height: 1.4;
    text-transform: uppercase;
}


.contact-section-heading {
    max-width: 780px;

    margin-bottom: 40px;
}


.contact-section-heading h2,
.contact-form-introduction h2,
.contact-location-band h2 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(2.1rem, 4vw, 4.35rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.04;
}


.contact-section-heading p:not(.contact-section-kicker),
.contact-form-introduction > p:not(.contact-section-kicker),
.contact-location-note {
    color: var(--contact-muted);

    font-size: 1.05rem;
    line-height: 1.75;
}


/* ==================================================================
   SHARED PAGE SECTIONS
================================================================== */

.contact-section {
    width: min(
        calc(100% - 48px),
        var(--contact-content-width)
    );

    margin: 0 auto;
    padding: 108px 0;
}


/* ==================================================================
   BUTTONS
================================================================== */

.contact-us-page .primary-cta,
.contact-us-page .secondary-cta {
    display: inline-flex;

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

    min-height: 52px;

    padding: 14px 24px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    line-height: 1;
    text-decoration: none;

    cursor: pointer;

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


.contact-us-page .primary-cta {
    background: var(--contact-accent);

    color: #ffffff;

    box-shadow:
        0 12px 26px rgba(111, 47, 53, 0.22);
}


.contact-us-page .primary-cta:hover {
    background: var(--contact-accent-dark);

    transform: translateY(-2px);

    box-shadow:
        0 16px 34px rgba(79, 32, 37, 0.25);
}


.contact-us-page .secondary-cta {
    border-color: rgba(255, 255, 255, 0.42);

    background: rgba(255, 255, 255, 0.08);

    color: #ffffff;
}


.contact-us-page .secondary-cta:hover {
    border-color: #ffffff;

    background: #ffffff;

    color: var(--contact-text);

    transform: translateY(-2px);
}


.contact-us-page .primary-cta:focus-visible,
.contact-us-page .secondary-cta:focus-visible,
.contact-us-page button:focus-visible,
.contact-us-page a:focus-visible,
.contact-us-page input:focus-visible,
.contact-us-page select:focus-visible,
.contact-us-page textarea:focus-visible {
    outline: 3px solid rgba(111, 47, 53, 0.28);
    outline-offset: 3px;
}


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

.contact-hero {
    position: relative;

    display: flex;

    align-items: flex-end;

    min-height: clamp(560px, 76vh, 820px);

    padding:
        clamp(150px, 20vh, 240px)
        max(24px, calc((100vw - var(--contact-content-width)) / 2))
        clamp(72px, 10vw, 120px);

    background:
        linear-gradient(
            180deg,
            rgba(18, 14, 11, 0.16) 0%,
            rgba(18, 14, 11, 0.32) 45%,
            rgba(18, 14, 11, 0.76) 100%
        ),
        radial-gradient(
            circle at 74% 28%,
            rgba(255, 255, 255, 0.11),
            transparent 34%
        ),
        #41382f;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    overflow: hidden;
}


.contact-hero::before {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(24, 18, 14, 0.55) 0%,
            rgba(24, 18, 14, 0.18) 58%,
            transparent 100%
        );

    content: "";
}


.contact-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 42%,
            rgba(18, 14, 11, 0.25) 100%
        );

    pointer-events: none;
}


.contact-hero-content {
    position: relative;
    z-index: 2;

    width: min(100%, 820px);

    color: #ffffff;
}


.contact-hero .contact-eyebrow {
    color: rgba(255, 255, 255, 0.78);
}


.contact-hero h1 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(4rem, 9vw, 8.8rem);
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 0.92;
}


.contact-hero-copy {
    max-width: 690px;

    margin: 30px 0 0;

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

    font-size: clamp(1.08rem, 1.7vw, 1.35rem);
    line-height: 1.75;
}


/* ==================================================================
   LOCATION + MAP
================================================================== */

.contact-location-section {
    padding-top: 120px;
}


.contact-location-grid {
    display: grid;

    grid-template-columns:
        minmax(280px, 0.8fr)
        minmax(0, 1.45fr);

    gap: 28px;

    align-items: stretch;
}


.contact-location-card,
.contact-map-card {
    border: 1px solid var(--contact-border);
    border-radius: var(--contact-radius-large);

    background: var(--contact-surface);

    box-shadow: var(--contact-shadow-soft);
}


.contact-location-card {
    display: flex;

    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    min-height: 510px;

    padding: clamp(34px, 5vw, 64px);
}


.contact-location-card h3 {
    margin: 0 0 24px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(2rem, 3.5vw, 3.6rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.05;
}


.contact-address {
    display: flex;

    flex-direction: column;

    gap: 7px;

    margin-bottom: 20px;

    color: var(--contact-text);

    font-size: 1.04rem;
    font-style: normal;
    line-height: 1.65;
}


.contact-location-note {
    margin: 0 0 30px;
}


.contact-map-card {
    position: relative;

    min-height: 510px;

    overflow: hidden;
}


.contact-map-frame {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 510px;

    border: 0;

    background: var(--contact-surface-soft);
}


.contact-map-placeholder {
    position: absolute;
    inset: 0;

    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background:
        linear-gradient(
            rgba(244, 239, 230, 0.88),
            rgba(244, 239, 230, 0.94)
        ),
        repeating-linear-gradient(
            45deg,
            rgba(68, 57, 47, 0.045) 0,
            rgba(68, 57, 47, 0.045) 1px,
            transparent 1px,
            transparent 22px
        );

    text-align: center;
}


.contact-map-placeholder[hidden] {
    display: none;
}


.contact-map-pin {
    display: grid;

    place-items: center;

    width: 72px;
    height: 72px;

    margin-bottom: 20px;

    border: 1px solid rgba(111, 47, 53, 0.2);
    border-radius: 50%;

    background: rgba(111, 47, 53, 0.1);

    color: var(--contact-accent);

    font-size: 2rem;
}


.contact-map-placeholder p {
    margin: 0 0 6px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.65rem;
}


.contact-map-placeholder span {
    color: var(--contact-muted);

    line-height: 1.6;
}


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

.contact-form-section {
    display: grid;

    grid-template-columns:
        minmax(270px, 0.72fr)
        minmax(0, 1.45fr);

    gap: clamp(48px, 8vw, 110px);

    align-items: start;

    width: min(
        calc(100% - 48px),
        var(--contact-content-width)
    );
}


.contact-form-introduction {
    position: sticky;
    top: 120px;
}


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


.contact-form-introduction > p {
    margin: 0 0 18px;
}


.contact-form-disclaimer {
    padding: 18px 20px;

    border-left: 3px solid var(--contact-accent);

    background: rgba(111, 47, 53, 0.06);

    color: var(--contact-muted);

    font-size: 0.92rem !important;
    line-height: 1.65 !important;
}


.contact-request-form {
    padding: clamp(28px, 5vw, 58px);

    border: 1px solid var(--contact-border);
    border-radius: var(--contact-radius-large);

    background: var(--contact-surface);

    box-shadow: var(--contact-shadow);
}


.contact-form-grid {
    display: grid;

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

    gap: 24px;
}


.contact-field {
    display: flex;

    flex-direction: column;

    min-width: 0;
}


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

    color: var(--contact-text);

    font-size: 0.84rem;
    font-weight: 730;
    letter-spacing: 0.025em;
}


.contact-field label span {
    color: var(--contact-accent);
}


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

    border: 1px solid var(--contact-border-strong);
    border-radius: var(--contact-radius-small);

    background: #ffffff;

    color: var(--contact-text);

    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        background-color 150ms ease;
}


.contact-field input,
.contact-field select {
    min-height: 54px;

    padding: 0 16px;
}


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

    padding: 16px;

    line-height: 1.65;

    resize: vertical;
}


.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #9c948b;
}


.contact-field input:hover,
.contact-field select:hover,
.contact-field textarea:hover {
    border-color: rgba(111, 47, 53, 0.42);
}


.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: var(--contact-accent);

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(111, 47, 53, 0.1);

    outline: none;
}


.contact-field input:disabled,
.contact-field select:disabled,
.contact-field textarea:disabled {
    background: #ece7df;

    color: #867e76;

    cursor: not-allowed;
}


.contact-field input[aria-invalid="true"],
.contact-field select[aria-invalid="true"],
.contact-field textarea[aria-invalid="true"] {
    border-color: #a83939;

    box-shadow:
        0 0 0 4px rgba(168, 57, 57, 0.1);
}


.contact-visit-fields {
    margin-top: 28px;
    padding: 28px;

    border: 1px solid rgba(111, 47, 53, 0.14);
    border-radius: var(--contact-radius-medium);

    background:
        linear-gradient(
            135deg,
            rgba(111, 47, 53, 0.055),
            rgba(244, 239, 230, 0.76)
        );
}


.contact-visit-fields[hidden] {
    display: none;
}


.contact-message-field {
    margin-top: 28px;
}


.contact-form-actions {
    display: flex;

    justify-content: flex-end;

    margin-top: 28px;
}


.contact-submit-button {
    min-width: 190px;

    border: 0;
}


.contact-submit-button:disabled {
    background: #8d837b;

    box-shadow: none;

    cursor: wait;
    opacity: 0.78;

    transform: none;
}


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

.contact-form-message {
    margin-top: 26px;
    padding: 18px 20px;

    border: 1px solid var(--contact-border);
    border-radius: var(--contact-radius-small);

    font-size: 0.95rem;
    line-height: 1.6;
}


.contact-form-message[hidden] {
    display: none;
}


.contact-form-message.is-success {
    border-color: rgba(40, 113, 73, 0.25);

    background: rgba(40, 113, 73, 0.09);

    color: #245f3f;
}


.contact-form-message.is-error {
    border-color: rgba(168, 57, 57, 0.24);

    background: rgba(168, 57, 57, 0.08);

    color: #8a2c2c;
}


.contact-form-message.is-loading {
    border-color: rgba(111, 47, 53, 0.2);

    background: rgba(111, 47, 53, 0.06);

    color: var(--contact-accent-dark);
}


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

.contact-details-section {
    padding-top: 90px;
}


.contact-details-grid {
    display: grid;

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

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


.contact-detail-card {
    min-width: 0;

    padding: 34px 26px;
}


.contact-detail-card + .contact-detail-card {
    border-left: 1px solid var(--contact-border);
}


.contact-detail-label {
    margin: 0 0 15px;

    color: var(--contact-muted);

    font-size: 0.72rem;
    font-weight: 760;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


.contact-detail-card > p:not(.contact-detail-label),
.contact-detail-card > a {
    margin: 0;

    font-size: 1rem;
    line-height: 1.6;
}


.contact-detail-card > a {
    color: var(--contact-accent);

    font-weight: 650;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}


/* ==================================================================
   EXPLORE UTOPIA
================================================================== */

.contact-explore-section {
    padding-top: 80px;
}


.contact-explore-links {
    display: grid;

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

    gap: 12px;
}


.contact-explore-links a {
    display: flex;

    align-items: flex-end;

    min-height: 180px;

    padding: 24px;

    border: 1px solid var(--contact-border);
    border-radius: var(--contact-radius-medium);

    background:
        linear-gradient(
            155deg,
            rgba(255, 255, 255, 0.92),
            rgba(235, 227, 214, 0.74)
        );

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;

    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}


.contact-explore-links a:hover {
    border-color: rgba(111, 47, 53, 0.35);

    box-shadow: var(--contact-shadow-soft);

    transform: translateY(-4px);
}


/* ==================================================================
   SOCIAL LINKS
================================================================== */

.contact-social-section {
    padding-top: 36px;
    padding-bottom: 100px;

    text-align: center;
}


.contact-social-section[hidden] {
    display: none;
}


.contact-social-links {
    display: flex;

    flex-wrap: wrap;
    justify-content: center;

    gap: 12px;

    margin-top: 24px;
}


.contact-social-links a {
    display: inline-flex;

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

    min-width: 48px;
    min-height: 48px;

    padding: 10px 16px;

    border: 1px solid var(--contact-border);
    border-radius: 999px;

    background: var(--contact-surface);

    color: var(--contact-text);

    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;

    transition:
        transform 150ms ease,
        border-color 150ms ease,
        color 150ms ease;
}


.contact-social-links a:hover {
    border-color: var(--contact-accent);

    color: var(--contact-accent);

    transform: translateY(-2px);
}


/* ==================================================================
   LOCATION BAND
================================================================== */

.contact-location-band {
    display: flex;

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

    gap: 40px;

    width: 100%;

    margin-top: 40px;
    padding:
        clamp(70px, 9vw, 110px)
        max(24px, calc((100vw - var(--contact-content-width)) / 2));

    background:
        radial-gradient(
            circle at 85% 30%,
            rgba(255, 255, 255, 0.08),
            transparent 30%
        ),
        #302822;

    color: #ffffff;
}


.contact-location-band .contact-section-kicker {
    color: rgba(255, 255, 255, 0.66);
}


.contact-location-band h2 {
    margin-bottom: 14px;
}


.contact-location-band p:not(.contact-section-kicker) {
    margin: 0;

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

    font-size: 1rem;
    line-height: 1.65;
}


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

@media (max-width: 1100px) {

    .contact-section {
        padding-top: 90px;
        padding-bottom: 90px;
    }


    .contact-form-section {
        gap: 56px;
    }


    .contact-details-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .contact-detail-card:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--contact-border);
    }


    .contact-detail-card:nth-child(4) {
        border-top: 1px solid var(--contact-border);
    }


    .contact-explore-links {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


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

@media (max-width: 860px) {

    .contact-section {
        width: min(
            calc(100% - 36px),
            var(--contact-content-width)
        );
    }


    .contact-location-grid,
    .contact-form-section {
        grid-template-columns:
            minmax(0, 1fr);
    }


    .contact-location-card {
        min-height: auto;
    }


    .contact-map-card,
    .contact-map-frame {
        min-height: 420px;
    }


    .contact-form-introduction {
        position: static;

        max-width: 680px;
    }


    .contact-location-band {
        align-items: flex-start;
        flex-direction: column;
    }

}


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

@media (max-width: 640px) {

    .contact-section {
        width: min(
            calc(100% - 28px),
            var(--contact-content-width)
        );

        padding-top: 72px;
        padding-bottom: 72px;
    }


    .contact-hero {
        min-height: 620px;

        padding:
            150px
            22px
            72px;
    }


    .contact-hero h1 {
        font-size: clamp(3.8rem, 20vw, 6rem);
    }


    .contact-hero-copy {
        margin-top: 22px;

        font-size: 1rem;
        line-height: 1.68;
    }


    .contact-section-heading {
        margin-bottom: 28px;
    }


    .contact-location-card,
    .contact-request-form {
        padding: 28px 22px;

        border-radius: 22px;
    }


    .contact-map-card {
        border-radius: 22px;
    }


    .contact-map-card,
    .contact-map-frame {
        min-height: 350px;
    }


    .contact-form-grid {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 20px;
    }


    .contact-visit-fields {
        padding: 20px;
    }


    .contact-form-actions {
        justify-content: stretch;
    }


    .contact-submit-button {
        width: 100%;
    }


    .contact-details-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }


    .contact-detail-card + .contact-detail-card,
    .contact-detail-card:nth-child(3),
    .contact-detail-card:nth-child(4) {
        border-top: 1px solid var(--contact-border);
        border-left: 0;
    }


    .contact-explore-links {
        grid-template-columns:
            minmax(0, 1fr);
    }


    .contact-explore-links a {
        min-height: 126px;
    }


    .contact-location-band {
        padding:
            68px
            24px;
    }


    .contact-location-band .secondary-cta {
        width: 100%;
    }

}


/* ==================================================================
   RESPONSIVE — VERY SMALL SCREENS
================================================================== */

@media (max-width: 390px) {

    .contact-hero {
        padding-right: 18px;
        padding-left: 18px;
    }


    .contact-location-card,
    .contact-request-form {
        padding-right: 18px;
        padding-left: 18px;
    }


    .contact-field input,
    .contact-field select {
        min-height: 52px;
    }

}


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

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

    html {
        scroll-behavior: auto;
    }


    .contact-us-page *,
    .contact-us-page *::before,
    .contact-us-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}


/* ==================================================================
   PRINT
================================================================== */

@media print {

    .contact-hero {
        min-height: auto;

        padding: 50px;

        background: #ffffff !important;

        color: #000000;
    }


    .contact-hero::before,
    .contact-hero-overlay,
    .contact-map-card,
    .contact-request-form,
    .contact-explore-section,
    .contact-social-section,
    .contact-location-band {
        display: none !important;
    }


    .contact-hero .contact-eyebrow,
    .contact-hero-copy {
        color: #000000;
    }


    .contact-section {
        width: 100%;

        padding: 30px 0;
    }

}