﻿/* header + footer */

#home,
#data-analytics,
#software-development,
#sustainability {
    scroll-margin-top: 100px;
}

/***** HEADER *****/

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--dusk-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-inline: var(--space-side);
    padding-block: 28px;
}

/* Logo */
.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

    .site-logo img {
        height: 36px;
        width: auto;
        display: block;
    }

/* Nav */
.site-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}
    .site-nav a {
        color: var(--white);
        line-height: 1.4;
        text-decoration: none;
        font-family: var(--font-heading);
        font-size: var(--font-size-body);
        transition: background 0.2s ease, color 0.2s ease;
    }

        .site-nav a:hover {
            color: var(--grey-dark);
        }

/* Language switcher */
.lang-switcher {
    position: relative;
}

/* service nav */
.lang-switcher--services .lang-switcher__button {
    background: none;
    padding: 0;
}

    .lang-switcher--services .lang-switcher__button:hover,
    .lang-switcher--services .lang-switcher__button:focus-visible {
        background: none;
        color: var(--grey-dark);
    }

.lang-switcher--services .lang-switcher__menu {
    min-width: 172px;
    left: -32px;
}


.lang-switcher__button {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-heading);
    font-size: var(--font-size-body);
    line-height: 1.4;
    color: var(--white);
    padding: 8px 14px;
    border-radius: 8px;
    background: #8492c1; 
    transition: background 0.2s ease, color 0.2s ease;
}
    .lang-switcher__button::-webkit-details-marker {
        display: none;
    }

    .lang-switcher__button:hover,
    .lang-switcher__button:focus-visible {
        background: rgba(255, 255, 255, 0.2);
    }

.lang-switcher__globe {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.lang-switcher__chevron {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.2s ease;
}

.lang-switcher[open] .lang-switcher__chevron {
    transform: rotate(180deg);
}

.lang-switcher__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: flex;
    flex-direction: column;
    min-width: 120px;
    background: #8492c1;
    border-radius: 8px;
    overflow: hidden;
    z-index: 10;
}

    .lang-switcher__menu a {
        display: block;
        padding: 10px 16px;
        color: var(--white);
    }

        .lang-switcher__menu a:hover {
            background: rgba(255, 255, 255, 0.2);
            color: var(--white)
        }

/* Mobile burger */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 30px;
    height: 21px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
}

    .nav-toggle-label span {
        width: 30px;
        height: 3px;
        background: var(--white);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: translateY(9px);
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: translateY(-9px);
}

@media (max-width: 1024px) {
    .site-logo {
        position: relative;
        z-index: 1001;
    }

    .site-header__inner {
        min-height: 72px;
        padding-block: 18px;
    }

    .nav-toggle-label {
        display: flex;
    }

    .site-nav {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        background: var(--dusk-blue);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        padding: var(--space-side);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 100;
    }

    .nav-toggle:checked ~ .site-nav {
        transform: translateX(0);
    }

    .site-nav a {
        font-size: 20px;
        color: var(--white);
    }

    .lang-switcher--services {
        position: relative;
        order: 1;
    }

        .lang-switcher--services .lang-switcher__button {
            font-size: 20px;
            justify-content: center;
        }

        .lang-switcher--services .lang-switcher__menu {
            position: absolute;
            top: calc(100% + 12px);
            bottom: auto;
            left: 50%;
            right: auto;
            transform: translateX(-50%);
            min-width: 250px;
            background: #8492c1;
            border-radius: 8px;
            z-index: 1000;
            overflow: hidden;
        }

            .lang-switcher--services .lang-switcher__menu a {
                white-space: nowrap;
                text-align: center;
                padding: 10px 16px;
            }

    .lang-switcher:not(.lang-switcher--services) {
        position: absolute;
        right: var(--space-side);
        bottom: var(--space-side);
    }

    .lang-switcher__button {
        font-size: 20px;
    }

    .lang-switcher__menu {
        top: auto;
        bottom: calc(100% + 8px);
        right: 0;
        text-align: center;
    }
}

body:has(#nav-toggle:checked) {
    overflow: hidden;
}

/************************************************************************/

/***** FOOTER *****/

.site-footer {
    background: var(--grey-dark);
    color: var(--white);
}

    .site-footer a {
        color: var(--white);
        text-decoration: none;
    }

        .site-footer a:hover {
            color: var(--orange);
        }

.site-footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-areas:
        "brand  legal  application"
        "social social social";
    column-gap: var(--space-side);
    row-gap: var(--space-section);
    padding-block: var(--space-section);
}

.site-footer__logo img {
    height: 40px;
    width: auto;
    display: block;
    margin-bottom: var(--space-heading-body);
}

.site-footer__brand {
    grid-area: brand;
}

.site-footer__legal-col {
    grid-area: legal;
}

.site-footer__application {
    grid-area: application;
}

.site-footer__legal,
.site-footer__application-heading {
    font-size: 20px;
    margin-bottom: var(--space-heading-body);
    font-weight: 600;
}

    .site-footer__legal a,
    .site-footer__application a {
        display: block;
        margin-bottom: 8px;
    }

.site-footer__social {
    grid-area: social;
    display: flex;
    gap: 40px;
}

    .site-footer__social i {
        font-size: 24px;
        filter: brightness(0) invert(1);
    }

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-block: var(--space-heading-body);
    font-size: 12px;
    color: var(--grey-light);
    font-size: var(--font-size-small);
}

@media (max-width: 768px) {
    .site-footer__top {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "legal"
            "application"
            "social";
    }

    .site-footer__social {
        justify-content: flex-start;
        gap: 32px;
    }
}

/************************************************************************/

/***** BANNER *****/

/* cookie */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dusk-blue);
    color: var(--grey-dark);
    z-index: 200;
}

.cookie-consent__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-block: 16px;
    font-size: var(--font-size-small);
}

.cookie-consent a {
    color: var(--color-accent);
}

.cookie-consent__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-consent__accept,
.cookie-consent__decline {
    cursor: pointer;
    border-radius: 4px;
}


.cookie-consent__accept {
    background: var(--yellow);
    color: var(--grey-dark);
    border: none;
    padding: 8px 20px;
    font-size: var(--font-size-small);
}

    .cookie-consent__accept:hover {
        background: #f0b70b;
    }

.cookie-consent__decline {
    background: none;
    color: var(--white);
    border: 1px solid var(--grey-light);
    padding: 8px 20px;
    font-size: var(--font-size-small);
}

    .cookie-consent__decline:hover {
/*        background: rgba(255, 255, 255, 0.1);*/
        background: var(--white);
        color: var(--orange);
    }