.contact-page {
    min-height: 0;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.contact-section {
    position: relative;
    padding: var(--section-padding) var(--section-padding-x);
    overflow: visible;
    min-height: 0;
    display: block;
}

.contact-container {
    position: relative;
    z-index: 1;
    max-width: var(--container-lg);
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 5vw, 48px);
}

.contact-header {
    color: var(--dark-jade);
    max-width: 640px;
}

.contact-header h1 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 0.35rem;
    text-align: left;
}

.contact-subtitle {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 clamp(16px, 3vw, 24px);
    color: var(--dark-jade);
    text-align: left;
}

.contact-intro {
    font-size: clamp(0.9375rem, 1.5vw, 1.05rem);
    line-height: 1.7;
    color: var(--neutral-600);
    margin: 0;
    max-width: 52ch;
    text-align: left;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 40px);
    align-items: start;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(10px, 1.5vw, 14px);
    min-width: 0;
    width: 100%;
}

.contact-card__icon {
    width: clamp(48px, 6vw, 60px);
    height: clamp(48px, 6vw, 60px);
    border-radius: var(--radius-full);
    background: var(--dark-jade);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    flex-shrink: 0;
}

.contact-card h2 {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
    line-height: 1.3;
}

.contact-card p {
    font-size: clamp(0.875rem, 1.4vw, 0.975rem);
    line-height: 1.55;
    color: var(--neutral-600);
    margin: 0;
    word-break: break-word;
}

.contact-card a {
    color: var(--neutral-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-card a:hover {
    color: var(--jade-500);
}

.contact-card__bar {
    display: block;
    width: 100%;
    height: 4px;
    margin-top: auto;
    padding-top: clamp(12px, 2vw, 20px);
    background: linear-gradient(
        to right,
        var(--neutral-300) 0%,
        var(--neutral-300) 78%,
        var(--dark-jade) 78%,
        var(--dark-jade) 100%
    );
}

.contact-location {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.5vw, 20px);
    width: 100%;
}

.contact-visit {
    font-size: clamp(0.9375rem, 1.5vw, 1rem);
    line-height: 1.6;
    color: var(--neutral-600);
    margin: 0;
    text-align: left;
}

.contact-visit strong {
    color: var(--neutral-900);
    font-weight: 700;
    margin-right: 0.35em;
}

.contact-map-wrapper {
    width: 100%;
    aspect-ratio: 21 / 9;
    max-height: min(42vw, 340px);
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-map-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    touch-action: pan-y;
}

.contact-map-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s var(--ease-out-expo);
}

.contact-map-wrapper a:hover img {
    transform: scale(1.03);
}

@media (max-width: 991.98px), (hover: none) and (pointer: coarse) {
    .contact-page,
    .contact-section {
        min-height: auto;
        height: auto;
        overflow: visible;
    }

    .contact-section {
        display: block;
        padding-top: calc(var(--mobile-header-offset, 88px) + clamp(24px, 5vw, 40px));
        padding-bottom: clamp(48px, 10vw, 72px);
    }

    .contact-header h1,
    .contact-subtitle,
    .contact-intro,
    .contact-visit {
        text-align: left;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: clamp(32px, 5vw, 40px);
    }

    .contact-card {
        align-items: center;
        text-align: center;
    }

    .contact-card__bar {
        width: 100%;
    }

    .contact-map-wrapper {
        aspect-ratio: 16 / 9;
        max-height: none;
    }
}

@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
    .contact-page {
        min-height: calc(100dvh - var(--header-offset));
    }

    .contact-section {
        display: flex;
        align-items: flex-start;
        min-height: inherit;
        padding-top: clamp(48px, 6vw, 72px);
        padding-bottom: clamp(48px, 6vw, 72px);
    }
}

@media (min-width: 768px) and (max-width: 900px) {
    .contact-cards {
        gap: clamp(16px, 2.5vw, 24px);
    }

    .contact-card h2 {
        font-size: 0.95rem;
    }
}
