/* InfoEd Global Footer - Minimal v7 */

.infoed-footer {
    background-color: #F9FAFB;
    border-top: 3px solid #0A7E8C;
    font-family: 'Poppins', sans-serif;
    color: #4B5563;
    overflow-x: clip;
}

.infoed-footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* -- Main row -- */
.ifm-main {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 32px;
    padding: 36px 0;
    position: relative;
}

/* Full-bleed divider — 100vw centered, matches teal top accent at any viewport width */
.ifm-main::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    height: 1px;
    background: #E5E7EB;
}

/* -- Left column: logo + address/phones -- */
.ifm-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.ifm-logo { flex-shrink: 0; }
.footer-logo-img { height: 38px; width: auto; display: block; }

/* -- Contact (left-aligned under logo) -- */
.ifm-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 0.825rem;
    line-height: 1.5;
    color: #6B7280;
}
.ifm-contact a { color: #6B7280; text-decoration: none; }
.ifm-contact a:hover { color: #0A7E8C; }

/* -- Right column: quick links + social -- */
.ifm-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 20px;
}

/* -- Quick links -- */
.ifm-links {
    display: flex;
    gap: 36px;
    flex-shrink: 0;
}
.ifm-links a {
    color: #1F2937;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}
.ifm-links a:hover { color: #0A7E8C; }

/* -- Social -- */
.ifm-social { display: flex; gap: 8px; }

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background-color: #1F2937;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.15s;
    flex-shrink: 0;
}
.social-icon:hover {
    background-color: #0A7E8C;
    transform: translateY(-2px);
}
.social-icon svg { width: 16px; height: 16px; display: block; }

/* -- Legal bar -- */
.ifm-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    gap: 16px;
}

.copyright-text {
    color: #5A6B72;
    font-size: 0.78rem;
    margin: 0;
    padding: 4px 0;
    white-space: nowrap;
}

.footer-legal-links {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-shrink: 0;
}
.footer-legal-links a {
    color: #5A6B72;
    font-size: 0.78rem;
    padding: 4px 0;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.footer-legal-links a:hover { color: #0A7E8C; }

/* -- Desktop (769px+): T352 enlarged nav and icon sizes -- */
@media (min-width: 769px) {
    .ifm-links a     { font-size: 1.125rem; }
    .social-icon     { width: 48px; height: 48px; }
    .social-icon svg { width: 22px; height: 22px; }
    .ifm-right       { gap: 34px; }
}

/* -- Tablet (960px) -- */
@media (max-width: 960px) {
    .ifm-main { flex-wrap: wrap; gap: 20px; }
}

/* -- Mobile (600px) -- */
@media (max-width: 600px) {
    .infoed-footer-container { padding: 0 20px; }
    .ifm-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 28px 0;
        gap: 16px;
    }
    .ifm-left { align-items: center; gap: 10px; }
    .ifm-links { flex-wrap: wrap; justify-content: center; gap: 14px; }
    .ifm-right { align-items: center; gap: 20px; }
    .ifm-contact { align-items: center; }
    .ifm-legal {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 4px 0;
    }
    .footer-legal-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .copyright-text { white-space: normal; }
}

/* Footer top spacing — breathing room above footer on all pages */
.infoed-footer { margin-top: 60px; }
@media (max-width: 600px) {
    .infoed-footer { margin-top: 40px; }
}
