/* ==========================================================================
   Make My Theme — footer.css
   ========================================================================== */

.site-footer {
    background-color: var(--color-surface);
    border-top: var(--border);
    margin-top: auto;
}

/* ── Newsletter ─────────────────────────────────────────────────────────────── */

.footer-newsletter {
    border-bottom: var(--border);
}

.footer-newsletter__inner {
    max-width: 600px;
    margin-inline: auto;
    text-align: center;
}

.footer-newsletter__label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-wider);
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-2);
}

.footer-newsletter__heading {
    font-size: clamp(1.25rem, 3vw, var(--font-size-2xl));
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-8);
    letter-spacing: var(--letter-spacing-tight);
}

.footer-newsletter__form {
    width: 100%;
}

.footer-newsletter__field {
    display: flex;
    align-items: baseline;
    gap: var(--space-4);
    border-bottom: 1px solid var(--color-text);
    padding-bottom: var(--space-2);
}

.footer-newsletter__input {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: var(--font-size-base);
    color: var(--color-text);
    padding: var(--space-2) 0;
}

.footer-newsletter__input::placeholder {
    color: var(--color-text-muted);
}

.footer-newsletter__input:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.footer-newsletter__btn {
    flex-shrink: 0;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0;
    text-decoration: none;
    border: none;
    transition: color var(--transition-fast), gap var(--transition-fast);
}

.footer-newsletter__btn:hover {
    color: var(--color-accent);
    gap: var(--space-3);
}


/* ── Footer Link Columns ────────────────────────────────────────────────────── */

.footer-links {
    border-bottom: var(--border);
}

.footer-links__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

.footer-links__heading {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-wider);
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-5);
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-nav a {
    font-size: var(--font-size-sm);
    color: var(--color-text);
    transition: color var(--transition-fast);
    line-height: var(--line-height-snug);
}

.footer-nav a:hover {
    color: var(--color-accent);
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-contact a {
    font-size: var(--font-size-sm);
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--color-accent);
}


/* ── Footer Bottom Bar ──────────────────────────────────────────────────────── */

.footer-bottom {
    padding-block: var(--space-6);
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.footer-bottom__copyright {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-align: center;
}

/* Social nav */
.social-nav {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    list-style: none;
}

.social-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-text-muted);
    border: var(--border);
    border-radius: var(--radius-full);
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.social-nav a:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* Payment icons — placeholder */
.footer-bottom__payment {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.payment-icon {
    display: block;
    width: 36px;
    height: 24px;
    background-color: var(--color-border);
    border-radius: var(--radius-sm);
    /* Replace with actual payment icon SVGs/images */
}


/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .footer-links__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-links__grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-newsletter__field {
        flex-direction: column;
        align-items: stretch;
        border-bottom: none;
        gap: var(--space-3);
    }

    .footer-newsletter__input {
        border-bottom: 1px solid var(--color-text);
        padding-bottom: var(--space-2);
    }

    .footer-newsletter__btn {
        justify-content: center;
    }
}
