/* ============================================ */
/* FOOTER COMPONENT - AFRIPRECISION */
/* Premium SaaS-style footer */
/* ============================================ */

/* ============================================ */
/* 1. FOOTER CONTAINER */
/* ============================================ */

.footer {
    background: var(--gray-950);
    color: var(--text-inverse-secondary);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient overlay */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(196, 30, 40, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(196, 30, 40, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Top accent line */
.footer__accent {
    height: 4px;
    background: var(--gradient-primary);
    position: relative;
    z-index: 1;
}

/* ============================================ */
/* 2. MAIN FOOTER CONTENT */
/* ============================================ */

.footer__main {
    position: relative;
    z-index: 1;
    padding: var(--space-20) 0 var(--space-16);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-12);
}

@media (max-width: 1199px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-10);
    }
}

@media (max-width: 767px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
}

/* ============================================ */
/* 3. FOOTER BRAND COLUMN */
/* ============================================ */

.footer__brand {
    max-width: 380px;
}

.footer__logo {
    margin-bottom: var(--space-6);
}

.footer__logo img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* For true white SVG logos */
.footer__logo-white {
    height: 48px;
    width: auto;
}

.footer__description {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--text-inverse-secondary);
    margin-bottom: var(--space-6);
}

.footer__social {
    display: flex;
    gap: var(--space-3);
}

.footer__social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    color: var(--text-inverse-secondary);
    font-size: var(--text-lg);
    transition: all var(--transition-base);
}

.footer__social-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-primary);
}

/* ============================================ */
/* 4. FOOTER LINKS COLUMN */
/* ============================================ */

.footer__column-title {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: white;
    margin-bottom: var(--space-6);
    position: relative;
    padding-bottom: var(--space-3);
}

.footer__column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

.footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__links li {
    margin-bottom: var(--space-3);
}

.footer__links a {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    color: var(--text-inverse-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.footer__links a:hover {
    color: white;
    transform: translateX(4px);
}

.footer__links a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.footer__links a:hover::before {
    opacity: 1;
}

/* ============================================ */
/* 5. FOOTER CONTACT COLUMN */
/* ============================================ */

.footer__contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.footer__contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(196, 30, 40, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.footer__contact-icon i {
    font-size: var(--text-lg);
    color: var(--color-primary);
}

.footer__contact-item:hover .footer__contact-icon {
    background: var(--color-primary);
}

.footer__contact-item:hover .footer__contact-icon i {
    color: white;
}

.footer__contact-text {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: var(--text-inverse-muted);
    line-height: var(--leading-tight);
}

.footer__contact-text strong {
    display: block;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: white;
    margin-bottom: var(--space-1);
}

.footer__contact-text a {
    color: var(--text-inverse-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer__contact-text a:hover {
    color: var(--color-primary);
}

/* ============================================ */
/* 6. FOOTER CTA BOX */
/* ============================================ */

.footer__cta {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-top: var(--space-6);
}

.footer__cta-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: white;
    margin-bottom: var(--space-3);
}

.footer__cta-text {
    font-size: var(--text-sm);
    color: var(--text-inverse-secondary);
    margin-bottom: var(--space-5);
}

/* ============================================ */
/* 7. FOOTER BOTTOM */
/* ============================================ */

.footer__bottom {
    position: relative;
    z-index: 1;
    padding: var(--space-6) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer__copyright {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: var(--text-inverse-muted);
    margin: 0;
}

.footer__copyright a {
    color: var(--color-primary);
    text-decoration: none;
}

.footer__copyright a:hover {
    text-decoration: underline;
}

.footer__bottom-links {
    display: flex;
    gap: var(--space-6);
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__bottom-links a {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: var(--text-inverse-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer__bottom-links a:hover {
    color: white;
}

@media (max-width: 767px) {
    .footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer__bottom-links {
        justify-content: center;
    }
}

/* ============================================ */
/* 8. NEWSLETTER FORM */
/* ============================================ */

.footer__newsletter {
    margin-top: var(--space-6);
}

.footer__newsletter-form {
    display: flex;
    gap: var(--space-2);
}

.footer__newsletter-input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.footer__newsletter-input::placeholder {
    color: var(--text-inverse-muted);
}

.footer__newsletter-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.12);
}

.footer__newsletter-btn {
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: white;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.footer__newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* ============================================ */
/* 9. BACK TO TOP BUTTON */
/* ============================================ */

.back-to-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-primary);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-primary-lg);
}

.back-to-top i {
    font-size: var(--text-lg);
}

/* ============================================ */
/* 10. COOKIE BANNER */
/* ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-900);
    padding: var(--space-5) var(--space-6);
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    flex-wrap: wrap;
    z-index: var(--z-modal);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner.visible {
    display: flex;
}

.cookie-banner__text {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: var(--text-inverse-secondary);
    margin: 0;
    max-width: 600px;
}

.cookie-banner__text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: var(--space-3);
}

@media (max-width: 767px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--space-6);
    }
}

/* ============================================ */
/* 12. DARK MODE SUPPORT */
/* ============================================ */

[data-theme="dark"] .footer {
    background: var(--gray-950);
}


/* ============================================ */
/* END FOOTER COMPONENT */
/* ============================================ */

