/* =========================================
   FOOTER BASE
========================================= */

.site-footer {
    background: #f3f4f6;
    color: #334155;

    margin-top: 30px;

    border-top: 1px solid #e5e7eb;

    padding-top: 30px;
}

/* =========================================
   GRID
========================================= */

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;

    gap: 70px;

    padding-bottom: 0px;
}

/* =========================================
   LOGO
========================================= */

.footer-logo img {
    width: 220px;
    height: auto;

    display: block;

    margin-bottom: 18px;
}

/* =========================================
   TEXT
========================================= */

.footer-brand p,
.footer-col p {
    color: #64748b;

    line-height: 1.8;
    font-size: 0.95rem;

    margin-bottom: 12px;
}

/* icons inside text */

.footer-col p i {
    color: #0f766e;

    width: 18px;

    margin-right: 8px;
}

/* =========================================
   HEADINGS
========================================= */

.footer-col h4 {
    color: #0f172a;

    font-size: 1.05rem;
    font-weight: 700;

    margin-bottom: 18px;
}

.footer-col h4::after {
    content: "";

    display: block;

    width: 40px;
    height: 3px;

    background: #0f766e;

    margin-top: 10px;

    border-radius: 20px;
}

/* =========================================
   LINKS
========================================= */

.footer-col a {
    display: block;

    width: fit-content;

    color: #64748b;

    text-decoration: none;

    margin-bottom: 12px;

    transition: 0.25s ease;
}

.footer-col a:hover {
    color: #0f766e;

    transform: translateX(4px);
}

/* =========================================
   SOCIALS
========================================= */

.footer-socials {
    display: flex;

    gap: 12px;

    margin-top: 22px;
}

.footer-socials a {
    width: 46px;
    height: 46px;

    min-width: 46px;
    min-height: 46px;

    flex: 0 0 46px;

    aspect-ratio: 1 / 1;

    border-radius: 50%;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #0f766e;

    text-decoration: none;

    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.08);

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

/* FIXES FONT AWESOME DISTORTION */

.footer-socials a i {
    display: block;

    line-height: 1;

    font-size: 1rem;
}

.footer-socials a:hover {
    background: #0f766e;

    color: #ffffff;

    transform: translateY(-3px);
}

/* =========================================
   BUTTON
========================================= */

.footer-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-top: 14px;

    padding: 14px 22px;

    background: #0f766e;

    color: #ffffff !important;

    border-radius: 12px;

    font-weight: 600;

    transition: 0.25s ease;
}

.footer-btn:hover {
    background: #115e59;
}

/* =========================
   FOOTER LEGAL LINKS
========================= */

.footer-legal {
    border-top: 1px solid #e5e7eb;
    padding: 18px 0;
    background: #fff;
}

.footer-legal-inner {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-legal-inner a {
    font-size: 0.9rem;
    color: #64748b;
    text-decoration: none;
    transition: 0.2s ease;
    position: relative;
}

.footer-legal-inner a:hover {
    color: #111827;
}

/* optional subtle separators on desktop */
.footer-legal-inner a:not(:last-child)::after {
    content: "•";
    margin-left: 18px;
    color: #cbd5e1;
}

@media (max-width: 768px) {

    .footer-legal-inner {
        gap: 12px;
    }

    .footer-legal-inner a:not(:last-child)::after {
        margin-left: 12px;
    }
}

/* =========================================
   BOTTOM BAR
========================================= */

.footer-bottom {
    border-top: 1px solid #e2e8f0;

    padding: 18px 0;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    gap: 4px;
}

.footer-bottom p {
    margin: 0;

    line-height: 1.4;

    color: #64748b;

    font-size: 0.9rem;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 50px;

        text-align: center;
    }

    .footer-logo img {
        margin: 0 auto 18px;
    }

    .footer-col h4::after {
        margin: 10px auto 0;
    }

    .footer-socials {
        justify-content: center;

        flex-wrap: wrap;
    }

    /* KEEP ICONS PERFECT CIRCLES */

    .footer-socials a {
        width: 46px;
        height: 46px;

        min-width: 46px;
        min-height: 46px;

        flex: 0 0 46px;

        border-radius: 50%;
    }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .site-footer {
        text-align: center;
    }

    .footer-grid {
        gap: 40px;
    }

    .footer-brand p,
    .footer-col p {
        font-size: 0.93rem;
    }

    /* FORCE EACH COLUMN CONTENT TO CENTER LIKE APP UI */
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* CENTER MENU LINKS PROPERLY */
    .footer-col a {
        width: auto;
        text-align: center;
    }

    /* CENTER BUTTON LIKE AMAZON STYLE CTA */
    .footer-btn {
        width: 100%;
        max-width: 320px;

        margin-left: auto;
        margin-right: auto;

        display: flex;
        justify-content: center;
    }

    /* CENTER SOCIAL ICON ROW */
    .footer-socials {
        justify-content: center;
    }

    /* KEEP SOCIAL ICONS PERFECT */
    .footer-socials a {
        width: 46px;
        height: 46px;

        min-width: 46px;
        min-height: 46px;

        flex: 0 0 46px;
        border-radius: 50%;
    }
}