/* ============================================
   ELSA GRAY - Footer Styles
   Clean, Minimal Style
   ============================================ */

/* ---------- Footer Base ---------- */
.footer {
    position: relative;
    background-image: url('../assets/images/hero-poster.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 30, 30, 0.85);
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer a {
    color: var(--color-light-gray);
    transition: opacity var(--transition-fast);
}

.footer a:hover {
    opacity: 0.7;
}

/* ---------- Footer Main ---------- */
.footer__main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Brand */
.footer__brand {
    max-width: 280px;
}

.footer__logo {
    margin-bottom: var(--space-lg);
}

.footer__logo img {
    height: 32px;
    width: auto;
    filter: brightness(10);
}

.footer__tagline {
    font-size: var(--text-sm);
    color: var(--color-light-gray);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.footer__social {
    display: flex;
    gap: var(--space-md);
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-white);
    transition: opacity var(--transition-fast);
}

.footer__social-link:hover {
    opacity: 0.7;
}

.footer__social-link svg {
    width: 18px;
    height: 18px;
}

/* Footer Columns */
.footer__column {
    padding-top: var(--space-xs);
}

.footer__heading {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: var(--space-sm);
}

.footer__list a {
    font-size: var(--text-sm);
    font-weight: 300;
}

/* Footer Newsletter */
.footer__newsletter {
    padding-top: var(--space-xs);
}

.footer__newsletter-text {
    font-size: var(--text-sm);
    color: var(--color-light-gray);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.footer__newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__newsletter-input {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-white);
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    outline: none;
    transition: border-color var(--transition-fast);
}

.footer__newsletter-input::placeholder {
    color: var(--color-mid-gray);
}

.footer__newsletter-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

.footer__newsletter-btn {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-charcoal);
    background-color: var(--color-white);
    border: none;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.footer__newsletter-btn:hover {
    opacity: 0.9;
}

/* ---------- Footer Bottom ---------- */
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    font-size: 11px;
    color: var(--color-mid-gray);
}

.footer__legal {
    display: flex;
    gap: var(--space-xl);
}

.footer__legal a {
    font-size: 11px;
    color: var(--color-mid-gray);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .footer__main {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }

    .footer__brand {
        grid-column: 1 / -1;
        max-width: none;
        text-align: center;
    }

    .footer__social {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .footer__main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .footer__legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-lg);
    }
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-charcoal);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-sticky);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-black);
}

.back-to-top svg {
    width: 18px;
    height: 18px;
}