/* ---- Reset, Variáveis e Estilos Globais ---- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --cor-primaria: #F37021;
    --cor-secundaria: #FDB913;
    --cor-texto: #333333;
    --cor-fundo-geral: #FFFFFF;
    --cor-fundo-claro: #f8f9fa;
    --cor-branca: #ffffff;
    --cor-whatsapp: #25D366;
    --sombra-suave: 0 8px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    background-color: var(--cor-fundo-geral);
    color: var(--cor-texto);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Cabeçalho ---- */
.header {
    background-color: var(--cor-primaria);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 65px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.main-nav a {
    color: var(--cor-branca);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding-bottom: 5px;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--cor-branca);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* ---- Seção Hero e Padrão ---- */
#hero {
    background-color: var(--cor-secundaria);
    color: var(--cor-texto);
    text-align: center;
    padding: 7rem 0;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
}

.section {
    padding: 6rem 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--cor-primaria);
    font-weight: 600;
}

.section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.bg-light {
    background-color: var(--cor-fundo-claro);
}

/* ---- Estilos Gerais para Slideshows ---- */
.splide__arrow {
    background-color: var(--cor-primaria);
    opacity: 0.8;
}

.splide__arrow svg {
    fill: var(--cor-branca);
}

.splide__pagination__page {
    background-color: rgba(243, 112, 33, 0.4);
}

.splide__pagination__page.is-active {
    background-color: var(--cor-primaria);
}

/* ---- Seção Garantia e Atuação ---- */
#garantia-atuacao {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

#garantia-atuacao .section-title {
    margin-bottom: 1rem;
}

#garantia-atuacao .splide {
    max-width: 650px;
    margin: 0 auto;
}

#garantia-atuacao .splide__slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--sombra-suave);
}

/* ---- Seção de Produtos (Slideshow) ---- */
#produtos .section-title {
    margin-bottom: 3rem;
}

#produtos .splide__track {
    padding: 1rem 0;
}

.produto-card {
    cursor: pointer;
    background-color: var(--cor-branca);
    border-radius: 12px;
    box-shadow: var(--sombra-suave);
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.produto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .1);
}

.produto-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.produto-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cor-primaria);
}

/* ---- Seção de Vídeos (LAYOUT VERTICAL) ---- */
#videos .section-title {
    margin-bottom: 3rem;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.video-card {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    aspect-ratio: 9/16;
}

.video-card .video-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 12px 15px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0));
    color: var(--cor-branca);
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
}

.video-card .video-title .fa-film {
    margin-right: 8px;
}

.video-card img {
    z-index: 1;
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.video-card:hover img {
    transform: scale(1.05);
}

.video-card .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(243, 112, 33, .8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: background-color .3s ease;
    pointer-events: none;
}

.video-card:hover .play-icon {
    background-color: rgba(243, 112, 33, 1);
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* ---- Seção Padrão de Energia ---- */
#padrao-energia .container {
    max-width: 1100px;
}

.padrao-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    text-align: left;
}

.padrao-imagem {
    flex: 1 1 45%;
}

.padrao-imagem img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--sombra-suave);
}

.padrao-texto {
    flex: 1 1 55%;
}

.padrao-texto h2 {
    font-size: 2.2rem;
    color: var(--cor-primaria);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.padrao-texto p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.padrao-texto .btn-whatsapp {
    display: inline-flex;
}

/* ---- Seção de Marcas (Slideshow) ---- */
#marcas .section-title {
    margin-bottom: 3rem;
}

#marcas .splide__track {
    cursor: grab;
}

#marcas .splide__slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.marca-link {
    text-decoration: none;
}

.marca-item {
    background-color: var(--cor-fundo-claro);
    border-radius: 12px;
    transition: transform .3s ease, box-shadow .3s ease;
    height: 120px;
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.marca-link:hover .marca-item {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.marca-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 10px;
}

/* ---- Seção Pilares ---- */
#pilares .section-title {
    margin-bottom: 3rem;
}

.pilares-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pilar-card {
    text-align: center;
}

.pilar-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--sombra-suave);
    margin-bottom: 1.5rem;
}

.pilar-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: .5rem;
    color: var(--cor-primaria);
}

.pilar-description {
    color: #6c757d;
    font-size: 1.1rem;
}

/* ---- Outras seções ---- */
#missao p,
#visao p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.8;
}

#contato {
    padding-bottom: 4rem;
}

.contact-info {
    margin-bottom: 2.5rem;
    color: #6c757d;
    font-size: 1.1rem;
}

.contact-info .fa-map-marker-alt {
    color: var(--cor-primaria);
    margin-right: 8px;
}

.contact-info .address {
    font-weight: 600;
    color: var(--cor-texto);
    margin-top: .5rem;
}

.btn-whatsapp {
    background-color: var(--cor-whatsapp);
    color: var(--cor-branca);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all .3s ease;
    box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
}

.btn-whatsapp:hover {
    background-color: #22c55e;
    transform: translateY(-3px);
    box-shadow: 0 7px 25px rgba(37, 211, 102, .5);
}

.btn-whatsapp .fab {
    font-size: 1.6rem;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--cor-whatsapp);
    color: var(--cor-branca);
    border-radius: 50%;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all .3s ease-in-out;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

/* ---- Rodapé ---- */
.footer {
    background-color: var(--cor-texto);
    color: #adb5bd;
    text-align: center;
    padding: 2.5rem 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-address,
.footer-copyright,
.footer-social {
    flex: 1 1 300px;
}

.footer-address {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

.footer-copyright {
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-social a {
    color: var(--cor-branca);
    font-size: 1.8rem;
    text-decoration: none;
    transition: color .3s ease, transform .3s ease;
}

.footer-social a:hover {
    color: var(--cor-primaria);
    transform: scale(1.1);
}

/* ---- Modal de Produtos ---- */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.modal-container.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--cor-fundo-geral);
    padding: 2rem 3rem;
    border-radius: 12px;
    max-width: 90vw;
    width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(.95);
    transition: transform .3s ease;
}

.modal-container.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #ccc;
    cursor: pointer;
    transition: color .3s ease;
}

.modal-close:hover {
    color: var(--cor-primaria);
}

#modalTitle {
    margin-bottom: 2rem;
}

.products-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-detail-item {
    text-align: center;
}

.product-detail-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--sombra-suave);
}

.product-detail-item h3 {
    font-size: 1.1rem;
    color: var(--cor-texto);
    font-weight: 500;
}

/* ---- Responsividade ---- */
@media (max-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .pilares-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .pilares-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 2rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    .footer-address,
    .footer-copyright,
    .footer-social {
        justify-content: center;
        text-align: center;
    }
    .padrao-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .section {
        padding: 4rem 0;
    }
    .pilares-grid,
    .products-detail-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }
}