/* ================================================================
 * Anan Hero — Frontend Styles
 * ================================================================ */

/* ── Main container ── */
.anan-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* ── Slider Revolution mode — let RevSlider control everything ── */
.anan-hero--revslider {
    display: block;
    min-height: 0 !important;
}

/* ── Overlay layer ── */
.anan-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ── Background video (MP4 or iframe) ── */
.anan-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}
.anan-hero__video--iframe {
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    border: 0;
}

/* ── Logo overlay ──
 * Site-wide mark laid over the film. Position, width and opacity are printed
 * inline per render from Anan Hero > Logo & placement - only the parts that
 * never vary live here. left/top are its centre, hence the translate. */
.anan-hero__logo {
    position: absolute;
    z-index: 3;
    margin: 0;
    line-height: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.anan-hero__logo img {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Award banners ──
 * The ribbons in the hero's top-right corner. The row is anchored, sized and
 * spaced inline per render from Anan Hero > Awards; only the parts that never
 * vary live here. It sits above the logo, and is inert unless a banner carries
 * a link. */
.anan-hero__awards {
    position: absolute;
    z-index: 4;
    display: flex;
    justify-content: flex-end;
    margin: 0;
    line-height: 0;
    pointer-events: none;
}

.anan-hero__award {
    display: block;
    flex: 0 0 auto;
}

.anan-hero__awards a.anan-hero__award {
    pointer-events: auto;
}

.anan-hero__award img {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Inner content wrapper ── */
.anan-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 40px;
}

/* ── Free-form mode ── */
.anan-hero__freeform {
    width: 100%;
}

/* ── Simple fields layout ── */
.anan-hero__layout {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.anan-hero__layout--full {
    justify-content: center;
    flex-direction: column;
}

.anan-hero__layout--full .anan-hero__text {
    max-width: 800px;
}

.anan-hero__layout--split {
    justify-content: space-between;
}

.anan-hero__layout--split .anan-hero__text {
    flex: 1;
    min-width: 0;
}

.anan-hero__layout--split .anan-hero__fg {
    flex: 0 0 auto;
    width: 340px;
    max-width: 40%;
}

.anan-hero__layout--fg-left {
    flex-direction: row-reverse;
}

/* ── Typography ── */
.anan-hero__title {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 12px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.anan-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    opacity: 0.85;
}

/* ── Foreground image ── */
.anan-hero__fg img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
    border-radius: 8px;
}

@media (max-width: 1024px) {
    .anan-hero__inner {
        padding: 40px 24px;
    }
    .anan-hero__layout {
        gap: 24px;
    }
    .anan-hero__layout--split .anan-hero__fg {
        width: 260px;
    }
    .anan-hero__title {
        font-size: clamp(1.8rem, 4vw, 2.8rem);
    }
}

@media (max-width: 767px) {
    .anan-hero {
        min-height: clamp(320px, 42vh, 400px) !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
    .anan-hero__inner {
        padding: 30px 16px;
    }
    .anan-hero__layout--split {
        flex-direction: column;
        text-align: center;
    }
    .anan-hero__layout--fg-left {
        flex-direction: column;
    }
    .anan-hero__layout--split .anan-hero__fg {
        width: 200px;
        max-width: 60%;
        order: -1;
    }
    .anan-hero__title {
        font-size: 1.8rem;
    }
    .anan-hero__subtitle {
        font-size: 1rem;
    }
    .anan-hero__video--iframe {
        width: 180%;
        height: 180%;
        top: -40%;
        left: -40%;
    }
}
