/* --- Footer Section (BEM) --- */
.footer {
    position: relative;
    background-color: var(--color-bg-darker);
    color: var(--color-text-light);
    padding: var(--space-6xl) 0 0 0;
    overflow: hidden;
    font-family: var(--font-main);
}

/* Background Shape */
.footer__bg-shape {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.footer__container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* Top: Big CTA */
.footer__cta {
    margin-bottom: var(--space-6xl);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer__cta-title {
    font-size: clamp(3rem, 8vw, 8rem);
    line-height: 0.9;
    font-weight: 900;
    margin-bottom: var(--space-2xl);
    letter-spacing: -2px;
    text-transform: uppercase;
}

.footer__cta-highlight {
    color: transparent;
    -webkit-text-stroke: 2px var(--color-text-light);
    transition: color 0.3s ease;
}

.footer__cta:hover .footer__cta-highlight {
    color: var(--color-primary);
    -webkit-text-stroke: 2px var(--color-primary);
}

.footer__cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-bg-darker);
    background-color: var(--color-text-light);
    padding: var(--space-lg) var(--space-2xl);
    border-radius: var(--border-radius-btn);
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s;
}

.footer__cta-button:hover {
    transform: scale(1.05) rotate(-2deg);
    background-color: var(--color-primary);
}

.footer__cta-arrow {
    transition: transform 0.3s;
}

.footer__cta-button:hover .footer__cta-arrow {
    transform: translateX(10px);
}

/* Middle: Links Grid */
.footer__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4xl);
    margin-bottom: var(--space-6xl);
    border-top: 1px solid var(--border-white-low);
    padding-top: var(--space-4xl);
}

.footer__group-title {
    font-size: 1.2rem;
    margin-bottom: var(--space-xl);
    color: var(--color-text-grey-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer__link {
    display: block;
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    transition: color 0.3s, transform 0.3s;
}

.footer__link:hover {
    color: var(--color-primary);
    transform: translateX(10px);
}

.footer__text {
    font-size: 1.2rem;
    color: var(--color-text-grey-light);
    margin-bottom: var(--space-sm);
}

.footer__link--phone,
.footer__link--email {
    font-size: 1.2rem;
    margin-top: var(--space-sm);
    display: inline-block;
}

/* Social Icons */
.footer__social-icons {
    display: flex;
    gap: var(--space-lg);
}

.footer__social-link {
    width: 60px;
    height: 60px;
    border: 2px solid var(--color-text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin: 0;
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer__social-link:hover {
    background-color: var(--color-text-light);
    color: var(--color-bg-darker);
    transform: translateY(-5px);
}

/* Bottom: Marquee & Legal */
.footer__bottom {
    border-top: 1px solid var(--border-white-low);
    padding: var(--space-2xl) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.footer__marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0.3;
}

.footer__marquee-content {
    display: inline-block;
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    animation: marquee 20s linear infinite;
    -webkit-text-stroke: 1px var(--color-text-light);
    color: transparent;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.footer__legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-text-grey-soft);
}

.footer__legal-links {
    display: flex;
}

.footer__legal-link {
    color: var(--color-text-grey-soft);
    text-decoration: none;
    margin-left: var(--space-xl);
    transition: color 0.3s;
}

.footer__legal-link:hover {
    color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .footer {
        padding-top: var(--space-4xl);
    }

    .footer__cta {
        margin-bottom: var(--space-4xl);
    }

    .footer__cta-title {
        font-size: 3rem; /* Smaller for mobile */
        margin-bottom: var(--space-xl);
    }
    
    .footer__cta-button {
        width: 100%;
        justify-content: center;
        padding: var(--space-md) var(--space-xl);
    }

    .footer__links {
        grid-template-columns: 1fr; /* Stack columns */
        gap: var(--space-3xl);
        padding-top: var(--space-3xl);
        margin-bottom: var(--space-4xl);
    }

    .footer__link-group {
        text-align: center; /* Center align links on mobile */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer__social-icons {
        justify-content: center;
    }

    .footer__legal {
        flex-direction: column;
        gap: var(--space-lg);
        align-items: center; /* Center align legal */
        text-align: center;
    }
    
    .footer__legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .footer__legal-link {
        margin: 0;
    }

    .footer__marquee-content {
        font-size: 2.5rem; /* Smaller marquee text */
    }
}

@media (max-width: 480px) {
    .footer {
        padding-top: var(--space-3xl);
    }

    .footer__cta-title {
        font-size: 2.2rem;
        word-break: break-word;
    }

    .footer__cta-button {
        font-size: 1.1rem;
        padding: var(--space-md) var(--space-lg);
        width: 100%;
    }

    .footer__links {
        gap: var(--space-2xl);
    }

    .footer__social-link {
        width: 50px;
        height: 50px;
    }

    .footer__marquee-content {
        font-size: 1.5rem;
    }

    .footer__legal {
        font-size: 0.8rem;
    }
}
