/* Variáveis de Cores (Cores profissionais e que transmitem energia) */
:root {
    --primary-color: #004AAD; /* Azul Profissional/Trust */
    --secondary-color: #f8df34; /* Amarelo (Destaque/Energia) */
    --background-light: #f4f4f4;
    --text-dark: #333;
    --text-light: #fff;
    --whatsapp-green: #25d366; /* Verde WhatsApp */
    --whatsapp-hover: #128c7e;
    --card-dark-blue: #2c3e50; /* Cor escura para 60ah */
}

html {
  color-scheme: light;
  background-color: #fff;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--text-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografia e Títulos */
h2, h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

/* --- Header --- */
header {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 120px; /* ajuste conforme desejar (ex: 40–60px) */
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }
}


.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li a {
    text-decoration: none;
    color: var(--primary-color);
    padding: 10px 15px;
    display: block;
    transition: color 0.3s;
}

.nav-list li a:hover {
    color: var(--background-light);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tel-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: 5px 10px;
}

.whatsapp-btn {
    background-color: var(--whatsapp-green); /* Verde WhatsApp */
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.whatsapp-btn:hover {
    background-color: var(--whatsapp-hover);
}

/* Menu Mobile Toggle (Escondido em desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
    background-image: url('img/banner-bateria-lokal-lagoa-santa.webp'); /* Adicione uma imagem de fundo relacionada a baterias */
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay escuro */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--text-light);
}

.hero-features {
    display: flex;
    flex-direction: column; /* Um abaixo do outro */
    align-items: flex-start; /* Alinha tudo à esquerda */
    text-align: left; /* Garante o texto alinhado à esquerda */
    gap: 10px;
    margin: 20px auto;
    font-size: 1.1em;
    width: fit-content; /* evita que ocupe a tela toda */
}

.hero-features i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.cta-button {
    display: inline-block;
    background-color: #e03232;
    color: var(--background-light);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: opacity 0.3s;
}

.cta-button:hover {
    opacity: 0.9;
    background-color: var(--primary-color);
    color: var(--background-light);
}

@media (max-width:768px) {
	.hero{
		height: 660px;
		background-image: url(img/banner-bateria-lokal-lagoa-santa.web.webp);
	}
}


/* --- Banner Promocional --- */
.promo-banner {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: block;
}

.banner-promocional {
    width: 100%;
    height: auto;
    max-height: 320px; /* altura máxima em desktop */
    object-fit: cover;
    object-position: center;
    display: block;
    transition: max-height 0.3s ease;
}

/* Banner mais fino em celular */
@media (max-width: 768px) {
    .banner-promocional {
        max-height: 350px; /* reduzido para celular */
    }
}



/* --- Sections Gerais --- */
section {
    padding: 60px 0;
}

section:nth-child(even) {
    background-color: var(--background-light);
}

/* --- Produtos --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
    align-items: stretch; 
}

.product-card {
    background: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.product-card i {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-card h4 {
    margin: 10px 0;
    font-size: 1.4em;
    color: var(--text-dark);
}

.product-card p {
    flex-grow: 1; 
    margin-bottom: 20px; 
}

.card-btn {
    display: block; /* Mudar para block para que o margin: auto funcione */
    background-color: var(--whatsapp-green);
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    width: 100%;
    max-width: 180px;
    /* Adicionar margem horizontal automática para centralizar */
    margin: 10px auto 0 auto; /* Ajuste a margem superior (10px) conforme necessário */
}



/* --- Marcas Parceiras --- */
.brands-section {
    padding: 40px 0;
    text-align: center;
    background-color: var(--text-light);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 10px; 
    margin-top: 30px;
    align-items: center;
    justify-items: center;
}

.brand-item {
    height: 80px; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: filter 0.3s, opacity 0.3s;
}

.brand-item img:hover {
    filter: grayscale(0%); /* Coloridas no hover */
    opacity: 1;
}


/* Responsivo para telas médias e menores */
@media (max-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr) !important; /* 3 por linha em tablets */
    }
}

@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 por linha em celulares */
    }
}

@media (max-width: 480px) {
    .brands-grid {
        grid-template-columns: 1fr !important; /* 1 por linha em celulares bem pequenos */
    }
}


/* ---------------------------------- */
/* CARROSSEL DE BATERIAS (versão ajustada) */
/* ---------------------------------- */

.titulo-sessao {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 5px solid var(--secondary-color);
    text-align: left;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    padding: 0 20px;
}

/* Container principal */
.carrossel-container {
    position: relative;
    padding: 0 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Linha dos cards */
.carrossel-itens {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 10px 0;
}
.carrossel-itens::-webkit-scrollbar {
    display: none;
}

/* Card de produto */
.card-produto {
    flex: 0 0 280px;
    min-width: 280px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    transition: transform 0.2s ease-in-out;
}
.card-produto:hover {
    transform: translateY(-4px);
}

/* Imagem padronizada */
.produto-imagem {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 12px;
}

/* Bloco com garantia e Ah */
.produto-info-basica {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.produto-ah {
    flex: 1;
    background: var(--card-dark-blue);
    color: #fff;
    font-weight: bold;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.produto-garantia {
    flex: 1.2;
    background: var(--whatsapp-green);
    color: #fff;
    font-weight: bold;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

/* Nome do produto*/
.produto-nome {
    font-size: 1em;
    font-weight: 600;
    color: var(--text-dark);
    margin: 8px 0;
    min-height: 72px; /* Aumentado para garantir que o nome do produto ocupe 3 linhas, se necessário, alinhando melhor o bloco de preço abaixo. */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Certifique-se de que não haja quebras de linha indesejadas que afetem o cálculo */
}

/* Preço ou placeholder */
.preco-placeholder {
    font-size: 1em;
    font-weight: bold;
    color: var(--primary-color);
    margin: 8px 0;
    padding: 6px 10px;
    border: 2px dashed var(--secondary-color);
    border-radius: 5px;
    width: 90%;
    text-transform: uppercase;
}

/* Texto pequeno (ex: troca de bateria) */
.produto-detalhe-troca {
    color: #777;
    font-size: 0.8em;
    margin-bottom: 10px;
    font-style: italic;
}

/* Botão WhatsApp */
.botao-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--whatsapp-green);
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.3s;
    margin-top: auto;
}
.botao-whatsapp i {
    margin-right: 8px;
}
.botao-whatsapp:hover {
    background: var(--whatsapp-hover);
}

/* Setas laterais */
.seta {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #ccc;
    color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.seta.esquerda {
    left: 0;
}
.seta.direita {
    right: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .carrossel-container {
        padding: 0 30px;
    }
    .card-produto {
        flex: 0 0 230px;
        min-width: 230px;
    }
    .produto-imagem {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .carrossel-container {
        padding: 0 20px;
    }
    .card-produto {
        flex: 0 0 180px;
        min-width: 180px;
        padding: 10px;
    }
    .produto-imagem {
        height: 140px;
    }
}



/* --- Diferenciais --- */
.diff-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 30px;
    text-align: center;
}

.diff-item {
    flex-basis: 30%;
    padding: 20px;
    background: var(--text-light);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.diff-item i {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.diff-item h4 {
    color: var(--primary-color);
    margin: 5px 0;
}


/* --- Seção de Chamada para Ação (CTA) --- */
.cta-section {
    background-color: var(--primary-color)!important; 
    padding: 60px 0;
    position: relative;
    overflow: hidden; 
    color: var(--text-light); 
}

.cta-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-text {
    flex: 1;
    max-width: 50%;
    z-index: 2;
}

.small-title {
    font-size: 2.0em;
    color: #d4d0cd; 
    margin-bottom: 5px;
}

.cta-text h2 {
    font-size: 2.8em;
    color: var(--secondary-color); 
    text-align: left;
    margin-bottom: 20px;
}

.cta-text p {
    color: var(--text-light); 
    margin-bottom: 15px;
    line-height: 1.8;
}

.cta-phones {
    margin: 25px 0;
}

.phone-number {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-light); 
}

.phone-number i {
    color: var(--secondary-color); 
    margin-right: 10px;
}

.cta-button-link {
    display: inline-block;
    background-color: var(--secondary-color); 
    color: var(--primary-color); 
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.cta-button-link:hover {
    background-color: #e03232;
    color: var(--background-light);
}


/* --- Estilo da Imagem / Mockup (Lado Direito) --- */
.cta-image {
    flex: 1;
    max-width: 50%;
    background: transparent;
    height: 400px;
    position: relative;
}

.phone-mockup {
    background: var(--text-light); 
    color: var(--primary-color); 
    border-radius: 20px;
    width: 200px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 0 0 10px #333; 
    
    position: absolute;
    right: 50px; 
    top: 50%;
    transform: translateY(-50%);
}

.phone-mockup i {
    margin-bottom: 10px;
    color: var(--primary-color); 
}

.cta-phone-on-mockup {
    font-size: 0.9em;
    font-weight: normal;
}


/* --- Quem Somos / About --- */
.about {
    text-align: center;
}

.service-area {
    margin-top: 30px;
    background-color: var(--text-light);
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    display: inline-block;
}

.service-area h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-area ul {
    list-style: none;
    text-align: left;
}

.service-area ul li {
    margin: 5px 0;
}

.service-area ul li i {
    color: var(--secondary-color);
    margin-right: 8px;
}

/* Sessão de Depoimentos */
.testimonials-section {
    background-color: #111; 
    color: #fff;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.testimonials-section h2 {
    color: #f9c72a; 
    font-size: 2rem;
    margin-bottom: 50px;
    font-weight: 600;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    /* Linha 'align-items: start' removida para que os cartões estiquem e tenham a mesma altura */
}

.testimonial {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
    
    /* NOVO: Usa Flexbox para alinhamento vertical */
    display: flex;
    flex-direction: column;
}

.testimonial .author {
    margin-top: 15px;
    color: #f9c72a;
    font-weight: 600;
    
    /* NOVO: Empurra o elemento para o fundo do contêiner flexível */
    margin-top: auto; 
    /* Coloque um espaçamento em cima se precisar de mais distância do texto: */
    padding-top: 15px; 
}

.testimonials-section::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 35%;
    height: 100%;
    background: url("https://via.placeholder.com/400x400.png") center/cover no-repeat;
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
}

/* --- Contato --- */
.contact {
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-info > div {
    flex-basis: 30%;
    min-width: 250px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: left;
}

.contact-info h4 {
    text-align: left;
    color: var(--primary-color);
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.whatsapp-footer-btn {
    display: inline-block;
    background-color: var(--whatsapp-green);
    color: var(--text-light);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 40px;
    font-size: 1.1em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* --- Rodapé --- */
footer {
  background-color: #111;
  padding: 15px 25px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  flex-wrap: wrap;
}

.footer-copy {
  text-align: center;
  flex: 1;
}

.footer-copy a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-copy a:hover {
  color: #00c4b4;
}

.avant-link {
  color: #00c4b4 !important;
  font-weight: 600;
}

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.icone-social {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.icone-social:hover {
  transform: scale(1.15);
  filter: brightness(0) invert(0.6) sepia(1) saturate(5) hue-rotate(140deg);
}

/* Responsivo */
@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    gap: 10px;
  }
  .footer-social {
    justify-content: center;
  }
}

/* FLOATING BUTTONS */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}
.floating-buttons a {
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.floating-buttons a.instagram-btn {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.floating-buttons a:hover {
    transform: scale(1.1);
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.3);
}

/* ---------------------------------- */
/* RESPONSIVIDADE            */
/* ---------------------------------- */

@media (max-width: 900px) {
    .header-contact {
        display: none; 
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; 
        left: 0;
        background-color: var(--text-light);
        box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--background-light);
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    header .container {
        padding: 10px 20px;
    }

    .main-nav {
        flex-grow: 1;
        display: flex;
        justify-content: flex-end;
    }

    /* Hero */
    .hero {
        padding: 60px 20px;
    }
    
    .hero h2 {
        font-size: 2em;
    }

    .hero-features {
        flex-direction: column;
        gap: 10px;
    }

    /* Marcas */
     .brands-grid {
        grid-template-columns: repeat(3, 1fr); 
    }

    /* Carrossel */
    .carrossel-container {
        padding: 0 10px; /* Reduz o padding para ganhar espaço */
    }
    .seta {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    .seta.esquerda { left: -5px; }
    .seta.direita { right: -5px; }

    /* Diferenciais */
    .diff-grid {
        flex-direction: column;
    }

    .diff-item {
        flex-basis: 100%;
    }

    /* Responsividade para CTA */
    .cta-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .cta-text {
        max-width: 100%;
        text-align: center;
    }
    
    .cta-text h2 {
        text-align: center;
    }

    .cta-phones {
        text-align: center;
    }

    .cta-image {
        display: none; 
    }

    /* Contato */
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .contact-info > div {
        min-width: 100%;
    }

    /* Rodapé */
    footer .container {
        flex-direction: column;
        text-align: center;
    }
}