/* ============================================================
   Upgrade visual - index2.php
   - Imagem do teclado (body bg) mantida, desfocada
   - Radial gradient animado com leve mudanca de cor
   - Pulse nos CTAs do WhatsApp
   - Cards de curso a partir de <div>
   ============================================================ */

/* ---------- Camada de atmosfera (desfoca o teclado) ---------- */
/* --scroll-darken (0..1) e setado pelo JS conforme rolagem - escurece o overlay */
.bg-fx {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    -webkit-backdrop-filter: blur(4px) saturate(118%);
    backdrop-filter: blur(4px) saturate(118%);
    background-color: rgba(20, 20, 20, calc(0.16 + 0.55 * var(--scroll-darken, 0)));
    transition: background-color 0.15s linear;
}

/* Radial gradient animado - drift suave + leve hue-rotate */
.bg-fx::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 25% 30%, rgba(255, 158, 51, 0.28), transparent 55%),
        radial-gradient(circle at 75% 70%, rgba(70, 214, 121, 0.22), transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(120, 90, 200, 0.18), transparent 65%);
    filter: blur(60px);
    animation: bgRadial 28s ease-in-out infinite alternate;
    will-change: transform, filter;
}

/* Vinheta */
.bg-fx::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
}

@keyframes bgRadial {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(60px) hue-rotate(0deg);
    }
    50% {
        transform: translate3d(2%, -2%, 0) scale(1.06);
        filter: blur(60px) hue-rotate(20deg);
    }
    100% {
        transform: translate3d(-2%, 1%, 0) scale(1.03);
        filter: blur(60px) hue-rotate(40deg);
    }
}

/* ---------- CTA verde - alto contraste (WCAG AA) ---------- */
/* Verde mais escuro/saturado para texto branco passar AA */
.btn-success.tag {
    position: relative;
    overflow: visible;
    background-color: #0e9f47 !important;
    border-color: #0b8a3d !important;
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    box-shadow: 0 8px 26px rgba(14, 159, 71, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.18);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease, background-color .2s;
    animation: ctaPulse 2.4s ease-in-out infinite;
    will-change: transform;
}

.btn-success.tag::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: 0 0 0 0 rgba(14, 159, 71, 0.75);
    animation: ctaRipple 2.4s ease-out infinite;
}

.btn-success.tag:hover {
    background-color: #0b8a3d !important;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 14px 38px rgba(14, 159, 71, 0.7), inset 0 -2px 0 rgba(0, 0, 0, 0.22);
    filter: brightness(1.05);
    animation-play-state: paused;
}

.btn-success.tag:hover::after {
    animation-play-state: paused;
}

@keyframes ctaPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.035); }
}

@keyframes ctaRipple {
    0%   { box-shadow: 0 0 0 0 rgba(70, 214, 121, 0.45); }
    70%  { box-shadow: 0 0 0 22px rgba(70, 214, 121, 0); }
    100% { box-shadow: 0 0 0 0 rgba(70, 214, 121, 0); }
}

/* ---------- YouTube responsivo (sem JS) ---------- */
.ytplayer-wrap {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto 22px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.ytplayer-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ---------- Cards dos cursos (com <img> real para SEO) ---------- */
.nossos-cursos div.curso {
    margin: 15px auto;
    border-radius: 20px;
    background-color: #333;
    display: block;
    width: calc(100% - 20px);
    aspect-ratio: 320 / 390;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    transform: scale(1, 1);
    transition: transform 0.3s, box-shadow 0.4s;
    cursor: default;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.nossos-cursos div.curso > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 0;
}

.nossos-cursos div.curso:hover {
    transform: scale(1.05, 1.05);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 158, 51, 0.20);
}

.nossos-cursos div.curso strong {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    text-decoration: none;
    width: 100%;
    display: block;
    text-align: center;
    bottom: 0;
    position: absolute;
    padding-top: 40px;
    padding-bottom: 12px;
    transition: 0.3s;
    z-index: 2;
}

.nossos-cursos div.curso:hover strong {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    padding-top: 150px;
}

.nossos-cursos div.curso::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.8s ease;
    pointer-events: none;
    z-index: 1;
}
.nossos-cursos div.curso:hover::before {
    transform: translateX(120%);
}

/* ---------- Hover sutil nas imagens da galeria (sinaliza zoom) ---------- */
.owl-galeria .owl-item img {
    cursor: zoom-in;
    transition: transform .3s ease, filter .3s ease, box-shadow .3s ease;
}
.owl-galeria .owl-item img:hover {
    transform: scale(1.03);
    filter: brightness(1.06);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

/* ---------- Botao flutuante WhatsApp (canto inferior direito) ---------- */
.float-whats {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    z-index: 999;
    animation: ctaPulse 2.4s ease-in-out infinite;
    transition: transform .25s ease, box-shadow .25s ease;
}
.float-whats::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
    animation: ctaRipple 2.4s ease-out infinite;
}
.float-whats:hover {
    transform: scale(1.08);
    color: #fff;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.65);
    animation-play-state: paused;
}
.float-whats:hover::after { animation-play-state: paused; }
.float-whats i { line-height: 1; }

/* ---------- Balao "Alguma duvida?" (aparece apos 15s, discreto) ---------- */
.hint-balloon {
    position: fixed;
    right: 22px;
    bottom: 96px;
    background: #ffffff;
    color: #202020;
    border-radius: 12px;
    padding: 8px 30px 8px 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.30);
    z-index: 1000;
    transform: translateY(8px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}
.hint-balloon.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.hint-balloon::after {
    /* ponta apontando pro botao */
    content: "";
    position: absolute;
    bottom: -8px;
    right: 22px;
    width: 0; height: 0;
    border: 9px solid transparent;
    border-top-color: #ffffff;
    border-bottom: 0;
    filter: drop-shadow(0 3px 3px rgba(0,0,0,0.10));
}
.hint-balloon p {
    margin: 0;
    color: #202020;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.1rem;
    white-space: nowrap;
}
.hint-close {
    position: absolute;
    top: 2px; right: 6px;
    background: transparent;
    border: 0;
    width: 20px; height: 20px;
    line-height: 1;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    padding: 0;
}
.hint-close:hover { color: #202020; }

@media (max-width: 640px) {
    .nossos-cursos div.curso { width: 100%; }
    .float-whats { width: 54px; height: 54px; font-size: 28px; right: 16px; bottom: 16px; }
    .hint-balloon { right: 16px; bottom: 82px; width: 210px; }
}

@media (prefers-reduced-motion: reduce) {
    .bg-fx::before,
    .btn-success.tag,
    .btn-success.tag::after,
    .float-whats,
    .float-whats::after,
    .nossos-cursos div.curso,
    .nossos-cursos div.curso::before {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Section.info - cards empilhados (icone | texto), numero como heroi ---------- */
/* Reset do padding excessivo herdado de style.css */
section.info .infos {
    padding-top: 1.1rem !important;
    padding-bottom: 1.1rem !important;
    margin-bottom: 2.2rem;
}
section.info .infos:last-of-type {
    margin-bottom: 0;
}

section.info .info-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    max-width: 420px;
    margin: 0 auto;
    padding: 1.1rem 1.25rem;
    border-left: 2px solid rgba(255, 158, 51, 0.25);
}

/* Icone discreto - circulo translucido com borda laranja */
section.info .info-icon {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 158, 51, 0.10);
    border: 1.5px solid rgba(255, 158, 51, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffb84d;
    font-size: 1.35rem;
    line-height: 1;
}

/* Bloco de texto - alinhado a esquerda (sobrepoe text-align: center de style.css) */
section.info .info-text {
    flex: 1 1 auto;
    text-align: left;
    min-width: 0;
}
section.info .info-text p,
section.info .info-text h2,
section.info .info-text > span {
    width: auto;
    text-align: left;
    display: block;
    margin: 0;
}

/* Label "MAIS DE" / "E O MELHOR," - discreto */
section.info .info-text p {
    color: #ffffff;
    opacity: 0.75;
    font-size: 0.85rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* H2 wrapper - nao adiciona estilo, e apenas semantico */
section.info .info-text h2 {
    margin: 0;
    line-height: 0.95;
    font-size: inherit;
}

/* HERO numerico - destaque maximo (5rem desktop) */
section.info .info-text h2 strong {
    color: #ffb84d;
    font-size: 5rem;
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7);
    display: inline-block;
}

/* HERO textual ("Método Único") - menor que numero, mas pareando visualmente */
section.info .info-text h2 strong.hero-text {
    font-size: 2.6rem;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* Descricao abaixo do heroi - APENAS span filho direto (nao bater no .count interno) */
section.info .info-text > span {
    color: #ffffff;
    opacity: 0.85;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 500;
    margin-top: 6px;
}

/* .count vive dentro de <strong>; precisa herdar tudo do strong e neutralizar
   o `.infos span { width:100%; text-align:center; font-weight:600 }` de style.css */
section.info .info-text h2 strong .count {
    font-size: inherit;
    font-weight: inherit;
    color: #ff9e33;
    line-height: inherit;
    letter-spacing: inherit;
    text-shadow: inherit;
    font-variant-numeric: tabular-nums;
    display: inline-block;
    width: auto;
    text-align: left;
}

/* fade-up sutil no numero quando entra na viewport */
.count[data-count]:not(.counted) {
    opacity: 0.001;
}
.count.counted {
    animation: countFadeUp .55s ease-out both;
}
@keyframes countFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Mobile: numero menor, card mais compacto */
@media (max-width: 767px) {
    section.info .infos {
        margin-bottom: 1.6rem;
    }
    section.info .info-card {
        max-width: 360px;
        padding: 0.9rem 1rem;
        gap: 1rem;
    }
    section.info .info-text h2 strong {
        font-size: 3.6rem;
    }
    section.info .info-text h2 strong.hero-text {
        font-size: 2rem;
    }
    section.info .info-icon {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }
}

/* ---------- Avaliações do Google (carrossel) ---------- */
section.depoimentos {
    padding: 4rem 0 5rem;
}

.reviews-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.reviews-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b8b8b8;
    margin-bottom: 0.6rem;
}
.reviews-eyebrow .g-icon-sm {
    width: 16px;
    height: 16px;
    display: inline-flex;
}
.reviews-header h2 {
    margin: 0 0 1rem;
}
.reviews-header h2 strong { color: #ff9e33; }

.reviews-rating {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 18px;
    border-radius: 999px;
}
.rating-score {
    color: #ffb84d;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}
.stars-row {
    display: inline-flex;
    gap: 3px;
    color: #ffb84d;
    font-size: 1rem;
    line-height: 1;
}
.rating-count {
    color: #d8d8d8;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ---------- Card de review ---------- */
.review-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px 22px 24px;
    height: 100%;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    transition: border-color .25s, background .25s, transform .25s;
}
.review-card:hover {
    background: rgba(255, 158, 51, 0.05);
    border-color: rgba(255, 158, 51, 0.30);
    transform: translateY(-3px);
}

.review-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.review-avatar {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9e33 0%, #ff7a00 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.35);
    user-select: none;
}
.review-meta {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.review-meta strong {
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.review-meta small {
    color: #b0b0b0;
    font-size: 0.8rem;
    margin-top: 2px;
}
.review-google-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    display: inline-flex;
    opacity: 0.95;
}

.review-stars {
    display: flex;
    gap: 2px;
    color: #ffb84d;
    font-size: 0.92rem;
    margin-bottom: 10px;
    line-height: 1;
}

.review-text {
    color: #dcdcdc;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
    /* trunca em ~6 linhas para manter cards uniformes */
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Owl dots adaptados ao tema laranja ---------- */
.owl-google .owl-dots {
    margin-top: 1.8rem !important;
    text-align: center;
}
.owl-google .owl-dots .owl-dot span {
    background: rgba(255, 255, 255, 0.20) !important;
    width: 9px;
    height: 9px;
    margin: 5px 4px;
    transition: background .2s, width .25s;
}
.owl-google .owl-dots .owl-dot.active span {
    background: #ff9e33 !important;
    width: 26px;
    border-radius: 999px;
}
.owl-google .owl-dots .owl-dot:focus { outline: none; }

/* ---------- CTA "Ver todas no Google" ---------- */
.reviews-cta {
    margin-top: 2.2rem;
}
.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #1f1f1f !important;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: transform .2s, box-shadow .2s;
}
.btn-google:hover {
    transform: translateY(-2px);
    color: #1f1f1f !important;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
}
.btn-google .g-icon-sm {
    width: 20px;
    height: 20px;
    display: inline-flex;
}

@media (max-width: 767px) {
    section.depoimentos { padding: 3rem 0 4rem; }
    .review-card { min-height: 220px; padding: 18px; }
    .reviews-rating { flex-wrap: wrap; justify-content: center; gap: 8px; padding: 8px 14px; }
    .rating-count { font-size: 0.85rem; }
}

/* ---------- FAQ (details/summary) ---------- */
section.faq {
    padding: 60px 0 80px;
}
section.faq h2 {
    text-align: center;
    margin-bottom: 40px;
}
section.faq h2 strong {
    color: #ff9e33;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color .2s, background .2s;
}
.faq-item[open] {
    background: rgba(255, 158, 51, 0.06);
    border-color: rgba(255, 158, 51, 0.30);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 52px 16px 18px;
    color: #f2f2f2;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.4;
    position: relative;
    user-select: none;
    transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff9e33;
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 400;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: #ff9e33; }
.faq-item summary:focus-visible {
    outline: 2px solid #ff9e33;
    outline-offset: 2px;
    border-radius: 4px;
}
.faq-item .faq-answer {
    padding: 0 18px 18px;
    color: #b8b8b8;
    font-size: 0.95rem;
    line-height: 1.55;
}
.faq-item .faq-answer p { margin: 0 0 10px; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }
.faq-list-bullets {
    margin: 10px 0 0;
    padding-left: 20px;
}
.faq-list-bullets li {
    margin-bottom: 6px;
}
.faq-list-bullets li strong {
    color: #f2f2f2;
}
