/* Reset e Estilos Gerais */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #FF6B35; /* Laranja vibrante - BH Baterias */
    --secondary-color: #1a1a1a; /* Preto - BH Baterias */
    --accent-color: #27ae60; /* Verde WhatsApp */
    --text-color: #333;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --orange-dark: #E55A2B; /* Laranja mais escuro para hover */
}

body {
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    padding-top: 140px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.logo-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--primary-color);
}

.tagline {
    font-size: 0.85rem;
    color: #ccc;
    margin-top: 4px;
    line-height: 1.2;
}

/* Menu Hambúrguer */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navegação */
.nav-menu {
    display: flex;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    position: relative;
}

.nav-menu ul li a:hover {
    color: var(--primary-color);
}

.header-contact {
    display: flex;
}

.btn-whatsapp {
    background: var(--accent-color);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-whatsapp:hover {
    background: #1f9b4e;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

/* Hero Section - Restaurado com 2 Botões e Fundo Original */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('img/wNL8F87zzaSF.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 4rem 1rem;
    border-bottom: 4px solid var(--primary-color);
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 900;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.4;
    color: #ddd;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
    font-size: 1rem;
    transition: 0.3s;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
    font-size: 1rem;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--secondary-color);
    transform: scale(1.05);
}

/* Tablet */
@media (min-width: 768px) {
    .hero {
        padding: 6rem 2rem;
    }
    .hero h2 {
        font-size: 2.8rem;
    }
    .hero p {
        font-size: 1.3rem;
    }
}

/* Features */
.features {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--orange-dark) 100%);
    color: var(--white);
}

.features .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-item {
    flex: 1;
    min-width: 150px;
}

.feature-item i {
    font-size: 32px;
    margin-bottom: 10px;
    transition: 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.1);
}

/* Services */
.services {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    position: relative;
    color: var(--secondary-color);
    font-weight: 900;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--light-bg);
    padding: 40px 28px 32px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #e8e8e8;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #FF9B35);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    background: var(--white);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.12), 0 5px 15px rgba(0, 0, 0, 0.06);
}

.service-card i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: all 0.4s ease;
}

.service-card:hover i {
    background: rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--secondary-color);
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.service-card p {
    color: #666;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Brands */
.brands {
    padding: 60px 0;
    background: var(--light-bg);
    text-align: center;
}

.brands-logos img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* Testimonials */
.testimonials {
    padding: 60px 0;
    background: var(--white);
}

.testimonials-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.testimonial-arrow {
    background: var(--white);
    border: 2px solid #e0e0e0;
    color: var(--secondary-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-arrow:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.testimonials-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
    margin-bottom: 40px;
    scrollbar-width: none;
}

.testimonials-grid::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 300px;
    max-width: 320px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stars {
    color: #f1c40f;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.testimonial-card p {
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

.client-name {
    display: block;
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.google-badge {
    text-align: center;
    background: #f8f9fa;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
    border: 1px solid #eee;
}

.google-badge i {
    color: #4285F4;
    margin-right: 8px;
}

.google-badge span {
    font-weight: bold;
    font-size: 0.9rem;
}

/* Contact */
.contact {
    padding: 60px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.social-links {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.social-links a:hover {
    transform: scale(1.1);
    background: var(--orange-dark);
}

.contact-map {
    width: 100%;
    max-width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative; /* Adicionado para posicionar o botão */
}

.btn-map-link {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-map-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(-50%) translateY(-3px);
}

.btn-whatsapp-large {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
    color: var(--white) !important;
    padding: 14px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
    border: none;
    cursor: pointer;
}

.btn-whatsapp-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.6);
    background: linear-gradient(135deg, #1da851 0%, #15a34a 100%);
}

.btn-whatsapp-large i {
    font-size: 1.3rem;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    border-top: 3px solid var(--primary-color);
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Mobile Action Bar */
.mobile-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: var(--white);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
    z-index: 2000;
    grid-template-columns: 1fr 1fr;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--white);
    font-weight: 900;
    font-size: 0.9rem;
    gap: 8px;
}

.call-btn {
    background: var(--primary-color);
}

.whats-btn {
    background: #25d366;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .feature-item {
        min-width: 100px;
        flex: 0 1 calc(50% - 10px);
    }

    .features .container {
        gap: 10px;
    }
    .logo-img {
        width: 95px;
        height: 95px;
    }

    .logo-text h1 {
        font-size: 24px;
    }

    .tagline {
        font-size: 0.75rem;
    }

    header {
        padding: 5px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 105px;
        flex-direction: column;
        background-color: var(--secondary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(255, 107, 53, 0.2);
        max-height: calc(100vh - 105px);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu ul li {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    }

    .header-contact {
        display: none;
    }

    body {
        padding-top: 105px;
    }

    .hero {
        padding: 2rem 1rem;
        min-height: auto;
        background-attachment: scroll;
    }

    .hero h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-map {
        height: 300px;
    }

    .whatsapp-float {
        display: none; /* Esconde o botão flutuante para usar a barra fixa */
    }

    .mobile-action-bar {
        display: grid;
    }

    footer {
        padding-bottom: 95px; /* Espaço para não cobrir o footer */
    }

    .testimonial-card {
        min-width: calc(100vw - 60px);
        max-width: calc(100vw - 60px);
    }

    .testimonial-arrow {
        display: none;
    }
}
