@charset "UTF-8";

/* =========================================
   ESTILOS GERAIS
   ========================================= */

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: #ffffff;
    background: #ffffff;
    overflow-x: hidden;
}

/* ------------------ MENU ------------------ */

nav a {
    margin: 0 18px;
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
}

.revendedor-btn {
    background: #34c759;
    padding: 10px 22px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* ------------------ BANNER ------------------ */
.banner {
    width: 100%;
    height: 95vh;
    background-image: url("../img/banner_index.jpeg");
    /* Adjusted path */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 70px;
}

.banner::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(20, 40, 20, 0.45);
    /* overlay verde suave igual ao print */
    top: 0;
    left: 0;
}

.banner-content {
    position: relative;
    max-width: 600px;
    z-index: 2;
}

.selo {
    background: white;
    color: #1a3d23;
    padding: 6px 12px;
    display: inline-block;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.banner h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
}

.banner p {
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 35px;
    opacity: 0.9;
}

.btns {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: #1fa8d2;
    padding: 12px 28px;
    border-radius: 40px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 28px;
    border-radius: 40px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid white;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

/* ------------------ ROLE PARA BAIXO ------------------ */
.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
    z-index: 2;
    text-align: center;
}

.scroll-down::after {
    content: "⌄";
    display: block;
    margin-top: 6px;
    font-size: 26px;
}

/* =========================================
   SLIDER NOVIDADES
   ========================================= */

/* TÍTULOS */
.ype-section {
    text-align: center;
    margin-bottom: 30px;
}

.ype-title {
    font-size: 42px;
    font-weight: 800;
    color: #0a1a4a;
    margin: 0;
}

.ype-subtitle {
    font-size: 18px;
    color: #444;
    margin-top: 8px;
}

/* ÁREA DO SLIDER */
.ype-slider-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;
    /* Espaço para a próxima seção */
}

.ype-slider {
    display: flex;
    gap: 25px;
    align-items: center;
    height: 420px;
    overflow: hidden;
}

/* CARDS */
.ype-card {
    position: relative;
    height: 100%;
    width: 260px;
    border-radius: 22px;
    overflow: hidden;
    transition: 0.4s ease;
    cursor: pointer;
    opacity: 0.6;
    filter: brightness(0.7);
}

/* Imagem */
.ype-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CARD ATIVO */
.ype-card.active {
    width: 650px;
    opacity: 1;
    filter: brightness(1);
}

/* CONTEÚDO INTERNO */
.ype-content {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: 0.4s ease;
}

.ype-card.active .ype-content {
    opacity: 1;
}

.ype-content h3 {
    font-size: 26px;
    margin: 0 0 10px;
    line-height: 1.2;
}

.ype-content p {
    font-size: 16px;
    margin: 0 0 18px;
}

.ype-btn {
    display: inline-block;
    padding: 12px 22px;
    background: #0a1a4a;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.ype-btn:hover {
    background: #133385;
}

/* SETAS */
.ype-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffffcc;
    border: none;
    padding: 12px 18px;
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.ype-arrow:hover {
    background: #fff;
}

.ype-left {
    left: 10px;
}

.ype-right {
    right: 10px;
}

/* =========================================
   PRODUTOS MAIS AMADOS
   ========================================= */

/* --- ANIMAÇÕES E ESTILO GLOBAL DOS CARDS --- */
.prod-card {
    background: #ecf8f1;
    padding: 25px;
    border-radius: 22px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: .3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prod-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.prod-card>button {
    margin-top: auto;
}

/* imagem */
.prod-card img {
    width: 100%;
    height: 220px;
    /* Fixed height to uniformize */
    object-fit: contain;
    /* Ensures the whole product is visible without distortion */
    border-radius: 14px;
    transition: .35s ease;
}

.prod-card:hover img {
    transform: scale(1.06);
}

/* botão */
.prod-card button {
    width: 100%;
    padding: 12px;
    border-radius: 30px;
    border: 2px solid #123b56;
    background: transparent;
    color: #123b56;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .25s ease;
}

.prod-card button:hover {
    background: #123b56;
    color: white;
    transform: scale(1.03);
}

/* Ícones */
.icon-badge {
    background: #d0f2de;
    padding: 10px;
    border-radius: 50%;
    font-size: 18px;
    transition: .2s ease;
}

.prod-card:hover .icon-badge {
    transform: scale(1.15);
}

/* grid responsivo */
.prod-grid {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

/* =========================================
   LIMPA BOM EXPLICA
   ========================================= */

/* Fundo azul em gradiente */
.lb-explica {
    padding: 60px 7%;
    background: linear-gradient(180deg, #0b4fae 0%, #003d8a 100%);
    font-family: "Montserrat", sans-serif;
    color: #fff;
}

/* Títulos */
.lb-titulo-secao {
    font-size: 22px;
    margin-bottom: 5px;
    font-weight: 700;
}

.lb-titulo-principal {
    font-size: 42px;
    margin-top: 0;
    font-weight: 800;
}

.lb-subtitulo {
    font-size: 18px;
    margin-bottom: 40px;
}

/* Grid dos cards */
.lb-explica-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
        "principal card1 card2"
        "principal card3 card3";
    gap: 25px;
}

/* Card PRINCIPAL à esquerda */
.lb-card-principal {
    grid-area: principal;
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    text-decoration: none;
    color: #000;
    display: flex;
    flex-direction: column;
    border: 6px solid #fff;
}

/* Cards pequenos */
.lb-card {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    text-decoration: none;
    color: #000;
    border: 6px solid #fff;
    display: flex;
    flex-direction: column;
}

/* Imagens */
.lb-card-img img {
    width: 100%;
    display: block;
}

/* Infos */
.lb-card-info {
    padding: 15px 20px;
}

/* Tags iguais às da Ypê */
.lb-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #e6f0ff;
    color: #004c9a;
    font-size: 13px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.lb-tag.azul {
    background: #d9f1ff;
    color: #006fa6;
}

/* Títulos dos cards */
.lb-card-info h3 {
    font-size: 17px;
    line-height: 130%;
    margin: 0;
}

/* Responsividade */
@media (max-width: 900px) {
    .lb-explica-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "principal"
            "card1"
            "card2"
            "card3";
    }
}

/* =========================================
   INSTITUCIONAL
   ========================================= */

.lb-institucional {
    padding: 60px 40px;
    max-width: 1300px;
    margin: auto;
}

.lb-subtitulo {
    font-size: 22px;
    color: #0a4fbf;
    margin-bottom: 5px;
    font-weight: 600;
}

.lb-titulo {
    font-size: 40px;
    font-weight: 800;
    color: #0a2a66;
    margin-bottom: 15px;
}

.lb-descricao {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
}

.lb-galeria {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.lb-img-card {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    cursor: pointer;
}

.lb-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.lb-img-card:hover img {
    filter: brightness(60%);
    transform: scale(1.05);
}

.lb-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    opacity: 0;
    transition: 0.4s ease;
    pointer-events: none;
    text-shadow: 0px 3px 10px rgba(0, 0, 0, 0.7);
}

.lb-img-card:hover .lb-overlay-text {
    opacity: 1;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .categoria-toggle {
        font-size: 1.2rem;
        padding: 18px;
    }

    /* Banner Mobile */
    .banner {
        height: auto;
        min-height: 90vh;
        padding: 80px 20px 40px;
        background-position: 70% center;
        /* Adjust focus */
        text-align: center;
        flex-direction: column;
        justify-content: center;
    }

    .banner-content {
        margin: 0 auto;
        padding: 0;
    }

    .banner h1 {
        font-size: 32px;
    }

    .banner p {
        font-size: 16px;
    }

    .btns {
        justify-content: center;
        flex-direction: column;
    }

    /* Slider Mobile */
    .ype-slider {
        flex-direction: column;
        height: auto;
        gap: 15px;
        overflow: visible;
    }

    /* On mobile, show cards as a vertical stack or simple scroll */
    .ype-slider-wrapper {
        display: block;
        /* Remove flex centering */
        overflow-x: hidden;
    }

    .ype-card {
        width: 100%;
        height: 350px;
        opacity: 1;
        filter: none;
        margin-bottom: 20px;
    }

    .ype-content {
        opacity: 1;
        /* Always show text on mobile */
        bottom: 15px;
        left: 15px;
        right: 15px;
    }

    .ype-arrow {
        display: none;
        /* Hide arrows on mobile stack */
    }

    /* Product Grid Mobile */
    .prod-grid {
        grid-template-columns: 1fr;
        /* 1 column */
        width: 90%;
    }

    /* LB Explica Grid Mobile */
    .lb-explica-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "principal"
            "card1"
            "card2"
            "card3";
    }

    .lb-card-principal {
        min-height: 400px;
        /* Ensure main card has height */
    }
}