/* ==========================================================================
   Page shell: sticky footer, site header, mobile drawer, footer, shared
   utilities (reveal, scroll rows, video facade). Uses tokens.css.
   Logical properties throughout, so the same rules serve LTR and RTL.
   ========================================================================== */

/* Footer sits at the bottom of short pages (login, success, ...). */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > .site-footer {
    margin-block-start: auto;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 1030;
    width: 100%;
    background: var(--header-bg);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px -18px rgba(0, 0, 0, .6);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: var(--header-h);
    padding-block: 8px;
}

.site-header__logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header__logo img {
    width: 112px;
    height: auto;
    display: block;
}

.site-nav {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: rgba(255, 255, 255, .86);
    font-family: var(--font-body);
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav .dropdown.show > .site-nav__link {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

/* Active item: brand underline bar */
.site-nav__link.is-active {
    color: #fff;
}

.site-nav__link.is-active::before {
    content: "";
    position: absolute;
    inset-inline: 12px;
    inset-block-end: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--violet-400);
}

.site-nav__link.dropdown-toggle::after {
    margin-inline-start: 2px;
}

.site-nav__dropdown {
    min-width: 220px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-md);
    background: var(--night-800);
    box-shadow: var(--shadow-card);
}

.site-nav__dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, .88);
    font-size: .9375rem;
    font-weight: 500;
}

.site-nav__dropdown .dropdown-item i {
    color: var(--violet-300);
}

.site-nav__dropdown .dropdown-item:hover,
.site-nav__dropdown .dropdown-item:focus {
    background: rgba(139, 92, 246, .18);
    color: #fff;
}

.site-nav__dropdown .dropdown-item.active {
    background: rgba(139, 92, 246, .28);
    color: #fff;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-inline-start: auto;
}

.site-header__lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: var(--radius-pill);
    color: #fff;
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.site-header__lang:hover,
.site-header__lang:focus-visible {
    color: #fff;
    border-color: var(--violet-300);
    background: rgba(255, 255, 255, .08);
}

.site-header__icon {
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: rgba(255, 255, 255, .88);
    font-size: 1.35rem;
}

.site-header__icon:hover,
.site-header__icon:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.site-header__cta {
    align-items: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--gradient-brand);
    color: #fff;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 8px 20px -10px rgba(139, 92, 246, .9);
}

.site-header__cta:hover,
.site-header__cta:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -10px rgba(139, 92, 246, 1);
}

.site-header__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius-sm);
    background: transparent;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
}

.site-header__burger:hover,
.site-header__burger:focus-visible {
    background: rgba(255, 255, 255, .1);
}

@media (min-width: 1200px) {
    .site-header__burger {
        display: none;
    }
}

@media (max-width: 575.98px) {
    :root {
        --header-h: 64px;
    }

    .site-header__logo img {
        width: 92px;
    }
}

/* --------------------------------------------------------------------------
   Mobile drawer (Bootstrap offcanvas; offcanvas-start follows dir)
   -------------------------------------------------------------------------- */
.site-drawer.offcanvas {
    --bs-offcanvas-width: min(340px, 88vw);
    --bs-offcanvas-bg: var(--night-900);
    --bs-offcanvas-color: #fff;
    border-inline-end: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, var(--night-800) 0%, var(--night-900) 100%);
    color: #fff;
}

.site-drawer__header {
    padding: 14px 16px;
    border-block-end: 1px solid rgba(255, 255, 255, .08);
}

.site-drawer__logo img {
    width: 100px;
    height: auto;
    display: block;
}

.site-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 1.1rem;
}

.site-drawer__close:hover,
.site-drawer__close:focus-visible {
    background: rgba(255, 255, 255, .14);
}

.site-drawer__body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 12px 12px 24px;
}

.site-drawer__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-drawer__link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, .86);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
}

.site-drawer__link i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: rgba(139, 92, 246, .16);
    color: var(--violet-300);
    font-size: .9rem;
}

.site-drawer__link:hover,
.site-drawer__link:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.site-drawer__link.is-active {
    color: #fff;
    background: rgba(139, 92, 246, .22);
    box-shadow: inset 3px 0 0 var(--violet-400);
}

[dir="rtl"] .site-drawer__link.is-active {
    box-shadow: inset -3px 0 0 var(--violet-400);
}

.site-drawer__link.is-active i {
    background: var(--violet-600);
    color: #fff;
}

.site-drawer__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    background: var(--gradient-brand);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.site-drawer__cta:hover,
.site-drawer__cta:focus-visible {
    color: #fff;
}

.site-drawer__langs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.site-drawer__langs a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius-pill);
    color: rgba(255, 255, 255, .86);
    font-size: .9375rem;
    font-weight: 500;
}

.site-drawer__langs a.is-active {
    border-color: var(--violet-400);
    background: rgba(139, 92, 246, .2);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, .72);
    border-block-start: 1px solid rgba(255, 255, 255, .06);
    padding-block: 56px 0;
    font-size: .9375rem;
}

.site-footer a {
    color: rgba(255, 255, 255, .78);
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #fff;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 40px;
    padding-block-end: 40px;
}

.site-footer__logo {
    display: inline-block;
}

.site-footer__logo img {
    width: 120px;
    height: auto;
    display: block;
}

.site-footer__tagline {
    max-width: 36ch;
    margin: 16px 0 20px;
    color: rgba(255, 255, 255, .7);
    font-size: .9375rem;
    line-height: 1.7;
}

.site-footer__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    background: var(--gradient-brand);
    font-weight: 600;
    color: #fff !important;
}

.site-footer__title {
    margin: 0 0 12px;
    color: #fff;
    font-family: var(--font-body);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__list li {
    line-height: 1.5;
}

.site-footer__links .site-footer__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
}

.site-footer__list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
}

.site-footer__contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}

.site-footer__contact i {
    color: var(--violet-400);
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
    border-color: var(--violet-500);
    background: var(--violet-600);
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 18px;
    border-block-start: 1px solid rgba(255, 255, 255, .08);
    font-size: .875rem;
}

.site-footer__copy {
    margin: 0;
    color: rgba(255, 255, 255, .6);
    font-size: .875rem;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__legal a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: .875rem;
}

@media (max-width: 991.98px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .site-footer {
        padding-block-start: 40px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-block-end: 24px;
    }


    .site-footer__tagline {
        margin: 12px 0 16px;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll: content is only hidden when JS is running (html.js,
   set in the head partial). Opacity + a small vertical offset, no blur and
   no sideways movement, so nothing can overflow horizontally.
   -------------------------------------------------------------------------- */
.js .reveal,
.js .cs-reveal,
.js .cbp-reveal {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible,
.js .cs-reveal.is-visible,
.js .cbp-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce), print {
    .js .reveal,
    .js .cs-reveal,
    .js .cbp-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* --------------------------------------------------------------------------
   Horizontal scroll-snap rows for long card lists on phones.
   Add .snap-row to a grid/row container; its direct children become slides.
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .snap-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 14px;
        margin-inline: calc(-1 * var(--snap-bleed, 12px)) !important;
        padding: 4px var(--snap-bleed, 12px) 14px !important;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--snap-bleed, 12px);
        scrollbar-width: thin;
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
    }

    [dir="rtl"] .snap-row {
        -webkit-mask-image: linear-gradient(to left, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
        mask-image: linear-gradient(to left, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
    }

    .experience-wrap,
    .sectors-wrap {
        --snap-bleed: 14px;
    }

    .snap-row > * {
        flex: 0 0 82% !important;
        max-width: 82% !important;
        width: auto !important;
        margin: 0 !important;
        scroll-snap-align: start;
    }
}

/* --------------------------------------------------------------------------
   Click-to-load YouTube facade
   -------------------------------------------------------------------------- */
.yt-facade {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    border-radius: inherit;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.yt-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .9;
    transition: opacity var(--dur) var(--ease-out), transform .4s var(--ease-out);
}

.yt-facade__play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .6);
}

.yt-facade__play i {
    margin-inline-start: 4px;
}

[dir="rtl"] .yt-facade__play i {
    margin-inline-start: 0;
    margin-inline-end: 4px;
}

.yt-facade:hover img,
.yt-facade:focus-visible img {
    opacity: 1;
    transform: scale(1.02);
}

.yt-facade__frame {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: inherit;
}

/* Small utilities */
.mw-600 {
    max-width: 600px;
}

/* Mirrored icons need a box for the transform in style.css ([dir=rtl] .icon-dir) */
.icon-dir {
    display: inline-block;
}

/* Bootstrap Icons load from a web font: reserve the glyph's 1em box so the
   text around an icon doesn't jump when the font arrives (CLS). */
.bi::before {
    width: 1em;
}
