@charset "UTF-8";

/* ============================================================
   APEXBRIDGEHUB.EU - FOOTER
   Version: 2.0
   Description: Clean footer styles - brand, links, social icons
   ============================================================ */

/* ============================================================
   1. FOOTER - MAIN
   ============================================================ */

.footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-2xl) 0 var(--space-lg);
    position: relative;
    overflow: hidden;
}

/* Decorative gold line at top */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--gold) 20%, 
        var(--gold) 80%, 
        transparent 100%);
    opacity: 0.6;
}

/* ============================================================
   2. FOOTER GRID
   ============================================================ */

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================================
   3. FOOTER BRAND
   ============================================================ */

.footer-brand {
    max-width: 360px;
}

.footer-brand .logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--white);
    text-decoration: none;
    margin-bottom: var(--space-md);
    transition: var(--transition-base);
}

.footer-brand .logo:hover {
    opacity: 0.9;
}

.footer-brand .logo i {
    color: var(--gold);
    font-size: 22px;
}

.footer-brand .logo .gold {
    color: var(--gold);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-lg);
    max-width: 320px;
}

/* ============================================================
   4. SOCIAL LINKS
   ============================================================ */

.social-links {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-circle);
    background-color: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition-base);
    font-size: var(--font-size-base);
}

.social-links a:hover {
    background-color: var(--gold);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(212, 168, 67, 0.3);
}

/* ============================================================
   5. FOOTER LINKS (Columns)
   ============================================================ */

.footer-links h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background-color: var(--gold);
    border-radius: var(--radius-full);
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links ul li {
    margin: 0;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    line-height: var(--line-height-normal);
}

.footer-links ul li a:hover {
    color: var(--gold);
    transform: translateX(4px);
}

/* Contact items */
.footer-links ul li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

.footer-links ul li i {
    color: var(--gold);
    width: 18px;
    font-size: var(--font-size-sm);
    flex-shrink: 0;
    text-align: center;
}

/* ============================================================
   6. FOOTER BOTTOM (Copyright)
   ============================================================ */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
    flex-wrap: wrap;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: var(--font-size-sm);
    margin: 0;
}

.footer-bottom .footer-legal {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.footer-bottom .footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: var(--transition-base);
}

.footer-bottom .footer-legal a:hover {
    color: var(--gold);
}

/* ============================================================
   7. FOOTER RESPONSIVE - TABLET (max-width: 1024px)
   ============================================================ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl) var(--space-lg);
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
}

/* ============================================================
   8. FOOTER RESPONSIVE - MOBILE (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {
    .footer {
        padding: var(--space-xl) 0 var(--space-md);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        margin-bottom: var(--space-lg);
        padding-bottom: var(--space-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .footer-bottom .footer-legal {
        justify-content: center;
    }
}

/* ============================================================
   9. FOOTER RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ============================================================ */

@media (max-width: 480px) {
    .footer {
        padding: var(--space-lg) 0 var(--space-sm);
    }
    
    .footer-brand .logo {
        font-size: 20px;
    }
    
    .footer-brand .logo i {
        font-size: 18px;
    }
    
    .footer-links h4 {
        font-size: var(--font-size-sm);
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
        font-size: var(--font-size-sm);
    }
    
    .footer-bottom .footer-legal {
        flex-direction: column;
        gap: var(--space-xs);
    }
}

/* ============================================================
   10. BACK TO TOP BUTTON
   ============================================================ */

.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-circle);
    background-color: var(--gold);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-gold);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    z-index: var(--z-sticky);
    font-size: var(--font-size-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--gold-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(212, 168, 67, 0.4);
}

.back-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: var(--space-md);
        right: var(--space-md);
        width: 44px;
        height: 44px;
    }
}

/* ============================================================
   11. ANIMATIONS
   ============================================================ */

@keyframes fadeInFooter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-grid > * {
    animation: fadeInFooter 0.6s ease forwards;
}

.footer-grid > *:nth-child(1) { animation-delay: 0.1s; }
.footer-grid > *:nth-child(2) { animation-delay: 0.2s; }
.footer-grid > *:nth-child(3) { animation-delay: 0.3s; }
.footer-grid > *:nth-child(4) { animation-delay: 0.4s; }

/* ============================================================
   END OF FILE
   ============================================================ */