/* =========================================================
   STEMA Footer Contact & Google Maps
   Dimuat setelah app.css agar style footer selalu menang.
   ========================================================= */

.stema-footer__company {
    width: 100%;
    max-width: 520px;
}

.stema-footer__description {
    max-width: 500px;
    margin-bottom: 18px;
}

/* Kontak ringkas */
.stema-footer__contact-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.stema-footer__contact-grid .stema-footer__contact-link {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition:
        border-color 200ms ease,
        background 200ms ease,
        box-shadow 200ms ease,
        transform 200ms ease;
}

.stema-footer__contact-grid .stema-footer__contact-link:hover {
    color: #ffffff;
    border-color: rgba(102, 166, 255, 0.31);
    background: rgba(255, 255, 255, 0.075);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
}

.stema-footer__contact-grid .stema-footer__contact-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: grid;
    place-items: center;
    border-radius: 12px;
}

.stema-footer__contact-link--whatsapp .stema-footer__contact-icon {
    color: #bcffda;
    background: rgba(32, 185, 97, 0.18);
}

.stema-footer__contact-link--whatsapp:hover .stema-footer__contact-icon {
    color: #ffffff;
    background: #20b961;
    transform: none;
}

.stema-footer__contact-link--email .stema-footer__contact-icon {
    color: #d5b8ff;
    background: rgba(144, 70, 255, 0.16);
}

.stema-footer__contact-link--email:hover .stema-footer__contact-icon {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #357cff,
            #9142ff
        );
    transform: none;
}

.stema-footer__contact-grid .stema-footer__contact-link > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.stema-footer__contact-grid .stema-footer__contact-link small {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.075em;
}

.stema-footer__contact-grid .stema-footer__contact-link strong {
    margin-top: 3px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Kartu Google Maps */
.stema-footer__location-card {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    margin-top: 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.072),
            rgba(255, 255, 255, 0.035)
        );
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition:
        border-color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.stema-footer__location-card:hover {
    border-color: rgba(104, 165, 255, 0.38);
    box-shadow:
        0 24px 50px rgba(0, 0, 0, 0.21),
        0 0 0 1px rgba(107, 158, 255, 0.1);
    transform: translateY(-4px);
}

.stema-footer__map-visual {
    position: relative;
    display: block;
    width: 100%;
    height: 210px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: #e8edf3;
}

.stema-footer__map-visual iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.stema-footer__map-badge {
    position: absolute;
    top: 11px;
    left: 11px;
    z-index: 2;
    max-width: calc(100% - 22px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    overflow: hidden;
    color: #0d2058;
    font-size: 0.63rem;
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.07em;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 9px 22px rgba(20, 38, 88, 0.17);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.stema-footer__map-badge > span {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #287dff;
    box-shadow: 0 0 0 0 rgba(40, 125, 255, 0.42);
    animation: stemaFooterLocationPulse 2s ease-out infinite;
}

.stema-footer__location-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px 14px;
    color: #ffffff;
    text-decoration: none;
    transition: background 200ms ease;
}

.stema-footer__location-content:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.035);
}

.stema-footer__location-content > span:first-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.stema-footer__location-content small {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.61rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.075em;
}

.stema-footer__location-content strong {
    margin-top: 3px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stema-footer__location-action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #82c5ff;
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.stema-footer__location-action svg {
    transition: transform 200ms ease;
}

.stema-footer__location-content:hover .stema-footer__location-action svg {
    transform: translateX(3px);
}

.stema-footer__contact-link:focus-visible,
.stema-footer__location-content:focus-visible {
    outline: 3px solid rgba(94, 167, 255, 0.5);
    outline-offset: 3px;
}

@keyframes stemaFooterLocationPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 125, 255, 0.42);
    }

    72%,
    100% {
        box-shadow: 0 0 0 9px rgba(40, 125, 255, 0);
    }
}

/* Laptop kecil: kontak disusun vertikal agar teks tidak terpotong. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .stema-footer__contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet */
@media (max-width: 991.98px) {
    .stema-footer__company {
        max-width: 650px;
    }

    .stema-footer__description,
    .stema-footer__contact-grid,
    .stema-footer__location-card {
        max-width: 650px;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .stema-footer__contact-grid {
        grid-template-columns: 1fr;
    }

    .stema-footer__map-visual {
        height: 190px;
    }

    .stema-footer__location-content {
        gap: 10px;
        padding: 12px;
    }

    .stema-footer__location-content strong {
        max-width: 180px;
    }
}

@media (max-width: 389.98px) {
    .stema-footer__map-visual {
        height: 175px;
    }

    .stema-footer__location-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .stema-footer__location-action {
        width: 100%;
        justify-content: space-between;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stema-footer__map-badge > span {
        animation: none;
    }

    .stema-footer__contact-grid .stema-footer__contact-link,
    .stema-footer__location-card,
    .stema-footer__location-action svg {
        transition: none;
    }
}
