/* ================================================================
   HERO-SLIDER.CSS
   Integrates with base.css variables and front.css patterns.
   Load after front.css via enqueue.php.
================================================================ */

/* ----------------------------------------------------------------
   WRAPPER
---------------------------------------------------------------- */
.herosection {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 580px;
    max-height: none;           /* override old 800px cap */
    background: var(--color-blue);
    overflow: hidden;
    margin-top: -80px;          /* keep header overlap from front.css */
}

/* ----------------------------------------------------------------
   SLIDES
---------------------------------------------------------------- */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* ----------------------------------------------------------------
   BACKGROUND IMAGE — Ken Burns zoom
---------------------------------------------------------------- */
.hero-slide__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.07);
    transition: transform 7.5s ease;
    will-change: transform;
}

.hero-slide.is-active .hero-slide__bg {
    transform: scale(1);
}

/* ----------------------------------------------------------------
   GRADIENT OVERLAY — blue-heavy left, fade right
---------------------------------------------------------------- */
.hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            105deg,
            rgba(4, 47, 101, 0.92) 0%,
            rgba(4, 47, 101, 0.65) 45%,
            rgba(4, 47, 101, 0.25) 100%
    );
    z-index: 1;
}

/* Subtle diagonal stripe texture */
.hero-slide__overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
            -58deg,
            transparent,
            transparent 72px,
            rgba(255, 255, 255, 0.018) 72px,
            rgba(255, 255, 255, 0.018) 73px
    );
    pointer-events: none;
}

/* ----------------------------------------------------------------
   SLIDE CONTENT
---------------------------------------------------------------- */
.hero-slide__content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    padding: 0 6vw 10vh;
}

.hero-slide__inner {
    max-width: 860px;
}

/* Eyebrow label */
.hero-slide__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 1rem;

    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease 0.25s, transform 0.55s ease 0.25s;
}

.hero-slide__eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-orange);
    flex-shrink: 0;
}

/* Main headline */
.hero-slide__headline {
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    font-weight: 600;
    line-height: 1.04;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 1.4rem;

    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease 0.45s, transform 0.65s ease 0.45s;
}

.hero-slide__headline em {
    font-style: normal;
    color: var(--color-orange);
}

/* Subtext */
.hero-slide__sub {
    font-size: clamp(0.88rem, 1.4vw, 1.05rem);
    color: rgba(255, 255, 255, 0.78);
    max-width: 520px;
    line-height: 1.75;
    margin: 0 0 2rem;

    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease 0.7s, transform 0.55s ease 0.7s;
}

/* CTA button — matches homeghostbutton style from front.css */
.hero-slide__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 28px;
    background: var(--color-orange);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--color-orange);

    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease 0.95s,
    transform 0.55s ease 0.95s,
    background 0.28s ease,
    color 0.28s ease,
    gap 0.28s ease;
}

.hero-slide__cta svg {
    flex-shrink: 0;
    transition: transform 0.28s ease;
}

.hero-slide__cta:hover {
    background: transparent;
    color: var(--color-orange);
    gap: 16px;
}

.hero-slide__cta:hover svg {
    transform: translateX(4px);
}

/* Animate in when slide becomes active */
.hero-slide.is-active .hero-slide__eyebrow,
.hero-slide.is-active .hero-slide__headline,
.hero-slide.is-active .hero-slide__sub,
.hero-slide.is-active .hero-slide__cta {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------------------------------
   BOTTOM ANGLED WHITE EDGE
---------------------------------------------------------------- */
.hero-slice {
    position: absolute;
    bottom: -2px;
    left: -2px;
    right: -2px;
    height: 90px;
    background: #fff;
    clip-path: polygon(0 100%, 100% 30%, 100% 100%);
    z-index: 10;
    pointer-events: none;
}

/* ----------------------------------------------------------------
   PREV / NEXT ARROWS
---------------------------------------------------------------- */
.hero-arrows {
    position: absolute;
    right: 4vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 11;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-arrow {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 47, 101, 0.45);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.hero-arrow:hover {
    background: var(--color-orange);
    border-color: var(--color-orange);
}

/* ----------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 1279px) {
    .hero-slide__content {
        padding: 0 5vw 12vh;
    }

    .hero-slide__sub {
        display: none;
    }

    .hero-arrows {
        right: 3vw;
    }
}

@media (max-width: 900px) {
    .herosection {
        height: 100svh;
        min-height: 520px;
    }

    .hero-slice {
        height: 50px;
    }
}

@media (max-width: 600px) {
    .herosection {
        height: 75svh;
        min-height: 480px;
    }

    .hero-slide__content {
        align-items: center;
        padding: 0 6vw 0;
    }

    .hero-arrows {
        display: none;
    }

    .hero-slice {
        height: 36px;
    }

    .hero-slide__cta {
        height: 48px;
        padding: 0 22px;
        font-size: 0.72rem;
    }
}