/* ============ Variáveis ============ */
:root{
  --navy:#0b2a5b;
  --navy-dark:#071c40;
  --blue:#123f86;
  --yellow:#fbb915;
  --yellow-dark:#e9a400;
  --green:#22c55e;
  --text:#1c2333;
  --muted:#4b5568;
  --bg-soft:#f3f6fb;
  --card-blue:#e7f0fc;
  --card-cream:#fdf6e8;
  --radius:14px;
  --shadow:0 12px 34px rgba(11,42,91,.12);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Barlow',system-ui,sans-serif;color:var(--text);background:#fff;line-height:1.45;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{width:min(1180px,100% - 32px);margin-inline:auto}

/* ============ Ícones ============ */
.ico{width:22px;height:22px;flex:none}
.ico--sm{width:16px;height:16px}
.ico--lg{width:36px;height:36px}
.ico--xl{width:46px;height:46px}

/* ============ Botões ============ */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:700;border-radius:999px;padding:12px 22px;border:2px solid transparent;cursor:pointer;font-family:inherit;font-size:1rem;transition:transform .15s,background .2s,box-shadow .2s}
.btn:hover{transform:translateY(-2px)}
.btn--sm{padding:10px 18px;font-size:.95rem;border-radius:10px}
.btn--lg{padding:15px 30px;font-size:1.1rem}
.btn--yellow{background:var(--yellow);color:var(--navy)}
.btn--yellow:hover{background:var(--yellow-dark);box-shadow:0 8px 20px rgba(251,185,21,.35)}
.btn--outline{border-color:#fff;color:#fff}
.btn--outline:hover{background:rgba(255,255,255,.1)}
.btn--green{background:var(--green);color:#fff}
.btn--green:hover{background:#16a34a;box-shadow:0 8px 20px rgba(34,197,94,.35)}

/* ============ Header ============ */
.header{position:sticky;top:0;z-index:50;background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.06)}
.header__inner{display:flex;align-items:center;gap:28px;height:72px}
.logo{display:flex;align-items:center;gap:8px;color:var(--navy);font-size:1.6rem;font-weight:700;letter-spacing:-.5px;white-space:nowrap}
.logo__icon{width:40px;height:40px;color:var(--navy)}
.logo__text strong{color:var(--blue)}
.logo img{height:44px;width:auto}
.nav{display:flex;gap:22px;margin-left:auto;font-size:.95rem;font-weight:500;color:var(--navy)}
.nav a:hover{color:var(--blue);text-decoration:underline;text-underline-offset:6px}
.menu-toggle{display:none;background:none;border:0;width:40px;height:40px;cursor:pointer;flex-direction:column;justify-content:center;gap:5px;padding:8px}
.menu-toggle span{display:block;height:3px;border-radius:3px;background:var(--navy)}

/* ============ Hero ============ */
.hero{position:relative;color:#fff;overflow:hidden;padding:56px 0 0}
.hero__bg{position:absolute;inset:0;background:
  radial-gradient(circle at 15% 30%,#1b4fa3 0,transparent 45%),
  radial-gradient(circle at 90% 10%,#1d58b8 0,transparent 35%),
  linear-gradient(115deg,var(--navy-dark),var(--navy) 55%,var(--blue));z-index:-1}
.hero__bg::after{content:"";position:absolute;right:-120px;top:-60px;width:520px;height:520px;border:34px solid rgba(80,140,230,.25);border-radius:40% 60% 50% 50%;transform:rotate(25deg)}
.hero__inner{display:grid;grid-template-columns:1.05fr 1fr;gap:30px;align-items:end}
.hero__content{padding-bottom:110px}
.hero h1{font-size:clamp(2.6rem,6vw,4.6rem);line-height:.98;font-weight:800;letter-spacing:-1.5px}
.hero h1 .line{display:block}
.hero h1 .hl{color:var(--yellow)}
.hero__lead{font-size:1.35rem;margin:20px 0 22px;max-width:30ch;opacity:.95}
.hero__list{list-style:none;display:grid;gap:14px;margin-bottom:30px;font-size:1.1rem}
.hero__list li{display:flex;align-items:center;gap:14px}
.hero__actions{display:flex;flex-wrap:wrap;gap:14px}
.hero__placeholder{position:absolute;inset:20px 40px 0;border-radius:20px;background:rgba(255,255,255,.06);display:flex;align-items:flex-end;justify-content:center}
.hero__placeholder svg{width:70%}
.hero__img + .hero__placeholder{display:none}
.hero__stamp{position:absolute;z-index:3;right:-10px;bottom:150px;width:190px;padding:26px 22px;background:var(--yellow);color:var(--navy);font-family:'Caveat Brush',cursive;font-size:1.65rem;line-height:1.05;transform:rotate(-10deg);border-radius:46% 54% 42% 58%/55% 45% 55% 45%;box-shadow:0 10px 30px rgba(0,0,0,.25);text-align:center}

.hero__media{position:relative;min-height:460px;display:flex;align-items:flex-end;justify-content:center}
.hero__img{position:relative;z-index:2;width:100%;max-width:560px;height:auto;filter:drop-shadow(0 20px 30px rgba(0,0,0,.35))}
.hero__blob{position:absolute;z-index:0;width:82%;aspect-ratio:1;left:9%;bottom:40px;background:linear-gradient(140deg,#2d7fe0,#1452b3);border-radius:42% 58% 63% 37%/45% 40% 60% 55%;opacity:.85}
.hero__dot{position:absolute;z-index:1;border-radius:50%}
.hero__dot--1{width:22px;height:22px;background:var(--yellow);top:12%;left:6%}
.hero__dot--2{width:14px;height:14px;border:3px solid #7fb2ff;top:30%;right:4%}

/* ============ Animações ============ */
@keyframes fadeUp{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
@keyframes heroIn{from{opacity:0;transform:translateY(40px) scale(.97)}to{opacity:1;transform:none}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes morph{0%,100%{border-radius:42% 58% 63% 37%/45% 40% 60% 55%;transform:rotate(0)}50%{border-radius:58% 42% 38% 62%/55% 60% 40% 45%;transform:rotate(8deg)}}
@keyframes stampIn{0%{opacity:0;transform:rotate(-30deg) scale(.4)}70%{opacity:1;transform:rotate(-6deg) scale(1.08)}100%{opacity:1;transform:rotate(-10deg) scale(1)}}
@keyframes wiggle{0%,100%{transform:rotate(-10deg)}50%{transform:rotate(-6deg) scale(1.04)}}
@keyframes spinSlow{to{transform:rotate(385deg)}}
@keyframes bob{0%,100%{transform:translate(0,0)}50%{transform:translate(8px,-14px)}}
@keyframes shine{0%{left:-60%}60%,100%{left:130%}}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(34,197,94,.55)}70%{box-shadow:0 0 0 18px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}
@keyframes underline{from{transform:scaleX(0)}to{transform:scaleX(1)}}

.a-up{opacity:0;animation:fadeUp .8s cubic-bezier(.2,.7,.2,1) var(--d,0s) forwards}
.hero h1 .hl{position:relative;display:inline-block}
.hero h1 .hl::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:5px;border-radius:6px;background:var(--yellow);opacity:.9;transform-origin:left;transform:scaleX(0);animation:underline .7s .9s ease-out forwards}
.hero__img{opacity:0;animation:heroIn 1s .3s cubic-bezier(.2,.7,.2,1) forwards,float 6s 1.4s ease-in-out infinite}
.hero__blob{animation:morph 12s ease-in-out infinite}
.hero__bg::after{animation:spinSlow 60s linear infinite}
.hero__dot--1{animation:bob 5s ease-in-out infinite}
.hero__dot--2{animation:bob 6s 1s ease-in-out infinite reverse}
.hero__stamp{opacity:0;animation:stampIn .7s 1.1s cubic-bezier(.3,1.4,.5,1) forwards,wiggle 4s 2s ease-in-out infinite}
.btn--yellow{position:relative;overflow:hidden}
.btn--yellow::after{content:"";position:absolute;top:0;bottom:0;width:40%;left:-60%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);transform:skewX(-20deg);animation:shine 4s 2s ease-in-out infinite}
.whats-float{animation:pulse 2.2s infinite}
.btn--outline:hover .ico{animation:wiggle .5s}

.reveal{opacity:0;transform:translateY(30px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.reveal.is-in{opacity:1;transform:none}
.why__brush.reveal{transform:rotate(-12deg) scaleX(0);transform-origin:left;transition:opacity .4s,transform .9s cubic-bezier(.2,.7,.2,1)}
.why__brush.reveal.is-in{transform:rotate(-12deg) scaleX(1)}
.no-js .reveal{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .a-up,.hero__img,.hero__stamp,.reveal{opacity:1!important;transform:none!important}
  .hero__stamp{transform:rotate(-10deg)!important}
}

/* ============ Busca ============ */
.search-wrap{margin-top:-74px;position:relative;z-index:5}
.search{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:22px 24px 26px}
.search h2{color:var(--navy);font-size:1.75rem;font-weight:700;margin-bottom:14px}
.search__fields{display:grid;grid-template-columns:2fr 1.2fr 1fr auto;gap:12px}
.field{position:relative;display:flex;align-items:center;border:1px solid #d5dbe5;border-radius:10px;height:50px;background:#fff}
.field:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px rgba(18,63,134,.12)}
.field__ico{position:absolute;left:14px;color:var(--navy)}
.field input,.field select{width:100%;height:100%;border:0;background:none;font:inherit;font-size:.98rem;color:var(--text);padding:0 14px;outline:none}
.field input{padding-left:46px}
.field select{appearance:none;cursor:pointer;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%230b2a5b' stroke-width='2.5'/%3E%3C/svg%3E") no-repeat right 14px center/18px}
.search .btn{border-radius:10px;height:50px}

/* ============ Diferenciais ============ */
.features{background:var(--bg-soft);padding:44px 0 40px}
.features__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.feature{display:flex;gap:16px;color:var(--navy)}
.feature h3{font-size:1.15rem;line-height:1.15;margin-bottom:6px}
.feature p{color:var(--muted);font-size:.95rem}

/* ============ Cursos ============ */
.courses{padding:60px 0 50px}
.section-title{color:var(--navy);font-size:clamp(1.7rem,3.2vw,2.2rem);font-weight:700;letter-spacing:-.5px}
.section-sub{color:var(--muted);font-size:1.2rem;margin-top:4px}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px}
.card{border-radius:var(--radius);padding:26px 22px;display:flex;flex-direction:column;gap:16px;transition:transform .2s,box-shadow .2s}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.card--white{background:#fff;box-shadow:0 4px 20px rgba(11,42,91,.07)}
.card--blue{background:var(--card-blue)}
.card--cream{background:var(--card-cream)}
.card__head{display:flex;align-items:center;gap:20px;color:var(--navy)}
.card__head h3{font-size:1.2rem;line-height:1.15}
.card p{color:var(--muted);font-size:1.08rem;flex:1}
.card__link{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:var(--blue)}
.card__link:hover{text-decoration:underline}

.results{margin-top:36px}
.results__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:10px}
.results__head h3{color:var(--navy);font-size:1.3rem}
.results__clear{background:none;border:0;color:var(--blue);font:inherit;font-weight:600;cursor:pointer}
.results__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.course{border:1px solid #e1e6ef;border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:8px;background:#fff}
.course__tag{align-self:flex-start;font-size:.78rem;font-weight:700;color:var(--navy);background:var(--card-blue);padding:3px 10px;border-radius:999px}
.course h4{color:var(--navy);font-size:1.1rem}
.course small{color:var(--muted)}
.course a{margin-top:auto;font-weight:700;color:#16a34a;display:inline-flex;gap:6px;align-items:center}
.empty{color:var(--muted)}

/* ============ Por que ============ */
.why{background:var(--bg-soft);padding:60px 0 0;overflow:hidden}
.why__inner{display:grid;grid-template-columns:.75fr 1.25fr;gap:30px;align-items:center}
.why__media{position:relative;min-height:380px;display:flex;align-items:flex-end;justify-content:center}
.why__brush{position:absolute;left:-60px;right:-10px;top:30%;height:160px;background:var(--yellow);border-radius:50% 40% 60% 30%/60% 50% 40% 50%;transform:rotate(-12deg)}
.why__img{position:relative;z-index:1;width:auto;max-height:430px;object-fit:contain;filter:drop-shadow(0 18px 24px rgba(11,42,91,.18))}
.why__img.is-in{animation:float 7s 1s ease-in-out infinite}
.why__placeholder{position:relative;z-index:1;width:240px}
.why__media img + .why__placeholder{display:none}
.why__grid{display:grid;grid-template-columns:1fr 1fr;gap:28px 30px;margin-top:28px;padding-bottom:40px}
.why__item{display:flex;gap:18px;color:var(--navy)}
.why__item h3{font-size:1.15rem;margin-bottom:4px}
.why__item p{color:var(--muted);font-size:.98rem}

/* ============ CTA ============ */
.cta-wrap{background:var(--bg-soft);padding:0 0 40px}
.cta{background:var(--navy-dark);border-radius:20px;padding:28px 32px;display:grid;grid-template-columns:auto auto 1fr auto;gap:26px;align-items:center;color:#fff}
.cta__star{width:72px;height:72px;color:#6b9be0}
.cta h2{font-size:clamp(1.5rem,2.6vw,2rem);line-height:1.05}
.cta h2 span{color:var(--yellow)}
.cta p{font-size:.98rem;opacity:.85;max-width:42ch}

/* ============ Footer ============ */
.footer{background:#001833;color:#fff;font-family:Arial,Helvetica,sans-serif;padding:56px 0 0}
.footer__grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;padding-bottom:40px}
.footer h3{color:#fdeea0;font-size:1.15rem;font-weight:700;margin:0 0 22px 10px}
.footer__list{list-style:none;display:grid;gap:10px;margin:0 0 14px 10px;font-size:1rem}
.footer__list li{display:flex;align-items:center;gap:8px}
.footer__list a:hover{color:#fdeea0;text-decoration:underline}
.footer__company{font-size:.92rem;line-height:1.65;color:#fff}
.footer__bottom{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,.1);padding:18px 0;font-size:.82rem;color:rgba(255,255,255,.6)}

/* ============ WhatsApp flutuante ============ */
.whats-float{position:fixed;right:18px;bottom:18px;z-index:60;width:58px;height:58px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;box-shadow:0 8px 24px rgba(0,0,0,.25);transition:transform .2s}
.whats-float:hover{transform:scale(1.08)}
.whats-float .ico{width:30px;height:30px}

/* ============ Responsivo ============ */
@media (max-width:1024px){
  .nav{gap:14px;font-size:.88rem}
  .search__fields{grid-template-columns:1fr 1fr}
  .search__fields .field--grow{grid-column:1/-1}
  .features__grid{grid-template-columns:repeat(2,1fr)}
  .cta{grid-template-columns:auto 1fr;}
  .cta p{grid-column:1/-1}
  .cta .btn{grid-column:1/-1;justify-self:start}
}
@media (max-width:860px){
  .menu-toggle{display:flex;margin-left:auto}
  .header .btn--sm{display:none}
  .nav{position:absolute;top:72px;left:0;right:0;background:#fff;flex-direction:column;gap:0;padding:8px 16px 16px;box-shadow:0 10px 20px rgba(0,0,0,.08);display:none;margin:0;font-size:1rem}
  .nav.open{display:flex}
  .nav a{padding:12px 0;border-bottom:1px solid #eef1f6}
  .hero{padding-top:40px}
  .hero__inner{grid-template-columns:1fr}
  .hero__media{min-height:0}
  .hero__content{padding-bottom:10px}
  .hero{padding-bottom:70px}
  .hero__img{max-width:420px}
  .hero__stamp{width:140px;font-size:1.25rem;bottom:90px;right:0;padding:16px}
  .cards{grid-template-columns:1fr}
  .why__inner{grid-template-columns:1fr}
  .why__media{order:2;min-height:220px}
}
@media (max-width:560px){
  .footer__grid{grid-template-columns:1fr;gap:28px}
  .footer__bottom{padding-bottom:90px}
  .footer h3,.footer__list{margin-left:0}
  .footer__list{font-size:.95rem;word-break:break-word}
  .logo{font-size:1.3rem}
  .logo__icon{width:32px;height:32px}
  .search__fields{grid-template-columns:1fr}
  .search .btn{width:100%}
  .features__grid,.why__grid{grid-template-columns:1fr}
  .hero__actions .btn{width:100%}
  .cta{grid-template-columns:1fr;text-align:left}
  .cta__star{width:52px;height:52px}
  .cta .btn{width:100%}
}
