/* Engineering Leaders - footer */
.site-footer {
    --el-footer-ink: #052443;
    --el-footer-text: #4b5b75;
    --el-footer-muted: #74808c;
    --el-footer-line: #d3dfe6;

    position: relative;
    overflow: hidden;
    padding-top: clamp(56px, calc(56px + 20 * (100vw - 1280px) / 640), 76px);
    border-top: 1px solid var(--el-footer-line);
    background: #eaf5f9;
    color: var(--el-footer-text);
    font-size: clamp(14px, calc(14px + 1 * (100vw - 1280px) / 640), 15px);
    line-height: 1.6;
}

/* Decorative rings, top right */
.site-footer::before {
    content: "";
    position: absolute;
    top: -380px;
    right: clamp(-600px, calc(-400px - (1920px - 100vw) / 3), -400px);
    width: 680px;
    height: 680px;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent 0 109px, rgba(5, 36, 67, 0.09) 109px 110px);
    pointer-events: none;
}

.site-footer .container {
    position: relative;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    transition: color var(--el-transition);
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--el-color-hover);
}

.site-footer p {
    margin: 0;
}

/* Brand + link columns */
.footer-top {
    display: grid;
    grid-template-columns: clamp(260px, calc(260px + 70 * (100vw - 1280px) / 640), 330px) 1fr;
}

.footer-brand {
    padding-right: clamp(24px, calc(24px + 16 * (100vw - 1280px) / 640), 40px);
}

.footer-logo {
    display: inline-block;
    color: var(--el-footer-ink);
    font-family: var(--el-font-heading);
    font-size: 28px;
    line-height: 1.2;
}

/* Fixed height, width from the image's ratio. SVGs without width/height collapse otherwise. */
.footer-logo img {
    display: block;
    width: auto;
    max-width: none;
    height: clamp(84px, calc(84px + 26 * (100vw - 1280px) / 640), 110px);
}

.footer-about {
    margin-top: 16px !important;
    color: #4f6070;
    font-size: clamp(14px, calc(14px + 2 * (100vw - 1280px) / 640), 16px);
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(40px, calc(40px + 6 * (100vw - 1280px) / 640), 46px);
    height: clamp(40px, calc(40px + 6 * (100vw - 1280px) / 640), 46px);
    border: 1px solid #bac8d3;
    border-radius: 50%;
    color: var(--el-footer-ink);
    transition: background-color var(--el-transition), border-color var(--el-transition), color var(--el-transition);
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
    border-color: var(--el-footer-ink);
    background: var(--el-footer-ink);
    color: var(--el-color-white);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
    gap: 32px clamp(28px, calc(28px + 28 * (100vw - 1280px) / 640), 56px);
    padding-right: clamp(0px, calc(0px + 90 * (100vw - 1280px) / 640), 90px);
    padding-left: clamp(32px, calc(32px + 18 * (100vw - 1280px) / 640), 50px);
    border-left: 1px solid var(--el-footer-line);
}

.site-footer .footer-col-title {
    margin: 4px 0 clamp(20px, calc(20px + 10 * (100vw - 1280px) / 640), 30px);
    color: #07232f;
    font-family: var(--el-font-body);
    font-size: clamp(11px, calc(11px + 1 * (100vw - 1280px) / 640), 12px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.footer-menu {
    display: grid;
    gap: clamp(10px, calc(10px + 4 * (100vw - 1280px) / 640), 14px);
    margin: 0;
    padding: 0;
    list-style: none;
    color: #37475e;
    font-size: clamp(15px, calc(15px + 2 * (100vw - 1280px) / 640), 17px);
    line-height: 1.4;
}

/* Links that open in a new tab (e.g. Academy login) get an arrow */
.footer-menu a[target="_blank"]::after {
    content: "\2192";
    margin-left: 12px;
    color: var(--el-color-orange);
}

/* Company details */
.footer-entities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: clamp(36px, calc(36px + 12 * (100vw - 1280px) / 640), 48px);
    padding-block: clamp(26px, calc(26px + 8 * (100vw - 1280px) / 640), 34px) clamp(24px, calc(24px + 6 * (100vw - 1280px) / 640), 30px);
    border-top: 1px solid var(--el-footer-line);
    border-bottom: 1px solid var(--el-footer-line);
}

.footer-entity + .footer-entity {
    padding-left: clamp(40px, calc(40px + 58 * (100vw - 1280px) / 640), 98px);
    border-left: 1px solid var(--el-footer-line);
}

.footer-entity-name {
    margin-bottom: 6px !important;
    color: var(--el-footer-ink);
    font-size: clamp(15px, calc(15px + 1 * (100vw - 1280px) / 640), 16px);
    font-weight: 600;
}

.footer-entity-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Phones: each email / phone link is a 24px+ tap target with 8px between them (WCAG 2.5.8). */
@media (max-width: 767px) {
    .footer-entity-contact {
        gap: 8px;
    }

    .footer-entity-contact a {
        display: inline-flex;
        align-items: center;
        min-height: 24px;
    }
}


/* Copyright + legal */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-block: 22px 28px;
    /* Keep the links clear of the floating video / call buttons (.el-sticky-actions): their right offset
       + width + 16px. */
    padding-right: clamp(66px, calc(66px + 53 * (100vw - 1280px) / 640), 119px);
    color: #5f6f7f; /* design #6f7f8f, darkened to pass WCAG AA (4.6:1) */
    font-size: 13px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Middle dot between legal links (as on nurosparx). Empty alt text keeps screen readers quiet. */
.footer-legal li + li::before {
    content: "\00B7";
    content: "\00B7" / "";
    margin-right: 10px;
}

@media (max-width: 1199px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-brand {
        max-width: 420px;
        padding-right: 0;
    }

    .footer-nav {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 991px) {
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }

    .footer-entities {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-entity + .footer-entity {
        padding-top: 28px;
        padding-left: 0;
        border-top: 1px solid var(--el-footer-line);
        border-left: 0;
    }
}

@media (max-width: 575px) {
    .site-footer {
        padding-top: 56px;
    }

    .footer-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 20px;
    }

    .site-footer .footer-col-title {
        margin-bottom: 18px;
        letter-spacing: 0.16em;
    }

    .footer-menu {
        font-size: 15px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    /* One link per line, so a wrapped line never starts with the "·". */
    .footer-legal {
        flex-direction: column;
    }

    .footer-legal li + li::before {
        content: none;
    }
}

/* Phones: end the copyright and legal links above the floating buttons (.el-sticky-actions) when the
   page is scrolled to the bottom. Two 34px buttons + 10px gap + 16px bottom offset + 16px = 110px. */
@media (max-width: 767px) {
    .footer-bottom {
        padding-bottom: 110px;
    }
}

/* Sticky video button (footer.php, Header & Footer > Video): thumbnail with the play button
   below it, fixed at the bottom right like a back-to-top button. */
.el-sticky-actions {
    position: fixed;
    right: clamp(16px, calc(16px + 47 * (100vw - 1280px) / 640), 63px);
    bottom: clamp(16px, calc(16px + 8 * (100vw - 1280px) / 640), 24px);
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* The preview sits above the play button and shows only on hover or keyboard focus. */
.el-video-widget {
    position: relative;
    display: flex;
}

/* Bridge over the gap, so the preview stays open while the pointer moves up to it. */
.el-video-widget::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    width: clamp(64px, calc(64px + 16 * (100vw - 1280px) / 640), 80px);
    height: 12px;
}

.el-video-thumb {
    display: block;
    width: clamp(64px, calc(64px + 16 * (100vw - 1280px) / 640), 80px);
    aspect-ratio: 2 / 1;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: var(--el-color-navy);
    box-shadow: 0 6px 18px rgba(12, 29, 39, 0.3);
    cursor: pointer;
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity var(--el-transition), transform var(--el-transition), visibility var(--el-transition);
}

.el-video-thumb img,
.el-video-thumb video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.el-video-thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(12, 29, 39, 0.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7v10l8-5z'/%3E%3C/svg%3E") no-repeat center / 11px;
    transform: translate(-50%, -50%);
}

.el-video-play {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(34px, calc(34px + 6 * (100vw - 1280px) / 640), 40px);
    aspect-ratio: 1;
    padding: 0 0 0 2px; /* optical centre of the triangle */
    border: 0;
    border-radius: 50%;
    background: var(--el-color-white);
    box-shadow: 0 8px 20px rgba(12, 29, 39, 0.3);
    color: var(--el-color-orange);
    cursor: pointer;
    transition: transform var(--el-transition);
}

/* Orange ring with a see-through gap, as in the design. */
.el-video-play::before {
    content: "";
    position: absolute;
    inset: -3px; /* ring close to the circle */
    border: 2px solid var(--el-color-orange);
    border-radius: 50%;
}

.el-video-widget:hover .el-video-thumb,
.el-video-widget:focus-within .el-video-thumb {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.el-video-play:hover,
.el-video-play:focus-visible {
    transform: scale(1.06);
}

/* Sticky call button: orange circle with the same ring as the play button. */
.el-sticky-call {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(34px, calc(34px + 6 * (100vw - 1280px) / 640), 40px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--el-color-orange);
    box-shadow: 0 8px 20px rgba(12, 29, 39, 0.3);
    color: var(--el-color-white);
    transition: transform var(--el-transition), background-color var(--el-transition);
}

.el-sticky-call::before {
    content: "";
    position: absolute;
    inset: -3px; /* ring close to the circle */
    border: 2px solid var(--el-color-orange);
    border-radius: 50%;
}

/* Same hover as the header call icon. Scoped so the global orange link hover does not win. */
.el-sticky-actions .el-sticky-call:hover,
.el-sticky-actions .el-sticky-call:focus-visible {
    background: #d94f1a;
    color: var(--el-color-white);
    transform: rotate(-12deg);
}

.el-sticky-call:focus-visible {
    outline: 2px solid var(--el-color-white);
    outline-offset: 6px;
}

.el-video-play:focus-visible {
    outline: 2px solid var(--el-color-white);
    outline-offset: 6px;
}

/* Popup */
.el-video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.el-video-modal[hidden] {
    display: none;
}

.el-video-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 29, 39, 0.85);
}

.el-video-dialog {
    position: relative;
    width: min(1100px, 100%);
}

.el-video-player {
    display: block;
    width: 100%;
    max-height: calc(100vh - 120px);
    border-radius: 12px;
    background: #000;
}

.el-video-close {
    position: absolute;
    top: -48px;
    right: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--el-color-white);
    color: var(--el-color-navy);
    cursor: pointer;
}

.el-video-open {
    overflow: hidden;
}

/* Phones: the play button only. */
@media (max-width: 575px) {
    .el-video-thumb {
        display: none;
    }
}
