/* =========================================================
   Premium fullscreen hero carousel
   ========================================================= */

.hero-carousel {
    --hc-cyan: #11CFE0;
    --hc-cyan-light: #1BE4EB;
    --hc-blue-deep: #087FAF;
    --hc-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #0a0a0a;
    color: #ffffff;
    isolation: isolate;
}

.hero-carousel__swiper {
    width: 100%;
    height: 100%;
}

.hero-carousel .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-carousel__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    transform: scale(1.15);
    transform-origin: center center;
    will-change: transform;
    backface-visibility: hidden;
}

.swiper-slide-active .hero-carousel__media,
.swiper-slide-duplicate-active .hero-carousel__media {
    animation: hc-kenburns 6.2s var(--hc-ease) forwards;
}

.swiper-slide:not(.swiper-slide-active):not(.swiper-slide-duplicate-active) .hero-carousel__media {
    animation: none;
    transform: scale(1.15);
}

@keyframes hc-kenburns {
    from { transform: scale(1.15); }
    to { transform: scale(1); }
}

.hero-carousel__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translateZ(0);
}

.hero-carousel__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.2)
    );
    pointer-events: none;
}

.hero-carousel__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-width: 650px;
    padding: calc(var(--nav-height) + 48px) 0 120px;
    margin-left: clamp(40px, 8vw, 100px);
    margin-right: clamp(72px, 12vw, 140px);
}

.hero-carousel__eyebrow {
    margin: 0 0 14px;
    color: var(--hc-cyan-light);
    font-family: var(--font-primary, "Manrope", sans-serif);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0;
    transform: translate3d(0, 40px, 0);
}

.hero-carousel__title,
.hero-carousel__title--gold {
    margin: 0;
    width: fit-content;
    max-width: 100%;
    color: #D4AF37;
    font-family: var(--font-primary, "Manrope", sans-serif);
    font-size: clamp(40px, 5.4vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: none;
    opacity: 0;
    transform: translate3d(0, 80px, 0);

    /* Metallic Gold Palette & Continuous Shimmer Reflection */
    background: linear-gradient(
        115deg,
        #B8860B 0%,
        #D4AF37 15%,
        #F4D06F 28%,
        #FFE8A3 38%,
        #FFF4D0 44%,
        #FFE8A3 50%,
        #F4D06F 60%,
        #D4AF37 72%,
        #B8860B 85%,
        #D4AF37 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
}

.hero-carousel__title em {
    display: block;
    margin-top: 0.08em;
    color: var(--hc-cyan-light);
    font-style: normal;
    font-weight: 500;
}

.hero-carousel__sub {
    margin: 18px 0 0;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-primary, "Manrope", sans-serif);
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translate3d(0, 80px, 0);
}

.hero-carousel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
    opacity: 0;
    transform: translate3d(0, 80px, 0);
}

.swiper-slide:not(.swiper-slide-active):not(.swiper-slide-duplicate-active) .hero-carousel__eyebrow,
.swiper-slide:not(.swiper-slide-active):not(.swiper-slide-duplicate-active) .hero-carousel__title,
.swiper-slide:not(.swiper-slide-active):not(.swiper-slide-duplicate-active) .hero-carousel__title--gold,
.swiper-slide:not(.swiper-slide-active):not(.swiper-slide-duplicate-active) .hero-carousel__sub,
.swiper-slide:not(.swiper-slide-active):not(.swiper-slide-duplicate-active) .hero-carousel__actions {
    animation: none;
    opacity: 0;
    transform: translate3d(0, 80px, 0);
}

.hero-carousel__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 999px;
    font-family: var(--font-primary, "Manrope", sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition:
        transform 300ms var(--hc-ease),
        box-shadow 300ms ease,
        background 300ms ease,
        border-color 300ms ease,
        color 300ms ease;
    will-change: transform;
}

.hero-carousel__btn--primary {
    color: #111111;
    background: linear-gradient(90deg, #1BE4EB 0%, #11CFE0 48%, #087FAF 100%);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero-carousel__btn--primary:hover,
.hero-carousel__btn--primary:focus-visible {
    transform: translateY(-2px);
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero-carousel__btn--ghost,
.hero-carousel__btn--gold {
    color: var(--gold-light, #F4D06F);
    background: rgba(17, 17, 17, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--gold, #D4AF37);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.hero-carousel__btn--ghost:hover,
.hero-carousel__btn--ghost:focus-visible,
.hero-carousel__btn--gold:hover,
.hero-carousel__btn--gold:focus-visible {
    color: #ffffff;
    background: rgba(212, 175, 55, 0.16);
    border-color: var(--gold-highlight, #FFE8A3);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(184, 134, 11, 0.25);
}

/* Active slide text entrance */
.swiper-slide-active .hero-carousel__title,
.swiper-slide-duplicate-active .hero-carousel__title,
.swiper-slide-active .hero-carousel__title--gold,
.swiper-slide-duplicate-active .hero-carousel__title--gold {
    animation: 
        hc-fade-up 1s var(--hc-ease) forwards,
        hero-gold-shimmer 5s ease-in-out infinite;
}

.swiper-slide-active .hero-carousel__eyebrow,
.swiper-slide-duplicate-active .hero-carousel__eyebrow {
    animation: hc-fade-up 0.9s var(--hc-ease) 0.05s forwards;
}

.swiper-slide-active .hero-carousel__sub,
.swiper-slide-duplicate-active .hero-carousel__sub {
    animation: hc-fade-up 1s var(--hc-ease) 0.2s forwards;
}

.swiper-slide-active .hero-carousel__actions,
.swiper-slide-duplicate-active .hero-carousel__actions {
    animation: hc-fade-up 1s var(--hc-ease) 0.4s forwards;
}

@keyframes hc-fade-up {
    from {
        opacity: 0;
        transform: translate3d(0, 80px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes hero-gold-shimmer {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: 0% center;
    }
}

/* Side navigation arrows — hidden by default, revealed on hero hover / interaction */
.hero-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.35);
    color: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 350ms cubic-bezier(0.16, 1, 0.3, 1),
        visibility 350ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 300ms var(--hc-ease),
        background 300ms ease,
        border-color 300ms ease,
        color 300ms ease,
        box-shadow 300ms ease;
}

.hero-carousel__arrow--prev {
    left: clamp(16px, 2.5vw, 36px);
}

.hero-carousel__arrow--next {
    right: clamp(52px, 5.5vw, 88px);
}

/* Hover over entire hero section reveals arrows */
.hero-carousel:hover .hero-carousel__arrow,
.hero-carousel:focus-within .hero-carousel__arrow,
.hero-carousel.has-interacted .hero-carousel__arrow {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hero-carousel__arrow:hover,
.hero-carousel__arrow:focus-visible {
    color: #111111;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(212, 175, 55, 0.65);
    box-shadow: 0 14px 32px rgba(184, 134, 11, 0.22);
    transform: translateY(-50%) scale(1.04);
    outline: none;
}

.hero-carousel__arrow:active {
    transform: translateY(-50%) scale(0.98);
}

.hero-carousel__arrow svg {
    display: block;
}

/* Slide counter — bottom left */
.hero-carousel__counter {
    position: absolute;
    left: clamp(40px, 8vw, 100px);
    bottom: 36px;
    z-index: 8;
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--font-primary, "Manrope", sans-serif);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.72);
    pointer-events: none;
}

.hero-carousel__counter-current {
    color: var(--hc-cyan-light);
    font-size: 18px;
    font-weight: 600;
}

.hero-carousel__counter-sep {
    opacity: 0.55;
}

.hero-carousel__counter-total {
    color: rgba(255, 255, 255, 0.7);
}

/* Next preview — bottom right */
.hero-carousel__next {
    position: absolute;
    right: clamp(40px, 6vw, 80px);
    bottom: 32px;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 200px;
    max-width: 240px;
    padding: 10px 14px 10px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(17, 17, 17, 0.42);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    color: #ffffff;
    cursor: pointer;
    text-align: left;
    transition:
        transform 300ms var(--hc-ease),
        border-color 300ms ease,
        background 300ms ease;
}

.hero-carousel__next:hover,
.hero-carousel__next:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(27, 228, 235, 0.55);
    background: rgba(17, 17, 17, 0.58);
}

.hero-carousel__next-thumb {
    flex: 0 0 58px;
    width: 58px;
    height: 44px;
    overflow: hidden;
    border-radius: 8px;
    background: #222;
}

.hero-carousel__next-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 400ms ease, transform 600ms var(--hc-ease);
}

.hero-carousel__next-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.hero-carousel__next-label {
    color: rgba(255, 255, 255, 0.62);
    font-family: var(--font-primary, "Manrope", sans-serif);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-carousel__next-title {
    overflow: hidden;
    color: #ffffff;
    font-family: var(--font-primary, "Manrope", sans-serif);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hero-carousel__next-title span {
    color: var(--hc-cyan-light);
}

/* Scroll indicator — bottom center */
.hero-carousel__scroll {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    pointer-events: auto;
}

.hero-carousel__scroll-mouse {
    position: relative;
    width: 22px;
    height: 34px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
}

.hero-carousel__scroll-mouse::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 3px;
    height: 7px;
    border-radius: 999px;
    background: var(--hc-cyan-light);
    transform: translateX(-50%);
    animation: hc-scroll-wheel 1.8s ease-in-out infinite;
}

.hero-carousel__scroll-text {
    font-family: var(--font-primary, "Manrope", sans-serif);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.8;
    animation: hc-scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes hc-scroll-wheel {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    70% {
        opacity: 0;
        transform: translate(-50%, 12px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 12px);
    }
}

@keyframes hc-scroll-pulse {
    0%,
    100% {
        opacity: 0.55;
    }
    50% {
        opacity: 1;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-carousel__media,
    .swiper-slide-active .hero-carousel__media,
    .swiper-slide-duplicate-active .hero-carousel__media {
        animation: none !important;
        transform: none;
    }

    .swiper-slide-active .hero-carousel__title,
    .swiper-slide-duplicate-active .hero-carousel__title,
    .swiper-slide-active .hero-carousel__title--gold,
    .swiper-slide-duplicate-active .hero-carousel__title--gold,
    .swiper-slide-active .hero-carousel__eyebrow,
    .swiper-slide-duplicate-active .hero-carousel__eyebrow,
    .swiper-slide-active .hero-carousel__sub,
    .swiper-slide-duplicate-active .hero-carousel__sub,
    .swiper-slide-active .hero-carousel__actions,
    .swiper-slide-duplicate-active .hero-carousel__actions {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hero-carousel__scroll-mouse::after,
    .hero-carousel__scroll-text,
    .hero-carousel__btn--ghost,
    .hero-carousel__btn--gold {
        animation: none;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .hero-carousel__content {
        margin-left: 36px;
        margin-right: 72px;
        padding-bottom: 140px;
    }

    .hero-carousel__title {
        font-size: clamp(36px, 6vw, 56px);
    }

    .hero-carousel__next {
        right: 28px;
        min-width: 180px;
    }

    .hero-carousel__counter {
        left: 36px;
    }

    .hero-carousel__arrow {
        width: 46px;
        height: 46px;
    }

    .hero-carousel__arrow--next {
        right: 48px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero-carousel {
        min-height: 100svh;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .hero-carousel__overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.58) 0%,
            rgba(0, 0, 0, 0.28) 36%,
            rgba(0, 0, 0, 0.62) 68%,
            rgba(0, 0, 0, 0.88) 100%
        );
    }

    .hero-carousel__media img {
        object-position: 55% center;
    }

    .hero-carousel__content {
        justify-content: flex-end;
        max-width: none;
        width: calc(100% - 40px);
        margin-left: 20px;
        margin-right: 20px;
        padding:
            max(calc(var(--nav-height) + 28px), calc(var(--logo-height-expanded, 112px) + 20px))
            0
            calc(118px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
    }

    .hero-carousel__title {
        max-width: 12ch;
        font-size: clamp(32px, 9vw, 42px);
        line-height: 1.08;
        text-wrap: balance;
    }

    .hero-carousel__sub {
        font-size: 14px;
        letter-spacing: 0.03em;
        max-width: 28ch;
    }

    .hero-carousel__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 24px;
    }

    .hero-carousel__btn {
        width: 100%;
        max-width: none;
    }

    .hero-carousel__next {
        display: none;
    }

    .hero-carousel__arrow {
        width: 42px;
        height: 42px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .hero-carousel__arrow--prev {
        left: 10px;
    }

    .hero-carousel__arrow--next {
        right: 10px;
    }

    .hero-carousel.has-interacted .hero-carousel__arrow {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .hero-carousel__counter {
        left: 20px;
        bottom: calc(28px + env(safe-area-inset-bottom, 0px));
        z-index: 9;
    }

    .hero-carousel__scroll {
        left: 50%;
        right: auto;
        bottom: calc(22px + env(safe-area-inset-bottom, 0px));
        transform: translateX(-50%);
        z-index: 8;
    }

    .hero-carousel__scroll-text {
        font-size: 9px;
    }
}

@media (max-width: 390px) {
    .hero-carousel__title {
        font-size: 30px;
    }

    .hero-carousel__content {
        padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 767px) and (max-height: 700px) {
    .hero-carousel__content {
        justify-content: center;
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }

    .hero-carousel__title {
        font-size: clamp(28px, 8vw, 36px);
    }

    .hero-carousel__actions {
        margin-top: 18px;
    }
}
