/**
 * Actiefhost - High-End Minimalist Footer (SiteGround Editorial Aesthetic)
 * Fully namespaced with #footer.sg-footer to prevent any CSS cascade conflicts.
 */

/* ==========================================================================
   0. Root Container & Resets
   ========================================================================== */
#footer.sg-footer {
    display: block !important;
    position: relative !important;
    background-color: #fafbfc !important;
    background-image: none !important;
    color: #4b5563 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    border-top: 1px solid #e5e7eb !important;
    border-bottom: none !important;
    box-shadow: none !important;
    padding-top: 56px !important;
    padding-bottom: 24px !important;
    clear: both !important;
    overflow: visible !important;
}

#footer.sg-footer,
#footer.sg-footer * {
    box-sizing: border-box !important;
}

/* Hard reset for pseudo-elements from legacy migration stylesheets */
#footer.sg-footer *::after,
#footer.sg-footer *::before {
    box-shadow: none !important;
}

#footer.sg-footer button::after,
#footer.sg-footer button::before,
#footer.sg-footer .sg-footer-toggle::after,
#footer.sg-footer .sg-footer-toggle::before {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
}

#footer.sg-footer .sg-footer-inner {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
}

/* ==========================================================================
   1. Main 5-Column Grid
   ========================================================================== */
#footer.sg-footer .sg-footer-grid {
    display: grid !important;
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr !important;
    gap: 32px !important;
    margin-bottom: 44px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Brand Column */
#footer.sg-footer .sg-footer-col--brand {
    padding-right: 16px !important;
}

#footer.sg-footer .sg-footer-logo {
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
}

#footer.sg-footer .sg-footer-logo a {
    display: inline-block !important;
    border: none !important;
    text-decoration: none !important;
}

#footer.sg-footer .sg-footer-logo img {
    display: block !important;
    max-height: 34px !important;
    width: auto !important;
    height: auto !important;
    border: none !important;
}

#footer.sg-footer .sg-footer-desc {
    color: #64748b !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    max-width: 280px !important;
}

#footer.sg-footer .sg-footer-location {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    color: #475467 !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
}

#footer.sg-footer .sg-footer-location svg {
    color: #0066cc !important;
    stroke: #0066cc !important;
    flex-shrink: 0 !important;
}

/* Menu Columns */
#footer.sg-footer .sg-footer-col--menu {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
}

#footer.sg-footer .sg-footer-toggle {
    display: block !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 16px 0 !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    letter-spacing: -0.01em !important;
    text-align: left !important;
    cursor: default !important;
    box-shadow: none !important;
    line-height: 1.3 !important;
}

#footer.sg-footer .sg-footer-toggle-icon {
    display: none !important;
}

#footer.sg-footer .sg-footer-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#footer.sg-footer .sg-footer-menu li {
    list-style: none !important;
    margin: 0 0 9px 0 !important;
    padding: 0 !important;
    line-height: 1.45 !important;
}

#footer.sg-footer .sg-footer-menu li a {
    color: #4b5563 !important;
    font-size: 13.5px !important;
    text-decoration: none !important;
    display: inline-block !important;
    padding: 2px 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: color 0.15s ease !important;
}

#footer.sg-footer .sg-footer-menu li a:hover {
    color: #0066cc !important;
    text-decoration: none !important;
    transform: none !important;
}

/* ==========================================================================
   2. Utility Strip (Region Links, AI Summary, Socials)
   ========================================================================== */
#footer.sg-footer .sg-footer-utility {
    border-top: 1px solid #eaedf1 !important;
    padding: 20px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
    background: transparent !important;
}

/* Region Selection via Clean Links (No Dropdown) */
#footer.sg-footer .sg-footer-region {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#footer.sg-footer .sg-footer-region-label {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #64748b !important;
}

#footer.sg-footer .sg-region-links {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

#footer.sg-footer .sg-region-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 12.5px !important;
    color: #64748b !important;
    text-decoration: none !important;
    padding: 2px 4px !important;
    border-radius: 4px !important;
    transition: color 0.15s ease !important;
}

#footer.sg-footer .sg-region-link:hover {
    color: #0066cc !important;
    text-decoration: none !important;
}

#footer.sg-footer .sg-region-link.is-active {
    color: #111827 !important;
    font-weight: 700 !important;
}

#footer.sg-footer .sg-region-link .flag-icon {
    width: 16px !important;
    height: 11px !important;
    display: inline-block !important;
    border-radius: 2px !important;
    vertical-align: middle !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}

#footer.sg-footer .sg-region-sep {
    color: #cbd5e1 !important;
    font-size: 12px !important;
    user-select: none !important;
}

/* SiteGround-style AI Summary Prompts (Clean borderless vector icons) */
#footer.sg-footer .sg-footer-ai {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
}

#footer.sg-footer .sg-footer-ai-label {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #475467 !important;
    white-space: nowrap !important;
}

#footer.sg-footer .sg-footer-ai-icons {
    display: inline-flex !important;
    align-items: center !important;
    gap: 11px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#footer.sg-footer .sg-footer-ai-icons li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#footer.sg-footer .sg-footer-ai-icons a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    opacity: 0.82 !important;
    transition: opacity 0.15s ease, transform 0.15s ease !important;
}

#footer.sg-footer .sg-footer-ai-icons a:hover {
    opacity: 1 !important;
    transform: translateY(-2px) !important;
}

#footer.sg-footer .sg-footer-ai-icons img {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Social Media Icons */
#footer.sg-footer .sg-footer-socials {
    display: inline-flex !important;
    align-items: center !important;
}

#footer.sg-footer .sg-footer-socials-list {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#footer.sg-footer .sg-footer-socials-list li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#footer.sg-footer .sg-footer-socials-list a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    color: #64748b !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease !important;
}

#footer.sg-footer .sg-footer-socials-list a:hover {
    color: #0066cc !important;
    background: #eef4ff !important;
    transform: translateY(-1.5px) !important;
}

/* ==========================================================================
   3. Footer Bottom (Legal Links on Left, Payment Badges on Right)
   ========================================================================== */
#footer.sg-footer .sg-footer-bottom {
    border-top: 1px solid #e5e7eb !important;
    padding: 22px 0 26px 0 !important;
    background: transparent !important;
}

#footer.sg-footer .sg-footer-bottom-main {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}

#footer.sg-footer .sg-footer-legal {
    display: inline-flex !important;
    align-items: center !important;
    gap: 20px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: wrap !important;
}

#footer.sg-footer .sg-footer-legal li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#footer.sg-footer .sg-footer-legal a {
    font-size: 12.5px !important;
    color: #64748b !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    transition: color 0.15s ease !important;
}

#footer.sg-footer .sg-footer-legal a:hover {
    color: #0066cc !important;
    text-decoration: underline !important;
}

/* Supported Payment Badges (Clean, no text) */
#footer.sg-footer .sg-footer-payments {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

#footer.sg-footer .sg-footer-payment-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 28px !important;
    padding: 2px 8px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 5px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    transition: border-color 0.15s ease !important;
}

#footer.sg-footer .sg-footer-payment-badge:hover {
    border-color: #cbd5e1 !important;
}

#footer.sg-footer .sg-footer-payment-badge img {
    height: 18px !important;
    max-height: 18px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
}

/* ==========================================================================
   4. Responsive / Mobile Accordion (< 992px)
   ========================================================================== */
@media (max-width: 991.98px) {
    #footer.sg-footer {
        padding-top: 36px !important;
    }

    #footer.sg-footer .sg-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        margin-bottom: 24px !important;
    }

    #footer.sg-footer .sg-footer-col--brand {
        padding-right: 0 !important;
        padding-bottom: 20px !important;
        margin-bottom: 8px !important;
        border-bottom: 1px solid #eaedf1 !important;
    }

    #footer.sg-footer .sg-footer-col--menu {
        border-bottom: 1px solid #eaedf1 !important;
    }

    #footer.sg-footer.footer-accordion-enabled .sg-footer-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 14px 0 !important;
        margin: 0 !important;
        cursor: pointer !important;
        font-size: 14.5px !important;
        font-weight: 700 !important;
        color: #111827 !important;
    }

    #footer.sg-footer.footer-accordion-enabled .sg-footer-toggle-icon {
        display: inline-block !important;
        width: 8px !important;
        height: 8px !important;
        border-right: 2px solid #64748b !important;
        border-bottom: 2px solid #64748b !important;
        transform: rotate(45deg);
        transition: transform 0.2s ease !important;
        margin-right: 4px !important;
        flex-shrink: 0 !important;
    }

    #footer.sg-footer.footer-accordion-enabled .sg-footer-toggle[aria-expanded="true"] .sg-footer-toggle-icon {
        transform: rotate(-135deg) !important;
        border-color: #0066cc !important;
    }

    #footer.sg-footer.footer-accordion-enabled .sg-footer-menu {
        overflow: hidden !important;
        transition: max-height 0.25s ease-out, opacity 0.2s ease !important;
        padding-bottom: 12px !important;
    }

    #footer.sg-footer .sg-footer-utility {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }

    #footer.sg-footer .sg-footer-bottom-main {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px !important;
    }
}
