/* ===================================================
   Prototype Banner Section
   Top bar (left text - spacer - logo), fixed CTA
   buttons, then a slider that shows one item at a time.
   Vertical dot indicators sit to the left of the title;
   each item has a split image on the right (30/70 with
   a 20px gap).
   =================================================== */

/* Base Styles */
body {
    font-family: polymath-display, sans-serif;
}

.prototype-banner {
    background-color: #FAFAFA;
    padding: 40px 52px;
    overflow: hidden;
}

/* ===================================================
   Top Bar: Left text - Spacer - Logo
   =================================================== */
.prototype-banner__topbar {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.prototype-banner__breadcrumb {
    font-family: polymath-display, sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--color-secondary);
    margin-bottom: 0;
}

.prototype-banner__breadcrumb strong {
    font-weight: 500;
    color: var(--color-primary);
}

/* Spacer pushes the logo to the right */
.prototype-banner__spacer {
    flex: 1 1 auto;
}

.prototype-banner__logo {
    max-width: 160px;
    height: auto;
}

/* ===================================================
   Slider: vertical dots (left) + items
   =================================================== */
.prototype-banner__slider {
    display: flex;
    align-items: stretch;
    gap: 24px;
}

/* ---------------------------------------------------
   Vertical Page Indicators (left of the title)
   --------------------------------------------------- */
.prototype-banner__indicators {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding-top: 8px;
    flex-shrink: 0;
}

.prototype-banner__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: var(--color-secondary);
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.prototype-banner__dot:hover {
    opacity: 0.6;
}

.prototype-banner__dot.is-active {
    opacity: 1;
    background-color: var(--color-primary);
    transform: scale(1.3);
}

/* ---------------------------------------------------
   Items (only one visible at a time)
   --------------------------------------------------- */
.prototype-banner__items {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.prototype-banner__item {
    display: none;
    align-items: stretch;
    gap: 40px;
}

.prototype-banner__item.is-active {
    display: flex;
    animation: prototype-banner-fade 0.4s ease;
}

@keyframes prototype-banner-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Text content (left) */
.prototype-banner__content {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* CTA buttons (on top of the title) */
.prototype-banner__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

/* Mobile-only button pair (below the carousel) - hidden on desktop */
.prototype-banner__actions--mobile {
    display: none;
}

.prototype-banner__title {
    font-family: polymath-display, sans-serif;
    font-weight: 400;
    font-size: 2.5rem;
    line-height: 1.15;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.prototype-banner__text {
    font-family: polymath-display, sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-secondary);
    margin-bottom: 0;
    max-width: 90%;
}

/* Split Media (right) - 30 / 70 with 20px gap */
.prototype-banner__media {
    flex: 1 1 60%;
    max-width: 60%;
    display: flex;
    gap: 20px;
}

.prototype-banner__image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.prototype-banner__image--narrow {
    flex: 0 0 30%;
}

.prototype-banner__image--wide {
    flex: 1 1 70%;
}

.prototype-banner__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===================================================
   Responsive - Tablet (768px - 991px)
   =================================================== */
@media (max-width: 991px) {
    .prototype-banner {
        padding: 32px;
    }

    .prototype-banner__slider {
        gap: 16px;
    }

    .prototype-banner__item {
        gap: 24px;
    }

    .prototype-banner__title {
        font-size: 2rem;
    }

    .prototype-banner__content {
        flex-basis: 45%;
        max-width: 45%;
    }

    .prototype-banner__media {
        flex-basis: 55%;
        max-width: 55%;
    }

    .prototype-banner__logo {
        max-width: 140px;
    }
}

/* ===================================================
   Responsive - Mobile (below 768px)
   =================================================== */
@media (max-width: 767px) {
    .prototype-banner {
        padding: 24px 16px;
    }

    .prototype-banner__topbar {
        margin-bottom: 24px;
    }

    /* Hide breadcrumb, keep the logo left-aligned */
    .prototype-banner__breadcrumb,
    .prototype-banner__spacer {
        display: none;
    }

    .prototype-banner__logo {
        max-width: 110px;
    }

    /* Hide the in-item buttons; show the mobile pair below the carousel */
    .prototype-banner__content .prototype-banner__actions {
        display: none;
    }

    .prototype-banner__actions--mobile {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 28px;
        margin-bottom: 0;
    }

    .prototype-banner__actions--mobile .dv-cta {
        width: 100%;
        justify-content: center;
    }

    .prototype-banner__actions--mobile .dv-cta .dv-cta__label {
        width: 100%;
        justify-content: center;
    }

    /* Hide the vertical dot indicators on mobile */
    .prototype-banner__indicators {
        display: none;
    }

    /* Slider is just the scroll container now */
    .prototype-banner__slider {
        gap: 0;
    }

    /* Items become a horizontal, swipeable scroll row */
    .prototype-banner__items {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        /* Hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .prototype-banner__items::-webkit-scrollbar {
        display: none;
    }

    /* Every item is visible in the row and full width; stacks text over media */
    .prototype-banner__item,
    .prototype-banner__item.is-active {
        display: flex;
        flex-direction: column;
        gap: 20px;
        flex: 0 0 100%;
        max-width: 100%;
        scroll-snap-align: start;
        animation: none;
    }

    .prototype-banner__content,
    .prototype-banner__media {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .prototype-banner__title {
        font-size: 1.6rem;
    }

    .prototype-banner__text {
        max-width: 100%;
    }

    /* Keep the 30/70 split on mobile with a fixed height */
    .prototype-banner__media {
        height: 240px;
    }
}
