/* ===================================================================
   Progressive Enviro Care - Footer
   One footer for every page. Three columns on a deep-water ground,
   with the client wall given the most room, per brief.
   =================================================================== */

.main-footer {
    background: radial-gradient(120% 140% at 15% 0%, var(--navy-800, #0b3742) 0%, var(--navy-950, #04191f) 60%) !important;
    color: var(--text-on-dark, #d3e3e4);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.main-footer .widgets-section {
    padding: 62px 0 34px;
}

/* Replace the theme's floated bootstrap columns with a real grid so the
   client wall can be wider than the two columns flanking it. */
.main-footer .widgets-section .row {
    display: grid;
    grid-template-columns: 1fr 1.75fr 0.85fr;
    gap: 46px;
    align-items: start;
    margin: 0;
}
/* Bootstrap's .row/.clearfix inject ::before and ::after table cells; inside a
   grid container those become phantom grid items and shift every column. */
.main-footer .widgets-section .row::before,
.main-footer .widgets-section .row::after {
    display: none;
}
.main-footer .widgets-section .row > .big-column,
.main-footer .widgets-section .row > .footer-column {
    float: none;
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
}
.main-footer .footer-widget {
    margin-bottom: 0;
}

/* ---------- Column headings ---------- */
.main-footer .footer-widget h2,
.main-footer .footer-column h2 {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffffff;
    padding: 0 0 12px;
    margin: 0 0 22px;
    position: relative;
}
.main-footer .footer-widget h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 2px;
    background: var(--mint-500, #16c294);
}

/* ---------- Column 1: identity + contact ---------- */
.main-footer .footer-logo {
    margin: 0 0 20px;
}
.main-footer .footer-logo img {
    height: 52px;
    width: auto;
    max-width: 100%;
}
.main-footer .about-widget .text {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-on-dark-muted, #9fbcbe);
    margin-bottom: 0;
}
.main-footer .about-widget .text p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-on-dark-muted, #9fbcbe);
    margin-bottom: 18px;
}
.main-footer .about-widget .text h4 {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7f9ea1;
    margin: 18px 0 6px;
}

/* ---------- Modern Bottom Contact Icons (Icon-Only, Water Blue) ---------- */
.main-footer .footer-contact-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 0;
}

.main-footer .footer-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    text-decoration: none;
    transition: all 260ms cubic-bezier(.2,.8,.2,1);
    position: relative;
    background: rgba(2, 132, 199, 0.12);
    border: 1px solid rgba(2, 132, 199, 0.28);
    color: #38bdf8; /* Water Blue */
}

.main-footer .footer-icon-btn:hover {
    transform: translateY(-3px) scale(1.06);
}

/* Phone (Water Blue) */
.main-footer .footer-icon-btn.icon-phone:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 22px -4px rgba(2, 132, 199, 0.6);
}

/* WhatsApp */
.main-footer .footer-icon-btn.icon-whatsapp {
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.32);
    color: #25d366;
}
.main-footer .footer-icon-btn.icon-whatsapp:hover {
    background: linear-gradient(135deg, #20ba5a 0%, #25d366 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 22px -4px rgba(37, 211, 102, 0.6);
}

/* Email (Water Blue / Sky) */
.main-footer .footer-icon-btn.icon-email:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 22px -4px rgba(2, 132, 199, 0.6);
}

.main-footer .footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 12px;
}
.main-footer .footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-on-dark-muted, #9fbcbe);
}
.main-footer .footer-contact-list .fa {
    flex: none;
    width: 30px;
    height: 30px;
    margin-top: 1px;
    border-radius: 8px;
    background: rgba(2, 132, 199, 0.12);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.main-footer .footer-contact-list a {
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
}
.main-footer .footer-contact-list a:hover {
    color: #38bdf8;
}

/* ---------- Column 2: the client wall ---------- */
.main-footer .footer-clients-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 0;
}
.main-footer .footer-clients-row .image-box {
    position: relative;
    background: #ffffff;
    border-radius: 9px;
    padding: 10px;
    width: auto;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease;
}
.main-footer .footer-clients-row .image-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
}
.main-footer .footer-clients-row .image-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, rgba(22, 194, 148, 0) 0%, rgba(22, 194, 148, 0.32) 50%, rgba(22, 194, 148, 0) 100%);
    transform: skewX(-20deg);
    transition: left 600ms ease;
}
.main-footer .footer-clients-row .image-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.55);
}
.main-footer .footer-clients-row .image-box:hover::before {
    left: 120%;
}
.main-footer .clients-note {
    margin-top: 18px;
    font-size: 14px;
    color: #7f9ea1;
}
.main-footer .clients-note a {
    color: var(--mint-400, #2ddba8);
    text-decoration: none;
    font-weight: 500;
}
.main-footer .clients-note a:hover {
    text-decoration: underline;
}

/* ---------- Column 3: links + social ---------- */
.main-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: grid;
    gap: 11px;
}
.main-footer .footer-links a {
    font-size: 15px;
    color: var(--text-on-dark-muted, #9fbcbe);
    text-decoration: none;
    transition: color 180ms ease, padding-left 180ms ease;
}
.main-footer .footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.main-footer .footer-social-icons {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
.main-footer .footer-social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.13);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    transition: background 200ms ease, transform 200ms ease, border-color 200ms ease;
}
.main-footer .footer-social-icons a:hover {
    background: var(--mint-600, #0fa87e);
    border-color: var(--mint-600, #0fa87e);
    transform: translateY(-3px);
}

/* ---------- Bottom bar ---------- */
.main-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 20px 0;
    background: transparent;
}
.main-footer .footer-bottom .copyright-text {
    font-size: 14px;
    line-height: 1.6;
    color: #7f9ea1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    text-align: left;
    padding: 0;
}
.main-footer .footer-bottom .copyright-text a {
    color: #9fbcbe;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.main-footer .footer-bottom .copyright-text img.mono {
    height: 18px;
    width: auto;
    opacity: 0.65;
    transition: opacity 200ms ease;
}
.main-footer .footer-bottom .copyright-text a:hover img.mono {
    opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .main-footer .widgets-section .row {
        grid-template-columns: 1fr 1.5fr;
        gap: 40px;
    }
    .main-footer .widgets-section .row > .big-column:last-child {
        grid-column: 1 / -1;
    }
    .main-footer .footer-links {
        grid-template-columns: repeat(3, auto);
        justify-content: start;
        gap: 10px 34px;
    }
}
@media (max-width: 767px) {
    .main-footer .widgets-section {
        padding: 46px 0 28px;
    }
    .main-footer .widgets-section .row {
        grid-template-columns: 1fr;
        gap: 38px;
    }
    .main-footer .footer-clients-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .main-footer .footer-links {
        grid-template-columns: repeat(2, auto);
    }
    .main-footer .footer-bottom .copyright-text {
        justify-content: flex-start;
    }
}
@media (max-width: 420px) {
    .main-footer .footer-clients-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
