/* Critical hero layout: available before Divi's deferred page styles arrive. */
.hero-slider {
    min-height: 500px;
    padding: 40px 0;
    background:
        linear-gradient(90deg, #073a54 10%, rgba(44, 176, 244, 0.88) 100%),
        url('/wp-content/uploads/2026/05/chicken-house-980x678.webp') center center / cover no-repeat;
}

.heroSwiper {
    position: relative;
    z-index: 2;
    display: block;
    width: 90%;
    max-width: 1400px;
    margin: auto;
    overflow: hidden;
}

.heroSwiper .swiper-wrapper {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: content-box;
}

.heroSwiper .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 500px;
}

/* Keep the LCP candidate visible and stable before deferred slider setup. */
.heroSwiper:not(.beesley-hero-initialized) .swiper-slide:not(:first-child) {
    display: none;
}

.heroSwiper.beesley-hero-initialized .swiper-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 700ms ease;
}

.heroSwiper.beesley-hero-initialized .swiper-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    align-items: center;
    gap: 60px;
    min-height: 500px;
}

.hero-content {
    color: #fff;
}

.hero-category,
.hero-category-2 {
    display: inline-block;
    padding: 8px 18px;
    margin-bottom: 25px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 5px;
}

.hero-category {
    background: #cf7317;
}

.hero-category-2 {
    background: #326642;
}

.hero-content h1 {
    margin-bottom: 25px;
    color: #fff !important;
    font-size: 60px;
    line-height: 1.05;
}

.hero-content p {
    margin-bottom: 35px;
    color: #fff !important;
    font-size: 20px;
    line-height: 1.7;
}

.hero-button {
    display: inline-block;
    padding: 15px 34px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    background: #2cb0f4;
    border-radius: 50px;
    transition: 0.3s;
}

.hero-button:hover {
    background: #fff;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    display: block;
    width: 100%;
    max-width: 575px;
}

/* Lightweight slider controls; the product carousel keeps its own Swiper. */
.heroSwiper {
    touch-action: pan-y;
}

.heroSwiper .swiper-pagination {
    position: absolute;
    bottom: 10px !important;
    left: 0;
    z-index: 10;
    width: 100%;
    text-align: center;
}

.heroSwiper .swiper-pagination-bullet {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 4px;
    padding: 0;
    background: #fff;
    border: 0;
    border-radius: 50%;
    opacity: 0.4;
    cursor: pointer;
}

.heroSwiper .swiper-pagination-bullet-active {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .heroSwiper.beesley-hero-initialized .swiper-slide {
        transition: none;
    }
}

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-image {
        order: 1;
    }

    .hero-image img {
        max-width: 420px;
    }
}

@media (max-width: 767px) {
    .hero-slider {
        background-image:
            linear-gradient(90deg, #073a54 10%, rgba(44, 176, 244, 0.88) 100%),
            url('../images/homepage/chicken-house-480.webp') !important;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .hero-image img {
        max-width: 320px;
    }
}
