/* Sticky nav + full-viewport home hero (Educatering)
   Top bar scrolls away; main row is sticky. Top bar + nav are body siblings (no short wrapper),
   so sticky works for the full page scroll. */

/* Page canvas: dark so the helpline bar can use rgba() without compositing to grey over white body. */
html {
    background-color: #020617;
}

body {
    background-color: #020617;
}
/* Top bar only: relative + z-index. Do NOT set position:relative on .site-header__main —
   it overrides Bootstrap .sticky-top (position:sticky) because site-layout loads after bootstrap. */
.site-header__top {
    position: relative;
    z-index: 1030;
}

.site-header__main {
    z-index: 1030;
}

/* Reinforce sticky (must not be overridden by any other rule on this element) */
.site-header__main.sticky-top {
    position: sticky;
    top: 0;
    align-self: flex-start;
    width: 100%;
}

/*
 * Safe-area env() must only apply on real narrow viewports — in responsive devtools,
 * env(safe-area-inset-top) often grows as width shrinks and stacks fake “grey” padding.
 * Desktop/tablet (768px+): fixed rem heights, no env().
 */
:root {
    --site-nav-height: 4.125rem;
    --site-topbar-height: calc(2.625rem + env(safe-area-inset-top, 0px));
    --site-header-height: calc(var(--site-topbar-height) + var(--site-nav-height));
}

@media (min-width: 576px) and (max-width: 767.98px) {
    :root {
        --site-topbar-height: calc(2.75rem + env(safe-area-inset-top, 0px));
        --site-nav-height: 4.25rem;
    }
}

@media (min-width: 768px) {
    :root {
        --site-topbar-height: 2.75rem;
        --site-nav-height: 4.25rem;
    }
}

@media (min-width: 1200px) {
    :root {
        --site-topbar-height: 3rem;
        --site-nav-height: 4.625rem;
    }
}

/* Header block sits above main in the document — no artificial padding */
.site-main {
    padding-top: 0;
    position: relative;
    z-index: 0;
    background-color: hsl(var(--white));
    flex: 1 0 auto;
    width: 100%;
}

/* Home hero: extend behind fixed header, fill viewport */
.home-hero--fullscreen {
    margin-top: calc(-1 * var(--site-header-height));
    min-height: 100vh;
}

/* Override .bg-img: scale by height. Desktop: anchor right; mobile: ~1/3 from left (not flush left, not full right). */
.home-hero--fullscreen .home-hero__bg {
    min-height: 100vh;
    background-color: #0b1220;
    /* Show the FULL hero image without cropping */
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

@media (max-width: 767.98px) {
    .home-hero--fullscreen .home-hero__bg {
        background-position: center center !important;
    }
}

/* Full viewport height — stronger left dim so hero copy stays readable on bright imagery */
.home-hero__overlay-left {
    width: min(100%, 52rem);
    max-width: 92%;
    min-height: 100vh;
    top: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(
        90deg,
        rgba(2, 6, 23, 0.99) 0%,
        rgba(2, 6, 23, 0.95) 14%,
        rgba(15, 23, 42, 0.9) 30%,
        rgba(15, 23, 42, 0.72) 52%,
        rgba(15, 23, 42, 0.4) 74%,
        rgba(15, 23, 42, 0.12) 90%,
        transparent 100%
    );
}

@media (min-width: 992px) {
    .home-hero__overlay-left {
        max-width: 75%;
    }
}

/* Top dimming (full width): darker under header + menu; slightly taller band for clearer nav */
.home-hero__overlay-topshade {
    height: calc(var(--site-header-height) + 2.25rem);
    min-height: 8.5rem;
    background: linear-gradient(
        180deg,
        rgba(2, 6, 23, 0.94) 0%,
        rgba(2, 6, 23, 0.82) 18%,
        rgba(15, 23, 42, 0.62) 48%,
        rgba(15, 23, 42, 0.28) 78%,
        rgba(15, 23, 42, 0) 100%
    );
}

.home-hero__lead {
    color: rgba(255, 255, 255, 0.92) !important;
}

.home-hero__chip {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Inset hero copy from viewport edges (extra beyond container gutter) */
.home-hero__copy {
    padding-inline-start: clamp(0.75rem, 2.5vw, 2.75rem);
    padding-top: clamp(2.5rem, 6.5vw, 5.5rem);
}

@media (min-width: 768px) {
    .home-hero__copy {
        padding-inline-start: clamp(1rem, 3vw, 3.5rem);
    }
}

/* Hero inner: clear fixed header + match former .py-hero bottom spacing */
.home-hero__content {
    padding-top: calc(var(--site-header-height) + 2.75rem);
    padding-bottom: 4rem;
}

@media (min-width: 576px) {
    .home-hero__content {
        padding-bottom: 6.25rem;
    }
}

@media (min-width: 992px) {
    .home-hero__content {
        padding-top: calc(var(--site-header-height) + 3.5rem);
        padding-bottom: 7.5rem;
    }
}

/*
 * Helpline top bar: semi-transparent over dark body (#020617), not white — reads as glass, not grey.
 */
.site-header__top.site-header__top--glass {
    padding-top: calc(env(safe-area-inset-top, 0px) + 0.5rem);
    padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .site-header__top.site-header__top--glass {
        padding-top: 0.5rem;
    }
}

.site-header__top--glass {
    background-color: rgba(2, 6, 23, 0.26);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    box-shadow: none;
}

.site-header__top--glass .text-white,
.site-header__top--glass span:not(.visually-hidden),
.site-header__top--glass p {
    color: #fff !important;
}

/* Main menu bar: transparent over hero */
.site-header__main--transparent {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: none;
}

/* Sticky menu row height (logo pad + nav link pad) */
.site-header__main--transparent .logo {
    padding-block: 0.625rem;
}

@media (min-width: 992px) {
    .site-header__main--transparent .logo {
        padding-block: 0.6875rem;
    }
}

.site-header__main .logo__img {
    width: auto;
    max-width: 220px;
    max-height: 60px;
    height: auto;
    object-fit: contain;
    display: block;
}

.site-header__main.header.fixed-header .logo__img {
    max-height: 44px;
}

@media (min-width: 992px) {
    .site-header__main .logo__img {
        max-width: 252px;
        max-height: 68px;
    }

    .site-header__main.header.fixed-header .logo__img {
        max-height: 50px;
    }
}

@media (min-width: 1200px) {
    .site-header__main--transparent .header-menu .nav-menu > .nav-menu__item > a.nav-menu__link {
        padding-block: 1.1875rem !important;
    }
}

/* Main menu: white text over hero */
.site-header__main--transparent .header-menu .nav-menu > .nav-menu__item > a.nav-menu__link {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.site-header__main--transparent .nav-menu__item:hover > a.nav-menu__link {
    color: rgba(255, 255, 255, 0.92) !important;
}

.site-header__main--transparent .nav-menu__item.activePage > a.nav-menu__link {
    color: #fff !important;
    text-decoration: underline;
    text-underline-offset: 0.3rem;
    text-decoration-thickness: 1px;
}

.site-header__main--transparent .toggle-mobileMenu {
    color: #fff !important;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

/* After scroll: solid bar — dark nav text again */
.site-header__main--transparent.header.fixed-header {
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.site-header__main--transparent.header.fixed-header .header-menu .nav-menu > .nav-menu__item > a.nav-menu__link {
    color: hsl(var(--heading-color)) !important;
    text-shadow: none;
}

.site-header__main--transparent.header.fixed-header .nav-menu__item:hover > a.nav-menu__link {
    color: var(--main-600) !important;
}

.site-header__main--transparent.header.fixed-header .nav-menu__item.activePage > a.nav-menu__link {
    color: var(--main-600) !important;
    text-decoration: none;
}

.site-header__main--transparent.header.fixed-header .toggle-mobileMenu {
    color: hsl(var(--heading-color)) !important;
    filter: none;
}

/* Mobile drawer above fixed header */
.mobile-menu {
    z-index: 1100 !important;
}

/* Preloader was #fff — on load/fade it reads as a grey/white band; match site chrome */
.loader-mask {
    background-color: #020617 !important;
}

/* Trust bar (below hero): stack stats + calmer heading/logos on narrow screens */
@media (max-width: 767.98px) {
    .trust-bar__heading {
        font-size: 1rem !important;
        line-height: 1.35 !important;
        max-width: 18rem;
        margin-left: auto;
        margin-right: auto;
    }

    .trust-bar__stats .text-nowrap {
        white-space: normal !important;
    }

    .trust-bar__stats .fw-bold.tw-text-4 {
        display: block;
        max-width: 17rem;
        text-align: center;
        line-height: 1.3;
    }

    .trust-bar__logos-row {
        gap: 0.75rem 1rem !important;
    }

    .trust-bar__logos-row .trust-bar__logo-img {
        max-height: 34px !important;
        max-width: 132px !important;
    }
}

/* Inner pages: template-style hero panel (e.g. Job Seekers) */
.page-hero__panel {
    min-height: 11rem;
}

@media (min-width: 768px) {
    .page-hero__panel {
        min-height: 13rem;
    }
}

.page-hero__bg {
    z-index: 0;
    background-position: center center;
    background-size: cover;
}

.page-hero__overlay {
    z-index: 1;
    background: linear-gradient(
        115deg,
        rgba(2, 6, 23, 0.92) 0%,
        rgba(15, 23, 42, 0.78) 45%,
        rgba(15, 23, 42, 0.35) 100%
    );
}

.page-hero .breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.45);
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* About page: dedicated hero photo (assets/images/about/about-us-hero.jpg) */
.page-hero--about .page-hero__panel {
    min-height: 14rem;
}

@media (min-width: 768px) {
    .page-hero--about .page-hero__panel {
        min-height: 18rem;
    }
}

.page-hero__bg--about {
    background-position: center center;
}

/* Services page hero */
.page-hero--services .page-hero__panel {
    min-height: 14rem;
}

@media (min-width: 768px) {
    .page-hero--services .page-hero__panel {
        min-height: 18rem;
    }
}

.page-hero__bg--services {
    background-position: center center;
}

/* Blog listing & article hero (assets/images/blog/blog_hero1.jpg) */
.page-hero--blog .page-hero__panel {
    min-height: 14rem;
}

@media (min-width: 768px) {
    .page-hero--blog .page-hero__panel {
        min-height: 18rem;
    }
}

.page-hero__bg--blog {
    background-position: left center;
}

/* Contact page hero */
.page-hero--contact .page-hero__panel {
    min-height: 14rem;
}

@media (min-width: 768px) {
    .page-hero--contact .page-hero__panel {
        min-height: 18rem;
    }
}

.page-hero__bg--contact {
    background-position: center center;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--main-600);
    outline: 0;
    box-shadow: 0 0 0 0.15rem rgba(15, 118, 110, 0.2);
}

/* Inner pages (no fullscreen hero): readable nav from load */
body.page-inner .site-header__main--transparent {
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

body.page-inner .site-header__main--transparent .header-menu .nav-menu > .nav-menu__item > a.nav-menu__link {
    color: hsl(var(--heading-color)) !important;
    text-shadow: none;
}

body.page-inner .site-header__main--transparent .nav-menu__item:hover > a.nav-menu__link {
    color: var(--main-600) !important;
}

body.page-inner .site-header__main--transparent .nav-menu__item.activePage > a.nav-menu__link {
    color: var(--main-600) !important;
    text-decoration: none;
}

body.page-inner .site-header__main--transparent .toggle-mobileMenu {
    color: hsl(var(--heading-color)) !important;
    filter: none;
}
