/**
 * Shared footer and mobile nav styles.
 * Uses CSS variables from page :root. Add fallbacks for pages that omit some vars.
 */

/* Floating WhatsApp - bottom right of viewport, always visible */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    animation: whatsapp-glow 2s ease-in-out infinite;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6), 0 0 0 12px rgba(37, 211, 102, 0);
}
@keyframes whatsapp-glow {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.7), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

.footer {
    background: var(--bg-secondary, var(--bg-card, #16213e));
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border, rgba(255,255,255,0.06));
    max-width: 100%;
    overflow-x: hidden;
}

.footer-content {
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary, #f1f1f1);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand .logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm, 8px);
    background: var(--accent, #e8b4b8);
    color: var(--bg-primary, #1a1a2e);
    font-size: 0.9rem;
}

.footer-brand .logo-text {
    font-size: 1.1rem;
}

.footer-brand p {
    color: var(--text-secondary, #a8a8b3);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.footer-brand .social-links {
    display: flex;
    gap: 0.6rem;
}

.footer-brand .social-links a {
    width: 36px;
    height: 36px;
    background: var(--bg-card, #1f2544);
    border-radius: var(--radius-sm, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #6c6c7a);
    transition: var(--transition, all 0.25s ease);
}

.footer-brand .social-links a:hover {
    background: var(--accent, #e8b4b8);
    color: var(--bg-primary, #1a1a2e);
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary, #f1f1f1);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    color: var(--text-secondary, #a8a8b3);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition, all 0.25s ease);
}

.footer-col ul li a:hover {
    color: var(--accent, #e8b4b8);
}

.footer-bottom {
    border-top: 1px solid var(--border, rgba(255,255,255,0.06));
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted, #6c6c7a);
    font-size: 0.8rem;
}

.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.6rem 1rem;
    z-index: 1000;
    border-top: 1px solid var(--border, rgba(255,255,255,0.06));
}

.mobile-nav-links {
    display: flex;
    justify-content: space-around;
    list-style: none;
}

.mobile-nav-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted, #6c6c7a);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    transition: var(--transition, all 0.25s ease);
}

.mobile-nav-links a i {
    font-size: 1.1rem;
}

.mobile-nav-links a.active,
.mobile-nav-links a:hover {
    color: var(--accent, #e8b4b8);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .whatsapp-float {
        bottom: 80px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
    }

    body {
        padding-bottom: 65px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
