/**
 * Landing Footer – mobile-first, RTL.
 * About | Contact, social grid, Terms, copyright. Uses landing CSS variables.
 */

.landing-footer {
    --footer-bg: #1a1d24;
    --footer-bg-soft: #252830;
    --footer-text: #e8eaed;
    --footer-text-muted: #9aa0a6;
    --footer-accent: var(--primary-red, #FF6B00);
    --footer-link-hover: #ffffff;
    --footer-radius: 16px;
    --footer-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);

    background: var(--footer-bg);
    color: var(--footer-text);
    padding: clamp(2.5rem, 8vw, 4rem) clamp(1.25rem, 5vw, 2rem) clamp(1.5rem, 4vw, 2rem);
    box-shadow: var(--footer-shadow);
    margin-top: 0;
}

.landing-footer__container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ----- Top: About | Contact ----- */
.landing-footer__top {
    text-align: center;
    margin-bottom: clamp(2rem, 6vw, 2.5rem);
    padding-bottom: clamp(1.5rem, 4vw, 2rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
}

.landing-footer__link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--footer-text);
    transition: color 0.2s ease;
}

.landing-footer__link:hover {
    color: var(--footer-accent);
}

.landing-footer__link--contact {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.landing-footer__sep {
    color: var(--footer-text-muted);
    font-weight: 400;
    user-select: none;
}

/* ----- Social block ----- */
.landing-footer__social {
    margin-bottom: clamp(2rem, 6vw, 2.5rem);
}

.landing-footer__social-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--footer-text-muted);
    margin-bottom: 1rem;
    text-align: center;
}

.landing-footer__social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.landing-footer__social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1rem 0.75rem;
    border-radius: var(--footer-radius);
    color: #fff;
    text-align: center;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    min-height: 72px;
    justify-content: center;
}

/* Platform brand backgrounds */
.landing-footer__social-item.whatsapp {
    background: #25d366; /* WhatsApp green */
}
.landing-footer__social-item.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); /* Instagram gradient */
}
.landing-footer__social-item.youtube {
    background: #ff0000; /* YouTube red */
}
.landing-footer__social-item.tiktok {
    background: #000000; /* TikTok black */
}
.landing-footer__social-item.facebook {
    background: #1877f2; /* Facebook blue */
}

.landing-footer__social-item:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.landing-footer__social-item .landing-footer__social-handle {
    color: rgba(255, 255, 255, 0.9);
}

.landing-footer__social-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.landing-footer__social-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.landing-footer__social-handle {
    font-size: 0.75rem;
    color: var(--footer-text-muted);
}

.landing-footer__social-item:hover .landing-footer__social-handle {
    color: rgba(255, 255, 255, 0.8);
}

/* ----- Legal: Terms of use ----- */
.landing-footer__legal {
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.landing-footer__legal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--footer-text-muted);
    transition: color 0.2s ease;
}

.landing-footer__legal-link:hover {
    color: var(--footer-accent);
}

/* ----- Bottom: Copyright ----- */
.landing-footer__bottom {
    text-align: center;
}

.landing-footer__copy {
    font-size: 0.85rem;
    color: var(--footer-text-muted);
    margin: 0;
}

/* ----- Mobile: tighter social grid ----- */
@media (max-width: 480px) {
    .landing-footer__social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .landing-footer__social-item {
        padding: 0.85rem 0.5rem;
        min-height: 64px;
    }

    .landing-footer__social-handle {
        display: none;
    }
}

/* ----- Tablet+: 3–5 columns for social ----- */
@media (min-width: 481px) and (max-width: 768px) {
    .landing-footer__social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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