/*
Arquivo: static/css/home_carrossel.css
Resumo: Estiliza a vitrine comercial e o carrossel de telas reais da home pública.
Conversa com: templates/home_publica.html; static/js/home_carrossel.js.
*/

.hero-product-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1672 / 941;
    object-fit: cover;
}

.orion-showcase {
    position: relative;
    overflow: hidden;
    padding: 64px 0;
    background: #f8fafc;
    border-block: 1px solid #dfe7f1;
}

.orion-showcase::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #0d6efd, #28a745, #ffc107);
}

.orion-showcase-heading {
    max-width: 790px;
    margin: 0 auto 28px;
    text-align: center;
}

.orion-showcase-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #0b5ed7;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.orion-showcase-heading h2 {
    margin: 0;
    color: #10233f;
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: 0;
}

.orion-showcase-heading p {
    margin: 12px 0 0;
    color: #526174;
    font-size: 16px;
    line-height: 1.65;
}

.orion-carousel {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    outline: none;
}

.orion-carousel:focus-visible {
    outline: 3px solid rgba(13, 110, 253, .38);
    outline-offset: 5px;
    border-radius: 8px;
}

.orion-carousel-viewport {
    overflow: hidden;
    border: 1px solid #c9d5e5;
    border-radius: 8px;
    background: #061a40;
    box-shadow: 0 24px 58px rgba(15, 35, 67, .2);
}

.orion-carousel-track {
    display: flex;
    width: 100%;
    transition: transform .55s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.orion-carousel-slide {
    flex: 0 0 100%;
    min-width: 0;
    background: #fff;
}

.orion-carousel-media {
    aspect-ratio: 1672 / 941;
    overflow: hidden;
    background: #031633;
}

.orion-carousel-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.orion-carousel-caption {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 106px;
    padding: 20px 24px;
    background: #fff;
    border-top: 1px solid #dfe7f1;
}

.orion-carousel-caption h3 {
    margin: 0 0 5px;
    color: #10233f;
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: 0;
}

.orion-carousel-caption p {
    margin: 0;
    color: #526174;
    font-size: 14px;
    line-height: 1.5;
}

.orion-carousel-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid #b9d2ff;
    border-radius: 999px;
    background: #eaf2ff;
    color: #0b5ed7;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.orion-carousel-arrow {
    position: absolute;
    z-index: 2;
    top: calc(50% - 48px);
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: rgba(3, 22, 51, .88);
    color: #fff;
    box-shadow: 0 8px 22px rgba(3, 22, 51, .25);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.orion-carousel-prev { left: 14px; }
.orion-carousel-next { right: 14px; }

.orion-carousel-arrow:hover {
    background: #0d6efd;
}

.orion-carousel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.orion-carousel-dots {
    display: flex;
    align-items: center;
    gap: 9px;
}

.orion-carousel-dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #a9b6c8;
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.orion-carousel-dots button[aria-selected="true"] {
    width: 28px;
    border-radius: 999px;
    background: #0d6efd;
}

.orion-carousel-toggle {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #c9d5e5;
    border-radius: 50%;
    background: #fff;
    color: #17355f;
    font-size: 12px;
    cursor: pointer;
}

.orion-carousel-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.orion-showcase-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    max-width: 1120px;
    margin: 28px auto 0;
    padding-top: 24px;
    border-top: 1px solid #d7e0eb;
}

.orion-showcase-cta strong,
.orion-showcase-cta span {
    display: block;
}

.orion-showcase-cta strong {
    color: #10233f;
    font-size: 20px;
    line-height: 1.3;
}

.orion-showcase-cta span {
    margin-top: 5px;
    color: #526174;
    font-size: 14px;
    line-height: 1.45;
}

.orion-showcase-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

@media (max-width: 820px) {
    .orion-showcase {
        padding: 48px 0;
    }

    .orion-showcase-heading h2 {
        font-size: 28px;
    }

    .orion-carousel-caption {
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: 146px;
        padding: 16px 18px;
    }

    .orion-carousel-badge {
        width: fit-content;
    }

    .orion-carousel-arrow {
        top: calc(50% - 66px);
        width: 40px;
        height: 40px;
        font-size: 29px;
    }

    .orion-carousel-prev { left: 8px; }
    .orion-carousel-next { right: 8px; }

    .orion-showcase-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .orion-showcase-actions {
        width: 100%;
    }

    .orion-showcase-actions .btn {
        flex: 1 1 0;
    }
}

@media (max-width: 520px) {
    .orion-home .nav-actions {
        flex-wrap: wrap;
        overflow-x: visible;
        row-gap: 4px;
        scrollbar-width: none;
    }

    .orion-showcase {
        padding: 40px 0;
    }

    .orion-showcase-heading {
        margin-bottom: 22px;
    }

    .orion-showcase-heading h2 {
        font-size: 25px;
    }

    .orion-showcase-heading p {
        font-size: 14px;
    }

    .orion-carousel-caption {
        min-height: 166px;
    }

    .orion-carousel-caption h3 {
        font-size: 18px;
    }

    .orion-carousel-arrow {
        top: calc(50% - 76px);
        width: 36px;
        height: 36px;
    }

    .orion-showcase-actions {
        flex-direction: column;
    }

    .orion-showcase-actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orion-carousel-track,
    .orion-carousel-dots button {
        transition: none;
    }
}
