/* ==========================
   EFEITO DO WHATSAPP
========================== */

.float,
.whatsapp-btn {
    animation: whatsapp-animado 4s ease-in-out infinite;
    transform-origin: center center;
    will-change: transform;
}

@keyframes whatsapp-animado {

    /* Posição normal */
    0%,
    10%,
    35%,
    80%,
    100% {
        transform: translateX(0) rotate(0deg) scale(1);
    }

    /* Respiração suave */
    18% {
        transform: translateX(0) rotate(0deg) scale(1.07);
    }

    27% {
        transform: translateX(0) rotate(0deg) scale(1);
    }

    /* Tremidinha */
    82% {
        transform: translateX(-4px) rotate(-2deg) scale(1);
    }

    84% {
        transform: translateX(4px) rotate(2deg) scale(1);
    }

    86% {
        transform: translateX(-4px) rotate(-2deg) scale(1);
    }

    88% {
        transform: translateX(4px) rotate(2deg) scale(1);
    }

    90% {
        transform: translateX(-2px) rotate(-1deg) scale(1);
    }

    92% {
        transform: translateX(2px) rotate(1deg) scale(1);
    }

    94% {
        transform: translateX(0) rotate(0deg) scale(1);
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .float,
    .whatsapp-btn {
        animation: none;
    }
}
/* Balão do WhatsApp */

.float::before {
    content: "💬 Solicite um orçamento!";
    
    position: absolute;

    right: 75px;
    bottom: 70px;

    background: white;
    color: #333;

    padding: 10px 14px;

    border-radius: 12px;

    font-size: 13px;
    font-weight: bold;

    white-space: nowrap;

    box-shadow: 0 5px 20px rgba(0,0,0,.25);

    opacity: 0;

    transform: translateX(15px);

    animation: balao-whatsapp 10s infinite;
}


@keyframes balao-whatsapp {

    0%, 40% {
        opacity: 0;
        transform: translateX(15px);
    }

    45%, 75% {
        opacity: 1;
        transform: translateX(0);
    }

    80%, 100% {
    opacity: 0;
    transform: translateX(15px);
}

}

/* =====================================
   BRILHO NO BOTÃO WHATSAPP
===================================== */

.whatsapp-btn {
    position: relative;
    overflow: hidden;
}

.whatsapp-btn::after {

    content: "";

    position: absolute;

    top: -50%;
    left: -120%;

    width: 40px;
    height: 200%;

    background: rgba(255,255,255,0.35);

    transform: rotate(25deg);

    animation: brilhoWhatsapp 7s infinite;
}


@keyframes brilhoWhatsapp {

    0%, 80% {
        left: -120%;
    }

    100% {
        left: 180%;
    }

}
/* =====================================
   ANIMAÇÃO DAS SEÇÕES NA ROLAGEM
===================================== */

.revelar {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.revelar-visivel {
    opacity: 1;
    transform: translateY(0);
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .revelar {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* =====================================
   BARRA DE PROGRESSO
===================================== */

#barra-progresso {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 5px;
    background: #ff7a00;
    z-index: 999999;
    box-shadow: 0 0 10px rgba(255, 122, 0, 0.65);
    pointer-events: none;
}
/* =====================================
   BOTÃO VOLTAR AO TOPO
===================================== */

#voltar-topo {
    position: fixed;
    right: 22px;
    bottom: 100px;
    z-index: 99998;

    width: 46px;
    height: 46px;

    border: 0;
    border-radius: 50%;

    background: linear-gradient(135deg, #ff7a00, #ff9d32);
    color: #111;

    font-size: 26px;
    font-weight: 900;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.9);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

#voltar-topo.visivel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#voltar-topo:hover {
    transform: translateY(-3px) scale(1.05);
}

#voltar-topo:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
}

@media (max-width: 768px) {
    #voltar-topo {
        right: 18px;
        bottom: 95px;

        width: 42px;
        height: 42px;

        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #voltar-topo {
        transition: none;
    }
}
/* =====================================
   DESTAQUE DOS BOTÕES AO ENTRAR NA TELA
===================================== */

.botao-destaque-ativo {
    animation: destaqueBotao 1.3s ease-out 1;
}

@keyframes destaqueBotao {
    0% {
        box-shadow: 0 0 0 rgba(37, 211, 102, 0);
        filter: brightness(1);
    }

    40% {
        box-shadow:
            0 0 0 7px rgba(37, 211, 102, 0.18),
            0 10px 30px rgba(37, 211, 102, 0.4);
        filter: brightness(1.15);
    }

    100% {
        filter: brightness(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .botao-destaque-ativo {
        animation: none;
    }
}
/* =====================================
   AJUSTES GERAIS PARA CELULAR
===================================== */

@media (max-width: 768px) {

    /* Evita rolagem lateral */
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Margens laterais mais confortáveis */
    .container {
        width: 92% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Cabeçalho */
    header .nav-inner {
        min-height: 82px !important;
        height: auto !important;
        gap: 12px !important;
    }

    /* Logo do topo */
    header .logo img {
        width: auto !important;
        height: 76px !important;
        max-width: 145px !important;
        object-fit: contain !important;
        display: block !important;
    }

    /* Esconde o menu central em telas pequenas */
    header .nav-links {
        display: none !important;
    }

    /* Botão do cabeçalho */
    header .whatsapp-btn {
        padding: 11px 14px !important;
        font-size: 12px !important;
        white-space: nowrap;
    }

    /* Títulos principais */
    h1 {
        font-size: clamp(34px, 10vw, 52px) !important;
        line-height: 1.04 !important;
        overflow-wrap: break-word;
    }

    h2 {
        font-size: clamp(28px, 8vw, 40px) !important;
        line-height: 1.08 !important;
    }

    /* Textos */
    p,
    .lead {
        font-size: 16px !important;
        line-height: 1.55 !important;
    }

    /* Espaçamento das seções */
    section {
        padding-top: 64px !important;
        padding-bottom: 64px !important;
    }

    /* Grades viram uma coluna */
    .hero-grid,
    .grid-6,
    .boxes,
    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    /* Cards */
    .feature,
    .box,
    .use-card,
    .hero-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Imagens não ultrapassam a tela */
    img {
        max-width: 100%;
    }

    /* Botão flutuante do WhatsApp */
    .float {
        right: 14px !important;
        bottom: 18px !important;
    }

    /* Balão do WhatsApp */
    .float::before {
        right: 2px !important;
        bottom: 64px !important;

        max-width: 210px;
        padding: 9px 12px !important;

        font-size: 12px !important;
        white-space: nowrap;
    }

    /* Botão voltar ao topo */
    #voltar-topo {
        right: 16px !important;
        bottom: 92px !important;
    }
}
/* =====================================
   MICROANIMAÇÕES DOS CARDS
===================================== */

/* Transição suave */
.feature,
.box,
.use-card,
.hero-card,
details {
    transition:
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        filter 0.3s ease;
}

/* Destaque ao passar o mouse */
.feature:hover,
.box:hover,
.use-card:hover,
.hero-card:hover,
details:hover {
    border-color: rgba(242, 101, 34, 0.55);
    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.28),
        0 0 22px rgba(242, 101, 34, 0.12);
    filter: brightness(1.06);
}

/* Ícones dos cards */
.feature .icon,
.use-card .icon,
.hero-card .icon {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.feature:hover .icon,
.use-card:hover .icon,
.hero-card:hover .icon {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 8px 22px rgba(242, 101, 34, 0.25);
}

/* Títulos dos cards */
.feature h3,
.box h3,
.use-card h3,
.hero-card h3 {
    transition: color 0.3s ease;
}

.feature:hover h3,
.box:hover h3,
.use-card:hover h3,
.hero-card:hover h3 {
    color: var(--orange, #f26522);
}

/* FAQ */
details summary {
    transition:
        color 0.25s ease,
        padding-left 0.25s ease;
}

details:hover summary {
    color: var(--orange, #f26522);
    padding-left: 5px;
}

/* Destaque rápido ao tocar no celular */
@media (max-width: 768px) {
    .feature:active,
    .box:active,
    .use-card:active,
    .hero-card:active,
    details:active {
        filter: brightness(1.08);
        border-color: rgba(242, 101, 34, 0.55);
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .feature,
    .box,
    .use-card,
    .hero-card,
    details,
    .feature .icon,
    .use-card .icon,
    .hero-card .icon,
    details summary {
        transition: none;
    }
}
/* =====================================
   BOTÃO WHATSAPP - DESTAQUE PREMIUM
===================================== */

.whatsapp-btn,
.whatsapp-btn:hover,
.btn.whatsapp-btn {
    position: relative;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        filter 0.3s ease;
}

/* Pulso suave */
.whatsapp-btn::after,
.btn.whatsapp-btn::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    background: rgba(37, 211, 102, 0.35);
    z-index: -1;
    animation: whatsappPulse 2.2s infinite;
}

/* Hover */
.whatsapp-btn:hover,
.btn.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.04);
    filter: brightness(1.08);
    box-shadow:
        0 12px 30px rgba(37, 211, 102, 0.35);
}

/* Clique */
.whatsapp-btn:active,
.btn.whatsapp-btn:active {
    transform: scale(0.97);
}


/* Animação */
@keyframes whatsappPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.15);
        opacity: 0;
    }

    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}


/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-btn::after,
    .btn.whatsapp-btn::after {
        animation: none;
    }
}
/* =====================================
   CABEÇALHO PREMIUM
===================================== */

header {
    position: sticky;
    top: 0;
    z-index: 99990;
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
}


/* Fundo e sombra quando fica fixo */
header.scrolled {
    background: rgba(12, 13, 13, 0.92);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}


/* Ajuste do logo */
header .logo img {
    transition:
        transform 0.3s ease;
}

header.scrolled .logo img {
    transform: scale(0.88);
}


/* Ajuste do botão */
header .whatsapp-btn {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

header.scrolled .whatsapp-btn {
    transform: scale(0.95);
}


/* Celular */
@media (max-width: 768px) {

    header {
        position: sticky;
        top: 0;
    }

    header .nav-inner {
        min-height: 78px !important;
    }

}
