/* =====================================================
   contact.css — RapiX Solutions Contact Page Bundle
   var() colours only (RULE 1). Loaded on the Contact template
   via enqueue.php.
   Hero, FAQ, and CTA are global components in global.css —
   this file only carries the unique body + map blocks.
   ===================================================== */

/* =====================================================
   Body — 2-col: Form (left) + Details (right)
   Form takes the wider column (1.4fr); details aside is narrower
   (1fr) so the form gets visual priority. Generous spacing
   between them. Stacks to 1col on tablet.
   ===================================================== */

.contact-body__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

/* ---- Form column ---- */

.contact-body__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.contact-body__heading { margin: 0; }

.contact-body__sub {
    font-family: var(--font-body);
    font-size: var(--text-body-lg);
    line-height: var(--leading-body);
    color: var(--color-muted);
    max-width: var(--measure-text);
    margin: 0;
}

.contact-body__sub p { margin: 0 0 var(--space-3); }
.contact-body__sub p:last-child { margin-bottom: 0; }

.contact-body__form-wrap {
    margin-top: var(--space-6);
}

.contact-body__placeholder {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: var(--color-muted);
    padding: var(--space-6);
    background-color: var(--color-bg);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
    margin: 0;
}

.contact-body__placeholder code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 0.85em;
    background-color: var(--color-white);
    padding: 0.125em 0.4em;
    border-radius: var(--radius-sm);
    color: var(--color-text);
}

/* ---- Details column (right aside) ---- */

.contact-body__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    padding: var(--space-10);
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    position: sticky;
    top: calc( 80px + var(--space-8) );
}

.contact-body__details-heading {
    font-family: var(--font-heading);
    font-weight: var(--fw-extrabold);
    font-size: var(--text-h3);
    line-height: var(--leading-snug);
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin: 0;
}

/* The label-above-value pattern used for every detail block in the
   aside. Reads as an editorial spec sheet, not a generic icon list. */
.contact-body__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.contact-body__list-label {
    display: block;
    font-family: var(--font-body);
    font-weight: var(--fw-semibold);
    font-size: var(--text-xs);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-2);
}

.contact-body__list-value {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    font-size: var(--text-body-lg);
    line-height: var(--leading-snug);
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--ease-base);
}

a.contact-body__list-value:hover { color: var(--color-primary); }

/* ---- Hours block ---- */

.contact-body__hours-text {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: var(--color-text);
    margin: 0;
}

/* ---- Socials block ---- */

.contact-body__social-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.contact-body__social-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: var(--fw-medium);
    font-size: var(--text-body);
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--ease-base);
    width: fit-content;
}

.contact-body__social-arrow {
    color: var(--color-muted);
    transition: color var(--ease-base), transform 0.25s ease;
}

.contact-body__social-list a:hover { color: var(--color-primary); }

.contact-body__social-list a:hover .contact-body__social-arrow {
    color: var(--color-primary);
    transform: translate( 2px, -2px );
}

/* ---- Responsive ---- */

@media ( max-width: 1024px ) {
    .contact-body__inner {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
    .contact-body__details {
        position: static;
        padding: var(--space-8);
    }
}

@media ( max-width: 640px ) {
    .contact-body__details {
        padding: var(--space-6);
        gap: var(--space-6);
    }
    .contact-body__list { gap: var(--space-5); }
}

/* =====================================================
   Map — full-width lazy iframe
   Sits on a cream surface to break the alternation rhythm
   between Body (white) and FAQ (white).
   ===================================================== */

.contact-map__head {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
    max-width: 880px;
}

.contact-map__heading { margin: 0; }

.contact-map__frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    /* Slight grayscale + subtle saturation pull so the map blends with
       the brand palette instead of clashing with the orange/navy scheme.
       Removed on hover so it reads sharp + colourful when interacted with. */
    transition: filter 0.4s ease;
    filter: grayscale( 0.4 ) contrast( 0.95 );
}

.contact-map__frame:hover {
    filter: grayscale( 0 ) contrast( 1 );
}

.contact-map__frame iframe {
    display: block;
    width: 100%;
    border: 0;
    aspect-ratio: 16 / 7;
    min-height: 320px;
}

@media ( max-width: 768px ) {
    .contact-map__head { margin-bottom: var(--space-8); }
    .contact-map__frame iframe {
        aspect-ratio: 4 / 3;
        min-height: 280px;
    }
}

@media ( max-width: 480px ) {
    .contact-map__frame iframe {
        aspect-ratio: 1 / 1;
        min-height: 260px;
    }
}
