/* TrucksBuses — modern site footer (CommonFooter.ascx) */
.tb-footer {
    background: #ffffff;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
}

.tb-footer a {
    color: #4b5563;
    text-decoration: none;
    transition: color .2s ease;
}

.tb-footer a:hover,
.tb-footer a:focus {
    color: #d81416;
}

.tb-footer-main {
    padding: 48px 0 32px;
    border-bottom: 1px solid #eceef1;
    background: #ffffff;
}

.tb-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
    gap: 28px 24px;
}

.tb-footer-brand .tb-footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

/* Override legacy site-footer / footer-image rules */
footer.tb-footer,
footer.tb-footer p,
footer.tb-footer h4,
footer.tb-footer .widget_services ul li a {
    color: inherit;
}

footer.tb-footer.footer-image .footer-top,
footer.tb-footer.footer-image .footer-bottom {
    background: transparent;
    padding: 0;
    border: none;
}

footer.tb-footer.footer-image h4 {
    color: #12263a;
}

.tb-footer-brand .tb-footer-logo img {
    max-width: 200px;
    height: auto;
    display: block;
}

.tb-footer-tagline {
    margin: 0 0 20px;
    color: #6b7280;
    max-width: 280px;
}

.tb-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tb-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #12263a;
    font-weight: 500;
}

.tb-footer-contact-item i {
    width: 18px;
    color: #d81416;
    text-align: center;
}

.tb-footer-heading {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #12263a;
    letter-spacing: .02em;
}

.tb-footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tb-footer-nav li {
    margin: 0 0 8px;
    padding: 0;
    border: none;
}

.tb-footer-nav li::before {
    display: none !important;
}

.tb-footer-nav a {
    color: #6b7280;
    font-size: 13px;
}

.tb-footer-nav a:hover {
    color: #d81416;
}

.tb-footer-app-badge {
    display: inline-block;
    margin-bottom: 18px;
    transition: opacity .2s ease;
}

.tb-footer-app-badge:hover {
    opacity: .88;
}

.tb-footer-app-badge img {
    max-width: 148px;
    height: auto;
    display: block;
}

.tb-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tb-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f3f4f6;
    border: 1px solid #eceef1;
    color: #4b5563;
    font-size: 15px;
}

.tb-footer-social a:hover {
    background: #d81416;
    border-color: #d81416;
    color: #fff;
}

.tb-footer-whatsapp {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    color: #12263a;
    transition: background .2s ease, border-color .2s ease;
}

.tb-footer-whatsapp:hover {
    background: #dcfce7;
    border-color: #86efac;
    color: #12263a;
}

.tb-footer-whatsapp img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.tb-footer-whatsapp-text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.tb-footer-whatsapp-text span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #16a34a;
    margin-top: 2px;
}

.tb-footer-bottom {
    padding: 20px 0;
    background: #f8f9fb;
    border-top: 1px solid #eceef1;
}

.tb-footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
}

.tb-footer-copy {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.tb-footer-copy strong {
    color: #12263a;
    font-weight: 600;
}

.tb-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tb-footer-legal a {
    font-size: 13px;
    color: #6b7280;
}

.tb-footer-legal a:hover {
    color: #d81416;
}

/* Override legacy footer-image rules inside new footer */
.tb-footer.footer-image .footer-top,
.tb-footer .widget_services ul li {
    border: none;
    padding: 0;
}

@media (max-width: 1199px) {
    .tb-footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .tb-footer-brand {
        grid-column: 1 / -1;
    }

    .tb-footer-app-col {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        align-items: start;
    }
}

@media (max-width: 767px) {
    .tb-footer-main {
        padding: 32px 0 24px;
    }

    .tb-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
    }

    .tb-footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }

    .tb-footer-brand .tb-footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .tb-footer-tagline {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .tb-footer-contact {
        align-items: center;
    }

    .tb-footer-app-col {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tb-footer-app-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .tb-footer-social {
        justify-content: center;
    }

    .tb-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .tb-footer-legal {
        justify-content: center;
    }
}

@media (max-width: 479px) {
    .tb-footer-grid {
        grid-template-columns: 1fr;
    }

    .tb-footer-col {
        padding-bottom: 16px;
        border-bottom: 1px solid #eceef1;
    }

    .tb-footer-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}
