/*
 * Solbjerg Have beta-forside.
 * Scoped to body.home and layered on top of the existing Enfold/frontpage content.
 * Keeps Smart Post Show Pro news carousel, Enfold cookie popup and existing images.
 */

body.home {
    --sh-beta-green: #2f5f43;
    --sh-beta-green-dark: #1f3f2d;
    --sh-beta-moss: #7f8f54;
    --sh-beta-clay: #a7653f;
    --sh-beta-ochre: #d9a441;
    --sh-beta-earth: #4a382e;
    --sh-beta-paper: #fbfaf6;
    --sh-beta-stone: #eef0ea;
    --sh-beta-line: #d8d7cc;
    --sh-beta-text: #182018;
    --sh-beta-muted: #5d655b;
    --sh-beta-white: #ffffff;
    --sh-beta-radius: 8px;
    --sh-beta-pill: 999px;
    --sh-beta-shadow: 0 14px 34px rgba(36, 43, 35, 0.12);
    background: var(--sh-beta-paper);
    color: var(--sh-beta-text);
}

body.home #main,
body.home .main_color {
    background: var(--sh-beta-paper);
}

body.home #main .container,
body.home #main .content {
    max-width: 1180px;
}

body.home .entry-content-wrapper {
    padding-top: 0;
}

/* Hero: style the existing frontpage text block instead of replacing page content. */
body.home .avia_textblock.forside-billede {
    width: 100%;
    min-height: min(650px, calc(100vh - 88px));
    margin: 38px 0 0;
    padding: 0;
    position: relative;
    display: grid;
    align-items: end;
    text-align: left;
    color: var(--sh-beta-white);
    overflow: hidden;
    border-radius: var(--sh-beta-radius);
    box-shadow: var(--sh-beta-shadow);
    background: var(--sh-beta-green-dark);
}

body.home .avia_textblock.forside-billede::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(31, 63, 45, 0.84), rgba(31, 63, 45, 0.34) 56%, rgba(31, 63, 45, 0.08));
}

body.home .avia_textblock.forside-billede h1,
body.home .avia_textblock.forside-billede h4 {
    position: absolute;
    left: clamp(24px, 8vw, 96px);
    right: clamp(24px, 8vw, 96px);
    z-index: 3;
    max-width: 760px;
    margin: 0 !important;
    text-align: left !important;
    color: var(--sh-beta-white) !important;
    letter-spacing: 0;
}

body.home .avia_textblock.forside-billede h4 {
    bottom: 218px;
    color: #f1d79a !important;
    font-size: 1rem;
    font-weight: 760;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body.home .avia_textblock.forside-billede h4:last-of-type {
    bottom: 120px;
    max-width: 590px;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: clamp(1.08rem, 2vw, 1.28rem);
    font-weight: 520;
    text-transform: none;
    letter-spacing: 0;
}

body.home .avia_textblock.forside-billede h1 {
    bottom: 156px;
    max-width: 760px;
    font-size: clamp(2.7rem, 7vw, 5.7rem);
    line-height: 0.98;
}

body.home .avia_textblock.forside-billede .text-orange {
    display: block;
}

body.home .sh-frontpage-hero-slider,
body.home .sh-frontpage-hero-slider .ff-billed-slider,
body.home .sh-frontpage-hero-slider .swiper-wrapper,
body.home .sh-frontpage-hero-slider .swiper-slide,
body.home .sh-frontpage-hero-slider .ff-slide-media,
body.home .avia_textblock.forside-billede .metaslider,
body.home .avia_textblock.forside-billede [class*="metaslider"],
body.home .avia_textblock.forside-billede .nivoSlider,
body.home .avia_textblock.forside-billede .flexslider {
    position: absolute !important;
    inset: 0;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.home .sh-frontpage-hero-slider .ff-billed-slider {
    --ff-height-desktop: 100% !important;
    --ff-height-mobile: 100% !important;
}

body.home .avia_textblock.forside-billede .metaslider img,
body.home .avia_textblock.forside-billede [class*="metaslider"] img,
body.home .sh-frontpage-hero-slider .ff-billed-slider img,
body.home .avia_textblock.forside-billede .nivoSlider img,
body.home .avia_textblock.forside-billede .flexslider img,
body.home .avia_textblock.forside-billede .slides img {
    width: 100% !important;
    height: 100% !important;
    min-height: min(650px, calc(100vh - 88px));
    object-fit: cover;
    border-radius: 0 !important;
}

body.home .sh-frontpage-hero-slider .ff-overlay {
    display: none !important;
}

body.home .avia_textblock.forside-billede .caption-wrap,
body.home .avia_textblock.forside-billede .caption,
body.home .avia_textblock.forside-billede .flex-control-nav,
body.home .avia_textblock.forside-billede .flex-direction-nav {
    z-index: 4;
}

/* Frontpage quick links. Uses the existing Enfold columns and keeps the current links. */
body.home .av-ls0p0vud-0c03a6618f3c8630c0a9d613ddc8c5d1,
body.home .av-ls0oyxht-6348e73391cb7ad61bafd3c341e6cf76,
body.home .av-z5wi-3a66dfd4f925abd64edfe9c016377d70,
body.home .sh-card {
    min-height: 126px;
    margin-top: 18px !important;
    margin-bottom: 0 !important;
    padding: 22px !important;
    border: 0 !important;
    border-radius: var(--sh-beta-radius) !important;
    box-shadow: var(--sh-beta-shadow);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

body.home .av-ls0p0vud-0c03a6618f3c8630c0a9d613ddc8c5d1 {
    background: var(--sh-beta-green) !important;
}

body.home .av-ls0oyxht-6348e73391cb7ad61bafd3c341e6cf76 {
    background: var(--sh-beta-clay) !important;
}

body.home .av-z5wi-3a66dfd4f925abd64edfe9c016377d70 {
    background: var(--sh-beta-earth) !important;
}

body.home .av-ls0p0vud-0c03a6618f3c8630c0a9d613ddc8c5d1:hover,
body.home .av-ls0oyxht-6348e73391cb7ad61bafd3c341e6cf76:hover,
body.home .av-z5wi-3a66dfd4f925abd64edfe9c016377d70:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(36, 43, 35, 0.16);
}

body.home .av-ls0p0vud-0c03a6618f3c8630c0a9d613ddc8c5d1 h5,
body.home .av-ls0oyxht-6348e73391cb7ad61bafd3c341e6cf76 h5,
body.home .av-z5wi-3a66dfd4f925abd64edfe9c016377d70 h5,
body.home .av-ls0p0vud-0c03a6618f3c8630c0a9d613ddc8c5d1 a,
body.home .av-ls0oyxht-6348e73391cb7ad61bafd3c341e6cf76 a,
body.home .av-z5wi-3a66dfd4f925abd64edfe9c016377d70 a {
    color: var(--sh-beta-white) !important;
    text-decoration: none !important;
    font-size: 1.08rem;
    line-height: 1.25;
}

/* Dynamic news carousel from Smart Post Show Pro. */
body.home #pcp_wrapper-270 {
    width: 100%;
    margin-top: 54px;
    padding: 54px 0;
    background: var(--sh-beta-stone);
    border-radius: var(--sh-beta-radius);
}

body.home #pcp_wrapper-270 .pcp-section-title {
    margin: 0 0 22px !important;
    color: var(--sh-beta-green-dark) !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: clamp(1.6rem, 3vw, 2.25rem) !important;
    line-height: 1.15 !important;
    font-weight: 780 !important;
    text-transform: none !important;
}

body.home #pcp_wrapper-270 .sp-pcp-carousel {
    padding-bottom: 58px !important;
}

body.home #pcp_wrapper-270 .swiper-slide {
    height: auto !important;
}

body.home #pcp_wrapper-270 .sp-pcp-post {
    height: 100%;
    min-height: 100%;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
    background: var(--sh-beta-white) !important;
    border: 1px solid var(--sh-beta-line) !important;
    border-radius: var(--sh-beta-radius) !important;
    box-shadow: 0 8px 22px rgba(36, 43, 35, 0.07);
}

body.home #pcp_wrapper-270 .pcp-post-thumb-wrapper,
body.home #pcp_wrapper-270 .sp-pcp-post-thumb-area,
body.home #pcp_wrapper-270 .sp-pcp-thumb {
    display: block;
    margin: 0 !important;
}

body.home #pcp_wrapper-270 .sp-pcp-post img {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    object-fit: cover;
    border-radius: 0 !important;
}

body.home #pcp_wrapper-270 .sp-pcp-post-details,
body.home #pcp_wrapper-270 .sp-pcp-post-details-content {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
}

body.home #pcp_wrapper-270 .sp-pcp-post-details-content {
    padding: 18px;
}

body.home #pcp_wrapper-270 .sp-pcp-title,
body.home #pcp_wrapper-270 .sp-pcp-title a {
    display: block !important;
    margin: 0 !important;
    color: var(--sh-beta-green-dark) !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 1.08rem !important;
    line-height: 1.26 !important;
    font-weight: 760 !important;
    text-decoration: none !important;
}

body.home #pcp_wrapper-270 .sp-pcp-post-content,
body.home #pcp_wrapper-270 .sp-pcp-post-content p {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    margin: 10px 0 0 !important;
    color: var(--sh-beta-muted) !important;
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
}

body.home #pcp_wrapper-270 .sp-pcp-readmore {
    width: 100% !important;
    margin-top: auto !important;
    padding-top: 16px !important;
}

body.home #pcp_wrapper-270 .pcp-readmore-link {
    width: 100% !important;
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 18px !important;
    border: 1px solid var(--sh-beta-green) !important;
    border-radius: var(--sh-beta-pill) !important;
    background: var(--sh-beta-green) !important;
    color: var(--sh-beta-white) !important;
    font-size: 0.92rem !important;
    font-weight: 760 !important;
    text-transform: none !important;
    text-decoration: none !important;
}

body.home #pcp_wrapper-270 .pcp-readmore-link:hover {
    background: var(--sh-beta-green-dark) !important;
    border-color: var(--sh-beta-green-dark) !important;
    color: var(--sh-beta-white) !important;
}

body.home #pcp_wrapper-270 .pcp-button-prev,
body.home #pcp_wrapper-270 .pcp-button-next {
    width: 44px !important;
    height: 44px !important;
    border: 1px solid var(--sh-beta-line) !important;
    border-radius: 50% !important;
    background: var(--sh-beta-white) !important;
    color: var(--sh-beta-green-dark) !important;
    box-shadow: 0 6px 16px rgba(36, 43, 35, 0.08);
}

body.home #pcp_wrapper-270 .pcp-button-prev:hover,
body.home #pcp_wrapper-270 .pcp-button-next:hover {
    background: var(--sh-beta-green) !important;
    border-color: var(--sh-beta-green) !important;
}

body.home #pcp_wrapper-270 .pcp-button-prev i,
body.home #pcp_wrapper-270 .pcp-button-next i {
    color: var(--sh-beta-green-dark) !important;
}

body.home #pcp_wrapper-270 .pcp-button-prev:hover i,
body.home #pcp_wrapper-270 .pcp-button-next:hover i {
    color: var(--sh-beta-white) !important;
}

body.home #pcp_wrapper-270 .pcp-pagination:is(.dots, .dynamic, .strokes) .swiper-pagination-bullet {
    background: #c5c8bd !important;
}

body.home #pcp_wrapper-270 .pcp-pagination:is(.dots, .dynamic, .strokes) .swiper-pagination-bullet-active {
    background: var(--sh-beta-green) !important;
}

/* Newsletter and lower frontpage cards get calmer surfaces. */
body.home .av-lek8ulpz-06edd9e6a31c7e8a1f8bf6935a60b763 {
    border: 0 !important;
    border-radius: var(--sh-beta-radius) !important;
    background: var(--sh-beta-green-dark) !important;
    color: var(--sh-beta-white) !important;
    box-shadow: var(--sh-beta-shadow);
}

body.home .av-lek8ulpz-06edd9e6a31c7e8a1f8bf6935a60b763 h4,
body.home .av-lek8ulpz-06edd9e6a31c7e8a1f8bf6935a60b763 label,
body.home .av-lek8ulpz-06edd9e6a31c7e8a1f8bf6935a60b763 li,
body.home .av-lek8ulpz-06edd9e6a31c7e8a1f8bf6935a60b763 p {
    color: var(--sh-beta-white) !important;
}

body.home .tnp-subscription input[type="text"],
body.home .tnp-subscription input[type="email"] {
    min-height: 48px;
    border-radius: var(--sh-beta-pill) !important;
}

/* Keep Enfold cookie popup visible and consistent with the beta frontpage. */
body.home .avia-cookie-consent {
    border-top: 1px solid rgba(74, 56, 46, 0.16);
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 -12px 34px rgba(24, 32, 24, 0.18);
}

body.home .avia-cookie-consent .container {
    max-width: 1180px;
}

body.home .avia-cookie-consent .avia_cookie_text {
    color: var(--sh-beta-muted) !important;
}

body.home .avia-cookie-consent-button {
    border-radius: var(--sh-beta-pill) !important;
    background: var(--sh-beta-green) !important;
    color: var(--sh-beta-white) !important;
}

@media (max-width: 767px) {
    body.home {
        padding-bottom: 76px;
    }

    body.home .avia_textblock.forside-billede {
        min-height: 560px;
        margin-top: 18px;
        background-position: center;
    }

    body.home .avia_textblock.forside-billede h1,
    body.home .avia_textblock.forside-billede h4 {
        left: 24px;
        right: 24px;
    }

    body.home .avia_textblock.forside-billede h1 {
        font-size: clamp(2.6rem, 16vw, 4rem);
    }

    body.home .avia_textblock.forside-billede h4 {
        bottom: 208px;
    }

    body.home .avia_textblock.forside-billede h4:last-of-type {
        bottom: 116px;
    }

    body.home .avia_textblock.forside-billede h1 {
        bottom: 154px;
    }

    body.home #pcp_wrapper-270 {
        margin-top: 36px;
        padding: 42px 0;
    }

    body.home .avia-cookie-consent.avia-cookiemessage-bottom {
        bottom: 64px;
    }

    body.home .sh-mobile-footer {
        min-height: 64px;
        z-index: 9998;
        border-top: 1px solid var(--sh-beta-line);
    }
}
