/* =================================
   IMPORTAÇÃO DE FONTES (Poppins + Open Sans)
   ================================= */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Poppins:wght@600;700;800&display=swap');

/* =================================
   VARIÁVEIS GLOBAIS (ELITE CAPS)
   ================================= */
:root {
    /* Paleta Elite Caps (Preto + Vermelho) */
    --cor-primaria: #1a1a1a;        /* Preto principal (do logo) */
    --cor-acento: #1a1a1a;         /* PRETO (ALTERADO) */
    --cor-primaria-hover: #444444;
    --cor-preto: #1a1a1a;
    
    --cor-fundo: #ffffff;
    
    /* Tipografia (Poppins + Open Sans) */
    --fonte-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
    --fonte-body: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
    
    /* Métricas */
    --border-radius: 10px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

/* =================================
   CONFIGURAÇÕES GLOBAIS
   ================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fonte-body);
    background-color: var(--cor-fundo);
    color: var(--cor-texto-principal);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 70px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--cor-preto);
    font-family: var(--fonte-heading);
}

h1 { font-size: 3rem; font-weight: 800; }
h2 { 
    font-size: 2.2rem; 
    text-align: center; 
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
h3 { font-size: 1.4rem; font-weight: 700; }

p {
    margin-bottom: 1rem;
    color: var(--cor-texto-secundario);
}

img, video {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--cor-primaria);
    text-decoration: none;
    transition: var(--transition-fast);
}

/* =================================
   HEADER (MENU DE NAVEGAÇÃO)
   ================================= */
header {
    background-color: var(--cor-fundo);
    border-bottom: 1px solid var(--cor-borda);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    padding: 10px 0; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

header.scrolled .logo img {
    max-height: 35px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
}
.logo img {
    max-height: 45px;
    width: auto;
    display: block;
    transition: max-height 0.3s ease;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
}

nav a {
    padding: 10px 15px;
    font-weight: bold;
    color: var(--cor-texto-secundario);
    border-radius: var(--border-radius);
    font-family: var(--fonte-heading);
}

nav a:hover {
    background-color: var(--cor-fundo-secundaria);
    color: var(--cor-primaria);
}

nav a.active {
    background-color: var(--cor-acento); /* <-- MUDADO */
    color: var(--cor-fundo);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--cor-preto);
}

/* =================================
   BOTÕES (MONOCROMÁTICOS)
   ================================= */
.btn {
    display: inline-block;
    padding: 14px 30px;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition-fast);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn-primario {
    background-color: var(--cor-acento); /* <-- MUDADO */
    color: var(--cor-fundo);
}
.btn-primario:hover {
    background-color: var(--cor-primaria-hover); /* <-- MUDADO (era #a93226) */
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-secundario {
    background-color: var(--cor-fundo);
    color: var(--cor-preto);
    border-color: var(--cor-borda);
}
.btn-secundario:hover {
    background-color: var(--cor-fundo-secundaria);
    border-color: #ccc;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}


/* =================================
   PÁGINA INICIAL (index.html)
   ================================= */

/* NOVO: Hero Banner (baseado na imagem) */
.hero-novo {
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
}

.hero-banner {
    display: grid;
    grid-template-columns: 1fr;
    background-color: var(--cor-fundo);
    border: 1px solid var(--cor-borda);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow-hover);
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

.hero-banner-content {
    padding: 20px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 1; /* <-- ALTERADO AQUI */
}

.hero-banner-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 800;
}

.hero-banner-content h1 .highlight {
    color: var(--cor-primaria);
}

.hero-banner-content p {
    font-size: 1.1rem;
    color: var(--cor-texto-secundario);
    margin-top: 15px;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-buttons .btn {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-banner-image {
    min-height: 300px;
    width: 100%;
    overflow: hidden;
    order: 2; /* <-- ALTERADO AQUI */
}

.hero-banner-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* <--- Mude para 'center' */
}

/* Layout de 2 colunas para desktop */
@media (min-width: 992px) {
    .hero-banner {
        grid-template-columns: 1.1fr 0.9fr;
    }

    .hero-banner-content {
        padding: 40px 60px; /* Ajustado para ser menor */
        order: 1;
    }

    .hero-banner-image {
        min-height: 420px; /* Ajustado para ser menor */
        order: 2;
    }

    section {
        /* Reduz o espaçamento vertical gigante das seções */
        padding: 40px 0;
    }

    .container {
        /* Reduz as margens laterais para telas menores */
        padding: 0 15px;
    }

    /* --- Página Inicial (index.html) --- */

    .hero-banner-content {
        /* Reduz o padding do banner para o texto não ficar apertado */
        padding: 25px 15px;
    }

    .hero-buttons {
        /* Força os botões do banner a ficarem um sobre o outro */
        flex-direction: column;
    }

    .hero-buttons .btn {
        /* Faz os botões ocuparem 100% da largura e centraliza o texto */
        width: 100%;
        justify-content: center;
    }
    
    .video-item {
        /* Garante que o h3 do vídeo não fique colado */
        text-align: center;
    }

    /* --- Página Como Pedir (como-pedir.html) --- */

    .info-section {
        /* Reduz o padding da seção cinza */
        padding: 30px 15px;
    }

    .info-item {
        /* Reduz o padding dos 4 cards de informação */
        padding: 25px;
    }

    /* --- Página Contato (contato.html) --- */
    
    .contact-info {
        /* Reduz o padding da caixa de informações de contato */
        padding: 25px;
    }

}

/* Ajuste fino para botões no mobile */
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    .hero-buttons .btn {
        justify-content: center;
        width: 100%;
    }
}

/* Seção Vantagens */
.vantagens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.vantagem-item i {
    font-size: 3rem;
    color: var(--cor-acento);
    margin-bottom: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.vantagem-item:hover i {
    transform: scale(1.15) rotate(-10deg);
}

/* Seção "Veja em Ação" (Vídeos) */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.video-item video {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: block;
}

/* Seção Como Funciona */
.passos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
}

.passo-item {
    padding: 20px;
}
.passo-item .numero {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--cor-acento);
    background-color: var(--cor-fundo-secundaria);
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    border: 1px solid var(--cor-borda);
}

/* Seção Destaques com fundo cinza claro */
.destaques {
    background-color: var(--cor-fundo-secundaria);
}
.link-centralizado {
    text-align: center;
    margin-top: 30px;
}

/* =================================
   CARDS
   ================================= */
.item-card {
    background-color: var(--cor-fundo);
    border: 1px solid var(--cor-borda);
    border-radius: var(--border-radius);
    overflow: hidden; 
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    height: 100%;
    position: relative;
}

.item-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.4); /* Escurece a imagem para o texto aparecer */
}
.item-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #f0f0f0;
    display: block;
    transition: transform var(--transition-medium);
}

.item-card:hover img {
    transform: scale(1.05);
}

.item-card-content {
    padding: 25px;
}

.item-card h3 {
    margin-top: 0;
    position: relative;
}

.item-card h3::after {
    content: '\f061';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--cor-primaria);
    margin-left: 10px;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-fast);
}

.item-card:hover h3::after {
    opacity: 1;
    transform: translateX(0);
}

.item-card p,
.item-card ul {
    text-align: left;
    color: var(--cor-texto-secundario);
    font-size: 0.95rem;
}

.item-card ul {
    margin-top: 15px;
    padding-left: 20px;
}
.item-card li {
    margin-bottom: 5px;
}


/* =================================
   PÁGINA PRODUTOS (produtos.html)
   ================================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.custom-accordion {
    width: 100%;
    margin-top: 40px;
    border: 1px solid var(--cor-borda);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--cor-borda);
}
.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    background-color: var(--cor-fundo-secundaria);
    border: none;
    padding: 18px 25px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #f0f0f0;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}
.accordion-header h3 i {
    color: var(--cor-primaria);
    width: 20px;
}

.accordion-header .icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--cor-texto-secundario);
    transition: transform 0.4s ease;
}

.accordion-header.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background: var(--cor-fundo);
    padding: 0 25px;
}

.swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 40px;
}
.swiper-slide {
    height: auto;
    padding: 5px;
}
.swiper-button-next,
.swiper-button-prev {
    color: var(--cor-primaria);
    transform: scale(0.8);
}
.swiper-button-next:after,
.swiper-button-prev:after {
    font-weight: bold;
}


/* =================================
   PÁGINA COMO PEDIR (como-pedir.html)
   ================================= */
.info-section {
    background-color: var(--cor-fundo-secundaria);
    border-radius: var(--border-radius);
    padding: 50px;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.info-item {
    background: var(--cor-fundo);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--cor-borda);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.info-item i {
    font-size: 2.5rem;
    color: var(--cor-acento);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.info-item:hover i {
    transform: scale(1.15) rotate(-5deg);
}

.info-item h3 {
    font-size: 1.2rem;
}


/* =================================
   PÁGINA CONTATO (contato.html)
   ================================= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr 1.5fr;
    }
}

.contact-info {
    background-color: var(--cor-fundo-secundaria);
    padding: 30px;
    border-radius: var(--border-radius);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.contact-info-item i {
    font-size: 1.5rem;
    color: var(--cor-primaria);
    width: 30px;
    text-align: center;
}
.contact-info-item a {
    color: var(--cor-texto-secundario);
    font-weight: bold;
    font-family: var(--fonte-heading);
}
.contact-info-item a:hover {
    color: var(--cor-primaria);
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--cor-texto-secundario);
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid var(--cor-borda);
    border-radius: var(--border-radius);
    background-color: #fdfdfd;
    font-family: var(--fonte-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
}


/* =================================
   FOOTER (RODAPÉ) - ATUALIZADO
   ================================= */
footer {
    background-color: var(--cor-preto);
    color: #aaa;
    padding: 40px 0;
    margin-top: 60px;
}

/* 1. Modifica o container principal do footer */
.footer-content {
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap; /* Permite quebrar a linha em telas pequenas */
    justify-content: space-between; /* Itens nas extremidades */
    align-items: center;
    gap: 20px; /* Espaço entre os grupos */
}

/* 2. Grupo da imagem e texto (AGORA EMPILHADO) */
.footer-info {
    display: flex;
    flex-direction: column; /* EMPILHA OS ITENS */
    align-items: center;   /* CENTRALIZA HORIZONTALMENTE */
    text-align: center;    /* CENTRALIZA O TEXTO */
    gap: 15px; /* Espaço entre logo, frase e copyright */
    flex-grow: 1; 
    justify-content: center; 
}

/* 3. Estilo da imagem (continua o mesmo) */
.footer-logo-lateral {
    max-width: 100px; /* <-- Aumentado */
    height: auto;
    opacity: 1; /* <-- Removida opacidade */
}

/* 4. NOVA CLASSE para a frase (tagline) */
.footer-tagline {
    font-size: 0.9rem;
    color: #ccc; /* Cor mais clara */
    max-width: 400px; /* Limita a largura */
    line-height: 1.5;
    margin: 0;
}

/* 5. Ajustes para o texto de copyright */
.footer-info p {
    margin: 0; /* Remove margem padrão */
}

/* 6. Estilos para links/ícones sociais (AGORA FLEX) */
.footer-social {
    margin-top: 0;
    flex-shrink: 0;
    display: flex; /* Adicionado */
    align-items: center; /* Adicionado */
    justify-content: center; /* Adicionado */
    gap: 10px; /* Adicionado (substitui a margem no 'a') */
}

.footer-social a {
    color: #aaa;
    font-size: 1.5rem;
    /* margin: 0 10px; */ /* Removido (substituído por 'gap') */
    transition: var(--transition-fast);
}
.footer-social a:hover {
    color: var(--cor-fundo);
}

/* 7. Ajuste para o alinhamento em telas pequenas */
@media (max-width: 768px) {
    .footer-content {
        justify-content: center; /* Centraliza tudo no mobile */
        text-align: center;
    }
    
    /* .footer-info { flex-direction: column; } -- REMOVIDO (agora é padrão) */

    /* Regra atualizada para o mobile */
    .footer-social {
        flex-direction: column; /* Empilha botão e ícones */
        width: 100%;
        gap: 15px;
    }

    .footer-social .btn {
        margin-top: 15px; 
        width: 90%; /* Faz o botão do 'contato' ficar largo */
    }
}


/* =================================
   ANIMAÇÃO DE SCROLL
   ================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.visible,
.stagger-children > *.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =================================
   RESPONSIVIDADE (MOBILE)
   ================================= */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .hero-banner-content h1 {
        font-size: 2.2rem; /* Ajuste específico para o banner no mobile */
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .logo img {
        max-height: 30px;
    }
    
    header.scrolled .logo img {
        max-height: 28px;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--cor-fundo);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    nav.active ul {
        display: flex;
    }
    
    nav.active a {
        font-size: 1.5rem;
    }

    .vantagens-grid,
    .passos-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-section {
        padding: 30px;
    }
}

/* =================================
   BOTÃO FLUTUANTE WHATSAPP
   ================================= */
.whatsapp-flutuante {
    position: fixed;         /* Fica fixo na tela */
    width: 60px;             /* Largura */
    height: 60px;            /* Altura */
    bottom: 25px;            /* Distância do fundo */
    right: 25px;             /* Distância da direita */
    background-color: #25D366; /* Cor verde do WhatsApp */
    color: #FFF;              /* Cor do ícone (branco) */
    border-radius: 50%;      /* Deixa redondo */
    display: flex;           /* Para centralizar o ícone */
    align-items: center;     /* Centraliza verticalmente */
    justify-content: center; /* Centraliza horizontalmente */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Sombra suave */
    z-index: 1000;           /* Fica por cima de tudo */
    transition: 0.3s ease;   /* Animação suave */
}

.whatsapp-flutuante i {
    font-size: 2.5rem;   /* Tamanho do ícone */
    color: #FFF;         /* Garante que o ícone é branco */
}

.whatsapp-flutuante:hover {
    transform: scale(1.1); /* Aumenta um pouco ao passar o mouse */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background-color: #128C7E; /* Verde mais escuro no hover */
}

/* ==================================================
   NOVO: CARD OVERLAY DE ORÇAMENTO (Híbrido: Hover + JS)
   ================================================== */
   
/* 1. O Overlay escuro (Fundo) */
.item-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 250px; /* Altura exata da imagem (definida em .item-card img) */
    background-color: rgba(26, 26, 26, 0.85); /* Fundo escuro translúido */
    
    opacity: 0; /* Começa invisível */
    
    /* A transição agora é mais longa para o fade-out do JS */
    transition: opacity 0.6s ease; 
    
    pointer-events: none; /* Garante que o card continua clicável */
    z-index: 1; /* Fica acima da imagem */
}

/* 2. O Texto */
.item-card::after {
    content: 'Clique aqui para fazer orçamento desse modelo'; 
    font-family: var(--fonte-heading);
    font-weight: 600;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 250px; /* Mesma altura da imagem */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.1rem;
    padding: 20px;
    line-height: 1.5;
    
    opacity: 0; /* Começa invisível */
    
    /* A transição também é mais longa e tem um delay para aparecer */
    transition: opacity 0.6s ease 0.1s;
    
    pointer-events: none;
    z-index: 2; /* Fica acima do overlay escuro */
}

/* 3. Animação no Hover (para Desktops) */
/* Usamos @media (hover: hover) para aplicar isso só em dispositivos com mouse */
@media (hover: hover) {
    .item-card:hover::before,
    .item-card:hover::after {
        opacity: 1;
        transition-duration: 0.3s; /* Mais rápido no hover */
    }
}

/* 4. Classe de JS (para Mobile) */
/* Quando o JS adicionar esta classe, o overlay aparece */
.item-card.show-overlay::before,
.item-card.show-overlay::after {
    opacity: 1;
}
.hero-logo {
    max-width: 200px; /* <-- Ajuste este valor como desejar */
    width: 100%;      /* Garante que não ultrapasse o valor acima */
    align-self: center;
}