body.home {
    background: #173b31;
}

body.home .site-header {
    position: absolute;
    z-index: 2;
    width: 100%;
    border-bottom: 0;
    background: linear-gradient(180deg, rgba(12, 30, 24, 0.7), transparent);
}

body.home .site-header .site-brand,
body.home .site-header .site-nav__link,
body.home .site-header .site-nav__submenu-toggle {
    color: #ffffff;
}

body.home .site-header .custom-logo {
    filter: brightness(0) invert(1);
}

body.home .site-header .site-nav__link:hover,
body.home .site-header .site-nav__link:focus-visible,
body.home .site-header .site-nav__submenu-toggle:hover,
body.home .site-header .site-nav__submenu-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.front-page.site-main {
    padding-bottom: 0;
    padding: 0;
}

.front-page__hero-scene {
    --front-page-hero-image: url('/wp-content/uploads/2025/12/DigiRehab-Hjemmetraening.png');
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: end;
    min-height: max(40rem, 100svh);
    overflow: hidden;
    background: var(--front-page-hero-image) center 42% / cover no-repeat;
}

.front-page__hero-scene::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(13, 38, 29, 0.58) 0%, rgba(13, 38, 29, 0.04) 45%, rgba(13, 38, 29, 0.42) 100%),
        linear-gradient(90deg, rgba(12, 31, 24, 0.26), transparent 55%);
    content: '';
}

.front-page__shell {
    display: grid;
    align-items: end;
    min-height: inherit;
    padding-top: 7.25rem;
    padding-bottom: clamp(1.5rem, 6vw, 5rem);
}

.hero {
    width: min(100%, 58rem);
    padding: clamp(2rem, 5vw, 4.5rem);
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: clamp(1.25rem, 2vw, 1.75rem);
    background: rgba(21, 55, 45, 0.94);
    box-shadow: 0 1.5rem 4rem rgba(7, 24, 18, 0.28);
    text-align: center;
}

.hero__title {
    max-width: 17ch;
    margin: 0 auto;
    color: #ffffff;
    font-size: clamp(2.75rem, 5.6vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero__content {
    max-width: 40rem;
    margin: 1.5rem auto 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.55;
}

.front-page .page-kind {
    margin: 0 0 1rem;
    color: #d7e5d4;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.front-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.front-page__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.875rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.front-page__action--primary {
    background: #d8e6ca;
    color: #173b31;
}

.front-page__action--secondary {
    border-color: rgba(255, 255, 255, 0.78);
    color: #ffffff;
}

.front-page__action:hover {
    transform: translateY(-2px);
}

.front-page__action--primary:hover,
.front-page__action--primary:focus-visible,
.front-page__action--secondary:hover,
.front-page__action--secondary:focus-visible {
    background: #ffffff;
    color: #173b31;
}

.front-page__action:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

@media (max-width: 700px) {
    body.home .site-header {
        position: absolute;
    }

    body.home .site-header .site-nav__toggle {
        border-color: rgba(255, 255, 255, 0.55);
        background: rgba(15, 43, 34, 0.58);
        color: #ffffff;
    }

    .front-page__hero-scene {
        min-height: 43rem;
        background-position: 56% center;
    }

    .front-page__shell {
        width: 100%;
        padding: 13rem 1rem 1rem;
    }

    .hero {
        padding: 2rem 1.5rem;
        border-radius: 1.25rem;
    }

    .hero__title {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
    }

    .front-page__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .front-page__action {
        width: 100%;
        min-height: 3.5rem;
    }
}
