/* =========================================================
   EMBLA CAROUSEL - TEST STYLESHEET
   ========================================================= */


/* ---------------------------------------------------------
   MAIN CAROUSEL WRAPPER
   --------------------------------------------------------- */

.embla {
    position: relative;
    width: 100%;
}


/* ---------------------------------------------------------
   VIEWPORT
   This is the visible window of the carousel.
   --------------------------------------------------------- */

.embla__viewport {
    overflow: hidden;
}


/* ---------------------------------------------------------
   SLIDE CONTAINER
   Embla moves this element horizontally.
   --------------------------------------------------------- */

.embla__container {
    display: flex;
    touch-action: pan-y pinch-zoom;
}


/* ---------------------------------------------------------
   INDIVIDUAL SLIDES
   Each slide occupies 100% of the carousel width.
   --------------------------------------------------------- */

.embla__slide {
    flex: 0 0 100%;
    min-width: 0;
    position: relative;
}


/* =========================================================
   HERO SLIDE / IMAGE
   ========================================================= */

.hero-slide {
    position: relative;
    width: 100%;
    min-height: 500px;
    overflow: hidden;
}


.embla__image {
    display: block;
    width: 100%;
    height: 500px;

    object-fit: cover;
    object-position: center;
}


/* =========================================================
   DARK LEFT-HAND GRADIENT

   This helps white/orange text remain readable over
   photographs.

   If your background image already contains its own dark
   gradient, you can remove this rule.
   ========================================================= */

.embla__slide::after {
    content: "";
    position: absolute;
    inset: 0;

    z-index: 1;

    background: linear-gradient(
        90deg,
        rgba(8, 30, 52, 0.96) 0%,
        rgba(8, 30, 52, 0.85) 25%,
        rgba(8, 30, 52, 0.38) 52%,
        rgba(8, 30, 52, 0) 72%
    );

    pointer-events: none;
}


/* =========================================================
   CONTENT OVERLAY
   ========================================================= */

.embla__overlay {
    position: absolute;

    z-index: 2;

    left: 5%;
    top: 50%;

    transform: translateY(-50%);

    width: 43%;
    max-width: 650px;

    color: #ffffff;
}


/* =========================================================
   HEADING
   ========================================================= */

.embla__overlay h2 {
    margin: 0 0 20px 0;

    color: #ffffff;

    font-size: clamp(40px, 4.2vw, 68px);
    font-weight: 700;
    line-height: 1.05;

    letter-spacing: -1px;
}


/* Orange first line */

.hero-heading-accent {
    display: block;

    color: #f5a623;

    margin-bottom: 8px;
}


/* Remaining heading line(s) */

.hero-heading-accent + span {
    display: block;
}


/* =========================================================
   PARAGRAPH
   ========================================================= */

.embla__overlay p {
    margin: 0 0 25px 0;

    max-width: 500px;

    color: #ffffff;

    font-size: 20px;
    line-height: 1.45;
}


/* =========================================================
   CTA BUTTON
   ========================================================= */

.embla__button {
    display: inline-flex;

    align-items: center;
    gap: 14px;

    padding: 14px 22px;

    background: #f5a623;
    color: #102a43;

    border-radius: 8px;

    font-size: 17px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.embla__button:hover,
.embla__button:focus {
    background: #ffb53b;
    color: #102a43;

    text-decoration: none;

    transform: translateY(-2px);
}


/* Arrow inside CTA */

.embla__button-arrow {
    display: inline-block;

    font-size: 28px;
    font-weight: 400;
    line-height: 0.7;
}


/* =========================================================
   PROMOSCENTRAL LOGO
   ========================================================= */

.embla__logo {
    display: block;

    width: 220px;
    max-width: 55%;

    height: auto;

    margin-top: 30px;
}


/* =========================================================
   INITIAL ANIMATION STATE

   These four elements start hidden and slightly lower.
   The JavaScript adds "is-selected" to the active slide.
   ========================================================= */

.embla__overlay h2,
.embla__overlay p,
.embla__overlay .embla__button,
.embla__overlay .embla__logo {
    opacity: 0;

    transform: translateY(20px);
}


/* =========================================================
   STAGGERED APPEARANCE ANIMATION
   ========================================================= */


/* 1. Heading */

.embla__slide.is-selected .embla__overlay h2 {
    animation: emblaTextIn 0.65s ease forwards;

    animation-delay: 0.20s;
}


/* 2. Paragraph */

.embla__slide.is-selected .embla__overlay p {
    animation: emblaTextIn 0.65s ease forwards;

    animation-delay: 0.50s;
}


/* 3. Button */

.embla__slide.is-selected .embla__overlay .embla__button {
    animation: emblaTextIn 0.65s ease forwards;

    animation-delay: 0.80s;
}


/* 4. PromosCentral logo */

.embla__slide.is-selected .embla__overlay .embla__logo {
    animation: emblaTextIn 0.75s ease forwards;

    animation-delay: 1.15s;
}


/* =========================================================
   ANIMATION KEYFRAMES
   ========================================================= */

@keyframes emblaTextIn {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   PREVIOUS / NEXT ARROWS
   ========================================================= */

.embla__prev,
.embla__next {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 5;

    width: 46px;
    height: 46px;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;
}


.embla__prev {
    left: 20px;
}


.embla__next {
    right: 20px;
}


.embla__prev:hover,
.embla__next:hover,
.embla__prev:focus,
.embla__next:focus {
    background: rgba(0, 0, 0, 0.70);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .hero-slide,
    .embla__image {
        height: 460px;
        min-height: 460px;
    }


    .embla__overlay {
        left: 7%;

        width: 55%;
    }


    .embla__overlay h2 {
        font-size: 46px;
    }


    .embla__overlay p {
        font-size: 18px;
    }


    .embla__logo {
        width: 190px;

        margin-top: 25px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .hero-slide,
    .embla__image {
        height: 520px;
        min-height: 520px;
    }


    /*
     * Change this if the important part of your image
     * sits further left or right.
     */

    .embla__image {
        object-position: 65% center;
    }


    /*
     * Stronger gradient on smaller screens.
     */

    .embla__slide::after {
        background: linear-gradient(
            90deg,
            rgba(8, 30, 52, 0.95) 0%,
            rgba(8, 30, 52, 0.78) 55%,
            rgba(8, 30, 52, 0.25) 100%
        );
    }


    .embla__overlay {
        left: 9%;
        top: 50%;

        width: 76%;
        max-width: none;
    }


    .embla__overlay h2 {
        margin-bottom: 16px;

        font-size: 38px;
        line-height: 1.08;

        letter-spacing: -0.5px;
    }


    .hero-heading-accent {
        margin-bottom: 5px;
    }


    .embla__overlay p {
        margin-bottom: 20px;

        font-size: 17px;
        line-height: 1.4;
    }


    .embla__button {
        padding: 12px 18px;

        font-size: 15px;
    }


    .embla__logo {
        width: 170px;
        max-width: 60%;

        margin-top: 25px;
    }


    .embla__prev {
        left: 8px;
    }


    .embla__next {
        right: 8px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .hero-slide,
    .embla__image {
        height: 500px;
        min-height: 500px;
    }


    .embla__overlay {
        left: 10%;

        width: 80%;
    }


    .embla__overlay h2 {
        font-size: 32px;
    }


    .embla__overlay p {
        font-size: 16px;
    }


    .embla__logo {
        width: 150px;
    }

}


/* =========================================================
   ACCESSIBILITY - REDUCED MOTION

   If the visitor has enabled "Reduce Motion" in their
   operating system or browser:

   - no staggered animation
   - no delayed appearance
   - content appears immediately
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .embla__overlay h2,
    .embla__overlay p,
    .embla__overlay .embla__button,
    .embla__overlay .embla__logo {
        animation: none !important;
        transition: none !important;

        opacity: 1 !important;

        transform: none !important;
    }

}

/* =========================================================
   CENTRALISED FULL-WIDTH HERO SLIDE

   Full-width background with constrained central content.
   ========================================================= */


.central-hero-slide {
    position: relative;

    width: 100%;
    min-height: 360px;

    overflow: hidden;

    background: #0d243b;
}


/*
 * Prevent the normal photographic hero gradient
 * from being applied to this slide type.
 */

.central-hero-slide::after {
    display: none;
}


/* =========================================================
   CENTRALISED INNER AREA

   Change 1050px if you want the central content
   wider or narrower.
   ========================================================= */

.central-hero-slide__inner {
    position: relative;

    display: flex;
    align-items: stretch;

    width: calc(100% - 40px);
    max-width: 1120px;

    min-height: 360px;

    margin: 0 auto;
}


/* =========================================================
   LEFT TEXT AREA
   ========================================================= */

.central-hero-slide__content {
    position: relative;

    z-index: 3;

    display: flex;
    flex-direction: column;
    justify-content: center;

    flex: 0 0 43%;

    padding: 35px 30px 35px 10px;

    box-sizing: border-box;

    color: #ffffff;
}


.central-hero-slide__content h2 {
    margin: 0 0 28px 0;

    color: #ffffff;

    font-size: 36px;
    font-weight: 700;

    line-height: 1.15;

    letter-spacing: -0.5px;
}


/*
 * Put each part of the heading on its own line.
 */

.central-hero-slide__content h2 span {
    display: block;
}


.central-hero-slide__accent {
    margin-top: 4px;

    color: #3a86e8;
}


.central-hero-slide__content p {
    max-width: 390px;

    margin: 0 0 28px 0;

    color: #ffffff;

    font-size: 16px;
    line-height: 1.4;
}


/* =========================================================
   PROMOSCENTRAL LOGO
   ========================================================= */

.central-hero-slide__logo {
    display: block;

    width: 205px;
    max-width: 65%;

    height: auto;

    margin-top: 27px;
}


/* =========================================================
   RIGHT-HAND IMAGE
   ========================================================= */

.central-hero-slide__visual {
    position: relative;

    flex: 1 1 auto;

    min-width: 0;

    overflow: hidden;
}


.central-hero-slide__visual picture {
    display: block;

    width: 100%;
    height: 100%;
}


.central-hero-slide__image {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 360px;

    object-fit: cover;
    object-position: center;
}


/* =========================================================
   OPTIONAL FADE BETWEEN TEXT AREA AND IMAGE

   Gives a softer transition like your current homepage.
   ========================================================= */

.central-hero-slide__visual::before {
    content: "";

    position: absolute;

    z-index: 2;

    top: 0;
    bottom: 0;
    left: 0;

    width: 120px;

    background: linear-gradient(
        90deg,
        #0d243b 0%,
        rgba(13, 36, 59, 0.70) 35%,
        rgba(13, 36, 59, 0) 100%
    );

    pointer-events: none;
}


/* =========================================================
   APPEARANCE ANIMATION

   Reuses your existing is-selected mechanism.
   ========================================================= */

.central-hero-slide__content h2,
.central-hero-slide__content p,
.central-hero-slide__content .embla__button,
.central-hero-slide__content .central-hero-slide__logo {

    opacity: 0;

    transform: translateY(20px);
}


/* Heading */

.embla__slide.is-selected
.central-hero-slide__content h2 {

    animation: emblaTextIn 0.65s ease forwards;

    animation-delay: 0.20s;
}


/* Paragraph */

.embla__slide.is-selected
.central-hero-slide__content p {

    animation: emblaTextIn 0.65s ease forwards;

    animation-delay: 0.50s;
}


/* Button */

.embla__slide.is-selected
.central-hero-slide__content .embla__button {

    animation: emblaTextIn 0.65s ease forwards;

    animation-delay: 0.80s;
}


/* Logo */

.embla__slide.is-selected
.central-hero-slide__content .central-hero-slide__logo {

    animation: emblaTextIn 0.70s ease forwards;

    animation-delay: 1.10s;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .central-hero-slide,
    .central-hero-slide__inner {

        min-height: 350px;
    }


    .central-hero-slide__inner {

        width: calc(100% - 30px);
    }


    .central-hero-slide__content {

        flex-basis: 46%;

        padding-left: 20px;
    }


    .central-hero-slide__content h2 {

        font-size: 32px;
    }


    .central-hero-slide__content p {

        font-size: 15px;
    }


    .central-hero-slide__image {

        min-height: 350px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .central-hero-slide {

        min-height: 500px;
    }


    .central-hero-slide__inner {

        display: block;

        width: 100%;
        max-width: none;

        min-height: 500px;
    }


    /*
     * Image fills the slide.
     */

    .central-hero-slide__visual {

        position: absolute;

        inset: 0;

        width: 100%;
        height: 100%;
    }


    .central-hero-slide__image {

        width: 100%;
        height: 100%;

        min-height: 500px;

        object-fit: cover;
    }


    /*
     * Mobile overlay so text remains readable.
     */

    .central-hero-slide__visual::before {

        width: 100%;

        background: linear-gradient(
            90deg,
            rgba(13, 36, 59, 0.96) 0%,
            rgba(13, 36, 59, 0.82) 55%,
            rgba(13, 36, 59, 0.30) 100%
        );
    }


    .central-hero-slide__content {

        position: relative;

        z-index: 4;

        width: 78%;

        padding:
            55px
            0
            55px
            9%;
    }


    .central-hero-slide__content h2 {

        margin-bottom: 20px;

        font-size: 32px;
    }


    .central-hero-slide__content p {

        max-width: 400px;

        font-size: 16px;
    }


    .central-hero-slide__logo {

        width: 170px;

        margin-top: 25px;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .central-hero-slide__content h2,
    .central-hero-slide__content p,
    .central-hero-slide__content .embla__button,
    .central-hero-slide__content .central-hero-slide__logo {

        animation: none !important;
        transition: none !important;

        opacity: 1 !important;
        transform: none !important;
    }

}