/* =================================
   MRC Home Location Section
   Background: Light (#f5f4f0)
   ================================= */

.mrc-home-location {
    background-color: #f5f4f0;
    padding: 90px 0 80px;
    width: 100%;
}

.mrc-home-location-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =================================
   Header
   ================================= */
.mrc-home-location-header {
    text-align: center;
    margin-bottom: 50px;
}

.mrc-home-location-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mrc-dark, #0f1117);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1.25rem;
    display: inline-block;
}

/* Red underline */
.mrc-home-location-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--mrc-red, #d42b2e);
    border-radius: 2px;
}

.mrc-home-location-subtitle {
    font-family: 'Barlow', sans-serif;
    font-size: 1.05rem;
    color: #666;
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto;
}

/* =================================
   Grid
   ================================= */
.mrc-home-location-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 30px;
    align-items: start;
}

/* =================================
   Card
   ================================= */
.mrc-home-location-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.mrc-home-location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(212, 43, 46, 0.15);
}

.mrc-home-location-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.mrc-home-location-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mrc-home-location-card:hover .mrc-home-location-card-image img {
    transform: scale(1.05);
}

.mrc-home-location-card-content {
    padding: 28px;
}

.mrc-home-location-card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mrc-dark, #0f1117);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 15px;
}

.mrc-home-location-card-address {
    font-family: 'Barlow', sans-serif;
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 20px;
    padding-left: 28px;
    position: relative;
}

.mrc-home-location-card-address i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--mrc-red, #d42b2e);
}

/* Contact */
.mrc-home-location-card-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.mrc-home-location-card-phone,
.mrc-home-location-card-email,
.mrc-home-location-card-hours {
    font-family: 'Barlow', sans-serif;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.mrc-home-location-card-phone:hover,
.mrc-home-location-card-email:hover {
    color: var(--mrc-red, #d42b2e);
}

.mrc-home-location-card-contact i {
    color: var(--mrc-red, #d42b2e);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* Button - red */
.mrc-home-location-card-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    background-color: var(--mrc-red, #d42b2e);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
}

.mrc-home-location-card-button:hover {
    background-color: var(--mrc-red-hover, #b82426);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 43, 46, 0.3);
}

/* =================================
   Map - yellow top accent border
   ================================= */
.mrc-home-location-map {
    height: 100%;
    min-height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

/* Subtle yellow accent on top of map */
.mrc-home-location-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--mrc-yellow, #EBBA37);
    z-index: 1;
}

.mrc-home-location-map iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
}

/* =================================
   Tablet
   ================================= */
@media (max-width: 992px) {
    .mrc-home-location {
        padding: 70px 0 60px;
    }

    .mrc-home-location-container {
        padding: 0 1.5rem;
    }

    .mrc-home-location-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .mrc-home-location-title {
        font-size: 2.1rem;
    }

    .mrc-home-location-map {
        min-height: 400px;
    }

    .mrc-home-location-map iframe {
        min-height: 400px;
    }
}

/* =================================
   Mobile
   ================================= */
@media (max-width: 768px) {
    .mrc-home-location {
        padding: 60px 0 50px;
    }

    .mrc-home-location-container {
        padding: 0 1.25rem;
    }

    .mrc-home-location-header {
        margin-bottom: 35px;
    }

    .mrc-home-location-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mrc-home-location-title {
        font-size: 1.85rem;
    }

    .mrc-home-location-subtitle {
        font-size: 1rem;
    }

    .mrc-home-location-card:hover {
        transform: none;
    }

    .mrc-home-location-card:hover .mrc-home-location-card-image img {
        transform: none;
    }

    .mrc-home-location-card-image {
        height: 180px;
    }

    .mrc-home-location-card-content {
        padding: 22px;
    }

    .mrc-home-location-card-button {
        width: 100%;
        justify-content: center;
    }

    .mrc-home-location-map {
        min-height: 300px;
    }

    .mrc-home-location-map iframe {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .mrc-home-location-card-phone,
    .mrc-home-location-card-email {
        font-size: 0.88rem;
        word-break: break-all;
    }
}
