/* EL ENGINEERING - GLOBAL CSS
   Shared header/footer and cross-page behavior only. */

/* Mobile sticky header */
@media (max-width: 768px) {
    #masthead,
    .site-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 9999 !important;
        background: #FFFFFF !important;
        box-shadow: 0 2px 14px rgba(13, 27, 42, 0.10) !important;
    }

    .site-main-header-wrap,
    .site-header-row-container-inner {
        background: #FFFFFF !important;
    }
}

/* ==================================================
   Global Footer - EL ENGINEERING
================================================== */

.el-site-footer {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    background:
        radial-gradient(circle at 88% 18%, rgba(0, 102, 204, 0.16), transparent 30%),
        linear-gradient(180deg, #07111D 0%, #06111D 100%) !important;
    color: #FFFFFF !important;
    padding: 58px 40px 28px !important;
    border-top: 1px solid rgba(203, 213, 225, 0.18) !important;
}

.el-site-footer__container {
    max-width: 1280px !important;
    margin: 0 auto !important;
}

.el-site-footer__main {
    display: grid !important;
    grid-template-columns: 1.25fr 0.8fr 1.15fr 1fr !important;
    gap: 64px !important;
    align-items: start !important;
}

.el-site-footer__brand {
    max-width: 340px !important;
}

.el-site-footer__logo-placeholder {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    margin-bottom: 22px !important;
}

.el-site-footer__mark {
    width: 54px !important;
    height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #0066CC !important;
    color: #0066CC !important;
    font-family: Montserrat, sans-serif !important;
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: -0.08em !important;
}

.el-site-footer__name {
    font-family: Montserrat, sans-serif !important;
    font-size: 24px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    color: #FFFFFF !important;
    white-space: nowrap !important;
}

.el-site-footer__accent,
.el-site-footer__heading-line {
    display: block !important;
    width: 34px !important;
    height: 2px !important;
    background: #0066CC !important;
}

.el-site-footer__accent {
    margin: 0 0 24px 0 !important;
}

.el-site-footer__brand p {
    margin: 0 !important;
    font-family: Montserrat, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    font-weight: 400 !important;
    color: #CBD5E1 !important;
}

.el-site-footer__column h3 {
    margin: 0 0 18px 0 !important;
    font-family: Montserrat, sans-serif !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    letter-spacing: 0.10em !important;
    text-transform: uppercase !important;
    color: #0066CC !important;
}

.el-site-footer__heading-line {
    margin: 0 0 26px 0 !important;
}

.el-site-footer__column ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.el-site-footer__column li {
    margin: 0 0 14px 0 !important;
    font-family: Montserrat, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
    color: #CBD5E1 !important;
}

.el-site-footer__column li:last-child {
    margin-bottom: 0 !important;
}

.el-site-footer__column a,
.el-site-footer__column a:visited {
    color: #CBD5E1 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.el-site-footer__column a:hover {
    color: #FFFFFF !important;
}

.el-site-footer__contact li {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.el-site-footer__icon {
    width: 22px !important;
    height: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.el-site-footer__icon svg {
    width: 22px !important;
    height: 22px !important;
    stroke: #0066CC !important;
    stroke-width: 1.8 !important;
    fill: none !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.el-site-footer__bottom {
    margin-top: 52px !important;
    padding-top: 26px !important;
    border-top: 1px solid rgba(203, 213, 225, 0.22) !important;
    text-align: center !important;
}

.el-site-footer__bottom p {
    margin: 0 !important;
    font-family: Montserrat, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    color: #9CA3AF !important;
}

/* ==================================================
   Mobile Footer
================================================== */

@media (max-width: 768px) {
    .el-site-footer {
        padding: 46px 24px 26px !important;
    }

    .el-site-footer__main {
        grid-template-columns: 1fr !important;
        gap: 38px !important;
    }

    .el-site-footer__brand {
        max-width: 100% !important;
    }

    .el-site-footer__logo-placeholder {
        gap: 16px !important;
        margin-bottom: 20px !important;
    }

    .el-site-footer__mark {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }

    .el-site-footer__name {
        font-size: 21px !important;
        white-space: normal !important;
    }

    .el-site-footer__heading-line {
        margin-bottom: 20px !important;
    }

    .el-site-footer__column li {
        font-size: 15px !important;
        margin-bottom: 12px !important;
    }

    .el-site-footer__bottom {
        margin-top: 40px !important;
        padding-top: 22px !important;
        text-align: left !important;
    }

    .el-site-footer__bottom p {
        font-size: 13px !important;
    }
}
/* Hide default Kadence footer / empty footer rows */
#colophon,
.site-footer-wrap,
.site-footer-row-container,
.site-footer-row-container-inner {
    display: none !important;
}

/* Remove gap before custom footer */
.el-site-footer {
    margin-top: 0 !important;
}

/* Footer contact icons */
.el-site-footer__contact li {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.el-site-footer__icon {
    width: 22px !important;
    height: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.el-site-footer__icon svg {
    width: 22px !important;
    height: 22px !important;
    stroke: #0066CC !important;
    stroke-width: 1.8 !important;
    fill: none !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}
/* Footer - better wrapping for long service names */
.el-site-footer__column li {
    max-width: 280px !important;
}

.el-site-footer__column a {
    overflow-wrap: break-word !important;
    word-break: normal !important;
}
/* ==================================================
   Footer - final mobile refinement
================================================== */

@media (max-width: 768px) {
    .el-site-footer {
        padding: 38px 24px 26px !important;
    }

    .el-site-footer__main {
        gap: 34px !important;
    }

    .el-site-footer__logo-placeholder {
        gap: 14px !important;
        margin-bottom: 18px !important;
    }

    .el-site-footer__mark {
        width: 46px !important;
        height: 46px !important;
        font-size: 18px !important;
    }

    .el-site-footer__name {
        font-size: 21px !important;
        line-height: 1.15 !important;
        letter-spacing: 0.08em !important;
    }

    .el-site-footer__accent {
        margin-bottom: 20px !important;
    }

    .el-site-footer__brand p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .el-site-footer__column h3 {
        font-size: 13px !important;
        letter-spacing: 0.12em !important;
        margin-bottom: 16px !important;
    }

    .el-site-footer__heading-line {
        margin-bottom: 22px !important;
    }

    .el-site-footer__column li {
        font-size: 15px !important;
        line-height: 1.45 !important;
        margin-bottom: 13px !important;
        max-width: 100% !important;
    }

    .el-site-footer__contact li {
        gap: 14px !important;
        align-items: center !important;
    }

    .el-site-footer__icon,
    .el-site-footer__icon svg {
        width: 21px !important;
        height: 21px !important;
    }

    .el-site-footer__bottom {
        margin-top: 36px !important;
        padding-top: 22px !important;
    }

    .el-site-footer__bottom p {
        font-size: 13px !important;
        line-height: 1.45 !important;
    }
}
/* ==================================================
   Footer - final compact mobile adjustment
================================================== */

@media (max-width: 768px) {
    .el-site-footer {
        padding: 34px 24px 24px !important;
    }

    .el-site-footer__main {
        gap: 28px !important;
    }

    .el-site-footer__logo-placeholder {
        gap: 13px !important;
        margin-bottom: 16px !important;
    }

    .el-site-footer__mark {
        width: 44px !important;
        height: 44px !important;
        font-size: 17px !important;
    }

    .el-site-footer__name {
        font-size: 20px !important;
        line-height: 1.15 !important;
        letter-spacing: 0.08em !important;
    }

    .el-site-footer__accent {
        margin-bottom: 18px !important;
    }

    .el-site-footer__brand p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .el-site-footer__column h3 {
        font-size: 13px !important;
        margin-bottom: 14px !important;
    }

    .el-site-footer__heading-line {
        margin-bottom: 18px !important;
    }

    .el-site-footer__column li {
        font-size: 14px !important;
        line-height: 1.45 !important;
        margin-bottom: 11px !important;
    }

    .el-site-footer__contact li {
        gap: 13px !important;
        margin-bottom: 13px !important;
    }

    .el-site-footer__icon,
    .el-site-footer__icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    .el-site-footer__bottom {
        margin-top: 30px !important;
        padding-top: 20px !important;
    }

    .el-site-footer__bottom p {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
    }
}
/* Footer - keep selected brand phrase on one line */
.el-footer-nowrap {
    white-space: nowrap !important;
}
/* Footer brand text - desktop/mobile line breaks */
.el-footer-brand-mobile {
    display: none !important;
}

.el-footer-brand-desktop {
    display: inline !important;
}

@media (max-width: 768px) {
    .el-footer-brand-desktop {
        display: none !important;
    }

    .el-footer-brand-mobile {
        display: inline !important;
    }
}
/* ==================================================
   Footer - final image logo
================================================== */

.el-site-footer__logo-link {
    display: inline-flex !important;
    align-items: center !important;
    max-width: 280px !important;
    margin-bottom: 22px !important;
    text-decoration: none !important;
}

.el-site-footer__logo-img {
    display: block !important;
    width: 260px !important;
    max-width: 100% !important;
    height: auto !important;
}

@media (max-width: 768px) {
    .el-site-footer__logo-link {
        max-width: 320px !important;
        margin-bottom: 18px !important;
    }

    .el-site-footer__logo-img {
        width: 300px !important;
        max-width: 100% !important;
    }
}

/* Remove horizontal scroll */
html,
body {
    overflow-x: hidden !important;
}

/* ==================================================
   Mobile CTA spacing standardisation
   Match About + Industries CTA to Expertise
================================================== */

@media (max-width: 768px) {

    body:has(.el-about-cta-final) .el-about-cta-final,
    body:has(.el-industries-cta-final) .el-industries-cta-final {
        padding-bottom: 32px !important;
        margin-bottom: 0 !important;
    }

    body:has(.el-about-cta-final) .el-about-cta-final__container,
    body:has(.el-industries-cta-final) .el-industries-cta-final__container {
        margin-bottom: 0 !important;
    }

    body:has(.el-about-cta-final) .site-footer,
    body:has(.el-industries-cta-final) .site-footer,
    body:has(.el-about-cta-final) #colophon,
    body:has(.el-industries-cta-final) #colophon {
        margin-top: 0 !important;
    }
}

/* Footer legal links */
.el-footer-legal {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    font-family: Montserrat, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    color: #CBD5E1 !important;
    text-align: center !important;
}

.el-footer-legal a,
.el-footer-legal a:visited {
    color: #CBD5E1 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.el-footer-legal a:hover {
    color: #FFFFFF !important;
}

.el-footer-legal-separator {
    color: #64748B !important;
}

@media (max-width: 768px) {
    .el-footer-legal {
        justify-content: flex-start !important;
        gap: 8px !important;
        font-size: 12px !important;
        text-align: left !important;
    }
}

.el-counter { font-variant-numeric: tabular-nums; }
/* ==================================================
   Footer legal links - mobile cleanup
================================================== */

@media (max-width: 768px) {
    .el-footer-legal-separator {
        display: none !important;
    }

    .el-footer-legal {
        row-gap: 6px !important;
        column-gap: 18px !important;
    }
}
