/* =====================================================================
                                IIR FOOTER
   ===================================================================== */

/* --- Shell ----------------------------------------------------------- */
.iir-footer {
    position: relative;
    overflow: hidden;
    border-top: 2px solid #00426b;
    background-color: #05233c;
}

.iir-footer > .container,
.iir-footer .iir-footer-legal {
    position: relative;
    z-index: 1;
}

/* --- Globe backdrop -------------------------------------------------- */
.iir-footer-globe {
    position: absolute;
    top: 50%;
    left: -12%;
    width: 620px;
    height: 620px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 42% 45%,
            rgba(10, 165, 181, 0.22) 0%,
            rgba(4, 117, 127, 0.10) 34%,
            transparent 62%);
}

/* --- Tech-frame borders (SVG overlays) ------------------------------- */
.iir-footer-frame-top {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 44px;
    pointer-events: none;
    z-index: 2;
}

.iir-footer-frame {
    position: relative;
    width: 100%;
    height: 26px;
}

.iir-footer-frame-svg {
    display: block;
    width: 100%;
    height: 100%;
    transform: translateY(5px);
}

.iir-footer-accent-glow {
    filter: drop-shadow(0 0 6px rgba(248, 141, 43, 0.7));
}

.iir-footer-top-glow {
    position: absolute;
    top: 34px;
    left: 50%;
    width: 200px;
    height: 4px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center,
        rgba(248, 141, 43, 0.9) 0%,
        rgba(248, 141, 43, 0) 70%);
    pointer-events: none;
}

/* --- Brand column ---------------------------------------------------- */
.iir-footer-logo {
    width: 320px;
    max-width: 100%;
    height: auto;
}

.footer-title {
    font-size: .70rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1200px) {
    .footer-title {
        justify-content: flex-start;
    }
    
    .iir-footer-secondary .footer-social {
        justify-content: center;
        font-size: .70rem;
        line-height: 1.4;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}


.footer-title i {
    flex-shrink: 0;
    vertical-align: middle;
}

.iir-footer-secondary {
    margin-right: 21rem;
}

/* --- Column & contact links ----------------------------------------- */
.iir-footer .iir-footer-col a,
.iir-footer .iir-footer-contact a {
    color: #fff !important;
    text-decoration: none;
    overflow-wrap: break-word;
    transition: color 0.2s ease;
}

.iir-footer .iir-footer-col a {
    font-size: .8rem;
}

/* --- Contact phone-number grid -------------------------------------- */

@media (max-width: 1199.98px) {
    .iir-contact-nums {
        max-width: 20rem;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .iir-footer-secondary {
        margin-top: 3rem;
        margin-left: 17rem;
    }
}


@media (min-width: 1200px) {
    .iir-contact-nums > .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


@media (min-width: 1200px) {
    .iir-footer-links {
        flex-wrap: nowrap;
        justify-content: center;
        column-gap: 2rem;
    }
    .iir-footer-links > .iir-footer-col {
        flex: 0 1 auto;
        width: auto;
        max-width: 11rem;
    }
    
}

@media (max-width: 1399px) {
    .iir-footer-secondary {
    margin-right: 17rem; 
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .iir-footer-links > .iir-col-last {
        margin-left: auto;
        margin-right: auto;
    }
}


.iir-footer .iir-footer-col a:hover,
.iir-footer .iir-footer-col a:focus,
.iir-footer .iir-footer-contact a:hover,
.iir-footer .iir-footer-contact a:focus {
    color: var(--logo-orange) !important;
}


/* --- Social row ------------------------------------------------------ */
.iir-footer-social {
    padding-bottom: 0.25rem;
}

.iir-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #00426b;
    border-radius: 50%;
    color: #fff;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.iir-footer-social a:hover,
.iir-footer-social a:focus {
    color: var(--logo-orange);
    box-shadow: inset 0 0 0 1px #00426b;
    background-color: rgba(0, 25, 71, 0.522);
}

/* --- Newsletter button - */
.iir-footer-newsletter-btn:hover,
.iir-footer-newsletter-btn:focus {
    color: #001525;
    background-color: var(--logo-orange);
}

/* --- Legal bar ------------------------------------------------------- */
.iir-footer-legal a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.iir-footer-legal a:hover,
.iir-footer-legal a:focus {
    color: var(--logo-orange);
}

/* --- Responsive ------------------------------------------------------ */
@media (max-width: 575.98px) {
    .iir-footer > .container,
    .iir-footer-legal > .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .iir-footer > .container {
        margin-top: 2rem;
    }

    .p-tag {
        margin-left: .6rem;
    }

    .iir-footer-col {
        margin-bottom: 1rem;
    }

    .iir-footer-contact {
        margin-bottom: 5rem;
    }

    .iir-footer-social {
        row-gap: 0.75rem;
    }

      .iir-footer-secondary {
        margin-left: 15rem;
    }
}

@media (max-width: 767.98px) {
    .iir-footer-frame {
        height: 20px;
    }
}

@media (max-width: 699px) {
  .iir-footer-secondary > .col-12 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .iir-footer-secondary .footer-title {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
  }

  .iir-footer-secondary .iir-footer-social {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
    transform: none;
  }
}

@media (max-width: 617px) {
    .iir-footer-secondary {
        margin-left: 0;
        margin-right: 0;
    }

    .iir-footer-secondary > .col-12 {
        padding-left: 0;
        padding-right: 0;
    }

    .iir-footer-social-wrap {
        width: fit-content;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .iir-footer-social-wrap .footer-title {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }

    .iir-footer-social-wrap .iir-footer-social {
        width: fit-content;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
        position: static;
        left: auto;
        right: auto;
        transform: none;
    }
}

@media (max-width: 400px) {
    .iir-footer-social-wrap .iir-footer-social {
        gap: 1.25rem !important;
    }
}

/* --- Reduced motion -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .iir-footer-newsletter-btn,
    .iir-footer-social a,
    .iir-footer-col a,
    .iir-footer-contact a,
    .iir-footer-legal a {
        transition: none;
    }
}
