/* ============================================
   FOOTER STYLES - Modern Footer Design
   ============================================ */

/* Modern Footer Styles */
footer {
    background-color: var(--white, #ffffff);
    padding: 60px 40px 30px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    font-family: var(
        --font-primary,
        'Inter',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        'Helvetica Neue',
        Arial,
        sans-serif
    );
}

footer .container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

/* Left Column - Navigation Menu */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    transition: var(--transition, all 0.3s ease);
}

.nav-item:hover {
    padding-left: 10px;
    border-bottom-color: var(--primary, #ff6347);
}

.nav-item a {
    text-decoration: none;
    color: var(--text-color, #333);
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-weight: var(--font-semi-bold, 600);
    font-size: clamp(12px, 1.4vw, 14px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition, color 0.3s ease);
}

.nav-item:hover a {
    color: var(--primary, #ff6347);
}

.nav-arrow {
    color: #999;
    font-size: clamp(10px, 1.2vw, 12px);
    transition: var(--transition, transform 0.3s ease);
}

.nav-item:hover .nav-arrow {
    transform: translateX(5px);
    color: var(--primary, #ff6347);
}

/* Center Column - Membership CTA */
.footer-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cta-title {
    font-family: var(--font-heading, 'Barlow', sans-serif);
    font-size: clamp(14px, 1.6vw, 15px);
    font-weight: var(--font-bold, 700);
    color: var(--text-color, #333);
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}

.cta-subtitle {
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: clamp(10px, 1.2vw, 11px);
    font-weight: var(--font-semi-bold, 600);
    color: #666;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cta-button {
    background: var(
        --gradient-primary,
        linear-gradient(135deg, #ff6347 0%, #ff6347 100%)
    );
    color: var(--text-on-primary, #ffffff);
    padding: clamp(12px, 1.4vw, 14px) clamp(30px, 4vw, 40px);
    border: none;
    border-radius: 30px;
    font-family: var(--font-heading, 'Barlow', sans-serif);
    font-size: clamp(13px, 1.5vw, 15px);
    font-weight: var(--font-bold, 700);
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
    box-shadow: 0 4px 15px rgba(255, 99, 71, 0.3);
    text-transform: capitalize;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 99, 71, 0.4);
    background: linear-gradient(
        135deg,
        var(--primary-dark, #ff6347) 0%,
        var(--primary-light, #ff7a63) 100%
    );
}

.cta-button:active {
    transform: translateY(0);
}

.social-section {
    margin-top: 40px;
    width: 100%;
    display: block;
    visibility: visible;
    opacity: 1;
    min-height: 80px;
}

.social-title {
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: clamp(11px, 1.3vw, 13px);
    font-weight: var(--font-bold, 700);
    color: var(--text-color, #333);
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.social-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary, #ff6347), transparent);
}

.social-icons {
    display: flex !important;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 48px;
}

.social-icon {
    width: clamp(44px, 4.5vw, 48px);
    height: clamp(44px, 4.5vw, 48px);
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6347 0%, #e5553d 100%) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
    position: relative;
    flex-shrink: 0;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    visibility: visible !important;
    opacity: 1 !important;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon svg {
    width: clamp(20px, 2.2vw, 22px);
    height: clamp(20px, 2.2vw, 22px);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    fill: #ffffff !important;
    color: #ffffff !important;
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-icon:hover svg {
    transform: scale(1.1);
}

/* Facebook */
.social-icon-facebook,
a.social-icon[class*="facebook"] {
    background: linear-gradient(135deg, #1877f2 0%, #0d5fdb 100%) !important;
}

.social-icon-facebook:hover,
a.social-icon[class*="facebook"]:hover {
    background: linear-gradient(135deg, #0d5fdb 0%, #0a4fc7 100%) !important;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

/* Instagram */
.social-icon-instagram,
a.social-icon[class*="instagram"] {
    background: linear-gradient(135deg, #e4405f 0%, #c13584 25%, #833ab4 50%, #5851db 75%, #405de6 100%) !important;
}

.social-icon-instagram:hover,
a.social-icon[class*="instagram"]:hover {
    background: linear-gradient(135deg, #c13584 0%, #833ab4 25%, #5851db 50%, #405de6 75%, #5b51d8 100%) !important;
    box-shadow: 0 8px 20px rgba(228, 64, 95, 0.4);
}

/* TikTok */
.social-icon-tiktok,
.social-icon-tik-tok,
a.social-icon[class*="tiktok"] {
    background: linear-gradient(135deg, #000000 0%, #161823 100%) !important;
}

.social-icon-tiktok:hover,
.social-icon-tik-tok:hover,
a.social-icon[class*="tiktok"]:hover {
    background: linear-gradient(135deg, #161823 0%, #000000 100%) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Twitter/X */
.social-icon-twitter,
.social-icon-x,
a.social-icon[class*="twitter"],
a.social-icon[class*="-x"] {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%) !important;
}

.social-icon-twitter:hover,
.social-icon-x:hover,
a.social-icon[class*="twitter"]:hover,
a.social-icon[class*="-x"]:hover {
    background: linear-gradient(135deg, #0d8bd9 0%, #0a7bc7 100%) !important;
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.4);
}

/* YouTube */
.social-icon-youtube,
a.social-icon[class*="youtube"] {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%) !important;
}

.social-icon-youtube:hover,
a.social-icon[class*="youtube"]:hover {
    background: linear-gradient(135deg, #cc0000 0%, #b30000 100%) !important;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

/* LinkedIn */
.social-icon-linkedin,
a.social-icon[class*="linkedin"] {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%) !important;
}

.social-icon-linkedin:hover,
a.social-icon[class*="linkedin"]:hover {
    background: linear-gradient(135deg, #005885 0%, #004a6b 100%) !important;
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.4);
}

/* WhatsApp */
.social-icon-whatsapp,
a.social-icon[class*="whatsapp"] {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%) !important;
}

.social-icon-whatsapp:hover,
a.social-icon[class*="whatsapp"]:hover {
    background: linear-gradient(135deg, #1da851 0%, #128c7e 100%) !important;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Default/Other Social Media - Fallback dengan warna solid */
.social-icon:not([class*="facebook"]):not([class*="instagram"]):not([class*="tiktok"]):not([class*="twitter"]):not([class*="youtube"]):not([class*="linkedin"]):not([class*="whatsapp"]):not([class*="-x"]) {
    background: linear-gradient(135deg, #ff6347 0%, #e5553d 100%) !important;
}

.social-icon:not([class*="facebook"]):not([class*="instagram"]):not([class*="tiktok"]):not([class*="twitter"]):not([class*="youtube"]):not([class*="linkedin"]):not([class*="whatsapp"]):not([class*="-x"]):hover {
    background: linear-gradient(135deg, #e5553d 0%, #ff6347 100%) !important;
    box-shadow: 0 8px 20px rgba(255, 99, 71, 0.4);
}

/* Right Column - Halal Certification */
.footer-certification {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.halal-badge {
    border: 3px solid var(--dark-color, #333);
    border-radius: 12px;
    padding: clamp(15px, 2vw, 20px);
    background-color: var(--white, #fff);
    transition: var(--transition, all 0.3s ease);
    max-width: 200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.halal-badge:hover {
    border-color: var(--primary, #ff6347);
    box-shadow: 0 8px 25px rgba(255, 99, 71, 0.2);
    transform: translateY(-3px);
}

.halal-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    transition: var(--transition, transform 0.3s ease);
}

.halal-badge:hover .halal-logo {
    transform: scale(1.05);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--border-color, #e0e0e0);
    padding-top: 30px;
}

.copyright {
    text-align: center;
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: clamp(10px, 1.2vw, 11px);
    color: #666;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(15px, 2.5vw, 25px);
}

.footer-links a {
    text-decoration: none;
    color: #666;
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: clamp(9px, 1.1vw, 10px);
    font-weight: var(--font-semi-bold, 600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition, color 0.3s ease);
    white-space: nowrap;
}

.footer-links a:hover {
    color: var(--primary, #ff6347);
}

/* Responsive Design - Large Desktop */
@media (min-width: 1400px) {
    footer {
        padding: 70px 50px 35px;
    }

    .footer-content {
        gap: 70px;
    }
}

/* Responsive Design - Desktop */
@media (max-width: 1200px) {
    footer {
        padding: 50px 30px 25px;
    }

    .footer-content {
        gap: 50px;
    }
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    footer {
        padding: 45px 30px 25px;
    }

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

    .footer-certification {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .halal-badge {
        max-width: 180px;
    }
}

/* Responsive Design - Mobile Large */
@media (max-width: 768px) {
    footer {
        padding: 40px 20px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-nav {
        order: 2;
    }

    .footer-cta {
        order: 1;
    }

    .footer-certification {
        order: 3;
        grid-column: 1;
    }

    .social-section {
        margin-top: 30px;
    }

    .social-icons {
        gap: 10px;
    }

    .social-icon {
        width: 42px;
        height: 42px;
    }

    .social-icon svg {
        width: 20px;
        height: 20px;
    }

    .halal-badge {
        max-width: 160px;
    }
}

/* Responsive Design - Mobile Medium */
@media (max-width: 480px) {
    footer {
        padding: 35px 15px 18px;
    }

    .footer-content {
        gap: 30px;
    }

    .nav-item {
        padding: 10px 0;
    }

    .nav-item a {
        font-size: 12px;
    }

    .cta-title {
        font-size: 14px;
    }

    .cta-subtitle {
        font-size: 10px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 13px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

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

    .social-icons {
        gap: 8px;
    }

    .halal-badge {
        max-width: 140px;
        padding: 15px;
    }

    .footer-links {
        gap: 12px;
    }

    .footer-links a {
        font-size: 9px;
    }
}

/* Responsive Design - Mobile Small */
@media (max-width: 360px) {
    footer {
        padding: 30px 12px 15px;
    }

    .footer-content {
        gap: 25px;
    }

    .nav-item {
        padding: 8px 0;
    }

    .nav-item a {
        font-size: 11px;
    }

    .cta-button {
        padding: 10px 25px;
        font-size: 12px;
    }

    .social-icon {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }

    .social-icon svg {
        width: 16px;
        height: 16px;
    }

    .social-icons {
        gap: 6px;
    }

    .halal-badge {
        max-width: 120px;
        padding: 12px;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-links a {
        font-size: 8px;
    }
}

@keyframes ripple {
    from {
        opacity: 1;
        transform: scale(0);
    }

    to {
        opacity: 0;
        transform: scale(2);
    }
}
