/* Camada de animações e acabamento visual da home. Respeita prefers-reduced-motion. */
:root { --gcb-azul: #6ca6db; --gcb-marinho: #0f2a52; --gcb-ease: cubic-bezier(.22, .8, .24, 1); }

/* Revelação ao rolar */
.js-motion [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .8s var(--gcb-ease), transform .8s var(--gcb-ease); transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform; }
.js-motion [data-reveal="left"] { transform: translate3d(-36px, 0, 0); }
.js-motion [data-reveal="right"] { transform: translate3d(36px, 0, 0); }
.js-motion [data-reveal="zoom"] { transform: scale(.94); }
.js-motion [data-reveal].is-visible { opacity: 1; transform: none; }

/* Entrada do hero */
.js-motion .slider .slide__title, .js-motion .slider .features-list .feature-item, .js-motion .slider .slide__content > a.btn { opacity: 0; transform: translate3d(0, 24px, 0); animation: gcb-up .9s var(--gcb-ease) forwards; }
.js-motion .slider .slide__title { animation-delay: .15s; }
.js-motion .slider .features-list .feature-item:nth-child(1) { animation-delay: .35s; }
.js-motion .slider .features-list .feature-item:nth-child(2) { animation-delay: .45s; }
.js-motion .slider .features-list .feature-item:nth-child(3) { animation-delay: .55s; }
.js-motion .slider .features-list .feature-item:nth-child(4) { animation-delay: .65s; }
.js-motion .slider .features-list .feature-item:nth-child(5) { animation-delay: .75s; }
.js-motion .slider .slide__content > a.btn { animation-delay: .9s; }
@keyframes gcb-up { to { opacity: 1; transform: none; } }

.slider .bg-img img { animation: gcb-kenburns 18s ease-out both; transform-origin: 70% 40%; }
@keyframes gcb-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }

.slider .feature__icon { transition: transform .45s var(--gcb-ease), box-shadow .45s var(--gcb-ease); }
.slider .feature-item:hover .feature__icon { transform: translateY(-6px) scale(1.06); box-shadow: 0 14px 28px rgba(15, 42, 82, .28); }

/* Títulos de seção com traço animado */
.about-layout-gcb2 .heading__title::after, .services-layout-gcb .heading__title::after { content: ""; display: block; width: 0; height: 4px; margin-top: 18px; border-radius: 4px; background: linear-gradient(90deg, var(--gcb-azul), var(--gcb-marinho)); transition: width 1s var(--gcb-ease) .3s; }
.about-layout-gcb2 .is-visible .heading__title::after, .services-layout-gcb .is-visible .heading__title::after, .about-layout-gcb2 .heading__title.is-visible::after, .services-layout-gcb .heading__title.is-visible::after { width: 84px; }

/* Benefícios em cartões */
.about-layout-gcb2 .list-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; }
.about-layout-gcb2 .list-items li { position: relative; padding: 20px 20px 20px 62px; border: 1px solid rgba(108, 166, 219, .28); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(15, 42, 82, .06); line-height: 1.55; transition: transform .35s var(--gcb-ease), box-shadow .35s var(--gcb-ease), border-color .35s; }
.about-layout-gcb2 .list-items li::before { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gcb-azul); color: #fff; font-size: 12px; }
.about-layout-gcb2 .list-items li:hover { transform: translateY(-5px); border-color: var(--gcb-azul); box-shadow: 0 18px 38px rgba(15, 42, 82, .14); }
.about-layout-gcb2 .list-items li:last-child { grid-column: 1 / -1; background: linear-gradient(120deg, var(--gcb-marinho), #1d4f8f); color: #fff; border: 0; }
.about-layout-gcb2 .list-items li:last-child b { color: #fff; }
@media (max-width: 767px) { .about-layout-gcb2 .list-items { grid-template-columns: 1fr; } }

/* Planos */
.plan-card { transition: transform .45s var(--gcb-ease), box-shadow .45s var(--gcb-ease); }
.plan-card:hover { transform: translateY(-10px); box-shadow: 0 28px 60px rgba(15, 42, 82, .22); }
.plan-card--featured { animation: gcb-pulse 3.6s ease-in-out infinite; }
@keyframes gcb-pulse { 0%, 100% { box-shadow: 0 18px 44px rgba(15, 42, 82, .22); } 50% { box-shadow: 0 24px 64px rgba(108, 166, 219, .55); } }
.plan-card__badge i { animation: gcb-wiggle 2.8s ease-in-out infinite; display: inline-block; }
@keyframes gcb-wiggle { 0%, 80%, 100% { transform: rotate(0); } 86% { transform: rotate(-14deg); } 92% { transform: rotate(10deg); } }

/* Serviços, vídeo, botões, cabeçalho */
.services-layout-gcb .service-item, .services-layout-gcb .service__item { transition: transform .4s var(--gcb-ease), box-shadow .4s var(--gcb-ease); }
.services-layout-gcb .service-item:hover, .services-layout-gcb .service__item:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(15, 42, 82, .25); }
.video-banner-layout-gcb { overflow: hidden; border-radius: 24px; }
.video-banner-layout-gcb img { transition: transform 1.2s var(--gcb-ease); }
.video-banner-layout-gcb:hover img { transform: scale(1.05); }
.video__player { animation: gcb-ring 2.4s ease-out infinite; }
@keyframes gcb-ring { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 100% { box-shadow: 0 0 0 26px rgba(255, 255, 255, 0); } }
.btn { transition: transform .3s var(--gcb-ease), box-shadow .3s var(--gcb-ease), background-color .3s; }
.btn:hover { transform: translateY(-2px); }
.header.is-scrolled { box-shadow: 0 8px 28px rgba(15, 42, 82, .14); }

/* Barra de progresso de leitura */
.gcb-progress { position: fixed; inset: 0 auto auto 0; z-index: 99999; height: 3px; width: 100%; background: linear-gradient(90deg, var(--gcb-azul), var(--gcb-marinho)); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .js-motion [data-reveal], .js-motion .slider .slide__title, .js-motion .slider .features-list .feature-item, .js-motion .slider .slide__content > a.btn { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .slider .bg-img img, .plan-card--featured, .plan-card__badge i, .video__player { animation: none !important; }
}

/* Botão flutuante do WhatsApp */
.gcb-wapp { position: fixed; right: 22px; bottom: 92px; z-index: 10000000; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(145deg, #2fe27a, #1ebe5d); color: #fff; font-size: 32px; box-shadow: 0 10px 24px rgba(30, 190, 93, .45); transition: transform .3s var(--gcb-ease); }
.gcb-wapp::before, .gcb-wapp::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(47, 226, 122, .7); animation: gcb-wapp-ring 2.4s ease-out infinite; pointer-events: none; }
.gcb-wapp::after { animation-delay: 1.2s; }
@keyframes gcb-wapp-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.38); opacity: 0; } }
.gcb-wapp:hover { color: #fff; transform: scale(1.08); }
.gcb-wapp i { animation: gcb-wapp-shake 4s ease-in-out infinite; }
@keyframes gcb-wapp-shake { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-14deg); } 92% { transform: rotate(12deg); } 95% { transform: rotate(-8deg); } }
.gcb-wapp__tip { position: absolute; right: 74px; top: 50%; padding: 8px 14px; border-radius: 999px; background: #0f284c; color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; opacity: 0; transform: translate(10px, -50%); transition: opacity .3s, transform .3s; pointer-events: none; }
.gcb-wapp:hover .gcb-wapp__tip { opacity: 1; transform: translate(0, -50%); }
@media (prefers-reduced-motion: reduce) { .gcb-wapp::before, .gcb-wapp::after, .gcb-wapp i { animation: none !important; } }
