
/* =========================================
   STEP 13: PREMIUM R3S FOOTER
========================================= */

.r3s-footer {
    position: relative;
    overflow: hidden;
    padding: 75px 0 0;
    background: var(--footer-bg);
    color: var(--footer-text);
}

/* MAIN FOOTER GRID */

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 0.85fr 1.1fr 1.2fr;
    gap: 40px;
    padding-bottom: 55px;
}

/* LOGO */

.footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 22px;
}

.footer-logo img {
    width: 175px;
    max-height: 75px;
    object-fit: contain;
    object-position: left center;
}

.footer-logo-light {
    display: none;
}

[data-theme="light"] .footer-logo-dark {
    display: none;
}

[data-theme="light"] .footer-logo-light {
    display: block;
}

/* ABOUT */

.footer-about > p {
    max-width: 310px;
    margin: 0 0 22px;
    color: var(--footer-text);
    opacity: 0.68;
    font-size: 13px;
    line-height: 1.9;
}

/* FOOTER TITLES */

.footer-title {
    position: relative;
    margin: 5px 0 27px;
    padding-bottom: 13px;
    color: var(--footer-text);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background: #DD0311;
}

/* SOCIAL ICONS */

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    color: var(--footer-text);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: #ffffff;
    background: #DD0311;
    border-color: #DD0311;
    transform: translateY(-4px);
}

/* QUICK LINKS */

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    position: relative;
    display: inline-block;
    color: var(--footer-text);
    opacity: 0.68;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 2px;
    margin-right: 0;
    vertical-align: middle;
    background: #DD0311;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #DD0311;
    opacity: 1;
    transform: translateX(3px);
}

.footer-links a:hover::before {
    width: 10px;
    margin-right: 7px;
}

/* CONTACT DETAILS */

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 19px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(221, 3, 17, 0.12);
    color: #DD0311;
    font-size: 15px;
}

.footer-contact-list li div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.footer-contact-list small {
    color: var(--footer-text);
    opacity: 0.55;
    font-size: 11px;
}

.footer-contact-list a,
.footer-contact-list li div > span {
    overflow-wrap: anywhere;
    color: var(--footer-text);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-list a:hover {
    color: #DD0311;
}

/* WHATSAPP BUTTON */

.footer-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 18px;
    border: 1px solid rgba(37, 211, 102, 0.4);
    border-radius: 7px;
    color: #25D366;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-whatsapp-btn:hover {
    color: #ffffff;
    background: #25D366;
    border-color: #25D366;
}

/* FOOTER BOTTOM */

.footer-bottom {
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-copyright {
    color: var(--footer-text);
    opacity: 0.65;
    font-size: 12px;
    line-height: 1.7;
}

.footer-copyright strong {
    color: var(--footer-text);
    opacity: 1;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.footer-bottom-links a {
    color: var(--footer-text);
    opacity: 0.65;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #DD0311;
    opacity: 1;
}

/* DEVELOPMENT CREDIT */

.footer-credit {
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    color: var(--footer-text);
    opacity: 0.55;
    text-align: center;
    font-size: 11px;
}

.footer-credit a {
    color: var(--r3s-primary);
    font-weight: 800;
    text-decoration: none;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* BACK TO TOP */

.r3s-back-to-top {
    position: fixed;
    right: 25px;
    bottom: 90px;
    z-index: var(--z-floating);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: #DD0311;
    color: #ffffff;
    font-size: 20px;
    box-shadow: 0 8px 25px rgba(221, 3, 17, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.r3s-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.r3s-back-to-top:hover {
    background: #B8000C;
    transform: translateY(-4px);
}

/* TABLET */

@media (max-width: 991px) {

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 30px;
    }

    .footer-about > p {
        max-width: 350px;
    }
}

/* MOBILE */

@media (max-width: 767px) {

    .r3s-footer {
        padding-top: 55px;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 18px;
        padding-bottom: 35px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .footer-logo img {
        width: 155px;
    }

    .footer-title {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        font-size: 12px;
        line-height: 1.6;
    }

    .footer-contact-list {
        gap: 15px;
    }

    .footer-contact-list li {
        gap: 9px;
    }

    .footer-contact-icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .footer-contact-list a,
    .footer-contact-list li div > span {
        font-size: 11px;
    }

    .footer-whatsapp-btn {
        padding: 10px 12px;
        font-size: 11px;
    }

    .footer-bottom {
        padding: 18px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        gap: 15px;
    }

    .footer-copyright,
    .footer-bottom-links a {
        font-size: 11px;
    }

    .r3s-back-to-top {
        right: 15px;
        bottom: 85px;
        width: 40px;
        height: 40px;
    }
}

/* SMALL MOBILE */

@media (max-width: 380px) {

    .footer-main {
        gap: 30px 12px;
    }

    .footer-title {
        font-size: 13px;
    }

    .footer-links a {
        font-size: 11px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .footer-social a,
    .footer-links a,
    .footer-links a::before,
    .footer-back-to-top,
    .r3s-back-to-top {
        transition: none;
    }
}
