/* ============================================================
   Gê Carvalho — estilo da landing page (codigo proprio)
   Tema escuro roxo, fiel ao original. Mobile-first.
   ============================================================ */

:root {
    --bg:        #0D010B;   /* fundo geral (cor real do original) */
    --bg-2:      #0D010B;   /* original e uniforme: sem alternancia */
    --card:      #170318;   /* fundo dos cards (um tom acima do fundo) */
    --card-bd:   #3a1140;   /* borda dos cards */
    --primary:   #605BE5;
    --accent:    #605BE5;   /* topo do gradiente dos botoes */
    --accent-2:  #292599;   /* base do gradiente dos botoes */
    --pink:      #ff4888;   /* rosa de destaque do original */
    --text:      #ffffff;
    --muted:     #E8E8E8;   /* texto secundario (cor real do original) */
    --radius:    16px;
    --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.container-estreito { max-width: 860px; }
.centro { text-align: center; margin-top: 38px; }

/* ---------- Botoes ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff; font-weight: 600; font-size: .98rem;
    padding: 14px 30px; border: none; border-radius: 999px; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    box-shadow: 0 8px 22px rgba(96,91,229,.35);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 12px 28px rgba(96,91,229,.55); }
.btn-grande { padding: 16px 38px; font-size: 1.05rem; }
.btn-pequeno { padding: 9px 20px; font-size: .9rem; }
.btn-card { align-self: center; margin-top: auto; padding: 11px 28px; font-size: .92rem; }
.btn-chevron { width: 15px; height: 15px; flex: none; }
/* Botao de CTA do menu — roxo escuro */
.btn-menu { background: #382B8C; box-shadow: 0 6px 18px rgba(56,43,140,.5); padding: 10px 22px; font-size: .92rem; }
.btn-menu:hover { background: #463aa6; box-shadow: 0 10px 26px rgba(56,43,140,.7); }
.btn-whatsapp { width: 100%; background: linear-gradient(135deg, #1faf54, #25d366); box-shadow: 0 8px 22px rgba(37,211,102,.35); }
.btn-whatsapp:hover { box-shadow: 0 12px 28px rgba(37,211,102,.5); }

/* ---------- Avisos (retorno do form) ---------- */
.aviso { position: fixed; inset: 0 0 auto 0; z-index: 999; text-align: center; padding: 13px; font-weight: 600; }
.aviso-ok  { background: #1f9d55; }
.aviso-erro { background: #c0392b; }

/* ---------- Cabecalho ---------- */
.cabecalho {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    background: rgba(13,1,11,.55); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background .3s ease, transform .35s ease;
}
.cabecalho.rolado { background: rgba(13,1,11,.92); }
.cabecalho.escondido { transform: translateY(-100%); }
/* Logo alinhada a esquerda (mesma margem do titulo da hero) + menu colado */
.cabecalho-int { display: flex; align-items: center; justify-content: flex-start; gap: 40px; height: 74px; }
.logo img { height: 36px; width: auto; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a { font-weight: 500; font-size: .96rem; color: var(--muted); transition: color .2s; }
.menu a:hover { color: #fff; }
.menu a.btn { color: #fff; }

.hamburguer { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.hamburguer span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.hamburguer.ativo span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburguer.ativo span:nth-child(2) { opacity: 0; }
.hamburguer.ativo span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(90deg, rgba(13,1,11,.94) 0%, rgba(13,1,11,.5) 40%, rgba(13,1,11,.08) 72%), url("/public/img/hero.jpg");
    background-size: cover; background-position: right top;
    padding: 120px 0 80px;
}
.hero-texto { max-width: 680px; }
.hero-texto h1 { font-size: clamp(2.1rem, 3.9vw, 2.85rem); font-weight: 800; line-height: 1.16; margin-bottom: 20px; }
.hero-texto h1 .hl1 { white-space: nowrap; }
.hero-texto h1 span { color: #fff; }
.hero-texto p { font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--muted); margin-bottom: 30px; }
.hero-texto p strong { color: #fff; font-weight: 700; }

/* ---------- Secoes ---------- */
.secao { padding: 90px 0; }
.secao-bg2 { background: var(--bg-2); }
.secao-cabecalho { text-align: center; max-width: 760px; margin: 0 auto 54px; }
.secao-cabecalho h2,
.secao h2 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 800; line-height: 1.12; }
.secao-cabecalho p { color: var(--muted); margin-top: 16px; font-size: 1.18rem; }
.secao-cabecalho p strong { color: #fff; font-weight: 700; }
.secao-cabecalho-1linha { max-width: none; }
.secao-cabecalho-1linha h2 { white-space: nowrap; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); gap: 26px; }
.card {
    display: flex; flex-direction: column;
    background: var(--card); border: 2px solid #382B8C; border-radius: var(--radius);
    padding: 46px 34px; text-align: center; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 14px 40px rgba(56,43,140,.4); }
.card h3 { font-size: 1.5rem; margin: 12px 0 14px; }
.card p { color: var(--muted); font-size: 1.02rem; margin-bottom: 28px; }
.card-beneficio p { margin-bottom: 0; }
.card-icone {
    display: inline-flex; align-items: center; justify-content: center;
    width: 96px; height: 96px; margin: 0 auto 8px;
}
.card-icone img { width: 86px; height: 86px; }

/* ---------- Sobre ---------- */
.secao-sobre { background: var(--bg-2); }
.sobre-grid { display: grid; grid-template-columns: 460px 1fr; gap: 60px; align-items: center; }
.sobre-foto img { width: 100%; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.sobre-texto h2 { margin-bottom: 20px; }
.sobre-texto p { color: var(--muted); margin-bottom: 14px; }
.sobre-texto .destaque {
    color: #fff; font-weight: 600; font-size: 1.12rem;
    border-left: 3px solid var(--pink); padding-left: 18px; margin: 22px 0;
}

/* ---------- Certificacoes ---------- */
.cert-int { text-align: center; max-width: 640px; margin: 0 auto; }
.cert-int .selo { width: 160px; height: 160px; margin: 0 auto 26px; }
.cert-int h2 { margin-bottom: 16px; }
.cert-int p { color: var(--muted); margin-bottom: 30px; }

/* ---------- Depoimentos ---------- */
.secao-depoimentos { background: var(--bg-2); }

/* Carrossel */
.carrossel { position: relative; display: flex; align-items: center; gap: 14px; }
.carrossel-trilho {
    display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; padding: 8px 4px; flex: 1;
    -ms-overflow-style: none; scrollbar-width: none;
}
.carrossel-trilho::-webkit-scrollbar { display: none; }
.carrossel-seta {
    flex: none; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
    background: var(--card); border: 1px solid var(--card-bd); color: #fff;
    display: grid; place-items: center; transition: .25s;
}
.carrossel-seta:hover { background: linear-gradient(180deg, var(--accent), var(--accent-2)); border-color: transparent; }
.carrossel-seta svg { width: 22px; height: 22px; }
.carrossel-seta:disabled { opacity: .35; cursor: default; }
.carrossel-seta:disabled:hover { background: var(--card); border-color: var(--card-bd); }
.carrossel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.carrossel-dots button {
    width: 9px; height: 9px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
    background: var(--card-bd); transition: .25s;
}
.carrossel-dots button.ativo { background: var(--accent); width: 26px; border-radius: 6px; }

.depoimento {
    flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start;
    background: var(--card); border: 1px solid var(--card-bd); border-radius: var(--radius);
    padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.estrelas { display: inline-flex; gap: 3px; color: #ffc107; }
.estrelas svg { width: 18px; height: 18px; }
.depoimento blockquote { color: var(--muted); font-size: .98rem; flex: 1; }
.depoimento figcaption { display: flex; align-items: center; gap: 12px; }
.depoimento .avatar {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(180deg, var(--accent), var(--accent-2)); font-weight: 700; flex: none;
}
.depoimento figcaption span span,
.depoimento figcaption strong { display: block; }
.depoimento figcaption strong { font-size: .94rem; white-space: nowrap; }
.depoimento figcaption small { color: var(--muted); font-size: .82rem; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--card-bd); border-radius: 8px; overflow: hidden; }
.faq-pergunta {
    width: 100%; display: flex; align-items: stretch; gap: 0;
    background: none; border: 0; color: #fff; cursor: pointer; text-align: left; font: inherit;
}
.faq-q {
    flex: none; width: 52px; display: grid; place-items: center;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    color: #fff; font-weight: 700; font-size: 1.15rem;
}
.faq-txt { flex: 1; padding: 18px 18px; font-weight: 600; font-size: 1rem; line-height: 1.4; }
.faq-toggle { flex: none; width: 50px; position: relative; color: var(--muted); }
.faq-toggle::before, .faq-toggle::after {
    content: ""; position: absolute; top: 50%; left: 50%; background: currentColor; border-radius: 2px;
}
.faq-toggle::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq-toggle::after { width: 2px; height: 14px; transform: translate(-50%, -50%); transition: transform .3s ease, opacity .3s ease; }
.faq-pergunta[aria-expanded="true"] .faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-resposta { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-resposta p { color: var(--muted); padding: 0 22px 20px 70px; }
/* Desktop: passar o mouse abre a resposta; tirar o mouse fecha */
@media (hover: hover) and (min-width: 761px) {
    .faq-pergunta { cursor: default; }
    .faq-item:hover { border-color: var(--accent); }
    .faq-item:hover .faq-resposta { max-height: 520px; }
    .faq-item:hover .faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
}

/* ---------- Contato (fechamento centralizado) ---------- */
.secao-contato { background: var(--bg); }
.contato-fechamento { max-width: 760px; margin: 0 auto; text-align: center; }
.contato-fechamento h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.12; margin-bottom: 20px; }
.contato-fechamento p { color: var(--muted); font-size: 1.18rem; margin-bottom: 34px; }

/* ---------- Rodape ---------- */
.rodape { background: #080109; padding: 50px 0; border-top: 1px solid rgba(255,255,255,.06); }
.rodape-int { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.rodape-logo { height: 36px; width: auto; }
.redes { display: flex; gap: 16px; }
.redes a {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: var(--card); border: 1px solid var(--card-bd); transition: .25s;
}
.redes a:hover { background: linear-gradient(180deg, var(--accent), var(--accent-2)); transform: translateY(-3px); }
.redes svg { width: 22px; height: 22px; }
.copyright { color: var(--muted); font-size: .88rem; }
.rodape-legais { display: flex; gap: 10px; align-items: center; font-size: .86rem; color: var(--muted); }
.rodape-legais a { color: var(--muted); text-decoration: underline; transition: color .2s; }
.rodape-legais a:hover { color: #fff; }

/* ---------- Paginas legais (Termos / Privacidade) ---------- */
.legal-topo { position: sticky; top: 0; z-index: 100; background: rgba(13,1,11,.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.legal-topo .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.legal-topo .logo img { height: 34px; width: auto; }
.legal-voltar { color: var(--muted); font-size: .95rem; transition: color .2s; }
.legal-voltar:hover { color: #fff; }
.legal { padding: 110px 0 80px; }
.legal .container { max-width: 840px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); font-weight: 800; margin-bottom: 6px; }
.legal .atualizado { color: var(--muted); font-size: .9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; font-weight: 700; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal a { color: var(--accent-2); text-decoration: underline; }
.legal strong { color: #fff; font-weight: 600; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-flutuante {
    position: fixed; right: 22px; bottom: 22px; z-index: 120;
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, #1faf54, #25d366); box-shadow: 0 8px 24px rgba(37,211,102,.5);
    transition: transform .2s;
}
.whatsapp-flutuante:hover { transform: scale(1.08); }
.whatsapp-flutuante svg { width: 32px; height: 32px; color: #fff; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
    z-index: 200; width: calc(100% - 40px); max-width: 920px;
    display: none; align-items: center; justify-content: space-between; gap: 20px;
    background: #170318; border: 1px solid var(--card-bd); border-radius: 14px;
    padding: 18px 22px; box-shadow: 0 18px 50px rgba(0,0,0,.5);
}
.cookie-banner.visivel { display: flex; animation: cookie-sobe .4s ease; }
@keyframes cookie-sobe { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cookie-banner p { color: var(--muted); font-size: .9rem; margin: 0; }
.cookie-acoes { display: flex; align-items: center; gap: 12px; flex: none; }
.cookie-recusar { background: none; border: 0; color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; text-decoration: underline; }
.cookie-recusar:hover { color: #fff; }
@media (max-width: 600px) { .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; } .cookie-acoes { justify-content: center; } }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 980px) {
    .sobre-grid { grid-template-columns: 1fr; gap: 32px; }
    .sobre-foto { max-width: 320px; margin: 0 auto; }
    .contato-grid { grid-template-columns: 1fr; gap: 34px; }
    .cards, .cards-4 { grid-template-columns: repeat(2, 1fr); }
    .depoimento { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 760px) {
    .cabecalho-int { justify-content: space-between; gap: 0; }
    .hamburguer { display: flex; }
    .menu {
        position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
        background: rgba(13,1,11,.98); padding: 0; max-height: 0; overflow: hidden;
        transition: max-height .35s ease; border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .menu.aberto { max-height: 380px; }
    .menu a { width: 100%; padding: 16px 22px; border-bottom: 1px solid rgba(255,255,255,.06); }
    .menu a.btn { margin: 14px 22px; width: auto; border-radius: 999px; }

    .hero { background-image: linear-gradient(180deg, rgba(13,1,11,.4) 0%, rgba(13,1,11,.85) 100%), url("/public/img/hero-mobile.jpg"); background-position: center top; text-align: center; }
    .hero-texto { margin: 0 auto; }

    .secao { padding: 64px 0; }
    .cards, .cards-4 { grid-template-columns: 1fr; }
    .depoimento { flex-basis: 100%; }
    .secao-cabecalho-1linha h2 { white-space: normal; }
}

/* ---------- Animacoes ---------- */
/* Reveal ao rolar (aplicado via JS; sem JS o conteudo aparece) */
.pre-anim { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.anim-visivel { opacity: 1; transform: none; }

/* Entrada do hero ao carregar, em sequencia */
@keyframes heroSobe { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.hero-texto h1 { animation: heroSobe .75s ease both; }
.hero-texto > p { animation: heroSobe .75s ease .15s both; }
.hero-texto .btn { animation: heroSobe .75s ease .3s both; }

/* Pulsar suave do botao flutuante de WhatsApp */
@keyframes wppPulse { 0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,.5); } 50% { box-shadow: 0 10px 34px rgba(37,211,102,.85); } }
.whatsapp-flutuante { animation: wppPulse 2.4s ease-in-out infinite; }

/* Brilho ao passar o mouse nos botoes */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.25), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn:hover::after { left: 130%; }

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto; }
    .faq-resposta { transition: none; }
    .pre-anim { opacity: 1; transform: none; transition: none; }
    .hero-texto h1, .hero-texto > p, .hero-texto .btn, .whatsapp-flutuante { animation: none; }
    .btn::after { display: none; }
}
