/* ========================================
   Footer Styles - Modern, Clean & Simple
   Solid Maroon Root Theme & Solid White Bottom
======================================== */

.site-footer {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: #ffffff;
}

/* ========================================
   Footer Main (Solid Red Root Theme)
======================================== */
.footer-main {
    background: var(--primary-maroon, #bd0808);
    position: relative;
    padding: 4rem 0 3.5rem;
    color: #ffffff;
}

.footer-main .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ========================================
   Footer Grid Layout (3 Columns)
======================================== */
.footer-grid {
    display: grid;
    grid-template-columns: 1.45fr 1.15fr 1.25fr;
    gap: 3.5rem;
    align-items: start;
}

/* ========================================
   Footer Brand Column
======================================== */
.footer-brand-col {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    margin-bottom: 1.25rem;
}

.footer-logo {
    display: inline-block;
    text-decoration: none;
    line-height: 1;
}

.footer-logo img,
.footer-logo-img {
    height: auto;
    max-height: 52px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.footer-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    display: inline-block;
}

.footer-logo-text span {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.footer-about {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
    text-align: justify;
    text-justify: inter-word;
    max-width: 440px;
}

/* Modern Social Links */
.footer-social {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--primary-maroon, #bd0808);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Footer Widgets & Headings
======================================== */
.footer-widget {
    display: flex;
    flex-direction: column;
}

.footer-widget h4 {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 1.4rem 0;
    position: relative;
    padding-bottom: 0.65rem;
    display: inline-block;
    align-self: flex-start;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    opacity: 0.9;
}

/* ========================================
   Quick Links List
======================================== */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links li {
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.45;
    padding: 3px 0;
    transition: all 0.25s ease;
}

.footer-links a::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', sans-serif;
    font-weight: 900;
    font-size: 0.68rem;
    line-height: 1.45;
    margin-top: 0.22rem;
    opacity: 0.7;
    flex-shrink: 0;
    transition: transform 0.25s ease, opacity 0.25s ease, color 0.25s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

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

/* ========================================
   Contact Column & Items
======================================== */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    line-height: 1.45;
}

.footer-contact-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.footer-contact-icon.footer-whatsapp-icon {
    background: rgba(37, 211, 102, 0.22);
    border-color: rgba(37, 211, 102, 0.4);
    color: #25d366;
}

.footer-contact li:hover .footer-contact-icon {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.footer-contact-detail {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
}

.footer-contact-detail span {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    line-height: 1.55;
}

.footer-contact-detail a {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    word-break: break-word;
}

.footer-contact-detail a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-contact-detail small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    font-weight: 400;
}

/* ========================================
   Footer Bottom (Solid White)
======================================== */
.footer-bottom {
    background: #ffffff;
    padding: 1.1rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-bottom .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

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

.copyright {
    color: #4a4a4a;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.footer-bottom-links .footer-separator {
    color: #9ca3af;
    font-size: 0.82rem;
    opacity: 0.6;
    user-select: none;
}

.footer-bottom-links a {
    color: #555555;
    font-size: 0.85rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-maroon, #bd0808);
}

.footer-bottom-links .footer-heart {
    color: #e11d48;
    display: inline-block;
    margin: 0 3px;
    font-size: 0.8rem;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-bottom-links a:hover .footer-heart {
    transform: scale(1.25);
}

/* ========================================
   Back to Top Floating Button
======================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--primary-maroon, #bd0808);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #a40606;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* ========================================
   Responsive Media Queries
======================================== */

/* Large Tablets & Medium Laptops */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1.35fr 1.1fr 1.2fr;
        gap: 2.5rem;
    }
}

/* Tablets (Portrait / Small Landscape) */
@media (max-width: 900px) {
    .footer-main {
        padding: 3.5rem 0 2.75rem;
    }

    .footer-main .container,
    .footer-bottom .container {
        padding-left: 1.75rem;
        padding-right: 1.75rem;
    }

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

    .footer-brand-col {
        grid-column: 1 / -1;
        max-width: 580px;
    }

    .footer-about {
        max-width: 100%;
    }

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

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

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
    .footer-main {
        padding: 2.75rem 0 2.25rem;
    }

    /* Clear safe space / padding on mobile screens */
    .footer-main .container,
    .footer-bottom .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        box-sizing: border-box;
    }

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

    .footer-brand-col {
        grid-column: auto;
    }

    .footer-logo img,
    .footer-logo-img {
        max-height: 48px;
    }

    .footer-about {
        font-size: 0.88rem;
        line-height: 1.65;
        margin-bottom: 1.25rem;
    }

    .footer-social {
        gap: 0.5rem;
    }

    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-widget h4 {
        margin-bottom: 1.2rem;
        font-size: 0.88rem;
    }

    /* Group links: single column for clean readability */
    .footer-group-links {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
    }

    .footer-links a {
        font-size: 0.88rem;
        padding: 4px 0;
    }

    .footer-contact {
        gap: 0.85rem;
    }

    .footer-contact li {
        font-size: 0.88rem;
        gap: 0.75rem;
    }

    .footer-contact-icon {
        width: 36px;
        height: 36px;
    }

    .footer-bottom {
        padding: 1.2rem 0;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 40px;
        height: 40px;
    }
}

/* Small Mobile Devices (<= 480px) */
@media (max-width: 480px) {
    .footer-main {
        padding: 2.25rem 0 1.75rem;
    }

    /* Extra safe space for small mobile screens */
    .footer-main .container,
    .footer-bottom .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .footer-grid {
        gap: 1.85rem;
    }

    .footer-logo img,
    .footer-logo-img {
        max-height: 44px;
        max-width: 180px;
    }

    .footer-logo-text {
        font-size: 1.4rem;
    }

    .footer-about {
        font-size: 0.85rem;
    }

    .footer-group-links {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
    }

    .footer-links a {
        font-size: 0.84rem;
    }

    .footer-contact li {
        font-size: 0.84rem;
        gap: 0.65rem;
    }

    .footer-contact-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 0.8rem;
    }

    .footer-contact-detail a {
        font-size: 0.88rem;
    }

    .footer-contact-detail small {
        font-size: 0.74rem;
    }

    .footer-contact-detail span {
        font-size: 0.84rem;
    }

    .copyright,
    .footer-bottom-links a {
        font-size: 0.8rem;
    }
}
