/* =========================================
   OFFGRID HOMEPAGE TEST CAROUSEL
   Existing homepage sections use the theme's style.css.
   This file styles only the replacement hero carousel.
========================================= */

.oel-carousel {
    position: relative;
    width: 100%;
    height: min(760px, 85vh);
    min-height: 520px;
    overflow: hidden;
    background: #0F1110;
}

.oel-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.oel-carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 80px 8%;
    background-color: #222;
    background-image: var(--slide-image);
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease, visibility .7s ease;
}

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

.oel-carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, .78) 0%,
        rgba(0, 0, 0, .50) 50%,
        rgba(0, 0, 0, .12) 100%
    );
}

.oel-carousel-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 850px;
    color: #FFFFFF;
}

.oel-carousel-content h1,
.oel-carousel-content h2 {
    margin: 0 0 24px;
    color:transparent !important;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.oel-carousel-description {
    max-width: 700px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, .90);
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.oel-carousel-description p {
    margin: 0 0 12px;
}

.oel-carousel-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 26px;
    border: 1px solid #FFC000;
    border-radius: 3px;
    background: #FFC000;
    color: #080A09;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .3s ease, color .3s ease;
}

.oel-carousel-cta:hover,
.oel-carousel-cta:focus {
    background: transparent;
    color: #FFC000;
}

.oel-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
    background: rgba(0, 0, 0, .25);
    color: #FFFFFF;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.oel-carousel-arrow:hover,
.oel-carousel-arrow:focus {
    background: #FFC000;
    color: #080A09;
}

.oel-carousel-prev {
    left: 24px;
}

.oel-carousel-next {
    right: 24px;
}

.oel-carousel-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

.oel-carousel-dot {
    display: block;
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, .60);
    cursor: pointer;
}

.oel-carousel-dot.is-active {
    width: 28px;
    background: #FFC000;
}

.oel-carousel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    padding: 60px 20px;
    background: #0F1110;
    color: #FFFFFF;
    text-align: center;
}

.oel-carousel-empty h1 {
    color: #FFFFFF;
}

/* Tablet */
@media (max-width: 900px) {
    .oel-carousel {
        height: 680px;
        min-height: 500px;
    }

    .oel-carousel-slide {
        padding: 70px 7%;
    }

    .oel-carousel-content h1,
.oel-carousel-content h2 {
        font-size: clamp(38px, 7vw, 58px);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .oel-carousel {
        height: 650px;
        min-height: 560px;
    }

    .oel-carousel-slide {
        align-items: flex-end;
        padding: 60px 24px 100px;
        background-position: center;
    }

    .oel-carousel-overlay {
        background: linear-gradient(
            0deg,
            rgba(0, 0, 0, .88) 0%,
            rgba(0, 0, 0, .55) 55%,
            rgba(0, 0, 0, .12) 100%
        );
    }

    .oel-carousel-content h1,
.oel-carousel-content h2 {
        margin-bottom: 16px;
        font-size: clamp(30px, 9vw, 40px);
        line-height: 1.08;
    }

    .oel-carousel-description {
        margin-bottom: 22px;
        font-size: 14px;
        line-height: 1.6;
    }

    .oel-carousel-cta {
        min-height: 44px;
        padding: 12px 22px;
    }

    .oel-carousel-arrow {
        top: 20px;
        width: 38px;
        height: 38px;
        font-size: 19px;
        transform: none;
    }

    .oel-carousel-prev {
        right: 68px;
        left: auto;
    }

    .oel-carousel-next {
        right: 20px;
    }

    .oel-carousel-dots {
        bottom: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oel-carousel-slide {
        transition: none;
    }
}



/* =========================================
   SWAP ORIGINAL HERO AND TECHNOLOGY COLORS
========================================= */

/* 1. ZINCGEL HERO TEXT: BLACK TO LIGHT CREAM */

#site-desktop .oel-carousel-hero-copy,
#site-desktop .oel-carousel-hero-copy .d-h-txt,
#site-mobile .oel-carousel-hero-copy-mobile,
#site-mobile .oel-carousel-hero-copy-mobile .m-h-txt {
    background: #FFFFFF !important;
}

#site-desktop .oel-carousel-hero-copy .d-h1 {
    color: #080A09 !important;
}

#site-desktop .oel-carousel-hero-copy .d-h1 em {
    color: #FFC000 !important;
}

#site-desktop .oel-carousel-hero-copy .d-kicker,
#site-mobile .oel-carousel-hero-copy-mobile .m-kicker {
    color: #AD8201 !important;
}

#site-desktop .oel-carousel-hero-copy .d-tagline {
    color: #232625 !important;
}

#site-mobile .oel-carousel-hero-copy-mobile .m-h1 {
    color: #080A09 !important;
}

#site-mobile .oel-carousel-hero-copy-mobile .m-h1 em {
    color: #FFC000 !important;
}

#site-mobile .oel-carousel-hero-copy-mobile .m-htag {
    color: #232625 !important;
}


/* 2. TECHNOLOGY TEXT PANEL: LIGHT TO BLACK */

#site-desktop .d-tech-l,
#site-mobile .m-tech {
    background: #101210 !important;
    color: #F5F4F0 !important;
}

/* Technology headings */

#site-desktop .d-tech-l .d-th2,
#site-mobile .m-tech .m-th2 {
    color: #F5F4F0 !important;
}

#site-desktop .d-tech-l .d-th2 em,
#site-mobile .m-tech .m-th2 em {
    color: #FFC000 !important;
}

/* Technology kicker */

#site-desktop .d-tech-l .d-tkicker,
#site-mobile .m-tech .m-tkicker {
    color: #FFC000 !important;
}

/* Technology description */

#site-desktop .d-tech-l .d-tintro,
#site-desktop .d-tech-l .d-tpb,
#site-mobile .m-tech .m-tintro,
#site-mobile .m-tech .m-tpb {
    color: rgba(245, 244, 240, 0.78) !important;
}

/* Technology feature titles */

#site-desktop .d-tech-l .d-tpt,
#site-mobile .m-tech .m-tpt {
    color: #F5F4F0 !important;
}

/* Feature dividers */

#site-desktop .d-tech-l .d-tprops,
#site-desktop .d-tech-l .d-tprop,
#site-mobile .m-tech .m-tprop {
    border-color: rgba(255, 255, 255, 0.16) !important;
}

/* Technology link */

#site-desktop .d-tech-l .d-tlk,
#site-mobile .m-tech .m-tlk {
    color: #FFC000 !important;
    border-color: rgba(255, 192, 0, 0.5) !important;
}


/* Set HW2 — intro segment white; previous values: bg #ECEAE4, h1 #232625, em #D6A900, kicker #A77D00 */

/* Set SEO4 — slide photos are real <img> (alt text, crawlable); titles are h2 (page h1 is the hero headline) */
.oel-carousel-slide > .oel-carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
