/* ==========================================================================
   Footer — 5-column layout (4 menu cols + social col), payment bar, copyright,
   floating back-to-top button
   ========================================================================== */

.site-footer {
    background: linear-gradient(180deg, var(--lh-primary) 0%, var(--lh-primary-dark) 100%);
    color: rgba(255, 255, 255, 0.85);
}

/* Main Footer */
.footer-main {
    padding: 64px 0 48px;
}

/* Footer brand logo (white variant on dark footer) */
.footer-brand {
    margin-bottom: 40px;
}

.footer-logo {
    height: 44px;
    width: auto;
    display: block;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 600px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Footer column titles — scoped under .site-footer so page-level heading rules
   (e.g. woocommerce.css `.woocommerce-cart h3`) can't override the color. */
.site-footer .footer-col-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--lh-white);
    margin-bottom: 20px;
}

/* Footer menus */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu li a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.875rem;
    transition: all var(--lh-transition);
}

.footer-menu li a:hover {
    color: var(--lh-white);
    padding-left: 4px;
}

/* Social column */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.social-icon:hover {
    color: var(--lh-white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Brand-color hovers */
.social-facebook:hover  { background-color: #1877F2; }
.social-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-twitter:hover   { background-color: #000000; }
.social-linkedin:hover  { background-color: #0A66C2; }
.social-youtube:hover   { background-color: #FF0000; }
.social-tiktok:hover    { background-color: #000000; }
.social-whatsapp:hover  { background-color: #25D366; }

/* Screen reader text — visually hidden, accessible to assistive tech */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Payment Icons Bar */
.footer-payments {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 24px 0;
}

.payment-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.payment-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.payment-icon svg {
    display: block;
    width: 52px;
    height: 34px;
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Back-to-top button — fixed bottom-right, stacked above the Click-to-Chat
   WhatsApp icon (#ht-ctc-chat at bottom:15px right:15px, ~60px tall). */
.back-to-top {
    position: fixed;
    right: 15px;
    bottom: 90px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--lh-primary);
    color: var(--lh-white);
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
    z-index: 999;
    pointer-events: none;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background-color: var(--lh-accent);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* JS toggles .is-visible; override default [hidden] display:none so the
   transition can run when the no-JS fallback attribute is removed. */
.back-to-top[hidden] {
    display: flex;
}
