/**
 * Comtechzone Theme - Footer
 *
 * Compact corporate footer design.
 *
 * @author Comtechzone
 * @version 1.2.0
 */


/* ==================================================
   01. FOOTER BASE
================================================== */

.ctz-footer {
    --ctz-footer-link-hover: var(--ctz-accent, #d49b42);
    --ctz-footer-border: rgba(255, 255, 255, 0.14);

    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--ctz-footer-background, #0b2033);
    color: var(--ctz-footer-text, #e2e8f0);
    font-size: 13px;
    line-height: 1.6;
}

.ctz-footer *,
.ctz-footer *::before,
.ctz-footer *::after {
    box-sizing: border-box;
}

.ctz-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease,
                background-color 0.2s ease,
                border-color 0.2s ease;
}

.ctz-footer a:hover {
    color: var(--ctz-footer-link-hover);
}

.ctz-footer a:focus-visible {
    outline: 2px solid var(--ctz-footer-link-hover);
    outline-offset: 4px;
    border-radius: 2px;
}

.ctz-footer p {
    margin: 0;
}

.ctz-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}


/* ==================================================
   02. COMPACT MAIN FOOTER
================================================== */

.ctz-footer__main {
    padding: 32px 0 26px;
}

.ctz-footer__grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(0, 0.7fr)
        minmax(0, 1.15fr)
        minmax(0, 1.15fr);
    align-items: start;
    gap: 28px;
    width: 100%;
}

.ctz-footer__grid--1 {
    grid-template-columns: minmax(0, 1fr);
}

.ctz-footer__grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ctz-footer__grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ctz-footer__grid--4 {
    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(0, 0.7fr)
        minmax(0, 1.15fr)
        minmax(0, 1.15fr);
}

.ctz-footer__column {
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-wrap: anywhere;
}


/* ==================================================
   03. FOOTER HEADINGS
================================================== */

.ctz-footer .ctz-footer__heading {
    position: relative;
    margin: 0 0 15px;
    padding: 0 0 10px;
    color: var(--ctz-footer-heading, #ffffff);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: 0.1px;
}

.ctz-footer__heading::after {
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--ctz-footer-link-hover);
    content: "";
}


/* ==================================================
   04. COMPANY BRANDING
================================================== */

.ctz-footer__company {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ctz-footer__brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
    margin: 0 0 12px;
}

.ctz-footer__logo-image,
.ctz-footer__brand img {
    display: block;
    width: auto;
    max-width: 180px;
    height: auto;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
}

.ctz-footer__company-name {
    display: block;
    max-width: 100%;
    color: var(--ctz-footer-heading, #ffffff);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.ctz-footer__description {
    max-width: 100%;
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
}

.ctz-footer__description p {
    margin: 0 0 8px;
}

.ctz-footer__description p:last-child {
    margin-bottom: 0;
}


/* ==================================================
   05. QUICK LINKS AND PROJECT CATEGORIES
================================================== */

.ctz-footer__links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.ctz-footer__links li {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ctz-footer__links li a {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    padding: 2px 0;
    padding-inline-start: 13px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.ctz-footer__links li a::before {
    position: absolute;
    inset-inline-start: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.7;
    content: "";
}

.ctz-footer__links li a:hover,
.ctz-footer__links .current-menu-item > a,
.ctz-footer__links a[aria-current="page"] {
    color: var(--ctz-footer-link-hover);
}

.ctz-footer__projects .ctz-footer__links {
    gap: 5px;
}


/* ==================================================
   06. ADDITIONAL FOOTER LINKS
================================================== */

.ctz-footer .ctz-footer__more-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    max-width: 100%;
    margin-top: 12px;
    padding: 0;
    color: var(--ctz-footer-heading, #ffffff);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.ctz-footer__more-link svg {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
}

.ctz-footer .ctz-footer__more-link:hover {
    color: var(--ctz-footer-link-hover);
}

.ctz-footer__more-link:hover svg {
    transform: translateX(3px);
}


/* ==================================================
   07. SOCIAL MEDIA
================================================== */

.ctz-footer__socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    width: 100%;
    margin-top: 15px;
}

.ctz-footer .ctz-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    max-width: 100%;
    padding: 5px 10px;
    border: 1px solid var(--ctz-footer-border);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--ctz-footer-text, #e2e8f0);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
}

.ctz-footer .ctz-footer__social-link:hover {
    border-color: var(--ctz-footer-link-hover);
    background: var(--ctz-footer-link-hover);
    color: #0b2033;
}


/* ==================================================
   08. CONTACT DETAILS
================================================== */

.ctz-footer__contact {
    min-width: 0;
}

.ctz-footer__addresses,
.ctz-footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.ctz-footer__addresses + .ctz-footer__contacts {
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid var(--ctz-footer-border);
}

.ctz-footer__address {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
}

.ctz-footer__address-content {
    flex: 1;
    min-width: 0;
}

.ctz-footer__icon {
    display: block;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    color: var(--ctz-footer-link-hover);
}

.ctz-footer__office-name {
    display: block;
    margin: 0 0 3px;
    color: var(--ctz-footer-heading, #ffffff);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.ctz-footer address {
    margin: 0;
    padding: 0;
    color: inherit;
    font-size: 13px;
    font-style: normal;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.ctz-footer .ctz-footer__map-link {
    display: inline-block;
    margin-top: 4px;
    color: var(--ctz-footer-heading, #ffffff);
    font-size: 11px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ctz-footer .ctz-footer__map-link:hover {
    color: var(--ctz-footer-link-hover);
}


/* ==================================================
   09. CONTACT PERSON
================================================== */

.ctz-footer__contact-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
}

.ctz-footer__contact-item +
.ctz-footer__contact-item {
    padding-top: 10px;
    border-top: 1px solid var(--ctz-footer-border);
}

.ctz-footer__contact-person {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 7px;
    margin-bottom: 2px;
}

.ctz-footer__contact-name {
    display: block;
    color: var(--ctz-footer-heading, #ffffff);
    font-size: 13px;
    font-weight: 600;
}

.ctz-footer__designation {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.9;
}

.ctz-footer__contact-link {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.5;
}

.ctz-footer__contact-link span {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

.ctz-footer__contact-link .ctz-footer__icon {
    flex-basis: 16px;
    width: 16px;
    height: 16px;
}


/* ==================================================
   10. COPYRIGHT BOTTOM BAR
================================================== */

.ctz-footer__bottom {
    margin: 0;
    padding: 13px 0;
    border-top: 1px solid var(--ctz-footer-border);
    background: rgba(0, 0, 0, 0.12);
}

.ctz-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
}

.ctz-footer .ctz-footer__copyright {
    margin: 0;
    color: var(--ctz-footer-text, #e2e8f0);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

.ctz-footer__legal {
    min-width: 0;
    font-size: 12px;
    line-height: 1.5;
}

.ctz-footer__legal-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ctz-footer__legal-menu li {
    margin: 0;
    padding: 0;
}

.ctz-footer__legal a {
    font-size: 12px;
}


/* ==================================================
   11. COMTECHZONE DEVELOPER CREDIT
================================================== */

.ctz-footer .ctz-footer__credit {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

.ctz-footer__credit-label {
    color: var(--ctz-footer-text, #e2e8f0);
}

.ctz-footer .ctz-footer__developer,
.ctz-footer .ctz-footer__credit a {
    display: inline-block;
    color: var(--ctz-footer-heading, #ffffff);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15px;
    text-decoration: none;
}

.ctz-footer .ctz-footer__developer:hover,
.ctz-footer .ctz-footer__credit a:hover {
    color: var(--ctz-footer-link-hover);
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* ==================================================
   12. FLOATING PAGE NAVIGATION
================================================== */

.ctz-floating-navigation {
    position: fixed;
    inset-inline-end: 20px;
    bottom: 20px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.ctz-floating-navigation .ctz-floating-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: var(--ctz-primary, #12304a);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    text-decoration: none;
    pointer-events: auto;
    transition: background-color 0.2s ease,
                color 0.2s ease,
                transform 0.2s ease;
}

.ctz-floating-navigation .ctz-floating-button:hover {
    transform: translateY(-2px);
    background: var(--ctz-accent, #d49b42);
    color: #0b2033;
}

.ctz-floating-navigation .ctz-floating-button:focus-visible {
    outline: 2px solid var(--ctz-accent, #d49b42);
    outline-offset: 3px;
}

.ctz-floating-button svg {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.ctz-floating-navigation [hidden],
.ctz-floating-button[hidden] {
    display: none !important;
}


/* ==================================================
   13. SMALL DESKTOP
================================================== */

@media (max-width: 1200px) {

    .ctz-footer__grid {
        gap: 22px;
    }

    .ctz-footer__grid--4 {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 0.7fr)
            minmax(0, 1fr)
            minmax(0, 1.1fr);
    }

    .ctz-footer__logo-image,
    .ctz-footer__brand img {
        max-width: 160px;
        max-height: 54px;
    }

}


/* ==================================================
   14. TABLET RESPONSIVE
================================================== */

@media (max-width: 1000px) {

    .ctz-footer__main {
        padding: 28px 0 24px;
    }

    .ctz-footer__grid--3,
    .ctz-footer__grid--4 {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 25px 30px;
    }

    .ctz-footer__bottom-inner {
        justify-content: center;
        gap: 8px 20px;
        text-align: center;
    }

}


/* ==================================================
   15. MOBILE RESPONSIVE
================================================== */

@media (max-width: 600px) {

    .ctz-footer__main {
        padding: 24px 0 20px;
    }

    .ctz-footer__grid,
    .ctz-footer__grid--1,
    .ctz-footer__grid--2,
    .ctz-footer__grid--3,
    .ctz-footer__grid--4 {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .ctz-footer__column + .ctz-footer__column {
        padding-top: 17px;
        border-top: 1px solid var(--ctz-footer-border);
    }

    .ctz-footer .ctz-footer__heading {
        margin-bottom: 10px;
        padding-bottom: 8px;
        font-size: 15px;
    }

    .ctz-footer__company-name {
        font-size: 16px;
    }

    .ctz-footer__logo-image,
    .ctz-footer__brand img {
        max-width: 140px;
        max-height: 48px;
    }

    .ctz-footer__brand {
        gap: 8px;
        margin-bottom: 10px;
    }

    .ctz-footer__links {
        gap: 4px;
    }

    .ctz-footer__quick-links .ctz-footer__links {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 5px 12px;
    }

    .ctz-footer__links li a {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .ctz-footer__links li a::before {
        top: 11px;
    }

    .ctz-footer__socials {
        margin-top: 12px;
    }

    .ctz-footer .ctz-footer__social-link {
        min-height: 36px;
    }

    .ctz-footer__bottom {
        padding: 14px 0;
    }

    .ctz-footer__bottom-inner {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 9px;
        text-align: center;
    }

    .ctz-footer .ctz-footer__credit {
        justify-content: center;
    }

    .ctz-footer__legal-menu {
        justify-content: center;
    }

    .ctz-floating-navigation {
        inset-inline-end: 12px;
        bottom: max(14px, env(safe-area-inset-bottom));
        gap: 7px;
    }

    .ctz-floating-navigation .ctz-floating-button {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        flex-basis: 42px;
    }

}


/* ==================================================
   16. EXTRA SMALL MOBILE
================================================== */

@media (max-width: 360px) {

    .ctz-footer__quick-links .ctz-footer__links {
        grid-template-columns: minmax(0, 1fr);
    }

    .ctz-footer .ctz-footer__credit {
        font-size: 11px;
    }

    .ctz-footer .ctz-footer__developer {
        font-size: 12px;
    }

}


/* ==================================================
   17. RTL SUPPORT
================================================== */

[dir="rtl"] .ctz-footer__links li a::before {
    transform: rotate(-135deg);
}

[dir="rtl"] .ctz-footer__more-link svg {
    transform: rotate(180deg);
}

[dir="rtl"] .ctz-footer__more-link:hover svg {
    transform: rotate(180deg) translateX(3px);
}

[dir="rtl"] .ctz-footer__logo-image,
[dir="rtl"] .ctz-footer__brand img {
    object-position: right center;
}


/* ==================================================
   18. REDUCED MOTION
================================================== */

@media (prefers-reduced-motion: reduce) {

    .ctz-footer *,
    .ctz-footer *::before,
    .ctz-footer *::after,
    .ctz-floating-navigation * {
        animation: none !important;
        transition: none !important;
    }

}


/* ==================================================
   19. PRINT SUPPORT
================================================== */

@media print {

    .ctz-footer,
    .ctz-floating-navigation {
        display: none !important;
    }

}