/* ==========================================================================
   Rage — Contact Us page
   Loaded after home.css; reuses its tokens, header, buttons, footer and cart.
   ========================================================================== */

.rg-contact { padding-top: 32px; }

@media (min-width: 1024px) {
    .rg-contact { padding-top: 48px; }
}

/* Intro ------------------------------------------------------------------ */

.rg-contact__intro { max-width: 60ch; margin-bottom: 24px; }
.rg-contact__intro p:last-child { margin-top: 10px; color: var(--rg-muted); }

@media (min-width: 1024px) {
    .rg-contact__intro { margin-bottom: 36px; }
}

/* Layout ----------------------------------------------------------------- */

.rg-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

@media (min-width: 900px) {
    .rg-contact__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
        align-items: stretch; /* details card and map end level */
        gap: var(--rg-gap);
    }

    /* No map configured: details card on its own */
    .rg-contact__grid--single { grid-template-columns: minmax(0, 640px); }
}

/* Contact details -------------------------------------------------------- */

.rg-contact__info {
    border: 1px solid var(--rg-line);
    border-radius: var(--rg-radius);
    background: var(--rg-paper);
    padding: 8px 20px;
}

.rg-contact__list li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    padding-block: 14px;
}

.rg-contact__list li + li { border-top: 1px solid var(--rg-line); }

.rg-contact__list svg {
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 50%;
    background: var(--rg-chambray);
    color: var(--rg-indigo);
}

.rg-contact__list h2,
.rg-contact__social h2 {
    margin: 0;
    color: var(--rg-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.rg-contact__list a,
.rg-contact__list span {
    display: block;
    overflow-wrap: anywhere;
    color: var(--rg-ink);
    font-weight: 500;
}

.rg-contact__list a { transition: color .2s; }
.rg-contact__list a:hover { color: var(--rg-copper-dark); }

.rg-contact__social {
    padding-block: 16px 14px;
    border-top: 1px solid var(--rg-line);
}

.rg-contact__social div { display: flex; gap: 10px; margin-top: 10px; }

.rg-contact__social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--rg-line-strong);
    border-radius: 50%;
    color: var(--rg-ink);
    transition: border-color .2s, color .2s;
}

.rg-contact__social a:hover { border-color: var(--rg-copper); color: var(--rg-copper-dark); }
.rg-contact__social svg { width: 18px; height: 18px; }

/* Get directions: pinned to the bottom of the details card */

.rg-contact__info { display: flex; flex-direction: column; padding-bottom: 20px; }

.rg-contact__directions {
    width: 100%;
    min-height: 46px;
    margin-top: auto;
}

/* Keeps a gap above the button when the card is not stretched (phones) */
.rg-contact__info > :nth-last-child(2) { margin-bottom: 12px; }

/* Location map: below the details on phones, beside them on desktop ---- */

.rg-contact__map {
    position: relative;
    overflow: hidden;
    height: 320px;
    border: 1px solid var(--rg-line);
    border-radius: var(--rg-radius);
    background: var(--rg-chambray);
}

.rg-contact__map iframe {
    position: absolute; /* fills the box whatever height the grid gives it */
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (min-width: 640px) {
    .rg-contact__map { height: 380px; }
}

@media (min-width: 900px) {
    /* Map matches the details card height, with a sensible minimum */
    .rg-contact__map { height: auto; min-height: 420px; }
}
