/* Reset Básico e Variáveis de Cor */
:root {
    --primary-color: #D32F2F; --secondary-color: #1A237E; --whatsapp-green: #25D366;
    --dark-bg-alt: #121212; --true-black-bg: #000000; --light-text: #FFFFFF; --dark-text: #333333;
    --title-color-on-dark: var(--light-text); --title-color-on-light: var(--secondary-color);
    --section-light-bg: #f8f9fa; --card-bg-light: #FFFFFF; --card-bg-on-dark: rgba(255, 255, 255, 0.05);
    --font-title: 'Montserrat', sans-serif; --font-body: 'Open Sans', sans-serif;
    --header-height-desktop: 80px; 
    --header-height-mobile: 60px; 
}
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
html { scroll-padding-top: var(--header-height-desktop); }
body { font-family: var(--font-body); line-height: 1.6; color: var(--dark-text); }
.container { max-width: 1100px; margin: auto; padding: 0 20px; overflow: hidden; }
h1, h2, h3 { font-family: var(--font-title); margin-bottom: 1rem; }
h1 { font-size: 2.8rem; } h2 { font-size: 2.2rem; text-align: center; } h3 { font-size: 1.5rem; }
p { margin-bottom: 0.8rem; } body a { color: var(--primary-color); text-decoration: none; }
body a:hover { color: #ff5c5c; } ul { list-style: none; } img { max-width: 100%; height: auto; }

#header {
    background: var(--dark-bg-alt); color: var(--light-text); 
    position: fixed; width: 100%; top: 0; left: 0; z-index: 1000; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    height: var(--header-height-desktop); display: flex; align-items: center;
}
#header nav { display: flex; justify-content: space-between; align-items: center; width: 100%; }
#logo-img { height: 50px; width: auto; }
.mobile-brand-name { display: none; color: var(--light-text); font-family: var(--font-title); font-size: 1.5rem; font-weight: 700; }
#header .nav-menu { display: flex; }
#header .nav-menu li a {
    color: var(--light-text); padding: 0.5rem 1rem; margin: 0 0.2rem;
    transition: color 0.3s ease, border-bottom 0.3s ease; border-bottom: 2px solid transparent;
}
#header .nav-menu li a:hover, #header .nav-menu li a.active-link { color: var(--primary-color); border-bottom: 2px solid var(--primary-color); }
.menu-toggle { display: none; color: var(--light-text); font-size: 1.8rem; cursor: pointer; }

#hero {
    min-height: 100vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center; position: relative;
    padding-top: var(--header-height-desktop);
}
.parallax-section {
    background-image: url('fundo01.jpg'); background-attachment: fixed; background-position: center; 
    background-repeat: no-repeat; background-size: cover;
}
#hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4); z-index: 1;
}
.hero-content-wrapper { position: relative; z-index: 2; text-align: center; width: 100%; padding: 20px; }
.frosted-glass-box {
    background-color: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px) saturate(120%); 
    -webkit-backdrop-filter: blur(10px) saturate(120%); padding: 2.5rem 2rem; border-radius: 15px; 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.1); 
    max-width: 550px; margin: auto;
}
.hero-static-logo { display: block; max-width: 120px; margin: 0 auto 1rem auto; }
#hero h1 { font-size: 2.8rem; color: var(--light-text); margin-bottom: 0.75rem; }
#hero .slogan { font-size: 1.5rem; color: #e0e0e0; margin-bottom: 2rem; font-weight: 600; }

.btn {
    display: inline-block; padding: 0.8rem 1.8rem; border: none; border-radius: 5px; cursor: pointer;
    font-family: var(--font-title); font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; text-align: center;
}
.btn-primary { background-color: var(--primary-color); color: var(--light-text); }
.btn-primary:hover { background-color: #A31F1F; transform: translateY(-2px); }
.btn-whatsapp {
    background-color: var(--whatsapp-green); color: var(--light-text) !important; display: inline-flex;
    align-items: center; justify-content: center; border-radius: 50px; padding: 0.8rem 1.8rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.btn-whatsapp i.fab.fa-whatsapp { margin-right: 0.7rem; font-size: 1.4em; }
.btn-whatsapp:hover { background-color: #1EBE58; transform: translateY(-2px) scale(1.03); box-shadow: 0 4px 10px rgba(37, 211, 102, 0.5); }
@keyframes pulseWhatsApp {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.btn-whatsapp.pulse-animation { animation: pulseWhatsApp 2s infinite ease-out; }

.section { padding: 60px 0; } 
.section h2 { margin-bottom: 3rem; }

.section-light { background-color: var(--section-light-bg); color: var(--dark-text); }
.section-light h2, .section-light h3 { color: var(--title-color-on-light); }
.section-light p { color: var(--dark-text); } .section-light a { color: var(--primary-color); }
.section-light a:hover { color: #A31F1F; }

.section-dark { background-color: var(--true-black-bg); color: var(--light-text); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--light-text); }
.section-dark p { color: #e0e0e0; } .section-dark a { color: var(--primary-color); }

.section-blue-navy { background-color: var(--secondary-color); color: var(--light-text); }
.section-blue-navy h2, .section-blue-navy h3, .section-blue-navy h4 { color: var(--light-text); }
.section-blue-navy p { color: var(--light-text); }
.section-blue-navy a { color: var(--primary-color); }
.section-blue-navy a:hover { color: #ff7070; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; text-align: center; }
.service-item {
    background: var(--card-bg-light); padding: 2rem; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease; color: var(--dark-text);
}
.service-item:hover { transform: translateY(-5px); box-shadow: 0 6px 12px rgba(0,0,0,0.1); }
.service-item h3 { color: var(--title-color-on-light); } 
.service-item i { color: var(--primary-color); margin-bottom: 1rem; }

#about-us.section-dark .about-us-text p { color: #e0e0e0; }
#about-us.section-dark .about-us-text strong { color: var(--primary-color); font-weight: 600; }
#about-us .about-us-content { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
#about-us .about-us-text { max-width: 800px; margin: 0 auto; }
#about-us .about-us-text p { font-size: 1.1rem; line-height: 1.7; margin-bottom: 1.5rem; text-align: justify; }

#brands.section-blue-navy h2 { color: var(--light-text); }
.brands-grid { display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; gap: 2rem; }
.brands-grid img {
    max-height: 168px; max-width: 252px; width: auto; object-fit: contain;
    filter: grayscale(0%) opacity(1); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.brands-grid img:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1); }

/* Seção Promoções */
#promotions.section-dark h2 { color: var(--light-text); margin-bottom: 2.5rem; }
.promotion-image-container { /* Herda .frosted-glass-box */
    padding: 1.5rem; max-width: 95%; margin: 0 auto; 
}
.promotion-image-container img { display: block; width: 100%; height: auto; border-radius: 8px; }
.promotion-cta { text-align: center; margin-top: 2rem; font-size: 1.1rem; }
.promotion-cta .btn { margin-left: 0.5rem; }

/* Por que escolher a Doutor Bateria? */
#why-us.section-blue-navy h2 { color: var(--light-text); }
.why-us-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
#why-us.section-blue-navy .why-us-item {
    background: rgba(255, 255, 255, 0.08); 
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); 
    padding: 1rem; display: flex; align-items: center;
}
#why-us.section-blue-navy .why-us-item h3 { color: var(--light-text); font-size: 1.1rem; margin-bottom: 0; }
#why-us.section-blue-navy .why-us-item i { font-size: 1.8rem; color: var(--primary-color); margin-right: 1rem; min-width: 30px; text-align: center; }

#testimonials.section-light .testimonial-slider {
    background: var(--dark-bg-alt); box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative; max-width: 700px; margin: auto; padding: 2rem; border-radius: 8px;
    text-align: center; overflow: hidden; min-height: 200px;
}
#testimonials.section-light .testimonial-slider p { color: #e0e0e0; }
#testimonials.section-light .testimonial-slider h4 { color: var(--primary-color); }
.testimonial-item { display: none; }
.testimonial-item.active { display: block; animation: fadeIn 0.5s ease-in-out; }
.testimonial-prev, .testimonial-next {
    position: absolute; top: 50%; transform: translateY(-50%); background: var(--primary-color);
    color: white; border: none; padding: 0.5rem 0.8rem; cursor: pointer; border-radius: 50%;
    font-size: 1rem; z-index: 10;
}
.testimonial-prev { left: 10px; } .testimonial-next { right: 10px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

#contact.section-blue-navy h2 { color: var(--light-text); }
.contact-info-wrapper { max-width: 600px; margin: 0 auto; text-align: center; }
#contact.section-blue-navy .contact-info h3 { color: var(--light-text); margin-bottom: 1.5rem; }
#contact.section-blue-navy .contact-info p {
    color: var(--light-text); margin-bottom: 1.2rem; display: flex; align-items: center;
    justify-content: center; font-size: 1.1rem;
}
#contact.section-blue-navy .contact-info p a { color: var(--light-text); text-decoration: underline; }
#contact.section-blue-navy .contact-info p a:hover { color: #f0f0f0; }
#contact.section-blue-navy .contact-info p i { color: var(--light-text); margin-right: 0.8rem; width: 25px; font-size: 1.3em; }
.contact-main-whatsapp { margin: 2rem 0 !important; }
.btn-large-whatsapp { padding: 1rem 2.5rem !important; font-size: 1.2rem !important; border-radius: 50px !important; }
.btn-large-whatsapp i.fab.fa-whatsapp { font-size: 1.6em !important; margin-right: 0.8rem !important; }
#contact.section-blue-navy .social-icons { margin-top: 1.5rem; }
#contact.section-blue-navy .social-icons a { color: var(--light-text); display: inline-flex; align-items: center; margin-right: 1rem; font-size: 1rem; transition: color 0.3s ease; text-decoration: none;}
#contact.section-blue-navy .social-icons a i { color: var(--light-text); font-size: 1.8rem; margin-right: 0.5rem; }
#contact.section-blue-navy .social-icons a .social-handle { color: var(--light-text); font-size: 0.9rem; font-weight: 600; }
#contact.section-blue-navy .social-icons a:hover i, 
#contact.section-blue-navy .social-icons a:hover .social-handle { color: var(--primary-color); }
.map-container { margin-top: 2.5rem; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.map-container iframe { display: block; width: 100%; min-height: 300px; }

#footer { background: var(--dark-bg-alt); color: var(--light-text); text-align: center; padding: 2rem 0; }
#footer p { margin-bottom: 0.5rem; font-size: 0.9rem; }
#footer .fa-heart { color: var(--primary-color); }
.footer-credit-link { color: var(--light-text); text-decoration: underline; font-weight: normal; }
.footer-credit-link:hover { color: var(--primary-color); } .footer-credit-link b { font-weight: bold; }

@media (max-width: 768px) {
    html { scroll-padding-top: var(--header-height-mobile); } 
    #header { height: auto; padding: 0.5rem 0;}
    #header nav {
        flex-direction: row; justify-content: space-between; align-items: center;
        flex-wrap: wrap; 
    }
    .logo-link { display: none !important; }
    .mobile-brand-name { display: block; text-align: center; flex-grow: 1; }
    .menu-toggle { display: block; order: 2; margin-left: 15px; }
    #header .nav-menu { display: none; flex-direction: column; width: 100%; background-color: var(--dark-bg-alt); order: 3; }
    #header .nav-menu.active { display: flex; }
    #header .nav-menu li { width: 100%; text-align: center; }
    #header .nav-menu li a { padding: 1.2rem 1rem; border-bottom: none; }
    
    #hero { padding-top: var(--header-height-mobile); }
    .parallax-section { background-image: url('fundo01-mobile.jpg'); background-attachment: scroll; }
    .hero-content-wrapper { padding-top: 0; } 
    .frosted-glass-box { padding: 2rem 1.5rem; max-width: 90%; }
    #hero h1 { font-size: 2.2rem; } 
    #hero .slogan { font-size: 1.3rem; }
    .hero-static-logo { max-width: 100px; }
    #about-us .about-us-text p { font-size: 1rem; }
    .brands-grid img { max-height: 112px; max-width: 168px; }
    .promotion-image-container { padding: 1rem; max-width: 100%; }
}

@media (max-width: 480px) {
    html { scroll-padding-top: 55px; }
    #hero { padding-top: 55px; }
    .mobile-brand-name { font-size: 1.3rem; }
    .menu-toggle { margin-left: 10px; }
    #header .nav-menu li a { padding: 1.1rem 1rem; }

    h1 { font-size: 2rem; } h2 { font-size: 1.8rem; }
    .btn { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
    #hero h1 { font-size: 2rem; } 
    #hero .slogan { font-size: 1.2rem; }
    .hero-static-logo { max-width: 80px; }
    .frosted-glass-box { padding: 1.5rem 1rem; }
    .brands-grid img { max-height: 98px; max-width: 140px; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-info p { font-size: 1rem; }
    .contact-info p i { font-size: 1.2em; }
    .btn-large-whatsapp { padding: 0.8rem 2rem !important; font-size: 1.1rem !important; }
    .btn-large-whatsapp i.fab.fa-whatsapp { font-size: 1.4em !important; }
}
