/* WBA Assistência Técnica - estilos customizados */
html { scroll-padding-top: 1rem; }
section[id] { scroll-margin-top: 1rem; }
#orcamento { scroll-margin-top: 3rem; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
    color: #1E293B;
}

/* Botão flutuante do WhatsApp */
@keyframes pulse-subtle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.95; }
}
.animate-pulse-subtle { animation: pulse-subtle 2.5s infinite ease-in-out; }

.hero-gradient-bg {
    background: radial-gradient(circle at 80% 20%, rgba(0, 168, 204, 0.10) 0%, rgba(11, 37, 69, 0.02) 50%, rgba(255, 255, 255, 0) 100%);
}

/* Selo flutuante "+700 equipamentos" sobre a foto da fachada */
@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.float-badge { animation: float-badge 4s ease-in-out infinite; }

/* Faixa de números */
.stat-band {
    background: linear-gradient(135deg, #0B2545 0%, #134074 100%);
}

/* Galeria */
.gallery-item { cursor: zoom-in; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.gallery-item img { transition: transform .5s ease; }
@media (hover: hover) { .gallery-item:hover img { transform: scale(1.04); } }

/* Lightbox (fade suave, botões de fechar/anterior/próxima, spinner de carregamento) */
#lightbox {
    position: fixed; inset: 0; z-index: 60;
    background: rgba(2, 8, 23, .92);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0; visibility: hidden;
    transition: opacity .2s ease, visibility 0s linear .2s;
    touch-action: pan-y;
}
#lightbox.open { opacity: 1; visibility: visible; transition: opacity .2s ease; }
#lightbox figure { position: relative; margin: 0; max-width: 100%; display: flex; flex-direction: column; align-items: center; }
#lightbox img {
    max-width: 100%; max-height: 82vh; width: auto; height: auto;
    border-radius: .75rem; box-shadow: 0 25px 60px rgba(0,0,0,.5);
    opacity: 0; transition: opacity .25s ease;
    -webkit-user-drag: none; user-select: none;
}
#lightbox img.loaded { opacity: 1; }
#lightbox-caption { color: #e2e8f0; font-size: .875rem; margin-top: .75rem; text-align: center; }
#lightbox-spinner {
    position: absolute; top: 50%; left: 50%; width: 2.5rem; height: 2.5rem; margin: -1.25rem 0 0 -1.25rem;
    border: 3px solid rgba(255,255,255,.25); border-top-color: #00A8CC; border-radius: 50%;
    animation: lb-spin .8s linear infinite; display: none;
}
#lightbox.loading #lightbox-spinner { display: block; }
@keyframes lb-spin { to { transform: rotate(360deg); } }
.lb-btn {
    position: absolute; z-index: 2; width: 2.75rem; height: 2.75rem; border-radius: 9999px;
    background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    transition: background .2s;
}
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(0,168,204,.85); outline: none; }
#lightbox-close { top: 1rem; right: 1rem; }
#lightbox-prev { left: .75rem; top: 50%; margin-top: -1.375rem; }
#lightbox-next { right: .75rem; top: 50%; margin-top: -1.375rem; }

/* Avaliações: carrossel com rolagem automática (assets/js/avaliacoes.js).
   Pausa ao passar o mouse/dedo; o cartão selecionado cresce um pouco. */
.reviews-track {
    display: flex; gap: 1.25rem;
    overflow-x: auto; overflow-y: hidden;
    padding: 1rem .5rem 1.25rem;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-track > article {
    flex: 0 0 85%;
    transition: transform .25s ease, box-shadow .25s ease;
    will-change: transform;
}
@media (min-width: 640px)  { .reviews-track > article { flex-basis: 46%; } }
@media (min-width: 1024px) { .reviews-track > article { flex-basis: calc((100% - 3.75rem) / 4); } }
@media (hover: hover) {
    .reviews-track > article:hover { transform: scale(1.06); box-shadow: 0 18px 32px -12px rgba(11,37,69,.3); position: relative; z-index: 2; }
}
.reviews-track > article.is-active { transform: scale(1.06); box-shadow: 0 18px 32px -12px rgba(11,37,69,.3); position: relative; z-index: 2; }
.reviews-toggle {
    display: inline-flex; align-items: center; gap: .4rem; margin: .25rem auto 0;
    font-size: .75rem; font-weight: 600; color: #64748b; background: transparent; border: 0; cursor: pointer;
    padding: .35rem .75rem; border-radius: 9999px; transition: color .2s, background .2s;
}
.reviews-toggle:hover, .reviews-toggle:focus-visible { color: #00A8CC; background: #f1f5f9; outline: none; }
.review-text {
    display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .animate-pulse-subtle, .float-badge, #lightbox-spinner { animation: none; }
    .reviews-track > article { transition: none; }
    .gallery-item img { transition: none; }
    html { scroll-behavior: auto !important; }
}

/* Catálogo de serviços: cards clicáveis + guia "Quando procurar" */
#servicos [data-service] { cursor: pointer; }
#servicos [data-service]:focus-visible { outline: 2px solid #00A8CC; outline-offset: 3px; }
#service-guide {
    position: fixed; inset: 0; z-index: 50;
    background: rgba(2, 8, 23, .65);
    display: flex; align-items: flex-end; justify-content: center;
    padding: 0;
    opacity: 0; visibility: hidden;
    transition: opacity .2s ease, visibility 0s linear .2s;
}
#service-guide.open { opacity: 1; visibility: visible; transition: opacity .2s ease; }
#service-guide .sg-panel {
    position: relative; background: #fff; width: 100%; max-width: 38rem;
    max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
    border-radius: 1.5rem 1.5rem 0 0; padding: 1.5rem 1.25rem 1.5rem;
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
    transform: translateY(24px); transition: transform .25s ease;
}
#service-guide.open .sg-panel { transform: none; }
#service-guide .sg-close {
    position: absolute; top: .9rem; right: .9rem; width: 2.25rem; height: 2.25rem; border-radius: 9999px;
    border: 0; background: #f1f5f9; color: #475569; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: background .2s;
}
#service-guide .sg-close:hover, #service-guide .sg-close:focus-visible { background: #00A8CC; color: #fff; outline: none; }
@media (min-width: 640px) {
    #service-guide { align-items: center; padding: 1rem; }
    #service-guide .sg-panel { border-radius: 1.5rem; padding: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
    #service-guide, #service-guide .sg-panel { transition: none; }
}

/* Biografia (abre só ao clicar no botão "Biografia") */
#bio-modal {
    display: none; position: fixed; inset: 0; z-index: 55;
    background: rgba(2, 8, 23, .7);
    align-items: flex-end; justify-content: center;
}
#bio-modal.open { display: flex; animation: bio-fade .2s ease; }
#bio-modal .bio-panel {
    position: relative; background: #fff; width: 100%; max-width: 64rem;
    max-height: 94vh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    border-radius: 1.5rem 1.5rem 0 0; padding: 1rem 1.25rem 1.75rem;
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
    animation: bio-rise .25s ease;
}
#bio-modal .bio-close {
    position: sticky; top: .25rem; z-index: 3; display: flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; margin: 0 0 -2.5rem auto; border-radius: 9999px; border: 0; cursor: pointer;
    background: #fff; color: #475569; box-shadow: 0 2px 10px rgba(15,23,42,.25); transition: background .2s, color .2s;
}
#bio-modal .bio-close:hover, #bio-modal .bio-close:focus-visible { background: #00A8CC; color: #fff; outline: none; }
@media (min-width: 768px) {
    #bio-modal { align-items: center; padding: 1.5rem; }
    #bio-modal .bio-panel { border-radius: 1.5rem; padding: 2rem 2rem 2.25rem; }
}
@keyframes bio-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bio-rise { from { transform: translateY(20px); } to { transform: none; } }
.cert-card { cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) {
    #bio-modal.open, #bio-modal .bio-panel { animation: none; }
}

/* Produtos (abre só ao clicar no botão "Produtos") */
#produtos-modal {
    display: none; position: fixed; inset: 0; z-index: 55;
    background: rgba(2, 8, 23, .7);
    align-items: flex-end; justify-content: center;
}
#produtos-modal.open { display: flex; animation: bio-fade .2s ease; }
#produtos-modal .prod-panel {
    position: relative; background: #fff; width: 100%; max-width: 64rem;
    max-height: 94vh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    border-radius: 1.5rem 1.5rem 0 0; padding: 1.25rem 1.25rem 1.75rem;
    box-shadow: 0 25px 60px rgba(0,0,0,.35); animation: bio-rise .25s ease;
}
#produtos-modal .prod-close {
    position: absolute; top: .9rem; right: .9rem; z-index: 3; display: flex; align-items: center; justify-content: center;
    width: 2.25rem; height: 2.25rem; border-radius: 9999px; border: 0; cursor: pointer;
    background: #f1f5f9; color: #475569; transition: background .2s, color .2s;
}
#produtos-modal .prod-close:hover, #produtos-modal .prod-close:focus-visible { background: #00A8CC; color: #fff; outline: none; }
@media (min-width: 768px) {
    #produtos-modal { align-items: center; padding: 1.5rem; }
    #produtos-modal .prod-panel { border-radius: 1.5rem; padding: 2rem 2rem 2.25rem; }
}
.prod-tab {
    display: flex; align-items: center; justify-content: center; gap: .5rem; text-align: center;
    padding: .75rem .75rem; border-radius: .875rem; border: 1px solid #e2e8f0; background: #f1f5f9; color: #475569;
    font-size: .875rem; font-weight: 700; line-height: 1.2; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.prod-tab em { font-style: normal; font-size: .7rem; font-weight: 700; background: rgba(15,23,42,.08); padding: .1rem .45rem; border-radius: 9999px; }
.prod-tab:hover { border-color: #00A8CC; }
.prod-tab.is-active { background: #0B2545; border-color: #0B2545; color: #fff; }
.prod-tab.is-active em { background: rgba(255,255,255,.2); }
.prod-tab:focus-visible { outline: 2px solid #00A8CC; outline-offset: 2px; }
@media (max-width: 480px) { .prod-tab { flex-direction: column; gap: .25rem; font-size: .8rem; } }
@media (prefers-reduced-motion: reduce) { #produtos-modal.open, #produtos-modal .prod-panel { animation: none; } }

/* Garantia (abre só ao clicar em "Garantia") */
#garantia-modal {
    display: none; position: fixed; inset: 0; z-index: 55;
    background: rgba(2, 8, 23, .7);
    align-items: flex-end; justify-content: center;
}
#garantia-modal.open { display: flex; animation: bio-fade .2s ease; }
#garantia-modal .gar-panel {
    position: relative; background: #fff; width: 100%; max-width: 64rem;
    max-height: 94vh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    border-radius: 1.5rem 1.5rem 0 0; padding: 1rem 1.25rem 1.75rem;
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
    animation: bio-rise .25s ease;
}
#garantia-modal .gar-close {
    position: sticky; top: .25rem; z-index: 3; display: flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; margin: 0 0 -2.5rem auto; border-radius: 9999px; border: 0; cursor: pointer;
    background: #fff; color: #475569; box-shadow: 0 2px 10px rgba(15,23,42,.25); transition: background .2s, color .2s;
}
#garantia-modal .gar-close:hover, #garantia-modal .gar-close:focus-visible { background: #00A8CC; color: #fff; outline: none; }
@media (min-width: 768px) {
    #garantia-modal { align-items: center; padding: 1.5rem; }
    #garantia-modal .gar-panel { border-radius: 1.5rem; padding: 2rem 2rem 2.25rem; }
}

/* FAQ (abre só ao clicar em "FAQ") */
#faq-modal {
    display: none; position: fixed; inset: 0; z-index: 55;
    background: rgba(2, 8, 23, .7);
    align-items: flex-end; justify-content: center;
}
#faq-modal.open { display: flex; animation: bio-fade .2s ease; }
#faq-modal .faq-panel {
    position: relative; background: #fff; width: 100%; max-width: 48rem;
    max-height: 94vh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    border-radius: 1.5rem 1.5rem 0 0; padding: 1rem 1.25rem 1.75rem;
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
    animation: bio-rise .25s ease;
}
#faq-modal .faq-close {
    position: sticky; top: .25rem; z-index: 3; display: flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; margin: 0 0 -2.5rem auto; border-radius: 9999px; border: 0; cursor: pointer;
    background: #fff; color: #475569; box-shadow: 0 2px 10px rgba(15,23,42,.25); transition: background .2s, color .2s;
}
#faq-modal .faq-close:hover, #faq-modal .faq-close:focus-visible { background: #00A8CC; color: #fff; outline: none; }
#faq-modal summary::-webkit-details-marker { display: none; }
@media (min-width: 768px) {
    #faq-modal { align-items: center; padding: 1.5rem; }
    #faq-modal .faq-panel { border-radius: 1.5rem; padding: 2rem 2rem 2.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    #faq-modal.open, #faq-modal .faq-panel { animation: none; }
}

/* Como funciona o diagnóstico (abre só ao clicar) */
#diag-modal {
    display: none; position: fixed; inset: 0; z-index: 55;
    background: rgba(2, 8, 23, .7);
    align-items: flex-end; justify-content: center;
}
#diag-modal.open { display: flex; animation: bio-fade .2s ease; }
#diag-modal .diag-panel {
    position: relative; background: #fff; width: 100%; max-width: 48rem;
    max-height: 94vh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    border-radius: 1.5rem 1.5rem 0 0; padding: 1rem 1.25rem 1.75rem;
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
    animation: bio-rise .25s ease;
}
#diag-modal .diag-close {
    position: sticky; top: .25rem; z-index: 3; display: flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; margin: 0 0 -2.5rem auto; border-radius: 9999px; border: 0; cursor: pointer;
    background: #fff; color: #475569; box-shadow: 0 2px 10px rgba(15,23,42,.25); transition: background .2s, color .2s;
}
#diag-modal .diag-close:hover, #diag-modal .diag-close:focus-visible { background: #00A8CC; color: #fff; outline: none; }
#diag-modal .diag-steps > li { position: relative; }
#diag-modal .diag-steps > li:not(:last-child)::before {
    content: ""; position: absolute; left: 1.2rem; top: 2.6rem; bottom: -1.5rem; width: 2px; background: #e2e8f0;
}
@media (min-width: 768px) {
    #diag-modal { align-items: center; padding: 1.5rem; }
    #diag-modal .diag-panel { border-radius: 1.5rem; padding: 2rem 2rem 2.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    #diag-modal.open, #diag-modal .diag-panel { animation: none; }
}

/* Rodapé com fundo de circuito eletrônico */
.footer-circuit {
    background-image:
        linear-gradient(to bottom, rgba(17,24,39,.88), rgba(17,24,39,.62) 55%, rgba(17,24,39,.9)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240' fill='none' stroke='%2300A8CC' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg opacity='.30'%3E%3Cpath d='M0 60H50L70 80H130L150 60H240'/%3E%3Cpath d='M0 170H40L60 150H110L130 170H200L220 190H240'/%3E%3Cpath d='M60 0V30L80 50V80'/%3E%3Cpath d='M170 0V35L190 55V110L170 130V150'/%3E%3Cpath d='M60 240V215L40 195V170'/%3E%3Cpath d='M170 240V215L190 195V170L170 150'/%3E%3Cpath d='M110 150V124'/%3E%3Crect x='96' y='96' width='44' height='28' rx='3'/%3E%3Cpath d='M104 96V90M118 96V90M132 96V90M104 124V130M118 124V130M132 124V130'/%3E%3C/g%3E%3Cg opacity='.55'%3E%3Ccircle cx='70' cy='80' r='3.5'/%3E%3Ccircle cx='130' cy='80' r='3.5'/%3E%3Ccircle cx='190' cy='110' r='3.5'/%3E%3Ccircle cx='40' cy='170' r='3.5'/%3E%3Ccircle cx='170' cy='150' r='3.5'/%3E%3Ccircle cx='80' cy='50' r='3.5'/%3E%3Ccircle cx='220' cy='190' r='3.5'/%3E%3C/g%3E%3C/svg%3E");
    background-size: auto, 240px 240px;
    background-repeat: no-repeat, repeat;
}
.footer-circuit button[data-service-open],
.footer-circuit button[data-garantia-open],
.footer-circuit button[data-faq-open],
.footer-circuit button[data-diag-open],
.footer-circuit button[data-bio-open],
.footer-circuit button[data-produtos-open] { cursor: pointer; background: none; border: 0; padding: 0; font: inherit; color: inherit; }
.footer-circuit a:focus-visible, .footer-circuit button:focus-visible { outline: 2px solid #00A8CC; outline-offset: 3px; border-radius: 4px; }

/* Fundo da página com circuitos discretos (no lugar do branco sólido) */
body {
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320' fill='none' stroke='%230B2545' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg opacity='.07'%3E%3Cpath d='M0 80H60L84 104H170L194 80H320'/%3E%3Cpath d='M0 230H50L74 206H140L164 230H250L274 254H320'/%3E%3Cpath d='M80 0V40L104 64V104'/%3E%3Cpath d='M230 0V50L254 74V150L230 174V206'/%3E%3Cpath d='M80 320V286L54 260V230'/%3E%3Cpath d='M230 320V280L254 256V230L230 206'/%3E%3Cpath d='M140 206V160'/%3E%3Crect x='120' y='124' width='56' height='36' rx='4'/%3E%3Cpath d='M132 124V116M148 124V116M164 124V116M132 160V168M148 160V168M164 160V168'/%3E%3C/g%3E%3Cg stroke='%2300A8CC' opacity='.16'%3E%3Ccircle cx='84' cy='104' r='4'/%3E%3Ccircle cx='170' cy='104' r='4'/%3E%3Ccircle cx='254' cy='150' r='4'/%3E%3Ccircle cx='54' cy='230' r='4'/%3E%3Ccircle cx='230' cy='206' r='4'/%3E%3Ccircle cx='104' cy='64' r='4'/%3E%3Ccircle cx='274' cy='254' r='4'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 320px 320px;
    background-repeat: repeat;
}
section.bg-white { background-color: transparent; }
section.bg-slate-50 { background-color: rgba(248, 250, 252, .78); }

/* Banners dos serviços: carrossel automático (assets/js/banners.js). Clique abre o guia do serviço. */
.banners-track {
    display: flex; gap: 1rem;
    overflow-x: auto; overflow-y: hidden;
    padding: .75rem .25rem 1rem;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}
.banners-track::-webkit-scrollbar { display: none; }
.banner-slide {
    position: relative; flex: 0 0 88%; padding: 0; border: 1px solid rgba(0,168,204,.35);
    border-radius: 1rem; overflow: hidden; cursor: pointer; background: #06152b;
    box-shadow: 0 10px 24px -12px rgba(0,0,0,.6);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.banner-slide img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 500; object-fit: cover; }
@media (min-width: 640px)  { .banner-slide { flex-basis: 62%; } }
@media (min-width: 1024px) { .banner-slide { flex-basis: calc((100% - 1rem) / 2); } }
.banner-cta {
    position: absolute; right: .6rem; bottom: .6rem; display: inline-flex; align-items: center; gap: .4rem;
    font-size: .7rem; font-weight: 700; color: #fff; background: rgba(0,168,204,.92);
    padding: .35rem .7rem; border-radius: 9999px; box-shadow: 0 4px 10px rgba(0,0,0,.35);
}
@media (hover: hover) {
    .banner-slide:hover { transform: scale(1.03); border-color: #00A8CC; box-shadow: 0 18px 32px -12px rgba(0,168,204,.45); position: relative; z-index: 2; }
}
.banner-slide:focus-visible, .banner-slide.is-active { outline: 3px solid #00A8CC; outline-offset: 2px; }
.banners-controls { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: .5rem; }
.banners-toggle, .banners-nav {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    font-size: .75rem; font-weight: 600; color: #cbd5e1; background: transparent; border: 0; cursor: pointer;
    padding: .4rem .8rem; border-radius: 9999px; transition: color .2s, background .2s;
}
.banners-nav { width: 2.25rem; height: 2.25rem; padding: 0; background: rgba(255,255,255,.08); }
.banners-toggle:hover, .banners-toggle:focus-visible, .banners-nav:hover, .banners-nav:focus-visible { color: #fff; background: rgba(0,168,204,.6); outline: none; }
@media (prefers-reduced-motion: reduce) { .banner-slide { transition: none; } }
