/* ============================================================
   Footer Styles
   ============================================================ */

.footer {
    background: var(--color-surface-light, #EEEDE9);
    color: var(--color-text, #171A1C);
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--color-secondary-rgb), 0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* ---- Top section with CTA ---- */
.footer__cta {
    padding: var(--space-3xl) 0;
    border-bottom: 1px solid var(--color-border, #E2E1DC);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer__cta-text h3 {
    font-size: var(--fs-h2);
    color: var(--color-text, #171A1C);
    margin-bottom: var(--space-xs);
}

.footer__cta-text p {
    color: var(--color-text-muted, #5C6870);
    font-size: var(--fs-body);
}

/* ---- Main content ---- */
.footer__main {
    padding: var(--space-3xl) 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-3xl);
}

/* Column: About */
.footer__about {
    max-width: 320px;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    text-decoration: none;
}

.footer__logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: var(--fw-extrabold);
    color: var(--color-text, #171A1C);
}

.footer__logo-text span {
    color: var(--color-brand);
}

.footer__logo-img {
    height: 44px;
    width: auto;
    display: block;
}

.footer__about p {
    color: var(--color-text-muted, #5C6870);
    font-size: var(--fs-small);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-xl);
}

/* Social links */
.footer__social {
    display: flex;
    gap: var(--space-sm);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border, #E2E1DC);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted, #5C6870);
    text-decoration: none;
    transition: all var(--transition-base);
    font-size: 1rem;
}

.footer__social-link:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    background: rgba(var(--color-secondary-rgb), 0.1);
}

/* Column headings */
.footer__heading {
    font-family: var(--font-heading);
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--color-text, #171A1C);
    margin-bottom: var(--space-xl);
}

/* Link lists */
.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__link {
    color: var(--color-text-muted, #5C6870);
    font-size: var(--fs-small);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer__link:hover {
    color: var(--color-secondary);
}

.footer__link::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--color-secondary);
    transition: width var(--transition-base);
}

.footer__link:hover::before {
    width: 12px;
}

/* Column: Contact */
.footer__contact-item {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    color: var(--color-text-muted, #5C6870);
    font-size: var(--fs-small);
    line-height: var(--lh-relaxed);
}

.footer__contact-icon {
    flex-shrink: 0;
    width: 20px;
    color: var(--color-secondary);
    margin-top: 3px;
}

.footer__contact-item a {
    color: var(--color-text-muted, #5C6870);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer__contact-item a:hover {
    color: var(--color-secondary);
}

/* ---- Newsletter ---- */
.footer__newsletter {
    margin-top: var(--space-lg);
}

.footer__newsletter-form {
    display: flex;
    gap: var(--space-xs);
}

.footer__newsletter-input {
    flex: 1;
    padding: 12px 16px;
    font-size: var(--fs-small);
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--color-border, #E2E1DC);
    border-radius: var(--radius-sm);
    color: var(--color-text, #171A1C);
    outline: none;
    transition: border-color var(--transition-fast);
}

.footer__newsletter-input:focus {
    border-color: var(--color-secondary);
}

.footer__newsletter-input::placeholder {
    color: var(--color-text-muted, #5C6870);
}

.footer__newsletter-btn {
    padding: 12px 20px;
    background: var(--color-brand);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-small);
    cursor: pointer;
    transition: background var(--transition-fast);
    white-space: nowrap;
}

.footer__newsletter-btn:hover {
    background: var(--color-brand-hover);
}

/* ---- Bottom bar ---- */
.footer__bottom {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-border, #E2E1DC);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__copyright {
    font-size: var(--fs-tiny);
    color: var(--color-text-muted, #5C6870);
}

.footer__bottom-links {
    display: flex;
    gap: var(--space-xl);
}

.footer__bottom-link {
    font-size: var(--fs-tiny);
    color: var(--color-text-muted, #5C6870);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer__bottom-link:hover {
    color: var(--color-secondary);
}

/* ---- Back to Top (Stacked Above WhatsApp Button) ---- */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 26px;
    width: 40px;
    height: 40px;
    background: var(--color-surface, #FFFFFF);
    color: var(--color-text, #07171D);
    border: 1px solid var(--color-border, #E2E1DC);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition-fast, 0.2s);
    z-index: 840;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.back-to-top svg {
    width: 18px;
    height: 18px;
}

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

.back-to-top:hover {
    opacity: 1;
    background: var(--color-brand);
    color: var(--color-white);
    border-color: var(--color-brand);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* ---- Responsive ---- */
@media (max-width: 1023px) {
    .footer__main {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 767px) {
    .footer__cta {
        flex-direction: column;
        text-align: center;
    }

    .footer__main {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer__about {
        max-width: 100%;
    }

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

    .footer__bottom-links {
        justify-content: center;
    }

    .back-to-top {
        right: 20px;
        bottom: 74px;
        width: 38px;
        height: 38px;
    }
}
