﻿
/* ============================================================
       0. THEME TOKENS – tweak the cover colour + opacity here
       ============================================================ */
:root {
    --slide-cover-color: #8DB629; /* cover colour               */
    --slide-cover-opacity: 0.50; /* cover opacity (0 = none)   */
}

/* ============================================================
       1. SLIDER SHELL
       ============================================================ */
#home {
    position: relative;
    overflow: hidden;
}

.swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* default fallback height – overridden below */
    height: 100vh;
    z-index: 1;
}

    /* Full viewport minus the fixed header (adjust the value to your header height) */
    .swiper.fullscreen-top-space {
        height: 100vh;
        padding-top: 0; /* use e.g. 90px if your header is fixed/overlay */
    }

@supports (height: 100svh) {
    .swiper.fullscreen-top-space {
        height: 100svh; /* better on mobile browsers with dynamic toolbars */
    }
}

/* Landscape tablets / small laptops */
@media (min-width: 768px) and (max-width: 1199.98px) and (orientation: landscape) {
    .swiper.md-landscape-h-600px {
        height: 600px;
    }
}

/* ============================================================
       2. TRACK + SLIDES
       ============================================================ */
.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    box-sizing: content-box;
    transition-property: transform;
    will-change: transform;
}

.swiper-slide {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition-property: transform;
}

    /* Force the inner Bootstrap container to fill the slide height */
    .swiper-slide > .container,
    .swiper-slide > .container-fluid {
        height: 100%;
        position: relative;
        z-index: 2; /* keep text above the dark overlay */
    }

/* ============================================================
       3. BACKGROUND IMAGE + OVERLAY
       ============================================================ */
.cover-background {
    background-color: #1a1a1a; /* shows while the image loads */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* ============================================================
       4. BACKGROUND COVER / OVERLAY
       ------------------------------------------------------------
       Two layers are supported:
         .slide-cover          → new, adjustable, colour+opacity via CSS vars
         .opacity-extra-medium → legacy overlay from your Umbraco markup
       Both are stacked under the content (z-index 1 & 2).
       ============================================================ */

/* --- New adjustable cover --- */
.slide-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-color: var(--slide-cover-color);
    opacity: var(--slide-cover-opacity);
    pointer-events: none;
    transition: opacity 0.5s ease;
}

    /* Optional subtle gradient on top of the flat cover
       – comment this block out if you don't want it. */
    .slide-cover::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.35) 100% );
    }

/* --- Legacy overlay (kept for compatibility with the original markup) --- */
.opacity-extra-medium.bg-extra-dark-gray {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: #232323;
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* ============================================================
       4. SLIDE CONTENT / TYPOGRAPHY
       ============================================================ */
.swiper-slide h1,
.swiper-slide h2,
.swiper-slide .slide-title {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.swiper-slide p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 720px;
    margin-inline: auto;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================================
       5. NAVIGATION ARROWS
       ============================================================ */

.swiper-button-next,
.swiper-button-prev {
    width: 56px;
    height: 56px;
    margin-top: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    z-index: 20;
}

    /* Kill the default Swiper arrow glyph – custom icon font is used instead */
    .swiper-button-next::after,
    .swiper-button-prev::after {
        display: none;
        content: '';
    }

    .swiper-button-next i,
    .swiper-button-prev i {
        font-size: 20px;
        line-height: 1;
    }

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        background-color: #ffffff;
        border-color: #ffffff;
        color: #232323;
        transform: scale(1.08);
    }

.swiper-button-next {
    right: 30px;
}

.swiper-button-prev {
    left: 30px;
}

/* Hide arrows on touch / very small screens */
@media (max-width: 767.98px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* ============================================================
       6. PAGINATION (element referenced by the options object)
       ============================================================ */
.slider-one-slide-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

    .slider-one-slide-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        background-color: rgba(255, 255, 255, 0.5);
        opacity: 1;
        transition: width 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease;
    }

        .slider-one-slide-pagination .swiper-pagination-bullet:hover {
            background-color: rgba(255, 255, 255, 0.85);
        }

    .slider-one-slide-pagination .swiper-pagination-bullet-active {
        width: 30px;
        border-radius: 6px;
        background-color: #ffffff;
    }

/* ============================================================
       7. A11Y / MOTION
       ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .swiper-wrapper,
    .swiper-button-next,
    .swiper-button-prev,
    .opacity-extra-medium.bg-extra-dark-gray {
        transition: none !important;
    }
}

.validation-summary-errors{
    font-size: 12px;
    color: red;
}

.icofont-x-twitter {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z'/></svg>") no-repeat center / contain;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z'/></svg>") no-repeat center / contain;
    vertical-align: -0.125em;
}