/* =========================================================
   FOOTER.CSS
   Main Footer + Social Links + Contact + WhatsApp Button
   ========================================================= */


/* =========================================================
   1. SITE FOOTER
   ========================================================= */

.site-footer {
    position: relative;

    margin-top: 80px;

    color: rgba(255, 255, 255, 0.86);

    background:
        linear-gradient(
            145deg,
            #07150d,
            #0b2517 48%,
            #103820
        );

    overflow: hidden;
}

.site-footer::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -220px;
    right: -120px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(34, 197, 94, 0.15),
            transparent 68%
        );

    pointer-events: none;
}

.site-footer::after {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    bottom: -170px;
    left: -100px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(245, 158, 11, 0.10),
            transparent 70%
        );

    pointer-events: none;
}


/* =========================================================
   2. MAIN FOOTER
   ========================================================= */

.footer-main {
    position: relative;
    z-index: 2;

    padding: 80px 0 60px;
}

.footer-container {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1.45fr
        0.8fr
        0.8fr
        1.15fr;

    gap: 50px;
}


/* =========================================================
   3. FOOTER COLUMN
   ========================================================= */

.footer-column {
    min-width: 0;
}

.footer-column h3 {
    position: relative;

    margin-bottom: 25px;
    padding-bottom: 12px;

    color: var(--white);

    font-size: 18px;
    font-weight: 700;
}

.footer-column h3::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 42px;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--secondary),
            var(--primary-light)
        );

    border-radius: 20px;
}


/* =========================================================
   4. FOOTER BRAND
   ========================================================= */

.footer-brand {
    display: inline-flex;
    align-items: center;

    gap: 14px;

    max-width: 100%;

    margin-bottom: 20px;
}

.footer-brand img {
    flex: 0 0 auto;

    width: 60px;
    height: 60px;

    padding: 5px;

    object-fit: contain;

    background:
        rgba(255, 255, 255, 0.96);

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 17px;

    box-shadow:
        0 14px 28px
        rgba(0, 0, 0, 0.22);

    transition:
        transform 0.3s ease;
}

.footer-brand:hover img {
    transform:
        translateY(-3px)
        rotate(-2deg);
}

.footer-brand > div {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.footer-brand strong {
    color: var(--white);

    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;

    line-height: 1.25;
}

.footer-brand small {
    margin-top: 5px;

    color:
        rgba(255, 255, 255, 0.60);

    font-size: 11px;
    line-height: 1.45;
}


/* =========================================================
   5. FOOTER DESCRIPTION
   ========================================================= */

.footer-description {
    max-width: 390px;

    margin-bottom: 24px;

    color:
        rgba(255, 255, 255, 0.68);

    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   6. SOCIAL LINKS
   ========================================================= */

.footer-social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;
}

.footer-social a {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    color: var(--white);

    background:
        rgba(255, 255, 255, 0.08);

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    border-radius: 12px;

    font-size: 15px;

    box-shadow:
        0 8px 18px
        rgba(0, 0, 0, 0.12);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.footer-social a::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            145deg,
            rgba(34, 197, 94, 0.25),
            rgba(245, 158, 11, 0.12)
        );

    opacity: 0;

    transition:
        opacity 0.25s ease;
}

.footer-social a i {
    position: relative;
    z-index: 2;
}

.footer-social a:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(255, 255, 255, 0.20);

    box-shadow:
        0 13px 25px
        rgba(0, 0, 0, 0.20);
}

.footer-social a:hover::before {
    opacity: 1;
}


/* =========================================================
   7. FOOTER LINKS
   ========================================================= */

.footer-links {
    display: flex;
    flex-direction: column;

    gap: 11px;
}

.footer-links li {
    position: relative;
}

.footer-links a {
    position: relative;

    display: inline-flex;
    align-items: center;

    gap: 9px;

    color:
        rgba(255, 255, 255, 0.68);

    font-size: 14px;
    font-weight: 500;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-links a::before {
    content: "\f105";

    font-family:
        "Font Awesome 6 Free";

    font-weight: 900;

    color: var(--secondary);

    font-size: 11px;

    transition:
        transform 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);

    transform:
        translateX(4px);
}

.footer-links a:hover::before {
    transform:
        translateX(2px);
}


/* =========================================================
   8. CONTACT ITEMS
   ========================================================= */

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

.footer-contact-item {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    margin-bottom: 18px;
}

.footer-contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    flex: 0 0 auto;

    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--secondary);

    background:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 11px;

    font-size: 14px;
}

.footer-contact-item > div:last-child {
    min-width: 0;
}

.footer-contact-item span {
    display: block;

    margin-bottom: 3px;

    color:
        rgba(255, 255, 255, 0.48);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.6px;

    text-transform: uppercase;
}

.footer-contact-item p,
.footer-contact-item a {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.75);

    font-size: 13px;
    line-height: 1.7;

    word-break: break-word;
}

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


/* =========================================================
   9. FOOTER BOTTOM
   ========================================================= */

.footer-bottom {
    position: relative;
    z-index: 2;

    background:
        rgba(0, 0, 0, 0.18);

    border-top:
        1px solid
        rgba(255, 255, 255, 0.07);
}

.footer-bottom-container {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );

    min-height: 70px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.footer-bottom p {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 12px;
}

.footer-credit {
    text-align: right;
}

.footer-credit a {
    color: var(--secondary);

    font-weight: 700;
}

.footer-credit a:hover {
    color: var(--white);
}


/* =========================================================
   10. WHATSAPP FLOATING BUTTON
   ========================================================= */

.whatsapp-floating {
    position: fixed;

    right: 24px;
    bottom: 24px;

    z-index: 1500;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            #25d366,
            #16a34a
        );

    border:
        2px solid
        rgba(255, 255, 255, 0.90);

    border-radius: 50%;

    box-shadow:
        0 14px 35px
        rgba(22, 163, 74, 0.34);

    font-size: 28px;

    transform:
        translateZ(0);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

    animation:
        whatsappPulse
        2.8s ease-in-out infinite;
}

.whatsapp-floating:hover {
    color: #ffffff;

    transform:
        translateY(-5px)
        scale(1.05);

    box-shadow:
        0 20px 42px
        rgba(22, 163, 74, 0.42);
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow:
            0 14px 35px
            rgba(22, 163, 74, 0.34),
            0 0 0 0
            rgba(37, 211, 102, 0.22);
    }

    50% {
        box-shadow:
            0 14px 35px
            rgba(22, 163, 74, 0.34),
            0 0 0 13px
            rgba(37, 211, 102, 0);
    }
}


/* =========================================================
   11. WHATSAPP TOOLTIP
   ========================================================= */

.whatsapp-tooltip {
    position: absolute;

    right: calc(100% + 12px);

    top: 50%;

    padding: 8px 12px;

    color: var(--white);

    background:
        var(--dark);

    border-radius: 8px;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;

    opacity: 0;
    visibility: hidden;

    transform:
        translate(8px, -50%);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.whatsapp-tooltip::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 100%;

    transform:
        translateY(-50%);

    border-width: 5px;
    border-style: solid;

    border-color:
        transparent
        transparent
        transparent
        var(--dark);
}

.whatsapp-floating:hover
.whatsapp-tooltip {
    opacity: 1;
    visibility: visible;

    transform:
        translate(0, -50%);
}


/* =========================================================
   12. LARGE TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .footer-container {
        grid-template-columns:
            1.35fr
            0.8fr
            0.9fr;

        gap: 40px;
    }

    .footer-contact {
        grid-column:
            span 3;
    }

    .footer-contact {
        display: grid;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 20px;
    }

    .footer-contact h3 {
        grid-column:
            1 / -1;

        margin-bottom: 5px;
    }

    .footer-contact-item {
        margin-bottom: 0;
    }
}


/* =========================================================
   13. TABLET
   ========================================================= */

@media (max-width: 850px) {

    .site-footer {
        margin-top: 60px;
    }

    .footer-main {
        padding:
            65px 0 45px;
    }

    .footer-container {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            40px 35px;
    }

    .footer-about {
        grid-column:
            span 2;
    }

    .footer-contact {
        grid-column:
            span 2;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .footer-contact h3 {
        grid-column:
            1 / -1;
    }

    .footer-bottom-container {
        min-height: auto;

        padding:
            20px 0;

        flex-direction: column;

        justify-content: center;

        gap: 8px;

        text-align: center;
    }

    .footer-credit {
        text-align: center;
    }
}


/* =========================================================
   14. MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .site-footer {
        margin-top: 50px;
    }

    .footer-main {
        padding:
            55px 0 40px;
    }

    .footer-container {
        width:
            calc(100% - 30px);

        grid-template-columns:
            1fr;

        gap: 36px;
    }

    .footer-about,
    .footer-contact {
        grid-column:
            auto;
    }

    .footer-contact {
        display: flex;
        flex-direction: column;

        gap: 0;
    }

    .footer-contact h3 {
        margin-bottom: 25px;
    }

    .footer-contact-item {
        margin-bottom: 17px;
    }

    .footer-brand img {
        width: 54px;
        height: 54px;
    }

    .footer-brand strong {
        font-size: 17px;
    }

    .footer-description {
        font-size: 13px;
    }

    .footer-bottom-container {
        width:
            calc(100% - 30px);
    }

    .whatsapp-floating {
        right: 17px;
        bottom: 17px;

        width: 54px;
        height: 54px;

        font-size: 26px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}


/* =========================================================
   15. SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .footer-container {
        width:
            calc(100% - 24px);
    }

    .footer-brand {
        gap: 10px;
    }

    .footer-brand img {
        width: 50px;
        height: 50px;
    }

    .footer-brand strong {
        font-size: 15px;
    }

    .footer-social a {
        width: 39px;
        height: 39px;
    }

    .whatsapp-floating {
        width: 50px;
        height: 50px;

        font-size: 24px;
    }
}


/* =========================================================
   16. REDUCED MOTION
   ========================================================= */

@media (
    prefers-reduced-motion: reduce
) {

    .whatsapp-floating {
        animation: none;
    }
}


/* =========================================================
   17. PRINT
   ========================================================= */

@media print {

    .site-footer,
    .whatsapp-floating {
        display: none !important;
    }
}