/* ========================================
   HERO SECTION CAROUSEL - TIMELINE DESIGN
   ======================================== */

/* Base container */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--black);
}

/* Carousel wrapper */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 768px; /*previous 600px*/
    overflow: hidden;
    --hero-counter-top: 250px;
    --hero-counter-width: 50%;
    --hero-counter-max: 560px;
    --hero-counter-gap: 8px;
}

/* Slides container */
.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual slide */
.hero-slide {
    --hero-image-position-x: 50%;
    --hero-image-position-y: 50%;
    --hero-image-shade: rgba(0, 0, 0, 0.10);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 600ms ease-in-out, visibility 600ms ease-in-out;
}

/* The 200 BCD source has useful negative space above the product. */
.hero-slide[data-slide-index="1"] {
    --hero-image-position-y: 70%;
    --hero-image-shade: rgba(0, 0, 0, 0.15 );
}

.hero-slide--active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Slide image */
.hero-slide__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide__image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slide__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--hero-image-position-x) var(--hero-image-position-y);
    display: block;
}

/* Content layer - Zone B (Right 50%) */
.hero-slide__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    padding-top: calc(var(--hero-counter-top) + 10px);
    background: var(--hero-image-shade);
}

.hero-slide__content .container {
    max-width: 1280px;
    padding: 0 var(--page-gutter);
    text-align: left;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.95)
}

/* Typography - Industrial/Technical spec sheet style */
.hero-slide__title {
    font-family: var(--font-family-display);
    font-size: var(--type-display-title-size);
    font-weight: var(--type-display-title-weight);
    font-synthesis: none;
    line-height: var(--type-body-line-height);
    text-transform: uppercase;
    letter-spacing: var(--type-display-title-tracking);
    color: var(--white);
    margin: 0 0 12px 0;
    max-width: 520px;
    animation: fadeInLeft 600ms ease-out 200ms both;
}

.hero-slide__description {
    font-size: var(--type-body-size-s);
    font-weight: var(--type-body-weight-medium);
    line-height: var(--type-body-line-height);
    color: #ffffff;
    margin: 0 0 20px 0;
    max-width: 520px;
    animation: fadeInLeft 600ms ease-out 300ms both;
}

.hero-slide__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: var(--type-body-size-s);
    font-weight: var(--type-body-weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--type-link-letter-spacing);
    color: var(--white);
}

.hero-shop-inline {
    display: none;
    text-decoration: underline;
    text-underline-offset: var(--type-link-underline-offset);
    transition: color 0.2s ease;
    animation: fadeInLeft 600ms ease-out 400ms both;
}

a.hero-shop-inline:hover,
a.hero-shop-inline:visited:hover {
    color: var(--neon);
}

/* Discover More Link - Text only, underlined */
.hero-slide__discover {
    position: relative;
    display: inline-block;
    text-decoration: none;
    transition: color 0.2s ease;
    animation: fadeInLeft 600ms ease-out 400ms both;
    color: var(--white);
}

.hero-slide__discover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transition: box-shadow 0.2s ease;
}

a.hero-slide__discover:hover,
a.hero-slide__discover:visited:hover,
.hero-slide__discover:focus-visible,
a.hero-slide__discover:visited:focus-visible {
    color: var(--neon);
}

a.hero-slide__discover:hover::after,
a.hero-slide__discover:visited:hover::after,
.hero-slide__discover:focus-visible::after {
    box-shadow: 0 0 6px currentColor;
}

.hero-slide__discover:visited {
    color: var(--white);
}

/* ========================================
   TIMELINE COMPONENT (Zone A - Left Side)
   ======================================== */

.hero-timeline {
    position: absolute;
    top: var(--hero-counter-top);
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

.hero-timeline__container {
    position: relative;
    width: 100%;
    padding: 0 var(--page-gutter);
}

.hero-timeline__steps {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: var(--hero-counter-gap);
    width: clamp(220px, var(--hero-counter-width), var(--hero-counter-max));
}

.hero-timeline__step {
    position: relative;
    pointer-events: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
    transition: transform 0.2s ease;
}

.hero-timeline__step-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    border-radius: 0;
    width: 100%;
}

.hero-timeline__step-button:hover {
    background: none;
}

.hero-timeline__step-button::after,
.hero-timeline__step-button:hover::after {
    content: none;
}

.hero-timeline__step:hover {
    transform: translateY(-2px);
    background: none;
}

.hero-timeline__step:hover::after {
    content: none;
}

.hero-timeline__step-number {
    font-family: var(--font-family-mono);
    font-size: var(--type-body-size-s);
    font-weight: var(--type-body-weight-medium);
    font-style: normal;
    font-synthesis: none;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.hero-timeline__step-line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-timeline__step--active .hero-timeline__step-number {
    color: #00FF88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.hero-timeline__step--active .hero-timeline__step-line {
    background: rgba(255, 255, 255, 0.8);
}

/* Micro-navigation arrows under active step */
.hero-timeline__step-nav {
    display: none;
    gap: 16px;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    transform: none;
}

.hero-timeline__step--active .hero-timeline__step-nav {
    display: flex;
}

.hero-timeline__mobile-nav {
    display: none;
    pointer-events: auto;
}

.hero-timeline__step-prev,
.hero-timeline__step-next {
    font-size: 10px;
    font-weight: var(--type-body-weight-regular);
    color: rgba(255, 255, 255, 0.7);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    transition: color 0.2s ease;
}

.hero-timeline__step-prev:hover,
.hero-timeline__step-next:hover {
    color: #00FF88;
    background: none;
}

.hero-timeline__step-prev:hover::after,
.hero-timeline__step-next:hover::after {
    content: none;
}

/* ========================================
   SHOP NOW ANCHOR (Right Edge)
   ======================================== */

.hero-shop-anchor {
    position: absolute;
    top: calc(var(--hero-counter-top) + 6px);
    right: var(--page-gutter);
    z-index: 10;
    font-size: var(--type-body-size-s);
    font-weight: var(--type-body-weight-bold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

a.hero-shop-anchor,
a.hero-shop-anchor:visited,
a.hero-shop-anchor:visited:not(:hover) {
    color: var(--white);
}

a.hero-shop-anchor:hover,
a.hero-shop-anchor:visited:hover {
    color: var(--neon);
}

/* ========================================
   HERO SECTION - RESPONSIVE DESIGN
   ======================================== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .hero-carousel {
        height: 500px;
        --hero-counter-top: 210px;
        --hero-counter-max: 520px;
    }

    .hero-slide__title {
        font-size: 15px;
        max-width: 520px;
    }

    .hero-slide__description {
        font-size: 12px;
        max-width: 520px;
    }

    .hero-timeline__step-number {
        font-size: 11px;
    }

    .hero-shop-anchor {
        font-size: 11px;
        right: var(--page-gutter);
        letter-spacing: 1.5px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .hero-carousel {
        height: 500px;
        --hero-counter-gap: 6px;
    }

    .hero-slide__content {
        align-items: center;
        padding-top: 0;
    }

    .hero-slide__content .container {
        padding: 0 var(--page-gutter);
    }

    .hero-slide__title {
        font-size: 16px;
        margin-bottom: 10px;
        max-width: 100%;
    }

    .hero-slide__description {
        font-size: 12px;
        margin-bottom: 16px;
        max-width: 100%;
    }

    /* Simplified timeline for mobile */
    .hero-timeline {
        width: 100%;
        bottom: 24px;
        top: auto;
        transform: none;
    }

    .hero-timeline__container {
        padding: 0 10%;
    }

    .hero-timeline__steps {
        width: 100%;
    }

    .hero-timeline__step-number {
        font-size: 10px;
    }

    .hero-timeline__step-nav {
        display: none !important;
    }

    .hero-timeline__step-prev,
    .hero-timeline__step-next {
        font-size: 9px;
        padding: 2px 6px;
    }

    .hero-timeline__step {
        position: static;
    }

    .hero-timeline__mobile-nav {
        display: flex;
        gap: 12px;
        position: absolute;
        right: 0;
        bottom: calc(100% + 8px);
        top: auto;
        transform: none;
    }

    .hero-slide__actions {
        gap: 18px;
    }

    .hero-shop-inline {
        display: inline-block;
    }

    .hero-shop-anchor {
        display: none;
    }

}

/* Small mobile (< 480px) */
@media (max-width: 479px) {
    .hero-slide__content .container {
        padding: 0 10px;
    }
    .hero-timeline__step-prev,
    .hero-timeline__step-next {
        font-size: 20px;
        padding: 2px 10px;
    }
    .hero-carousel {
        height: 550px;
        --hero-counter-gap: 4px;
    }

    .hero-slide__title {
        font-size: 16px;
        margin-bottom: 48px;
    }

    .hero-slide__description {
        font-size: 12px;
    }

    .hero-timeline {
        bottom: 48px;
    }

    .hero-timeline__step-number {
        font-size: 12px;
    }

    .hero-timeline__container {
        padding: 0 10px;
    }

    .hero-shop-anchor {
        bottom: 30px;
        font-size: 12px;
        letter-spacing: 0.5px;
    }
}

/* Large-display enhancement. */
@media (min-width: 1600px) {
    .hero-carousel {
        --hero-counter-max: 640px;
        --hero-counter-top: 270px;
    }
}

/* ========================================
   HERO SECTION - ANIMATIONS
   ======================================== */

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Focus visible for accessibility */
.hero-timeline__step-button:focus-visible,
.hero-timeline__step-prev:focus-visible,
.hero-timeline__step-next:focus-visible,
.hero-slide__discover:focus-visible,
.hero-shop-anchor:focus-visible {
    outline: 2px solid #00FF88;
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: opacity 300ms ease-in-out;
    }

    .hero-slide__title,
    .hero-slide__description,
    .hero-slide__discover {
        animation: none;
    }

    .hero-slide__discover::after {
        transition: none;
    }

    .hero-timeline__step,
    .hero-timeline__step-number {
        transition: none;
    }
}
