/* ==========================================================================
   Modern App Footer
   ========================================================================== */
.app-footer {
    margin-top: auto;
    width: 100%;
    background: #080b08;
    color: #f5f6f4;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* 1. Value Props / Perks Bar */
.footer-perks {
    padding: 2.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.perks-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.perk-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: #ffcf8d;
}

.perk-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.perk-title {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #f5f6f4;
}

.perk-desc {
    font-size: 0.8rem;
    color: #8e958c;
    line-height: 1.4;
}

/* 2. Directory & Links Grid */
.footer-main {
    padding: 3.5rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col--brand {
    gap: 1rem;
}

.brand-bio {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #8e958c;
    max-width: 320px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.contact-entry {
    font-size: 0.84rem;
    color: #8e958c;
}

.emergency-link {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #efaa9c;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.emergency-link:hover {
    color: #ffcf8d;
    transform: translateX(4px);
}

.footer-heading {
    margin: 0 0 1.25rem 0;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ffcf8d;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #8e958c;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    transition: color 0.15s ease, transform 0.15s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #f5f6f4;
    transform: translateX(3px);
}

/* 3. Bottom Bar */
.footer-bottom {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #050705;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.copyright-text {
    font-size: 0.8rem;
    color: #8e958c;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: none;
    color: #8e958c;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}

.back-to-top svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.back-to-top:hover {
    color: #ffcf8d;
    background: rgba(255, 255, 255, 0.05);
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Viewports
   ========================================================================== */
@media (max-width: 991px) {
    .perks-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-col--brand {
        grid-column: span 2;
    }
}

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

    .footer-col--brand {
        grid-column: span 1;
    }

    .footer-bottom-inner {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 0.75rem;
    }
}