/*
 * COMPONENT: Footer (Calmistry Design)
 */

.site-footer {
    /* Gradient Background: Brown/Bronze */
    background: linear-gradient(180deg, #3b2a20, #2a1b14);
    color: #ffffff;
    padding: 80px 0 40px;
    margin-top: auto;
    border-top: none;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    /* 4 Columns */
    gap: 40px;
    padding-bottom: 40px;
}

/* BRAND COLUMN */
.footer-logo {
    margin-bottom: 20px;
}

.logo-img {
    max-width: 180px;
    height: auto;
    display: block;
}

.footer-desc {
    font-size: 0.9375rem;
    /* 15px */
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    max-width: 320px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.2s ease;
}

.social-icons a:hover {
    background: #ffffff;
    color: #4A3022;
    transform: translateY(-2px);
}

/* LINK COLUMNS */
.footer-heading {
    font-family: var(--font-body);
    /* Usually sans-serif for these labels */
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: padding-left 0.2s, color 0.2s;
}

.footer-nav a:hover {
    color: #ffffff;
    padding-left: 4px;
    /* Subtle slide */
}

/* BOTTOM BAR */
.footer-bottom {
    background: rgba(0, 0, 0, 0.15);
    /* Slightly darker band */
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    /* 13px */
    color: rgba(255, 255, 255, 0.7);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-desc {
        margin: 0 auto 24px auto;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Add padding for Bottom Nav app-feel */
    .site-footer {
        padding-bottom: 80px;
    }

    /* PWA Only: Hide standard footer */
    @media (display-mode: standalone) {
        .site-footer {
            display: none;
        }
    }

    html.standalone .site-footer {
        display: none;
    }
}