/* HueFit Hero Slider */
:root {
    --hero-hue: #00ADEF;
    --hero-fit: #F58220;
    --hero-ink: #123047;
    --hero-muted: #64748b;
    --hero-surface: #ffffff;
    --hero-transition: 600ms;
    --hero-autoplay: 4000ms;
}

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #e8f4fb;
    isolation: isolate;
    z-index: 1;
}

.hero-slider__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: min(720px, 82vh);
    min-height: 420px;
    background: #dcecf6;
}

.hero-slider__track {
    position: absolute;
    inset: 0;
}

.hero-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--hero-transition) ease, visibility var(--hero-transition) ease;
    z-index: 1;
}

.hero-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slider__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.hero-slider__overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.9) 26%,
        rgba(255, 255, 255, 0.55) 42%,
        rgba(255, 255, 255, 0.12) 58%,
        rgba(255, 255, 255, 0) 70%
    );
}

.hero-slider__content {
    pointer-events: auto;
    max-width: 560px;
    padding: clamp(1.25rem, 3vw, 2.5rem) 0;
    opacity: 0;
    transform: translateY(14px);
    animation: heroContentIn 700ms ease forwards;
}

.hero-slider.is-ready .hero-slider__content {
    animation-name: heroContentIn;
}

@keyframes heroContentIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slider__eyebrow {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--hero-hue);
    margin-bottom: 0.85rem;
}

.hero-slider__title {
    font-size: clamp(1.45rem, 3.2vw, 2.45rem);
    line-height: 1.2;
    font-weight: 800;
    color: var(--hero-ink);
    margin: 0 0 1rem;
}

.hero-slider__title span {
    display: inline;
}

.hero-slider__title .brand-hue {
    color: var(--hero-hue);
}

.hero-slider__title .brand-fit {
    color: var(--hero-fit);
}

.hero-slider__text {
    font-size: clamp(0.98rem, 1.5vw, 1.08rem);
    line-height: 1.65;
    color: var(--hero-muted);
    max-width: 460px;
    margin: 0 0 1.4rem;
}

.hero-slider__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0;
}

.hero-slider__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 0.85rem 1.45rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero-slider__btn:hover {
    transform: translateY(-3px);
}

.hero-slider__btn--primary {
    background: var(--hero-hue);
    color: #fff;
}

.hero-slider__btn--primary:hover {
    background: var(--hero-fit);
    color: #fff;
}

.hero-slider__btn--outline {
    background: #fff;
    color: var(--hero-hue);
    border-color: var(--hero-hue);
}

.hero-slider__btn--outline:hover {
    background: var(--hero-hue);
    color: #fff;
}

.hero-slider__nav {
    position: absolute;
    top: 50%;
    z-index: 6;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--hero-hue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-slider__nav:hover {
    background: var(--hero-hue);
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.hero-slider__nav:focus-visible {
    outline: 3px solid var(--hero-fit);
    outline-offset: 2px;
}

.hero-slider__nav--prev {
    left: 14px;
}

.hero-slider__nav--next {
    right: 14px;
}

.hero-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 6;
    transform: translateX(-50%);
    display: flex;
    gap: 0.55rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.hero-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(18, 48, 71, 0.28);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.hero-slider__dot.is-active {
    width: 28px;
    background: var(--hero-hue);
    transform: scale(1.05);
}

.hero-slider__dot:focus-visible {
    outline: 2px solid var(--hero-fit);
    outline-offset: 2px;
}

.hero-slider__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Tablet: content overlaid on the banner image (768px–1024px only) */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-slider__viewport {
        aspect-ratio: 16 / 10;
        max-height: min(640px, 78vh);
        min-height: 420px;
    }

    .hero-slider__slide img {
        object-fit: cover;
        object-position: center center;
    }

    .hero-slider__overlay {
        align-items: center;
        padding: 1.25rem 0 3.25rem;
        background: linear-gradient(
            115deg,
            rgba(10, 28, 42, 0.88) 0%,
            rgba(10, 28, 42, 0.72) 38%,
            rgba(10, 28, 42, 0.35) 62%,
            rgba(10, 28, 42, 0.12) 100%
        );
    }

    .hero-slider__content {
        max-width: min(520px, 100%);
        padding: 0.5rem 0;
    }

    .hero-slider__eyebrow {
        color: #7dd7f5;
        margin-bottom: 0.7rem;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    }

    .hero-slider__title {
        font-size: clamp(1.75rem, 4.2vw, 2.45rem);
        color: #ffffff;
        margin-bottom: 0.75rem;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    }

    .hero-slider__title .brand-hue {
        color: #7dd7f5;
    }

    .hero-slider__title .brand-fit {
        color: #ffb06a;
    }

    .hero-slider__text {
        color: rgba(255, 255, 255, 0.9);
        max-width: 34rem;
        margin-bottom: 1.15rem;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    }

    .hero-slider__actions {
        gap: 0.7rem;
    }

    .hero-slider__btn {
        min-width: 148px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    }

    .hero-slider__btn--outline {
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(4px);
    }

    .hero-slider__btn--outline:hover {
        background: #ffffff;
        color: var(--hero-hue);
        border-color: #ffffff;
    }

    .hero-slider__dots {
        bottom: 14px;
    }

    .hero-slider__dot {
        background: rgba(255, 255, 255, 0.45);
    }

    .hero-slider__dot.is-active {
        background: #ffffff;
    }

    .hero-slider__nav {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.88);
    }
}

/* Mobile: dedicated premium layout (max-width: 767px only) */
@media (max-width: 767px) {
    .hero-slider__viewport {
        aspect-ratio: auto;
        height: clamp(280px, 50vh, 55vh);
        min-height: 280px;
        max-height: 55vh;
    }

    .hero-slider__track {
        position: absolute;
        inset: 0;
    }

    /* Prefer the photographic right side; soft-crop baked logo/swoosh noise */
    .hero-slider__slide img {
        object-fit: cover;
        object-position: 72% center;
    }

    .hero-slider__overlay {
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        padding: 0;
        background: linear-gradient(
            185deg,
            rgba(8, 24, 38, 0.15) 0%,
            rgba(8, 24, 38, 0.25) 30%,
            rgba(8, 24, 38, 0.62) 52%,
            rgba(8, 24, 38, 0.82) 72%,
            rgba(8, 24, 38, 0.92) 100%
        );
    }

    .hero-slider__overlay > .container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 16px 16px 36px;
    }

    .hero-slider__content {
        width: 85%;
        max-width: 85%;
        margin: 0;
        padding: 0;
        text-align: left;
        opacity: 1;
        transform: none;
        animation: none;
    }

    .hero-slider__eyebrow {
        display: block;
        font-size: 0.62rem;
        letter-spacing: 0.1em;
        line-height: 1.3;
        margin-bottom: 0.4rem;
        color: #8edcf8;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-slider__title {
        font-size: clamp(1.375rem, 5.8vw, 1.5rem);
        font-weight: 800;
        line-height: 1.2;
        color: #ffffff;
        margin: 0 0 0.4rem;
        text-align: left;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-slider__title .brand-hue {
        color: #8edcf8;
    }

    .hero-slider__title .brand-fit {
        color: #ffb06a;
    }

    .hero-slider__text {
        font-size: clamp(0.8125rem, 3.4vw, 0.875rem);
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.94);
        max-width: 100%;
        margin: 0 0 0.75rem;
        text-align: left;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-slider__actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .hero-slider__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 44px;
        height: 46px;
        padding: 0 1rem;
        font-size: 0.9rem;
        font-weight: 700;
        border-radius: 999px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
        transform: none;
    }

    .hero-slider__btn:hover {
        transform: none;
    }

    .hero-slider__btn--outline {
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(4px);
    }

    .hero-slider__btn--outline:hover {
        background: #ffffff;
        color: var(--hero-hue);
        border-color: #ffffff;
    }

    .hero-slider__nav {
        display: none;
    }

    .hero-slider__dots {
        bottom: 10px;
        z-index: 7;
        gap: 0.45rem;
    }

    .hero-slider__dot {
        width: 8px;
        height: 8px;
        background: rgba(255, 255, 255, 0.45);
    }

    .hero-slider__dot.is-active {
        width: 20px;
        background: #ffffff;
    }
}

/* Very small phones: keep everything inside the banner */
@media (max-width: 360px) {
    .hero-slider__viewport {
        height: clamp(270px, 52vh, 55vh);
    }

    .hero-slider__overlay > .container {
        padding: 14px 14px 34px;
    }

    .hero-slider__content {
        width: 92%;
        max-width: 92%;
    }

    .hero-slider__eyebrow {
        font-size: 0.58rem;
        margin-bottom: 0.3rem;
    }

    .hero-slider__title {
        font-size: 1.3rem;
        margin-bottom: 0.35rem;
    }

    .hero-slider__text {
        font-size: 0.8rem;
        margin-bottom: 0.65rem;
    }

    .hero-slider__actions {
        gap: 8px;
    }

    .hero-slider__btn {
        min-height: 42px;
        height: 42px;
        font-size: 0.85rem;
    }
}

/* Mobile landscape: compact left-aligned strip */
@media (max-width: 767px) and (orientation: landscape) and (max-height: 500px) {
    .hero-slider__viewport {
        height: 55vh;
        max-height: 55vh;
        min-height: 220px;
    }

    .hero-slider__overlay {
        background: linear-gradient(
            90deg,
            rgba(8, 24, 38, 0.9) 0%,
            rgba(8, 24, 38, 0.72) 40%,
            rgba(8, 24, 38, 0.2) 70%,
            rgba(8, 24, 38, 0) 100%
        );
    }

    .hero-slider__overlay > .container {
        padding: 12px 16px 28px;
    }

    .hero-slider__content {
        width: 78%;
        max-width: 78%;
    }

    .hero-slider__eyebrow {
        margin-bottom: 0.25rem;
    }

    .hero-slider__title {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }

    .hero-slider__text {
        font-size: 0.78rem;
        margin-bottom: 0.5rem;
    }

    .hero-slider__actions {
        flex-direction: row;
        gap: 8px;
        width: auto;
        max-width: 100%;
    }

    .hero-slider__btn {
        width: auto;
        min-width: 120px;
        height: 40px;
        min-height: 40px;
        padding: 0 0.9rem;
        font-size: 0.82rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider__slide,
    .hero-slider__content,
    .hero-slider__btn,
    .hero-slider__dot {
        transition: none;
        animation: none;
    }
}
