/* =========================================================
   HOME — mobile first
   ========================================================= */

/* =========================================================
   Seção 1: Hero Carousel
   ========================================================= */

.hero {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.hero__carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transition: opacity 300ms ease-out;
    pointer-events: none;
}

.hero__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 53, 84, 0.55) 0%,
        rgba(0, 53, 84, 0.2) 60%,
        transparent 100%
    );
}

.hero__slide--light {
    background-color: #fff;
    background-image: none !important;
}

.hero__slide--light .hero__overlay {
    display: none;
}

/* Imagem de produto no slide claro (banner 2) */
.hero__slide-product {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 90%;
    width: auto;
    max-width: 55%;
    object-fit: contain;
    object-position: right bottom;
    pointer-events: none;
}

.hero__slide--light .hero__title {
    color: #003554;
}

.hero__slide--light .hero__subtitle {
    color: #003554;
}

.hero__content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: calc(var(--header-height-mobile) + var(--space-4));
    padding-bottom: var(--space-8);
}

.hero__title {
    font-size: var(--text-2xl);
    font-weight: var(--fw-bold);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: var(--space-2);
    line-height: var(--line-tight);
}

.hero__title--accent {
    color: var(--color-accent);
}

.hero__subtitle {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: var(--space-5);
    max-width: 340px;
    line-height: var(--line-normal);
}

.hero__cta {
    align-self: flex-start;
    font-size: var(--text-xs);
}

/* Setas prev/next */
.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.35);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.hero__arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.hero__prev { left: var(--space-3); }
.hero__next { right: var(--space-3); }

/* Dots */
.hero__dots {
    position: absolute;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: var(--space-2);
}

.hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background var(--transition-fast),
                transform var(--transition-fast);
}

.hero__dot.is-active {
    background: var(--color-white);
    transform: scale(1.25);
}

/* =========================================================
   Seção 2: Stats Bar
   ========================================================= */

.stats-bar {
    background-color: var(--color-bg-light);
    padding-block: var(--space-6);
}

.stats-bar__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.stats-bar__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: var(--space-4) var(--space-3);
}

.stats-bar__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.stats-bar__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stats-bar__value {
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    color: var(--color-accent);
    line-height: var(--line-tight);
}

.stats-bar__label {
    font-size: var(--text-xs);
    font-weight: var(--fw-regular);
    color: #3b3b3b;
    line-height: var(--line-normal);
}

/* =========================================================
   Seção 3: Sobre a Empresa
   ========================================================= */

.about {
    background-color: var(--color-primary);
    padding-block: var(--space-10);
}

.about__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.about__image-col {
    flex-shrink: 0;
}

.about__image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
    object-fit: cover;
    border-radius: 20px;
}

.about__text-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.about__title {
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    color: var(--color-white);
    line-height: var(--line-tight);
}

.about__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.about__body p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.85);
    line-height: var(--line-loose);
    margin: 0;
}

.about__cta {
    align-self: center;
    margin-top: var(--space-2);
}

/* =========================================================
   Seção 4: Vídeo — 40 anos
   ========================================================= */

.video-section {
    background-color: var(--color-bg-light);
    padding-block: var(--space-10);
}

.video-section__title {
    font-size: var(--text-xl);
    font-weight: var(--fw-regular);
    color: var(--color-primary);
    line-height: var(--line-tight);
    text-align: center;
    margin-bottom: var(--space-6);
}

.video-section__player {
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
    padding-inline: var(--space-8);
}

.video-facade {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
    border-radius: 16px;
}

.video-facade__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.video-facade__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1;
    transition: transform var(--transition-fast);
}

.video-facade:hover .video-facade__play {
    transform: scale(1.1);
}

.video-facade iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* =========================================================
   Seção 5: Produtos
   ========================================================= */

.products {
    position: relative;
    background-color: var(--color-primary-dark);
    padding-block: var(--space-10);
}

.products::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        url('/assets/img/products-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.75;
    z-index: 0;
}

.products > * {
    position: relative;
    z-index: 1;
}

.products__title {
    font-size: 1.25rem; /* 20px mobile — Figma spec */
    font-weight: var(--fw-bold);
    color: var(--color-white);
    margin-bottom: 32px;
    line-height: var(--line-tight);
}

/* Mobile: stack vertical centralizado */
.products__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.product-card {
    width: 231px;
    background: transparent;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: box-shadow var(--transition-fast);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
}

.product-card__image-wrap {
    width: 231px;
    height: 287px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card__image {
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.product-card:hover .product-card__image {
    transform: scale(1.04);
}

.product-card__footer {
    width: 231px;
    height: 147px;
    padding-top: 22px;
    padding-bottom: 26px;
    padding-inline: var(--space-3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--color-accent);
    border: 1px solid var(--color-white);
}

.product-card__name {
    font-size: 1.25rem; /* 20px — Figma spec */
    font-weight: var(--fw-regular);
    color: var(--color-white);
    line-height: var(--line-normal);
}

.product-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 133px;
    height: 32px;
    background-color: var(--color-accent);
    border: 1px solid var(--color-white);
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    color: var(--color-white);
}

/* =========================================================
   Breakpoints
   ========================================================= */

@media (max-width: 767px) {
    .hero__slide[aria-label="DPCAD"] {
        background-image: url('/assets/img/banners/banner-4-mobile.png') !important;
    }
}

@media (min-width: 480px) {
    .hero { height: 360px; }
    .hero__title { font-size: var(--text-3xl); }
    .hero__subtitle { font-size: var(--text-base); }
}

@media (min-width: 768px) {
    .hero { height: 420px; }

    .stats-bar__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .about__inner {
        flex-direction: row;
        align-items: stretch;
        gap: var(--space-10);
    }

    .about__image-col {
        flex: 0 0 45%;
    }

    .about__image {
        max-height: none;
        height: 100%;
        object-fit: cover;
    }

    .products__grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero { height: 500px; }

    .hero__content {
        padding-top: calc(var(--header-height-desktop) + var(--space-6));
        padding-bottom: var(--space-12);
    }

    .hero__title { font-size: var(--text-hero); }
    .hero__subtitle { font-size: var(--text-md); max-width: 520px; }

    .stats-bar {
        padding-block: 0;
    }

    .stats-bar__item {
        padding: var(--space-6) var(--space-8);
        gap: 18px;
    }

    .stats-bar__icon {
        width: 57px;
        height: 56px;
    }

    .stats-bar__value {
        font-size: 2.8125rem; /* 45px — spec Figma */
    }

    .about__inner {
        gap: 0;
    }

    .about__image-col {
        flex: 0 0 50%;
    }

    .about__text-col {
        padding-left: var(--space-12);
        justify-content: center;
    }

    .about__cta {
        align-self: flex-start;
    }

    .about__title {
        font-size: var(--text-2xl);
    }

    .video-section__title {
        font-size: 4rem; /* 64px — Figma spec */
        font-weight: var(--fw-regular);
        white-space: nowrap;
    }

    .video-facade {
        border-radius: 30px;
    }

    .video-section__player {
        max-width: 900px;
        padding-inline: 0;
    }

    .products__grid {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 20px;
    }

    .products__title {
        font-size: 2.1875rem; /* 35px — Figma spec */
        text-align: center;
        margin-bottom: 32px;
    }
}

@media (min-width: 1440px) {
    .hero { height: 500px; }
}
