/* Contact page — desktop 1493:15574, mobile 1538:27864
 * https://www.figma.com/design/RgNVpZ3TrlxEWXWB9QrQjD/The-House-of-Legends
 */

/* Fixed nav: padding 10+8 + logo 80px (60px on small screens) */
.contact-page {
    --contact-nav-h: 98px;
}

.contact-page-main {
    padding-top: calc(var(--contact-nav-h) + 24px);
}

/* ---- Hero (Contact + image) ---- */
.contact-hero-block {
    background: #1a1a1a;
    overflow: hidden;
}

.contact-hero-inner {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    gap: 72px;
    box-sizing: border-box;
}

.contact-hero-copy {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 0 80px 120px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    box-sizing: border-box;
}

.contact-hero-title {
    font-family: "Decophile", serif;
    font-weight: 400;
    font-size: clamp(48px, 8vw, 120px);
    line-height: 1;
    color: #c5a059;
    margin: 0;
}

.contact-hero-lead {
    font-family: "Mulish", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #a6a6a6;
    margin: 0;
    max-width: 42rem;
}

.contact-hero-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.contact-detail-block {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-detail-label {
    font-family: "Mulish", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #a6a6a6;
    margin: 0;
}

.contact-detail-value {
    font-family: "Philosopher", serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 36px;
    color: #fff;
    margin: 0;
}

.contact-detail-value a {
    color: inherit;
    text-decoration: none;
}

.contact-detail-value a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.contact-detail-rule {
    border: 0;
    height: 1px;
    margin: 0;
    background: rgba(166, 166, 166, 0.35);
}

.contact-hero-visual {
    flex: 1 1 0;
    min-width: 0;
    align-self: stretch;
    min-height: 0;
    position: relative;
}

/* Equal half-width columns + viewport-tall hero (desktop) */
@media (min-width: 1025px) {
    .contact-hero-inner {
        min-height: max(520px, calc(100vh - var(--contact-nav-h) - 24px));
        min-height: max(520px, calc(100dvh - var(--contact-nav-h) - 24px));
    }

    .contact-hero-copy {
        justify-content: center;
    }
}

.contact-hero-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Location — Figma 1493:15593
 * Section: py-80 px-120 | Row: justify-between, items-center
 * Map + text columns: 588×588 / w-588, gap-40 (title↔details), gap-24 (details stack)
 * Map frame: p-16 inset; external button: p-8, 24px icon
 * Content row width at 1440 artboard: 1200px (= 588 + ~24 + 588)
 */
.contact-location {
    background: #2e2e2e;
    padding: 80px 120px;
    overflow: hidden;
    box-sizing: border-box;
}

.contact-location-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    box-sizing: border-box;
}

.contact-map-wrap {
    position: relative;
    flex: 0 0 588px;
    width: 588px;
    height: 588px;
    overflow: hidden;
    background: #1a1a1a;
    box-sizing: border-box;
}

.contact-map-media {
    position: absolute;
    top: 16px;
    right: 16px;
    bottom: 16px;
    left: 16px;
    overflow: hidden;
}

.contact-map-media iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.15) contrast(1.02);
}

.contact-map-external {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    box-sizing: border-box;
    background: #c5a059;
    color: #1a1a1a;
    text-decoration: none;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.contact-map-external:hover {
    filter: brightness(1.08);
    transform: translate(1px, -1px);
}

.contact-map-external svg {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.contact-location-copy {
    flex: 0 0 588px;
    width: 588px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    justify-content: center;
    box-sizing: border-box;
}

.contact-location-title {
    font-family: "Decophile", serif;
    font-weight: 400;
    font-size: 64px;
    line-height: 72px;
    color: #c5a059;
    margin: 0;
}

.contact-location-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.contact-location-rule {
    border: 0;
    height: 1px;
    margin: 0;
    background: rgba(166, 166, 166, 0.35);
}

/* Below ~1416px viewport: two×588 + section padding no longer fits — stack like mobile */
@media (max-width: 1415px) {
    .contact-location-inner {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: stretch;
        max-width: none;
        gap: 40px;
    }

    .contact-map-wrap {
        flex: none;
        width: 100%;
        max-width: 588px;
        height: auto;
        aspect-ratio: 1 / 1;
        margin: 0 auto;
    }

    .contact-location-copy {
        flex: none;
        width: 100%;
        max-width: 588px;
        margin: 0 auto;
        justify-content: flex-start;
    }

    .contact-location-title {
        font-size: clamp(40px, 8vw, 64px);
        line-height: 1.125;
    }
}

@media (max-width: 1024px) {
    .contact-hero-inner {
        flex-direction: column;
        gap: 40px;
        align-items: stretch;
        min-height: 0;
    }

    .contact-hero-copy {
        flex: none;
        width: 100%;
        max-width: none;
        padding: 0 24px 48px;
        gap: 32px;
        justify-content: flex-start;
    }

    .contact-hero-visual {
        flex: none;
        width: 100%;
        min-height: 400px;
    }

    .contact-location {
        padding: 60px 24px;
    }
}

/* ---- Mobile — Figma node 1538:27864 (375pt) ---- */
@media (max-width: 768px) {
    .contact-page {
        --contact-nav-h: 78px;
    }

    .contact-page-main {
        padding-top: var(--contact-nav-h);
    }

    .contact-hero-inner {
        gap: 24px;
        padding: calc(120px - var(--contact-nav-h)) 16px 80px;
        align-items: stretch;
    }

    .contact-hero-copy {
        padding: 0;
        gap: 24px;
        align-items: center;
        text-align: center;
    }

    .contact-hero-header {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .contact-hero-title {
        font-size: 36px;
        line-height: 44px;
        text-align: center;
    }

    .contact-hero-lead {
        font-size: 14px;
        line-height: 20px;
        color: #a6a6a6;
        max-width: none;
        text-align: center;
    }

    .contact-hero-details {
        gap: 12px;
        align-items: center;
        width: 100%;
    }

    .contact-hero-details .contact-detail-block {
        align-items: center;
    }

    .contact-hero-details .contact-detail-label {
        font-size: 14px;
        line-height: 20px;
        font-weight: 700;
    }

    .contact-hero-details .contact-detail-value {
        font-size: 18px;
        line-height: 28px;
    }

    .contact-hero-details .contact-detail-rule {
        width: 100%;
        max-width: none;
    }

    .contact-hero-visual {
        flex: none;
        width: 100%;
        min-height: 0;
        position: relative;
        aspect-ratio: 708 / 613.731;
        max-height: none;
    }

    .contact-hero-visual img {
        position: absolute;
    }

    /* Location: column, map square, copy gap 32 / 16 — Figma 1538:27951 */
    .contact-location {
        padding: 80px 16px;
    }

    .contact-location-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
        max-width: none;
    }

    .contact-map-wrap {
        flex: none;
        width: 100%;
        max-width: none;
        margin: 0;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .contact-location-copy {
        flex: none;
        width: 100%;
        max-width: none;
        margin: 0;
        gap: 24px;
        align-items: flex-start;
        text-align: left;
    }

    .contact-location-title {
        font-size: 32px;
        line-height: 40px;
    }

    .contact-location-details {
        gap: 16px;
        width: 100%;
    }

    .contact-location .contact-detail-block {
        align-items: flex-start;
        text-align: left;
    }

    .contact-location .contact-detail-label {
        font-size: 14px;
        line-height: 20px;
        font-weight: 700;
    }

    .contact-location .contact-detail-value {
        font-size: 24px;
        line-height: 36px;
    }

    /* Contact form block — Figma 1538:28023 */
    .contact-page .v5-contact-section {
        padding: 40px 16px;
        align-items: stretch;
    }

    .contact-page .v5-contact-title {
        font-size: 32px;
        line-height: 40px;
    }

    .contact-page .v5-contact-form-container {
        max-width: none;
        width: 100%;
    }

    .contact-page .v5-contact-fields {
        gap: 16px;
    }

    .contact-page .v5-contact-input {
        min-height: 72px;
        padding: 12px;
        box-sizing: border-box;
    }

    .contact-page .v5-contact-submit {
        width: auto;
        max-width: none;
        align-self: center;
    }
}
