/* ═══════════════════════════════════════════════════
   FOOTER SECTION (Stenzo REFERENCE)
   All styles are namespaced under .sfooter to avoid collision
═══════════════════════════════════════════════════ */

.sfooter {
    background-color: #ebeff5;
    /* Matches page background flow */
    padding: 100px 24px 0 24px;
    /* Zero bottom padding */
    width: 100%;
    color: #14142d;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.sfooter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 60px;
}

/* ── Left Column ── */
.sfooter-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
    padding-bottom: 0;
    margin-bottom: 25px;
    /* Flush with bottom */
}

.sfooter-left-top {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 220px;
}

.sfooter-logo {
    display: inline-block;
    color: #14142d;
    transition: transform 0.2s ease;
    margin-top: 0;
}

.sfooter-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.sfooter-logo:hover {
    transform: scale(1.05);
}

/* ── Social Media Section (Instagram, Facebook, LinkedIn) ── */
.sfooter-social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 36px;
    margin-bottom: 12px;
}

.sfooter-social-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7a7d8e;
    line-height: 1;
}

.sfooter-social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sfooter-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid transparent;
    background-color: #dde3ec;
    color: #14142d;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.sfooter-social-btn:hover {
    color: rgb(219, 74, 43);
}

.sfooter-social-btn:focus-visible {
    outline: 2px solid rgb(219, 74, 43);
    outline-offset: 2px;
}

/* ── Legal Links Section (Privacy, Cookie Policy, Cookie Preferences) ── */
.sfooter-legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 0;
    font-size: 15px;
}

.sfooter-legal-links.sfooter-legal-mobile,
.sfooter-legal-mobile {
    display: none !important;
}

.sfooter-legal-links a,
.sfooter-cookie-btn {
    text-decoration: none;
    color: #7a7d8e;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: inherit;
    line-height: inherit;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.sfooter-legal-links a:hover,
.sfooter-legal-links a.is-active,
.sfooter-cookie-btn:hover {
    color: #14142d;
    text-decoration: none;
}

.sfooter-legal-sep {
    color: #cbd5e1;
    font-size: 11px;
    user-select: none;
}

.sfooter-cookie-btn:focus:not(:focus-visible) {
    outline: none;
}

.sfooter-cookie-btn:focus-visible {
    outline: 2px solid rgb(219, 74, 43);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ── Dark Theme Overrides for Social Section (Career Support, Specialized Talent, Solutions pages) ── */
body.theme-dark .sfooter-social-label,
body.theme-dark .sfooter-legal-links a,
body.theme-dark .sfooter-cookie-btn,
body.career-support-page .sfooter-social-label,
body.career-support-page .sfooter-legal-links a,
body.career-support-page .sfooter-cookie-btn,
body.specialized-talent-page .sfooter-social-label,
body.specialized-talent-page .sfooter-legal-links a,
body.specialized-talent-page .sfooter-cookie-btn,
body.for-talent-page .sfooter-social-label,
body.for-talent-page .sfooter-legal-links a,
body.for-talent-page .sfooter-cookie-btn,
body.for-companies-page .sfooter-social-label,
body.for-companies-page .sfooter-legal-links a,
body.for-companies-page .sfooter-cookie-btn {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.theme-dark .sfooter-legal-links a:hover,
body.theme-dark .sfooter-cookie-btn:hover,
body.career-support-page .sfooter-legal-links a:hover,
body.career-support-page .sfooter-cookie-btn:hover,
body.specialized-talent-page .sfooter-legal-links a:hover,
body.specialized-talent-page .sfooter-cookie-btn:hover,
body.for-talent-page .sfooter-legal-links a:hover,
body.for-talent-page .sfooter-cookie-btn:hover,
body.for-companies-page .sfooter-legal-links a:hover,
body.for-companies-page .sfooter-cookie-btn:hover {
    color: #ffffff !important;
}

body.theme-dark .sfooter-social-btn,
body.career-support-page .sfooter-social-btn,
body.specialized-talent-page .sfooter-social-btn,
body.for-talent-page .sfooter-social-btn,
body.for-companies-page .sfooter-social-btn {
    background-color: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    box-shadow: none;
}

body.theme-dark .sfooter-social-btn:hover,
body.career-support-page .sfooter-social-btn:hover,
body.specialized-talent-page .sfooter-social-btn:hover,
body.for-talent-page .sfooter-social-btn:hover,
body.for-companies-page .sfooter-social-btn:hover {
    color: rgb(219, 74, 43);
    border-color: #ffffff;
}

/* ── Dark Theme Overrides for Legal Separator dot only (matches nav list behavior) ── */
body.theme-dark .sfooter-legal-sep,
body.career-support-page .sfooter-legal-sep,
body.specialized-talent-page .sfooter-legal-sep,
body.for-talent-page .sfooter-legal-sep,
body.for-companies-page .sfooter-legal-sep {
    color: rgba(255, 255, 255, 0.3);
}

/* ── Left Column Bottom Wrapper & Branches ── */
.sfooter-left-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.sfooter-branches {
    display: flex;
    flex-direction: column;
    max-width: 380px;
    width: 100%;
    border-top: 1px solid #d5dce6;
    padding-top: 10px;
    margin-top: 0;
}

.sfooter-branch-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid #d5dce6;
    width: 100%;
}

.sfooter-branch-item.sfooter-branch-item-last {
    border-bottom: none;
    padding-bottom: 4px;
}

.sfooter-email-item {
    display: flex;
    align-items: center;
    padding-top: 8px;
    width: 100%;
}

.sfooter-branch-line {
    font-size: 13.5px;
    line-height: 1.5;
    color: #7a7d8e;
    margin: 0;
}

.sfooter-branch-line b,
.sfooter-branch-line strong {
    font-weight: 600;
    color: #1e293b;
}

.sfooter-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: #7a7d8e;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
    width: fit-content;
}

.sfooter-contact-link:hover {
    color: #14142d;
}

/* ── Dark Theme Overrides for Branches ── */
body.theme-dark .sfooter-branches,
body.career-support-page .sfooter-branches,
body.specialized-talent-page .sfooter-branches,
body.for-talent-page .sfooter-branches,
body.for-companies-page .sfooter-branches,
body.theme-dark .sfooter-branch-item,
body.career-support-page .sfooter-branch-item,
body.specialized-talent-page .sfooter-branch-item,
body.for-talent-page .sfooter-branch-item,
body.for-companies-page .sfooter-branch-item {
    border-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .sfooter-branch-line,
body.career-support-page .sfooter-branch-line,
body.specialized-talent-page .sfooter-branch-line,
body.for-talent-page .sfooter-branch-line,
body.for-companies-page .sfooter-branch-line {
    color: rgba(255, 255, 255, 0.6);
}

body.theme-dark .sfooter-branch-line b,
body.theme-dark .sfooter-branch-line strong,
body.career-support-page .sfooter-branch-line b,
body.career-support-page .sfooter-branch-line strong,
body.specialized-talent-page .sfooter-branch-line b,
body.specialized-talent-page .sfooter-branch-line strong,
body.for-talent-page .sfooter-branch-line b,
body.for-talent-page .sfooter-branch-line strong,
body.for-companies-page .sfooter-branch-line b,
body.for-companies-page .sfooter-branch-line strong {
    color: rgba(255, 255, 255, 0.95);
}

body.theme-dark .sfooter-contact-link,
body.career-support-page .sfooter-contact-link,
body.specialized-talent-page .sfooter-contact-link,
body.for-talent-page .sfooter-contact-link,
body.for-companies-page .sfooter-contact-link {
    color: rgba(255, 255, 255, 0.6);
}

body.theme-dark .sfooter-contact-link:hover,
body.career-support-page .sfooter-contact-link:hover,
body.specialized-talent-page .sfooter-contact-link:hover,
body.for-talent-page .sfooter-contact-link:hover,
body.for-companies-page .sfooter-contact-link:hover {
    color: #ffffff;
}

/* ── Full-Width Bottom Bar & Copyright ── */
.sfooter-bottom {
    border-top: 1px solid #d5dce6;
    margin-top: 5px;
    width: 100%;
    padding: 20px 0 20px 0;
}

.sfooter-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sfooter-bottom-sep {
    color: #94a3b8;
    font-size: 14px;
    user-select: none;
    margin: 0 4px;
}

.sfooter-copyright {
    background-color: #1a1a24;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.sfooter-copyright p {
    margin: 0;
    color: #ffffff;
    font-size: 13.5px;
    line-height: 1.4;
}

body.theme-dark .sfooter-bottom,
body.career-support-page .sfooter-bottom,
body.specialized-talent-page .sfooter-bottom,
body.for-talent-page .sfooter-bottom,
body.for-companies-page .sfooter-bottom {
    border-top-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .sfooter-bottom-sep,
body.career-support-page .sfooter-bottom-sep,
body.specialized-talent-page .sfooter-bottom-sep,
body.for-talent-page .sfooter-bottom-sep,
body.for-companies-page .sfooter-bottom-sep {
    color: rgba(255, 255, 255, 0.3);
}

/* ── Right Column ── */
.sfooter-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    container-type: inline-size;
}

.sfooter-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 60px;
}

.sfooter-col {
    display: flex;
    flex-direction: column;
}

.sfooter-heading {
    font-size: 16px;
    font-weight: 600;
    color: #4a4d5e;
    margin: 0 0 24px 0;
}

.sfooter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sfooter-list a {
    text-decoration: none;
    color: #7a7d8e;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.sfooter-list a:hover,
.sfooter-list a.is-active {
    color: #14142d;
}

.sfooter-big-text {
    font-family: 'Inter', sans-serif;
    font-size: 19.5cqw;
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.75;
    color: rgb(219, 74, 43);
    margin: 0;
    margin-bottom: 0px;
    align-self: flex-end;
    text-align: right;
    padding-bottom: 0;
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 991px) {
    .sfooter-container {
        flex-direction: column;
        gap: 60px;
    }

    .sfooter-left {
        order: 2;
        width: 100%;
        align-items: center;
        border-top: none;
        padding-top: 0;
        margin-bottom: 0;
    }

    .sfooter-social {
        align-items: center;
        margin-top: 0;
        margin-bottom: 16px;
        text-align: center;
    }

    .sfooter-legal-desktop {
        display: none !important;
    }

    .sfooter-legal-links.sfooter-legal-mobile,
    .sfooter-legal-mobile {
        display: flex !important;
        justify-content: center;
        text-align: center;
        margin-top: 0;
        margin-bottom: 24px;
        max-width: 320px;
    }

    .sfooter-branches {
        align-items: flex-start;
        text-align: left;
        max-width: 310px;
        width: 100%;
        margin: 0 auto;
        padding: 0;
        border-top: 1px solid #d5dce6;
    }

    .sfooter-branch-item {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .sfooter-email-item {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .sfooter-contact-link {
        justify-content: flex-start;
    }

    .sfooter-bottom {
        border-top: none;
        margin-top: 24px;
        padding-top: 0;
        padding-bottom: 20px;
    }

    .sfooter-bottom-container {
        justify-content: center;
        padding: 0;
    }

    .sfooter-bottom-sep {
        display: none;
    }

    .sfooter-logo {
        display: none;
        /* Logo is hidden on smaller screens */
    }

    .sfooter-right {
        order: 1;
        /* Move text and links to the top */
        flex-direction: column-reverse;
        /* Swap so Big Text is above Links */
        gap: 60px;
    }

    .sfooter-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 20px;
        margin-bottom: 0;
    }

    .sfooter-big-text {
        font-size: 26vw;
        line-height: 0.8;
        padding-bottom: 0;
        text-align: center;
        margin-left: 0;
        width: 100%;
    }

    .sfooter-copyright {
        justify-content: center;
        width: auto;
        border-radius: 12px 12px 0 0;
        margin-bottom: -20px;
        padding: 10px 22px 20px 22px;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .sfooter-left {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "branches social"
            "branches legal";
        align-items: start;
        justify-content: space-between;
        gap: 16px 40px;
        width: 100%;
    }

    .sfooter-branches {
        grid-area: branches;
        margin: 0;
        max-width: 360px;
        width: 100%;
        border-top: none;
        padding-top: 0;
    }

    .sfooter-social {
        grid-area: social;
        align-items: flex-start;
        text-align: left;
        margin: 0;
    }

    .sfooter-legal-links.sfooter-legal-mobile,
    .sfooter-legal-mobile {
        grid-area: legal;
        justify-content: flex-start;
        text-align: left;
        margin: 0;
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .sfooter {
        padding: 60px 16px 0 16px;
    }

    .sfooter-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .sfooter-big-text {
        font-size: 28vw;
    }

    .sfooter-copyright {
        padding: 10px 16px 20px 16px;
        font-size: 12px;
        border-radius: 12px 12px 0 0;
        margin-bottom: -20px;
        width: 100%;
    }
}