/**
 * BakoelEtek Storefront Dynamic Footer
 * Single Source of Truth: Konfigurasi Sistem Perusahaan
 * Background: #064B22 (Synchronized with Admin & Storefront Header)
 */

.storefront-dynamic-footer {
    display: block;
    width: 100%;
    background: #064B22;
    background: linear-gradient(180deg, #064B22 0%, #043818 100%);
    color: #e2ece5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-top: 3px solid #0a6632;
    margin-top: 48px;
    padding-top: 48px;
    padding-bottom: 32px;
    box-sizing: border-box;
    position: relative;
    z-index: 20;
}

/* On mobile/tablet where bottom navigation bar is fixed at the bottom */
@media (max-width: 1099px) {
    .storefront-dynamic-footer {
        padding-bottom: calc(var(--bottom-nav, 64px) + 36px);
        margin-top: 32px;
        padding-top: 36px;
    }
}

.storefront-footer-container {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .storefront-footer-container {
        width: min(100% - 48px, 1280px);
    }
}

/* --------------------------------------------------------------------------
   4-Column Responsive Grid Layout
   -------------------------------------------------------------------------- */
.storefront-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px 24px;
}

@media (min-width: 600px) and (max-width: 991px) {
    .storefront-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 28px;
    }
}

@media (min-width: 992px) {
    .storefront-footer-grid {
        grid-template-columns: 1.4fr 0.9fr 1fr 1.3fr;
        gap: 40px;
    }
}

/* --------------------------------------------------------------------------
   Column Styling & Typography
   -------------------------------------------------------------------------- */
.storefront-footer-col {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.storefront-footer-col-title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
    position: relative;
    padding-bottom: 8px;
    display: inline-block;
}

.storefront-footer-col-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: #FF4A00;
}

/* --------------------------------------------------------------------------
   Column 1: Brand & Identity
   -------------------------------------------------------------------------- */
.storefront-footer-logo-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    text-decoration: none;
    width: fit-content;
}

.storefront-footer-brand-logo {
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.storefront-footer-brand-title {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.storefront-footer-tagline {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: #FF4A00;
    line-height: 1.4;
}

.storefront-footer-short-desc {
    margin: 0 0 20px 0;
    font-size: 13px;
    line-height: 1.6;
    color: #c4d9cb;
    max-width: 380px;
}

/* Social Media Buttons */
.storefront-footer-social-wrap {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.storefront-footer-social-label {
    font-size: 12px;
    font-weight: 600;
    color: #a7c5b1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.storefront-footer-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.storefront-footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.storefront-footer-social-btn:hover {
    background: #FF4A00;
    border-color: #FF4A00;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.storefront-footer-social-btn:focus-visible {
    outline: 2px solid #FF4A00;
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   App Store & Google Play Badges
   -------------------------------------------------------------------------- */
.storefront-footer-apps-wrap {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
}

.storefront-footer-apps-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.storefront-footer-app-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border-radius: 7px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, box-shadow 0.2s ease;
    line-height: 0;
}

.storefront-footer-app-link:hover {
    transform: translateY(-2px);
    opacity: 0.94;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.storefront-footer-app-link:focus-visible {
    outline: 2px solid #FF4A00;
    outline-offset: 2px;
}

.storefront-footer-app-badge {
    height: 38px;
    width: auto;
    max-width: 135px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

@media (max-width: 480px) {
    .storefront-footer-apps-badges {
        gap: 8px;
    }
    .storefront-footer-app-badge {
        height: 35px;
        max-width: 122px;
    }
}

/* --------------------------------------------------------------------------
   Columns 2 & 3: Link Lists (Navigasi, Ketentuan & Bantuan)
   -------------------------------------------------------------------------- */
.storefront-footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.storefront-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d1e4d7;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.15s ease, transform 0.15s ease;
    width: fit-content;
}

.storefront-footer-bullet {
    color: #85e8a5;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.15s ease;
}

.storefront-footer-link:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.storefront-footer-link:hover .storefront-footer-bullet {
    color: #FF4A00;
}

.storefront-footer-link:focus-visible {
    outline: 2px solid #FF4A00;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Column 4: Kontak & Jam Operasional
   -------------------------------------------------------------------------- */
.storefront-footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.storefront-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.storefront-footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #85e8a5;
    flex-shrink: 0;
    margin-top: 2px;
}

.storefront-footer-contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    line-height: 1.45;
}

.storefront-footer-contact-label {
    font-size: 11px;
    font-weight: 600;
    color: #a7c5b1;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.storefront-footer-contact-value {
    color: #f1f7f3;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.storefront-footer-phone-link,
.storefront-footer-email-link {
    color: #ffffff;
    font-weight: 600;
}

.storefront-footer-phone-link:hover,
.storefront-footer-email-link:hover {
    color: #FF4A00;
    text-decoration: underline;
}

.storefront-footer-maps-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f1f7f3;
}

.storefront-footer-maps-link:hover {
    color: #FF4A00;
}

.storefront-footer-ext-icon {
    opacity: 0.75;
    flex-shrink: 0;
}

.storefront-footer-hours-badge {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(255, 74, 0, 0.15);
    border: 1px solid rgba(255, 74, 0, 0.35);
    color: #FF4A00;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Divider & Copyright Bottom Bar
   -------------------------------------------------------------------------- */
.storefront-footer-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 25%, rgba(255, 255, 255, 0.18) 75%, transparent 100%);
    margin: 36px 0 24px;
}

.storefront-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.5px;
    color: #9ebdb0;
    text-align: center;
}

@media (min-width: 768px) {
    .storefront-footer-bottom {
        flex-direction: row;
        text-align: left;
    }
}

.storefront-footer-copyright {
    margin: 0;
}

.storefront-footer-copyright strong {
    color: #ffffff;
}

.storefront-footer-slogan {
    font-weight: 500;
    color: #b9d8c6;
}
