/*
 * Trisha Web Enterprise SEO CMS
 * Dynamic Site Footer
 *
 * File:
 * assets/css/templates/site_footer.css
 *
 * Scope:
 * All styles are restricted to the .tw-site-footer namespace.
 */

.tw-site-footer {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #071f49;
    color: #ffffff;
    clear: both;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.tw-site-footer *,
.tw-site-footer *::before,
.tw-site-footer *::after {
    box-sizing: border-box;
}

.tw-site-footer h1,
.tw-site-footer h2,
.tw-site-footer h3,
.tw-site-footer h4,
.tw-site-footer p,
.tw-site-footer ul,
.tw-site-footer ol {
    margin-top: 0;
}

.tw-site-footer a {
    color: inherit;
}

.tw-footer-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 64px 0 0;
}

.tw-footer-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(0, 0.8fr)
        minmax(0, 0.95fr)
        minmax(0, 0.95fr);
    gap: 44px;
    align-items: start;
}

.tw-footer-column {
    min-width: 0;
}

.tw-footer-title {
    margin: 0 0 14px;
    padding: 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.tw-footer-description {
    max-width: 470px;
    margin: 0 0 20px;
    padding: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.75;
}

.tw-footer-heading {
    margin: 0 0 18px;
    padding: 0;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.tw-footer-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    line-height: 1.65;
}

.tw-footer-contact-icon {
    display: inline-flex;
    flex: 0 0 20px;
    width: 20px;
    min-width: 20px;
    align-items: center;
    justify-content: center;
    color: #25a9ff;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.tw-footer-menu {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tw-footer-menu__item {
    display: block;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}

.tw-footer-menu__link {
    display: inline-block;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.tw-footer-menu__link:hover,
.tw-footer-menu__link:focus {
    color: #ffffff;
    text-decoration: none;
    transform: translateX(3px);
}

.tw-footer-menu__link:focus-visible {
    outline: 2px solid #25a9ff;
    outline-offset: 4px;
    border-radius: 2px;
}

.tw-footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
}

.tw-footer-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tw-footer-social a:hover,
.tw-footer-social a:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.40);
    text-decoration: none;
    transform: translateY(-2px);
}

.tw-footer-social a:focus-visible {
    outline: 2px solid #25a9ff;
    outline-offset: 3px;
}

.tw-footer-contact-link {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 12px;
    padding: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.tw-footer-contact-link:hover,
.tw-footer-contact-link:focus {
    color: #ffffff;
    text-decoration: none;
    transform: translateX(2px);
}

.tw-footer-contact-link:focus-visible {
    outline: 2px solid #25a9ff;
    outline-offset: 4px;
    border-radius: 2px;
}

.tw-footer-bottom {
    display: flex;
    width: 100%;
    min-height: 70px;
    margin: 42px 0 0;
    padding: 18px 0;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.tw-footer-copyright {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .tw-footer-container {
        width: min(720px, calc(100% - 36px));
        padding-top: 52px;
    }

    .tw-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 32px;
    }

    .tw-footer-company {
        grid-column: 1 / -1;
    }

    .tw-footer-description {
        max-width: 680px;
    }

    .tw-footer-bottom {
        margin-top: 36px;
    }
}

@media (max-width: 575.98px) {
    .tw-site-footer {
        font-size: 13px;
    }

    .tw-footer-container {
        width: calc(100% - 30px);
        padding-top: 42px;
    }

    .tw-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .tw-footer-company {
        grid-column: auto;
    }

    .tw-footer-title {
        margin-bottom: 12px;
        font-size: 21px;
    }

    .tw-footer-heading {
        margin-bottom: 14px;
        font-size: 16px;
    }

    .tw-footer-description,
    .tw-footer-contact-row,
    .tw-footer-contact-link,
    .tw-footer-menu__link {
        font-size: 13px;
    }

    .tw-footer-menu__item {
        margin-bottom: 9px;
    }

    .tw-footer-social {
        margin-top: 18px;
    }

    .tw-footer-bottom {
        min-height: 62px;
        margin-top: 30px;
        padding: 16px 0;
    }

    .tw-footer-copyright {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tw-site-footer *,
    .tw-site-footer *::before,
    .tw-site-footer *::after {
        transition: none !important;
    }
}

/* =========================================================
   FOOTER LEGAL LINKS
   ========================================================= */

.tw-footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    white-space: nowrap;
}

.tw-footer-legal a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tw-footer-legal a:hover {
    color: #ffffff;
}

.tw-footer-legal-separator {
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
}

/* Mobile */
@media (max-width: 575.98px) {

    .tw-footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 10px;
        padding: 16px 0;
    }

    .tw-footer-legal {
        margin-left: 0;
        flex-wrap: wrap;
        white-space: normal;
        gap: 6px;
    }

    .tw-footer-legal a,
    .tw-footer-legal-separator {
        font-size: 12px;
    }
}