/**
 * Estilos Customizados — Eco Baterias
 * Direção de Arte: Section Flow & Alto Contraste Automotivo
 * Fim do visual 100% branco de IA: Ritmo de cores, profundidade e tipografia precisa
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #22c55e;
    --dark-bg: #0b1120;
    --dark-surface: #0f172a;
    --gray-bg: #f1f5f9;
    --gray-card: #f8fafc;
    --border-color: #e2e8f0;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    background-color: #ffffff;
}

/* Fluid Typography com Clamp para Responsividade Perfeita */
.fluid-h1 {
    font-size: clamp(1.85rem, 2.7vw + 0.4rem, 2.65rem);
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.fluid-h2 {
    font-size: clamp(1.75rem, 2.8vw + 0.5rem, 2.4rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
}

/* Círculo Verde Clarinho Decorativo de Fundo no Início dos Títulos H2 (Mais Vívido e Visível) */
.h2-circle-accent {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.h2-circle-accent::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -12px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #86efac 0%, #bbf7d0 100%);
    border: 1.5px solid rgba(34, 197, 94, 0.3);
    border-radius: 9999px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.9;
}

@media (min-width: 640px) {
    .h2-circle-accent::before {
        top: -8px;
        left: -16px;
        width: 54px;
        height: 54px;
    }
}

/* Ajuste de contraste para seções com fundo escuro */
.hero-dark-glow .h2-circle-accent::before,
.parallax-section .h2-circle-accent::before,
.bg-gradient-to-r .h2-circle-accent::before {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.55) 0%, rgba(34, 197, 94, 0.40) 100%);
    border: 1.5px solid rgba(74, 222, 128, 0.4);
    opacity: 1;
}

/* Descrição dos Cards de Serviços */
.service-desc-text {
    font-size: 0.95rem;
    line-height: 1.45rem !important;
    color: #475569;
}

@media (min-width: 1024px) {
    .service-desc-text {
        font-size: 1rem !important;
        line-height: 1.45rem !important;
    }
}

/* Card de Baterias: Line-height 1.4rem e Tipografia Compacta */
.battery-card-sub {
    line-height: 1.4rem !important;
}

.battery-specs-box,
.battery-specs-box span,
.battery-specs-box div {
    line-height: 1.4rem !important;
}

/* Seção Como Funciona: Timeline Geométrica Perfeita e Card Boxes Idênticos */
.steps-timeline-item {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    position: relative;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .steps-timeline-item {
        gap: 1.25rem;
        margin-bottom: 1.25rem;
    }
}

.steps-timeline-item:last-child {
    margin-bottom: 0;
}

.steps-timeline-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 46px;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .steps-timeline-node {
        width: 50px;
    }
}

.steps-timeline-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background-color: #ffffff;
    border: 2px solid #16a34a;
    color: #16a34a;
    font-weight: 900;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px -2px rgba(22, 163, 74, 0.18);
    z-index: 2;
    margin-top: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 640px) {
    .steps-timeline-badge {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        font-size: 1rem;
        margin-top: 18px;
    }
}

.steps-timeline-item:hover .steps-timeline-badge {
    background-color: #16a34a;
    color: #ffffff;
    transform: scale(1.06);
    box-shadow: 0 6px 16px -2px rgba(22, 163, 74, 0.35);
}

.steps-timeline-line {
    position: absolute;
    top: 20px;
    bottom: -38px;
    width: 2.5px;
    background-color: #16a34a;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

@media (min-width: 640px) {
    .steps-timeline-line {
        top: 24px;
        bottom: -46px;
        width: 3px;
    }
}

.steps-timeline-item:last-child .steps-timeline-line {
    display: none;
}

.steps-card-box {
    flex: 1;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.15rem 1.35rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 88px;
}

@media (min-width: 640px) {
    .steps-card-box {
        padding: 1.25rem 1.6rem;
        min-height: 92px;
    }
}

.steps-card-box:hover {
    background-color: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.07);
}

.step-card-desc {
    font-size: 0.92rem;
    line-height: 1.45rem !important;
    color: #475569;
}

@media (min-width: 640px) {
    .step-card-desc {
        font-size: 0.98rem !important;
        line-height: 1.45rem !important;
    }
}

/* Header Fixo e Logotipo Ampliado Vazando Abaixo da Linha do Menu */
#main-header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible !important;
}

.header-logo-link {
    align-self: flex-start;
    padding-top: 12px;
    filter: none !important;
}

.header-logo-img {
    height: 78px;
    max-height: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    top: 4px;
    border: 5px solid #ffffff;
    border-radius: 9999px;
    background-color: #ffffff;
}

@media (min-width: 640px) {
    .header-logo-img {
        height: 86px;
        top: 8px;
        border-width: 6px;
    }
}

/* No desktop apenas: position relative, top 20px e borda de 7px branca */
@media (min-width: 1024px) {
    .header-logo-img {
        position: relative;
        top: 20px;
        height: 118px;
        border: 7px solid #ffffff;
        border-radius: 9999px;
        background-color: #ffffff;
        box-shadow: none !important;
    }
}

/* Scrolled: apenas blur e sombra no mobile, sem mudar altura nem logo */
#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

/* Shrink do header e logo SOMENTE no desktop */
@media (min-width: 1024px) {
    #main-header.scrolled {
        height: 70px !important;
    }
    #main-header.scrolled .header-logo-link {
        padding-top: 4px;
    }
    #main-header.scrolled .header-logo-img {
        top: 14px;
        height: 92px;
        border: 6px solid #ffffff;
    }
}

/* Prevenção Absoluta de Quebra de Linha em Menus e Botões */
.nav-link-nowrap {
    white-space: nowrap !important;
    flex-shrink: 0;
}

/* Efeito Parallax Otimizado */
.parallax-section {
    background-image: linear-gradient(rgba(11, 17, 32, 0.88), rgba(11, 17, 32, 0.92)), url('../images/atendimento-local.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    .parallax-section {
        background-attachment: fixed;
    }
}

/* Acordeon FAQ Suave */
details summary::-webkit-details-marker {
    display: none;
}

details[open] summary ~ * {
    animation: accordionFade 0.3s ease-out;
}

@keyframes accordionFade {
    0% {
        opacity: 0;
        transform: translateY(-6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botão Flutuante de WhatsApp */
.wpp-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 66px !important;
    height: 66px !important;
    font-size: 38px !important;
    z-index: 999;
    box-shadow: 0 10px 25px -5px rgba(22, 163, 74, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpp-floating-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 30px -5px rgba(22, 163, 74, 0.65);
}

/* Pulso Verde */
@keyframes pulseGreen {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
}

.pulse-green {
    animation: pulseGreen 2.4s infinite;
}

/* Fundo Degradê Verde Escuro Automotivo para o Hero com Profundidade */
.hero-dark-glow {
    background: linear-gradient(135deg, #074328 0%, #042e1c 45%, #021a10 100%);
    position: relative;
}

/* Orbs de Luz Animados e Pulsantes no Hero */
.hero-orb-1 {
    position: absolute;
    width: 520px;
    height: 520px;
    top: -120px;
    right: -80px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.48) 0%, rgba(16, 185, 129, 0.18) 45%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: heroOrbFloat1 12s ease-in-out infinite;
    will-change: transform;
}

.hero-orb-2 {
    position: absolute;
    width: 460px;
    height: 460px;
    bottom: -100px;
    left: -80px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.42) 0%, rgba(5, 150, 105, 0.16) 45%, transparent 70%);
    filter: blur(85px);
    pointer-events: none;
    animation: heroOrbFloat2 15s ease-in-out infinite;
    will-change: transform;
}

.hero-orb-center {
    position: absolute;
    width: 380px;
    height: 380px;
    top: 30%;
    left: 45%;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.28) 0%, transparent 65%);
    filter: blur(75px);
    pointer-events: none;
    animation: energyPulse 8s ease-in-out infinite;
    will-change: transform, opacity;
}

/* Anéis de Pulso de Energia / Radar */
.hero-energy-ring {
    position: absolute;
    border-radius: 9999px;
    border: 1px solid rgba(74, 222, 128, 0.15);
    pointer-events: none;
    animation: energyRingPulse 6s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.section-energy-ring {
    position: absolute;
    border-radius: 9999px;
    border: 1.5px solid rgba(22, 163, 74, 0.28);
    pointer-events: none;
    animation: energyRingPulse 6s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    z-index: 0;
}

/* Linhas e Ícones Flutuantes de Energia */
.hero-float-icon {
    position: absolute;
    color: rgba(74, 222, 128, 0.12);
    pointer-events: none;
    user-select: none;
    animation: floatIcon 9s ease-in-out infinite;
}

@keyframes heroOrbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-35px, 28px) scale(1.1); }
}

@keyframes heroOrbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -25px) scale(1.12); }
}

@keyframes energyPulse {
    0%, 100% { opacity: 0.15; transform: scale(0.92); }
    50% { opacity: 0.35; transform: scale(1.12); }
}

@keyframes energyRingPulse {
    0% { transform: scale(0.6); opacity: 0.6; }
    50% { opacity: 0.2; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-orb-1, .hero-orb-2, .hero-orb-center, .hero-energy-ring, .hero-float-icon {
        animation: none !important;
    }
}

/* Carrossel Infinito das Marcas Parceiras */
.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
    animation: marqueeScroll 55s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Animações Suaves ao Descer a Página (Scroll Reveal)
   Aceleração por hardware (GPU), fluidez e conformidade com WCAG
   ========================================================================== */

.reveal-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.93);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Estado Ativado pelo IntersectionObserver */
.is-revealed {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
}

/* Delays Escalonados (Stagger) para Grades de Cards */
.delay-100 { transition-delay: 100ms; }
.delay-150 { transition-delay: 150ms; }
.delay-200 { transition-delay: 200ms; }
.delay-250 { transition-delay: 250ms; }
.delay-300 { transition-delay: 300ms; }
.delay-350 { transition-delay: 350ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Respeito à Preferência do Usuário por Redução de Movimento */
@media (prefers-reduced-motion: reduce) {
    .reveal-up, .reveal-left, .reveal-right, .reveal-zoom {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Tipografia Seção Sobre Nós */
.sobre-texto,
.sobre-texto p {
    font-size: 1rem !important;
    line-height: 1.45rem !important;
}

/* ==========================================================================
   Efeitos Visuais de Fundo: Ambient Blur Blobs & Iluminação Fluida Suave
   Elimina patterns rígidos/pontilhados e cria profundidade elegante e moderna
   ========================================================================== */

/* Patterns Técnicos Exclusivos do Hero */
.pattern-grid-dark {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
}

.pattern-dots-dark {
    background-image: radial-gradient(rgba(74, 222, 128, 0.20) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

/* Manchas de Luz e Atmosfera (Ambient Blur Blobs - 30% menos transparentes) */
.ambient-glow-green {
    position: absolute;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.35) 0%, rgba(34, 197, 94, 0) 70%);
    filter: blur(85px);
    pointer-events: none;
    z-index: 0;
}

.ambient-glow-emerald {
    position: absolute;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.38) 0%, rgba(16, 185, 129, 0) 70%);
    filter: blur(95px);
    pointer-events: none;
    z-index: 0;
}

.ambient-glow-dark {
    position: absolute;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.36) 0%, rgba(5, 41, 26, 0) 70%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.ambient-glow-soft {
    position: absolute;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.28) 0%, rgba(74, 222, 128, 0) 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* Círculo com Linhas Decorativas Internas */
.circle-lines-accent {
    position: absolute;
    border-radius: 9999px;
    border: 1.5px solid rgba(22, 163, 74, 0.28);
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(22, 163, 74, 0.14),
        rgba(22, 163, 74, 0.14) 2px,
        transparent 2px,
        transparent 14px
    );
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

