/* Homepage carousel styles. */
.hero-carousel {
    position: relative;
    isolation: isolate;
    background: #101722;
    color: #fff;
    overflow: hidden;
}
.carousel-background {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.carousel-background .carousel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    opacity: 1;
    transform: none;
}
.hero-carousel:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.94) 0%,
        rgba(0, 0, 0, 0.82) 30%,
        rgba(0, 0, 0, 0.48) 55%,
        rgba(0, 0, 0, 0.12) 78%,
        transparent 100%
    );
    z-index: -1;
    pointer-events: none;
}
.hero-carousel > .carousel-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(32px, 5vw, 96px);
    min-height: 680px;
    padding: 24px 0;
    width: 80%;
    max-width: 1760px;
    margin-inline: auto;
}
.carousel-slides {
    width: 100%;
    min-width: 0;
}
.carousel-slide {
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 60px 0;
}
.carousel-slide[hidden] {
    display: none !important;
}
.carousel-copy {
    max-width: 590px;
}
.hero-carousel .carousel-eyebrow {
    font-size: 15px;
    letter-spacing: 0.3px;
    margin-bottom: 26px;
}
.carousel-eyebrow span {
    margin-right: 8px;
}
.hero-carousel .carousel-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}
.hero-carousel .carousel-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 58px;
}
.hero-carousel .button {
    background: var(--color-action, #ff5656);
    border-radius: 30px;
    padding: 13px 30px;
    font-size: 16px;
    font-weight: 700;
}
.carousel-slide.is-active {
    animation: carousel-reveal 0.5s ease both;
}
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@keyframes carousel-reveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 1100px) {
    .hero-carousel > .carousel-layout {
        width: calc(100% - 64px);
        gap: 32px;
    }
    .hero-carousel .carousel-title {
        font-size: 36px;
    }
}
@media (max-width: 850px) {
    .hero-carousel > .carousel-layout {
        width: calc(100% - 48px);
        gap: 24px;
        min-height: 580px;
    }
    .carousel-slide {
        min-height: 530px;
        padding: 40px 0;
    }
    .hero-carousel .carousel-title {
        font-size: 32px;
    }
    .hero-carousel .carousel-description {
        font-size: 15px;
        margin-bottom: 32px;
    }
}
@media (max-width: 720px) {
    .hero-carousel > .carousel-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        min-height: 0;
        padding: 0 0 24px;
    }
    .carousel-slide {
        min-height: 0;
        padding: 48px 0 24px;
    }
    .carousel-copy {
        max-width: 100%;
    }
    .hero-carousel .carousel-eyebrow {
        font-size: 12px;
    }
    .hero-carousel .button {
        font-size: 14px;
    }
}
@media (max-width: 360px) {
    .hero-carousel > .carousel-layout {
        width: calc(100% - 32px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .carousel-slide.is-active {
        animation: none;
    }
    .carousel-controls {
        transition: none;
    }
}

/* Match the marked desktop banner proportions without excess space below the wheel. */
@media (min-width: 1100px) {
    .hero-carousel > .carousel-layout {
        height: clamp(540px, 32vw, 660px);
        min-height: 0;
        padding-block: 16px;
    }
    .carousel-slide {
        height: 100%;
        min-height: 0;
        padding-block: 24px;
    }
}

/* Keep mobile copy and the service wheel together on typical phone screens. */
@media (max-width: 720px) {
    .hero-carousel > .carousel-layout {
        width: calc(100% - 32px);
        padding-bottom: 12px;
    }
    .carousel-slide {
        padding: 24px 0 12px;
    }
    .carousel-copy {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-carousel .carousel-eyebrow {
        font-size: 11px;
        line-height: 1.45;
        margin: 0 0 14px;
        letter-spacing: 0;
    }
    .hero-carousel .carousel-title {
        font-size: clamp(22px, 4.8vw, 26px);
        line-height: 1.15;
        margin: 0 0 16px;
    }
    .hero-carousel .carousel-description {
        font-size: 14px;
        line-height: 1.5;
        margin: 0 0 20px;
    }
    .hero-carousel .button {
        align-self: center;
        min-height: 44px;
        padding: 10px 24px;
        font-size: 14px;
        text-align: center;
    }
}
@media (max-width: 720px) and (max-height: 700px) {
    .carousel-slide {
        padding-top: 16px;
    }
    .hero-carousel .carousel-eyebrow,
    .hero-carousel .carousel-title {
        margin-bottom: 12px;
    }
    .hero-carousel .carousel-description {
        margin-bottom: 16px;
    }
}
