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

.contact-shell { padding: 24px; background: var(--cream); }
.contact-panel {
    background: var(--ink); color: var(--cream); border-radius: var(--r-xl);
    padding: 170px 24px 24px clamp(24px, 6.67vw, 96px);
    display: flex; gap: 72px; align-items: flex-start;
}
.contact-info { flex: 1; min-width: 0; padding-top: 24px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.contact-title {
    font-family: var(--font-display); font-weight: 800; font-size: clamp(48px, 5vw, 72px);
    line-height: .95; letter-spacing: -0.048em;
}
.contact-title .serif { color: var(--ochre); font-size: 1em; letter-spacing: -0.015em; }
.contact-info .lead { color: rgba(245, 241, 232, .78); }
.contact-tiles { width: 100%; display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.contact-tile {
    display: flex; gap: 18px; align-items: center; padding: 18px; border-radius: 24px; color: var(--ink);
    transition: transform .3s var(--ease);
}
.contact-tile:hover { transform: translateX(4px); }
.contact-tile--ochre { background: var(--ochre); }
.contact-tile--terra { background: var(--terracotta-soft); }
.contact-tile--sage { background: var(--sage-soft); }
.contact-tile__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--ochre); display: grid; place-items: center; flex: none; }
.contact-tile__icon .icon { width: 22px; height: 22px; }
.contact-tile__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.contact-tile__text .overline { color: rgba(18, 19, 16, .65); }
.contact-tile__go { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease); }
.contact-tile__go .icon { width: 16px; height: 16px; }
.contact-tile:hover .contact-tile__go { transform: rotate(45deg); }
.contact-social { display: flex; gap: 12px; align-items: center; padding-top: 4px; }
.contact-social .overline { color: rgba(245, 241, 232, .6); }

/* Form */
.form-card {
    width: 600px; flex: none; background: var(--cream); color: var(--ink); border-radius: 36px; padding: 48px;
    display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 120px;
}
.form-card__head { display: flex; flex-direction: column; gap: 6px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.form-row { display: flex; gap: 16px; width: 100%; }
.form-row > .field { flex: 1; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.field__label { font-size: 15px; font-weight: 500; line-height: 1.3; }
.field input, .field textarea {
    width: 100%; font: inherit; font-size: 17px; line-height: 1.6; color: var(--ink);
    background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px;
    transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field textarea { min-height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(94, 95, 87, .7); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ochre); box-shadow: 0 0 0 4px rgba(203, 157, 6, .18); }
.field.has-error input, .field.has-error textarea,
.was-validated .field input:invalid, .was-validated .field textarea:invalid { border-color: var(--terracotta); }
.field__error { font-size: 13px; color: var(--terracotta); }
.contact-form button.btn { border: 0; cursor: pointer; font-family: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 16px; padding: 14px 16px; font-size: 15px; line-height: 1.5; }
.form-alert .icon { width: 20px; height: 20px; flex: none; }
.form-alert--ok { background: var(--sage-soft); }
.form-alert--err { background: var(--terracotta-soft); }

/* Map */
.map-shell { padding: 0 24px 96px; background: var(--cream); }
.map-card {
    position: relative; isolation: isolate; overflow: hidden; height: 520px; border-radius: var(--r-xl);
    background: #ece5d8; padding: 48px; display: flex; align-items: flex-end;
}
.map-card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; z-index: -2; }
.map-card__frame { position: absolute; inset: 0; z-index: -1; }
.map-card__frame iframe { width: 100%; height: 100%; border: 0; }
.location-glass {
    width: 420px; max-width: 100%; padding: 28px; border-radius: var(--r-lg); color: var(--cream);
    background: rgba(18, 19, 16, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.location-glass .body-s { color: rgba(245, 241, 232, .75); }
.location-glass__pin { width: 44px; height: 44px; border-radius: 50%; background: var(--ochre); color: var(--ink); display: grid; place-items: center; }
.location-glass .btn--light .btn__disc { background: var(--ochre); color: var(--ink); }
.map-toggle {
    background: none; border: 0; color: var(--cream); font-size: 15px; font-weight: 500;
    text-decoration: underline; text-underline-offset: 4px; padding: 8px 4px;
}
.map-card.is-live .map-card__bg { display: none; }
.map-card.is-live .location-glass { pointer-events: auto; }

@media (max-width: 1200px) {
    .contact-panel { flex-direction: column; padding-right: clamp(24px, 6.67vw, 96px); padding-bottom: clamp(24px, 6.67vw, 96px); }
    .form-card { width: 100%; }
}
@media (max-width: 640px) {
    .contact-shell { padding: 12px; }
    .contact-panel { padding: 130px 16px 16px; border-radius: 32px; gap: 40px; }
    .form-card { padding: 28px 20px; border-radius: 28px; }
    .form-row { flex-direction: column; gap: 20px; }
    .contact-tile { padding: 14px; gap: 12px; }
    .contact-tile__icon { width: 44px; height: 44px; }
    .contact-tile .h4 { font-size: 18px; }
    .map-shell { padding: 0 12px 64px; }
    .map-card { padding: 16px; height: 480px; border-radius: 32px; }
}
