/* =========================================================
   Colégio Santa Clara — Landing Page
   Reconstruída fiel ao design do Canva
   Tokens unificados (cores amostradas do molde)
   ========================================================= */
:root {
  --navy:      #071a4f;   /* azul-marinho (painéis, cards, footer) */
  --royal:     #134a94;   /* azul royal (depoimentos) */
  --orange:    #de9007;   /* laranja (botão, pizzas) */
  --yellow:    #e7ba03;   /* amarelo (faixa, pizzas, cards) */
  --gold:      #ffd516;   /* destaque de texto no hero */
  --blue-btn:  #2b8fd6;   /* botão Enviar */
  --ink:       #14224a;
  --radius:    18px;
  --shadow:    0 6px 18px rgba(11, 31, 92, .06);
  --sec-pad:   72px;
  --maxw:      1120px;
  --font:      'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ease:      cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); color: var(--ink); background: #fafbfd;
  line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--yellow); color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* âncoras respeitam o header sticky */
#topo, #historia, #aprovados, #contato, #footer, #diferenciais { scroll-margin-top: 108px; }

/* ---- Botões ---- */
.btn {
  display: inline-block; cursor: pointer; border: 0; font-family: var(--font);
  font-weight: 700; font-size: 1.02rem; padding: 14px 34px; border-radius: 999px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.28); }
.btn-orange:hover { filter: brightness(1.05); }
.btn-blue { background: var(--blue-btn); color: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.22); }

/* ---- Pizzas decorativas (quarter-circle) ---- */
.pie { position: absolute; width: 96px; height: 96px; z-index: 1; }
.pie-orange { background: var(--orange); }
.pie-yellow { background: var(--yellow); }
.pie-navy { background: var(--navy); }
.pie-tl { top: 14px; left: 27px; border-radius: 100% 0 0 0; }
.pie-br { bottom: 27px; right: 35px; border-radius: 0 0 100% 0; }

/* ---- Títulos ---- */
.section { padding: var(--sec-pad) 0; }
.section-title {
  text-align: center; font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 500; color: var(--navy); margin-bottom: 40px;
}
.section-title strong { font-weight: 800; }
.section-title.on-royal { color: #fff; }
.hl { color: var(--gold); }

/* ---- Grids ---- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  background: linear-gradient(180deg, #1d5ed3 0%, #1d46a6 52%, #1a2a71 100%);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 14px rgba(0,0,0,.18);
  transition: box-shadow .3s var(--ease);
}
.site-header .container { max-width: 1280px; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; height: 92px;
  transition: height .3s var(--ease);
}
.brand { display: flex; align-items: center; gap: 20px; }
.brand-crest { height: 44px; width: 44px; transition: height .3s var(--ease); }
.brand-name { color: #fff; font-weight: 400; font-size: 1.05rem; line-height: 1.18; letter-spacing: .01em; }
.main-nav { display: flex; gap: 48px; margin-right: clamp(32px, 11vw, 160px); }
.main-nav a { color: #fff; font-size: 1.02rem; font-weight: 700; position: relative; }
.main-nav a:hover { color: var(--gold); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px;
  background: var(--gold); transition: width .28s var(--ease);
}
.main-nav a:hover::after { width: 100%; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.28); }
.site-header.scrolled .header-inner { height: 70px; }
.site-header.scrolled .brand-crest { height: 38px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 30px 0 0;
  background:
    radial-gradient(120% 120% at 70% 28%, #14309b 0%, #0d2581 38%, #0f084f 100%);
}
.hero::before {   /* faixas diagonais sutis */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 60%, rgba(255,255,255,.05) 60% 63%, transparent 63%),
              linear-gradient(115deg, transparent 70%, rgba(255,255,255,.04) 70% 72%, transparent 72%);
  pointer-events: none;
}
.hero .container { max-width: 1340px; }
.hero-inner {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: 1fr 0.95fr 1.35fr; align-items: end; gap: 12px; min-height: 440px;
}
.hero-lockup-col { align-self: center; padding-bottom: 40px; }
.hero-lockup { width: 100%; max-width: 420px; }
.hero-girl-col { display: flex; justify-content: center; align-items: flex-end; height: 100%; }
.hero-girl { height: 515px; width: auto; max-width: none; filter: drop-shadow(0 12px 24px rgba(0,0,0,.35)); }
.hero-copy { align-self: center; padding-bottom: 50px; }
.hero-copy h1 { font-size: clamp(1.55rem, 2.7vw, 2.35rem); font-weight: 800; line-height: 1.14; }
.hero-copy p { margin: 16px 0 24px; color: #dbe4ff; font-size: 1rem; max-width: 460px; }

/* =========================================================
   VÍDEO
   ========================================================= */
.sec-video { padding-bottom: 40px; position: relative; overflow: hidden; }
.video-wrap { position: relative; max-width: 1040px; margin: 0 auto; padding: 34px; }
.video-pie-tl { top: -24px; left: -93px; width: 206px; height: 206px; border-radius: 100% 0 0 0; }
.video-pie-br { bottom: -21px; right: -92px; width: 210px; height: 210px; border-radius: 0 0 100% 0; }
/* chevrons decorativos nas laterais (iguais ao Canva) */
.sec-video::before, .sec-video::after {
  content: ""; position: absolute; width: 300px; height: 470px; opacity: 1;
  pointer-events: none; z-index: 0;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 100'%3E%3Cg fill='none' stroke='%23edeff3' stroke-width='22'%3E%3Cpath d='M6 6 L44 50 L6 94'/%3E%3Cpath d='M42 6 L80 50 L42 94'/%3E%3C/g%3E%3C/svg%3E");
}
.sec-video::before { left: -130px; bottom: -150px; }
.sec-video::after { right: -130px; top: 40px; transform: scaleX(-1); }
.video-frame {
  position: relative; z-index: 2; aspect-ratio: 16/9; border-radius: 0;
  overflow: hidden; box-shadow: none; cursor: pointer;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-frame.playing .play-btn { display: none; }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 76px; height: 76px; border-radius: 50%; background: transparent;
  border: 2px solid #fff; color: #fff; display: flex; align-items: center; justify-content: center;
  z-index: 3;
}
.video-frame .play-btn { width: 110px; height: 110px; border-width: 5px; }

/* =========================================================
   DIFERENCIAIS
   ========================================================= */
.card-dif { text-align: center; }
.grid.diferenciais { gap: 12px 34px; }
img.card-img { width: 100%; aspect-ratio: 5/4; object-fit: cover; display: block; }
.card-dif h3 {
  margin-top: 20px; font-size: .95rem; font-weight: 700; color: #fff; background: var(--navy);
  padding: 12px 14px; border-radius: 999px; line-height: 1.2;
  display: flex; align-items: center; justify-content: center; min-height: 61px;
  width: calc(100% + 24px); margin-left: -12px;
}

/* =========================================================
   FASES (faixa amarela com ondas)
   ========================================================= */
.sec-fases { position: relative; background: var(--yellow); padding: 20px 0 30px; }
.wave { position: absolute; left: 0; width: 100%; line-height: 0; z-index: 1; pointer-events: none; }
.wave-top { top: -1px; height: 118px;
  background: no-repeat top center/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23fafbfd' d='M0,16 C60,10 120,8 220,14 C420,40 560,74 760,100 C840,110 900,113 980,108 C1120,98 1260,50 1440,10 L1440,0 L0,0 Z'/%3E%3C/svg%3E"); }
.wave-bottom { bottom: -1px; height: 118px;
  background: no-repeat bottom center/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23fafbfd' d='M0,104 C120,110 220,112 380,102 C580,88 760,40 900,22 C1020,8 1160,10 1300,28 C1380,38 1420,44 1440,48 L1440,120 L0,120 Z'/%3E%3C/svg%3E"); }
.sec-fases .container { position: relative; z-index: 2; padding-top: 130px; padding-bottom: 60px; }
.fases { align-items: stretch; }
.fase-card { width: 100%; aspect-ratio: 272/506; object-fit: contain; border-radius: 12px; }

/* =========================================================
   COMO VOCÊ IMAGINA O FUTURO
   ========================================================= */
.futuro { position: relative; overflow: hidden; }
.futuro::after {
  content: ""; position: absolute; right: -80px; top: 50%; transform: translateY(-40%);
  width: 320px; height: 460px; z-index: 0; pointer-events: none;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 100'%3E%3Cg fill='none' stroke='%23edeeef' stroke-width='14' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M10 16 L38 50 L10 84'/%3E%3Cpath d='M38 16 L66 50 L38 84'/%3E%3C/g%3E%3C/svg%3E");
}
.futuro-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; }
.futuro-img-wrap {
  position: relative; display: flex; justify-content: flex-start;
  /* círculo sempre cortado 60px pela borda esquerda da tela, como no molde */
  margin-left: calc((100vw - var(--maxw)) / -2 - 60px);
}
.futuro-img-wrap::before {
  content: ""; position: absolute; width: 100%; max-width: 575px; aspect-ratio: 1/1;
  border-radius: 50%; background: var(--navy); left: -50px; top: -28px; z-index: 0;
}
.futuro-img {
  width: 100%; max-width: 575px; aspect-ratio: 1/1; object-fit: cover; border-radius: 50%;
  box-shadow: none; border: 0; outline: 0; position: relative; z-index: 1;
}
.futuro-copy h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 800; color: var(--navy); line-height: 1.12; }
.futuro-copy p { margin: 16px 0 22px; color: #3d4a72; font-size: .95rem; }
.check-list { list-style: none; display: grid; gap: 11px; }
.check-list li {
  position: relative; padding-left: 46px; font-weight: 700; color: var(--ink); font-size: 1.15rem;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 34px; height: 24px;
  background-repeat: no-repeat; background-size: contain; background-position: center;
}
.check-list li:nth-child(odd)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 24'%3E%3Cpath d='M3 4 L12 12 L3 20' fill='none' stroke='%23b9c0cf' stroke-width='5' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M15 3 L26 12 L15 21' fill='none' stroke='%230b1b52' stroke-width='6' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
}
.check-list li:nth-child(even)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 24'%3E%3Cpath d='M3 4 L12 12 L3 20' fill='none' stroke='%23f3ddab' stroke-width='5' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M15 3 L26 12 L15 21' fill='none' stroke='%23de9007' stroke-width='6' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* =========================================================
   APROVADOS
   ========================================================= */
.sec-aprovados { padding: var(--sec-pad) 0 0; }
.aprovados-band { background: var(--navy); padding: 16px 0; }
.carousel { position: relative; display: flex; align-items: center; gap: 8px; max-width: 870px; margin: 0 auto; }
.carousel-track {
  /* janela = exatamente 3 cards inteiros (3×230 + 2×32 + 2×16 de padding) */
  display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 20px 16px 22px; scroll-padding-inline: 16px; scroll-behavior: smooth;
  flex: 0 0 786px; max-width: 100%; justify-content: flex-start; scrollbar-width: none; cursor: grab;
  user-select: none; -webkit-user-select: none;
}
.carousel-track img { -webkit-user-drag: none; user-drag: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel-track.dragging .card-aprovado { pointer-events: none; }
.card-aprovado {
  position: relative; flex: 0 0 230px; scroll-snap-align: start; background: var(--yellow);
  border-radius: 68px 68px 0 68px; padding: 40px 22px 24px; text-align: center; margin-top: 8px;
}
.aprovado-selo {
  position: absolute; top: -10px; left: -10px; width: 80px; height: 80px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.2); overflow: hidden;
}
/* faixa de premiação (1º/5º lugar) */
.card-destaque {
  position: absolute; top: -12px; right: -6px; background: var(--navy); color: var(--gold);
  font-size: .72rem; font-weight: 800; letter-spacing: .05em; padding: 7px 14px;
  border-radius: 999px; box-shadow: 0 4px 10px rgba(0,0,0,.3); white-space: nowrap;
}
.aprovado-selo img { width: 74%; height: 74%; object-fit: contain; }
.card-aprovado h3 { font-size: 1.7rem; color: var(--navy); font-weight: 800; line-height: 1.05; margin-top: 8px; }
.card-aprovado .curso { color: var(--navy); font-size: 1.05rem; margin: 2px 0 14px; }
.badge-uni {
  display: inline-block; background: var(--navy); color: #fff; font-weight: 800; letter-spacing: .05em;
  padding: 6px 20px; border-radius: 4px; font-size: .95rem; min-width: 70%; text-align: center;
  box-shadow: 0 0 0 3px var(--yellow), 0 0 0 6px var(--navy);
}
.carousel-nav {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--yellow); color: var(--navy); font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; transition: filter .15s;
}
.carousel-nav:hover { filter: brightness(1.08); }

/* =========================================================
   HISTÓRIA / DEPOIMENTOS (azul royal)
   ========================================================= */
.sec-historia { position: relative; background: var(--royal); padding: 130px 0 190px; }
.wave-historia-top { top: -1px; height: 100px; background: #fafbfd; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.depoimentos-video { gap: 80px; }
.video-vert figcaption { text-align: center; color: #dce6ff; font-size: .92rem; margin-top: 12px; line-height: 1.3; }
.video-vert figcaption strong { color: #fff; font-size: 1rem; }
.video-vert-thumb {
  position: relative; aspect-ratio: 9/16; max-height: 560px; margin: 0 auto; border-radius: 14px;
  overflow: hidden; background: linear-gradient(135deg, #24408f, #16296b); box-shadow: var(--shadow); cursor: pointer;
}
.video-vert-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; background: #16296b; }
.video-vert-thumb.playing .play-btn { display: none; }
.historia-cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 54px;
}
.historia-hash { display: flex; align-items: center; gap: 28px; }
.hashtag {
  font-size: clamp(14rem, 22vw, 20rem); font-weight: 900; color: transparent; line-height: .75;
  -webkit-text-stroke: 4px var(--yellow);
}
.historia-hash-text { color: #fff; font-size: clamp(2.2rem, 4.2vw, 4rem); line-height: 1.12; font-weight: 400; }
.historia-hash-text strong { font-weight: 900; display: block; }
.quotes { display: grid; gap: 36px; }
.quotes blockquote {
  position: relative; background: linear-gradient(180deg, rgba(255,255,255,.30), rgba(255,255,255,.04));
  border-radius: 24px; padding: 42px 30px 26px; margin-top: 28px;
  color: #eef3ff; font-size: .98rem; text-align: center;
}
.quotes .qmark { position: absolute; top: -30px; left: 22px; font-size: 5.2rem; line-height: 1; margin: 0; color: #fff; font-weight: 900; }
.quotes cite { display: block; margin-top: 12px; font-style: normal; font-weight: 800; color: #fff; }
.wave-historia { bottom: -1px; height: 160px;
  background: no-repeat bottom center/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'%3E%3Cpath fill='%23fafbfd' d='M0,100 C150,34 360,6 580,20 C840,38 1090,96 1270,120 C1340,129 1400,133 1440,135 L1440,160 L0,160 Z'/%3E%3C/svg%3E"); }

/* =========================================================
   FORMULÁRIO
   ========================================================= */
.sec-form { padding: 60px 0 var(--sec-pad); }
.form-panel {
  position: relative; background: var(--navy); border-radius: 48px; padding: 44px 56px 44px 44px;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: stretch; box-shadow: var(--shadow);
}
.form-aside { position: relative; color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.form-aluno {
  display: block; width: auto; max-height: 600px; margin: -160px auto -240px;
  position: relative; z-index: 1; filter: drop-shadow(0 14px 22px rgba(0,0,0,.3));
}
.form-aside-text { position: relative; z-index: 2; text-align: center; }
.form-aside-text::before {
  content: ""; position: absolute; inset: -36px -24px -24px -24px;
  background: radial-gradient(closest-side, rgba(7,26,79,.92), rgba(7,26,79,0));
  filter: blur(18px); z-index: -1; border-radius: 50%;
}
.form-aside-text h2 { font-size: clamp(2.1rem, 3.2vw, 2.7rem); font-weight: 900; line-height: 1.05; }
.form-aside-text h2 span { color: #fff; }
.form-aside-text p { margin: 16px auto 0; color: #dbe4ff; font-size: 1rem; max-width: 340px; }
.form-aside-text p strong { color: #fff; }
.lead-form { background: transparent; }
.field { margin-bottom: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: .95rem; font-weight: 600; color: #eaf0ff; margin-bottom: 6px; }
.field label span { color: #ff8a8a; }
.field input, .field textarea {
  width: 100%; border: 0; border-radius: 999px; padding: 10px 18px; font-family: var(--font);
  font-size: .9rem; color: var(--ink); background: #fff;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.field textarea { border-radius: 16px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--yellow); transform: translateY(-1px); box-shadow: 0 0 0 3px rgba(231,186,3,.4);
}
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: .8rem; color: #cfd8f5; margin: 6px 0 16px; }
.consent input { margin-top: 3px; }
.consent a { color: #fff; text-decoration: underline; }
.lead-form .btn-blue { float: right; border-radius: 12px; padding: 9px 44px; font-size: 1rem; }
.form-feedback { clear: both; text-align: center; padding-top: 12px; font-size: .9rem; font-weight: 600; min-height: 1.2em; }
.form-feedback.ok { color: #7dffb0; }
.form-feedback.err { color: #ffb3ab; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy); color: #dbe4ff; padding: 96px 0 36px; }
.site-footer .section-title { margin-bottom: 64px; }
.footer-grid { align-items: stretch; }
.contact-list { list-style: none; display: grid; gap: 16px; margin-bottom: 22px; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.contact-ico {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: var(--gold);
  transition: transform .18s var(--ease), background .18s, color .18s; cursor: pointer;
}
/* especificidade maior que .contact-list a:hover para o ícone não sumir no dourado */
.contact-list a.contact-ico:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.contact-ico-wa { background: #25d366; color: #fff; }
.contact-list a.contact-ico-wa:hover { background: #1fba58; color: #fff; }
.contact-list a { color: #dbe4ff; font-size: .95rem; line-height: 1.4; transition: color .15s; }
.contact-list a:hover { color: var(--gold); }
.social { display: flex; gap: 12px; margin-top: 4px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #fff; transition: background .18s, transform .18s, color .18s;
}
.social a:hover { background: var(--yellow); color: var(--navy); transform: translateY(-3px); }
.footer-map { min-height: 260px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.footer-map iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }
.copyright { text-align: center; margin-top: 40px; font-size: .8rem; color: #8ea0d4; }

/* =========================================================
   WHATSAPP FLUTUANTE
   ========================================================= */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px;
  border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 10px 26px rgba(37,211,102,.5); transition: transform .15s;
}
.whatsapp-float:hover { transform: scale(1.08); }
/* anel pulsante em pseudo-elemento: anima só opacity (composited, sem repaint) */
.whatsapp-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(37,211,102,.12); opacity: 0;
  animation: waPulse 2.4s infinite; pointer-events: none;
}
@keyframes waPulse { 0%,100% { opacity: 0; } 50% { opacity: 1; } }

/* =========================================================
   SISTEMA DE ANIMAÇÃO (reveal direcional + stagger + parallax)
   easing custom (easeOutExpo) para dar sensação "cara"
   ========================================================= */
[data-animate] {
  opacity: 0; will-change: transform, opacity;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-animate="fade-up"]    { transform: translateY(38px); }
[data-animate="fade-down"]  { transform: translateY(-32px); }
[data-animate="fade-left"]  { transform: translateX(44px); }
[data-animate="fade-right"] { transform: translateX(-44px); }
[data-animate="zoom"]       { transform: scale(.93); }
[data-animate].in { opacity: 1; transform: none; }

/* stagger: filhos entram em cascata (delays via JS) */
[data-stagger] > * {
  opacity: 0; transform: translateY(30px); will-change: transform, opacity;
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
[data-stagger].in > * { opacity: 1; transform: none; }

/* parallax das formas decorativas — controlado por JS */
[data-parallax] { will-change: transform; }

/* =========================================================
   MICRO-INTERAÇÕES (hover / foco)
   ========================================================= */
.card-img-wrap {
  overflow: hidden; border-radius: 14px; box-shadow: var(--shadow); position: relative;
}
.card-img-wrap img { transition: transform .6s var(--ease); }
.card-dif:hover .card-img-wrap img { transform: scale(1.07); }
.card-dif h3, .fase-card, .card-aprovado { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card-dif:hover h3 { transform: translateY(-2px); background: var(--royal); }
.fase-card:hover { transform: translateY(-6px) scale(1.015); }
.card-aprovado:hover { transform: translateY(-5px) rotate(-.5deg); box-shadow: 0 10px 24px rgba(11,31,92,.18); }
.futuro-img { transition: transform .6s var(--ease); }
.futuro-img-wrap:hover .futuro-img { transform: scale(1.03) rotate(1deg); }

.video-frame .play-btn, .video-vert-thumb .play-btn { transition: transform .3s var(--ease), background .3s; }
.video-frame:hover .play-btn, .video-vert-thumb:hover .play-btn {
  transform: translate(-50%,-50%) scale(1.1); background: rgba(255,255,255,.16); backdrop-filter: blur(3px);
}
/* acessibilidade: foco visível por teclado */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, .consent input:focus-visible {
  outline: 3px solid var(--yellow); outline-offset: 3px;
}
.btn:focus-visible, .carousel-nav:focus-visible { outline-color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  [data-animate], [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none; }
  [data-parallax] { transform: none !important; }
  .whatsapp-float::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVO
   90% do tráfego é mobile — os breakpoints abaixo são a
   experiência principal, não um ajuste secundário.
   ========================================================= */

/* botão do menu: só existe no mobile */
.nav-toggle { display: none; }

/* ---------------------------------------------------------
   ATÉ 900px — tablet e celular
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* ---- Header com hambúrguer ---- */
  .header-inner { height: 68px; }
  .site-header.scrolled .header-inner { height: 60px; }
  .brand { gap: 12px; }
  .brand-crest { height: 38px; width: 38px; }
  .site-header.scrolled .brand-crest { height: 34px; }
  .brand-name { font-size: .95rem; }

  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; padding: 0; border: 0; border-radius: 12px;
    background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .18s var(--ease);
  }
  .nav-toggle:active { background: rgba(255, 255, 255, .22); }
  .nav-toggle-bars { position: relative; display: block; width: 22px; height: 16px; }
  .nav-toggle-bars i {
    position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px;
    background: #fff; transition: transform .3s var(--ease), opacity .18s;
  }
  .nav-toggle-bars i:nth-child(1) { top: 0; }
  .nav-toggle-bars i:nth-child(2) { top: 50%; margin-top: -1.25px; }
  .nav-toggle-bars i:nth-child(3) { bottom: 0; }
  body.nav-aberto .nav-toggle-bars i:nth-child(1) { transform: translateY(6.75px) rotate(45deg); }
  body.nav-aberto .nav-toggle-bars i:nth-child(2) { opacity: 0; }
  body.nav-aberto .nav-toggle-bars i:nth-child(3) { transform: translateY(-6.75px) rotate(-45deg); }

  /* menu vira painel deslizante abaixo do header */
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 49;
    flex-direction: column; gap: 0; margin: 0;
    background: #12327d; box-shadow: 0 16px 28px rgba(0, 0, 0, .32);
    max-height: 0; overflow: hidden;
    transition: max-height .32s var(--ease);
  }
  body.nav-aberto .main-nav { max-height: 300px; }
  .main-nav a {
    padding: 16px 22px; font-size: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }
  .main-nav a::after { display: none; }

  /* ---- Reveals laterais viram verticais: translateX no mobile
          empurra a página e cria rolagem horizontal ---- */
  [data-animate="fade-left"], [data-animate="fade-right"] { transform: translateY(28px); }

  /* ---- Hero ---- */
  .hero-inner { grid-template-columns: 1fr 1fr; grid-template-areas: "lockup copy" "girl girl"; min-height: 0; }
  .hero-lockup-col { grid-area: lockup; padding-bottom: 0; }
  .hero-copy { grid-area: copy; padding-bottom: 0; }
  .hero-girl-col { grid-area: girl; }
  .hero-girl { height: 420px; }

  .futuro-inner, .form-panel { grid-template-columns: 1fr; }
  .futuro-img-wrap { margin-left: 0; justify-content: center; }
  .futuro::after { display: none; }
  .form-aluno { position: static; margin: -60px auto -10px; max-height: 260px; }
  .form-aside { text-align: center; align-items: center; }
  .form-aside-text p { max-width: none; }
  .historia-cta { grid-template-columns: 1fr; }
  .hashtag { font-size: clamp(7rem, 22vw, 12rem); }
  .lead-form .btn-blue { float: none; width: 100%; }

  /* chevrons decorativos gigantes não cabem em tela pequena */
  .sec-video::before, .sec-video::after { display: none; }

  /* o track é fixo em 786px no desktop e não encolhe sozinho:
     sem isto o carrossel empurra a página no tablet */
  .carousel { max-width: 100%; }
  .carousel-track { flex: 1 1 auto; min-width: 0; }
}

/* ---------------------------------------------------------
   ATÉ 560px — celular (experiência principal)
   --------------------------------------------------------- */
@media (max-width: 560px) {
  /* Página de campanha: cada tela a mais de rolagem é gente que não
     chega no formulário. Respiros enxutos, sem sufocar o conteúdo. */
  /* Largura dos cards dos carrosséis. A sobra lateral é derivada
     delas via calc(), então centralização e simetria nunca saem
     de sincronia — inclusive no breakpoint de 380px. */
  :root { --sec-pad: 32px; --card-aprovado: 76vw; --card-depoimento: 72vw; }

  .container { padding: 0 18px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section-title { margin-bottom: 18px; }
  #topo, #historia, #aprovados, #contato, #footer, #diferenciais { scroll-margin-top: 76px; }

  /* alvo de toque confortável em todos os botões */
  .btn { padding: 15px 30px; font-size: 1rem; min-height: 50px; }

  /* ---- Hero ---- */
  .hero { padding-top: 18px; }
  .hero-inner { grid-template-columns: 1fr; grid-template-areas: "lockup" "girl" "copy"; text-align: center; gap: 4px; }
  .hero-lockup { margin: 0 auto; max-width: 300px; }
  .hero-girl { height: 300px; }
  .hero-copy { padding-bottom: 26px; }
  .hero-copy h1 { font-size: 1.62rem; line-height: 1.18; }
  .hero-copy p { margin: 12px auto 20px; font-size: .95rem; }
  .hero-copy .btn { width: 100%; max-width: 320px; }

  /* ---- Formas decorativas ---- */
  .pie { width: 68px; height: 68px; }
  .pie-tl { top: 10px; left: 14px; }
  /* a pizza amarela colidia com o botão "Agende uma Visita" em tela estreita */
  .hero .pie-br { display: none; }
  .video-pie-tl, .video-pie-br { width: 76px; height: 76px; }
  .video-pie-tl { top: -14px; left: -20px; }
  .video-pie-br { bottom: -12px; right: -20px; }

  /* ---- Vídeo ---- */
  .sec-video { padding-bottom: 20px; }
  .video-wrap { padding: 10px; }
  .video-frame .play-btn { width: 68px; height: 68px; border-width: 3px; }
  .video-frame .play-btn svg { width: 26px; height: 26px; }

  /* ---- Diferenciais ----
     Em coluna única os 6 cartões ocupavam 2,9 telas sozinhos. Em duas
     colunas cabem em 3 linhas e a foto continua legível. */
  .grid.diferenciais { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  /* pílulas da mesma linha terminam alinhadas, mesmo com nº de linhas diferente */
  .card-dif { display: flex; flex-direction: column; }
  .card-dif h3 {
    width: 100%; margin-left: 0; margin-top: 10px; flex: 1;
    font-size: .78rem; min-height: 48px; padding: 8px 10px;
  }

  /* ---- Fases ---- */
  .sec-fases { padding: 10px 0 16px; }
  .sec-fases .container { padding-top: 44px; padding-bottom: 16px; }
  .wave-top, .wave-bottom { height: 44px; }
  .fases { gap: 12px; }

  /* ---- Como você imagina o futuro ---- */
  .futuro-inner { gap: 18px; }
  .futuro-img-wrap::before { left: -18px; top: -14px; }
  /* centralizado, para acompanhar o resto da página */
  .futuro-copy { text-align: center; }
  .futuro-copy h2 { font-size: 1.72rem; }
  .futuro-copy p { margin: 12px 0 16px; }
  .check-list { gap: 9px; width: fit-content; margin-inline: auto; text-align: left; }
  .check-list li { font-size: 1rem; padding-left: 38px; }
  .check-list li::before { width: 27px; height: 19px; }

  /* ---- Aprovados ----
     No celular se desliza com o dedo: as setas só roubariam
     largura do card. Carrossel sangra até as bordas da tela. */
  .aprovados-band { padding: 8px 0; }
  .carousel { gap: 0; }
  .carousel-nav { display: none; }
  /* Card centralizado com sobra IGUAL dos dois lados. Com o
     "snap: start" original ele colava na borda esquerda e o vizinho
     ficava cortado torto à direita — parecia bug, não carrossel.
     A trilha precisa de largura explícita (100vw): como item flex,
     a margem negativa sozinha só puxava o lado esquerdo. */
  .carousel-track {
    flex: 0 0 100vw; gap: 16px; margin-inline: -18px;
    max-width: none;  /* o "max-width:100%" do desktop travava a sangria */
    padding: 14px calc((100vw - var(--card-aprovado)) / 2);
    scroll-padding-inline: calc((100vw - var(--card-aprovado)) / 2);
  }
  .card-aprovado {
    flex: 0 0 var(--card-aprovado); scroll-snap-align: center;
    padding: 34px 18px 20px; border-radius: 54px 54px 0 54px;
  }
  .card-aprovado h3 { font-size: 1.5rem; }
  .card-aprovado .curso { font-size: .97rem; }
  .card-destaque { font-size: .74rem; padding: 6px 12px; top: -10px; right: -2px; }
  .aprovado-selo { width: 64px; height: 64px; top: -8px; left: -8px; }

  /* ---- História / depoimentos ---- */
  /* o padding de baixo precisa passar da onda (72px) para o texto não
     ficar por baixo dela */
  .sec-historia { padding: 44px 0 86px; }
  .wave-historia-top { height: 48px; }
  .wave-historia { height: 72px; }

  /* 3 vídeos verticais lado a lado ficam ilegíveis: vira carrossel */
  /* Sobra igual dos dois lados: o vídeo do meio nasce centralizado e
     os vizinhos aparecem pela borda, indicando que dá pra arrastar. */
  .grid.depoimentos-video {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -18px; scrollbar-width: none;
    padding: 0 calc((100vw - var(--card-depoimento)) / 2) 8px;
    scroll-padding-inline: calc((100vw - var(--card-depoimento)) / 2);
    -webkit-overflow-scrolling: touch;
  }
  .grid.depoimentos-video::-webkit-scrollbar { display: none; }
  .grid.depoimentos-video > .video-vert { flex: 0 0 var(--card-depoimento); scroll-snap-align: center; }
  .video-vert-thumb { max-height: none; border-radius: 12px; }
  .video-vert figcaption { font-size: .84rem; margin-top: 9px; }
  .video-vert figcaption strong { font-size: .92rem; }
  .video-vert-thumb .play-btn { width: 56px; height: 56px; }
  .video-vert-thumb .play-btn svg { width: 22px; height: 22px; }

  .historia-hash { flex-direction: column; gap: 2px; text-align: center; }
  .hashtag { font-size: 5.6rem; -webkit-text-stroke-width: 3px; }
  .historia-hash-text { font-size: 1.85rem; }
  .historia-cta { gap: 20px; margin-top: 24px; }
  .quotes { gap: 22px; }
  .quotes blockquote { padding: 30px 18px 20px; margin-top: 22px; font-size: .95rem; }
  .quotes .qmark { font-size: 3.5rem; top: -21px; left: 15px; }

  /* ---- Formulário ---- */
  .sec-form { padding: 24px 0 var(--sec-pad); }
  .form-panel { border-radius: 28px; padding: 22px 16px 24px; gap: 12px; }
  .form-aside-text h2 { font-size: 1.75rem; }
  .form-aside-text p { font-size: .95rem; margin-top: 10px; }
  .form-aluno { max-height: 180px; margin: -30px auto -8px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field { margin-bottom: 10px; }
  .field label { font-size: .9rem; margin-bottom: 4px; }
  /* 16px é obrigatório: abaixo disso o iOS dá zoom sozinho ao focar */
  .field input, .field textarea { font-size: 16px; padding: 13px 18px; }
  .field textarea { min-height: 74px; }
  .consent { font-size: .84rem; gap: 11px; margin: 8px 0 14px; align-items: center; }
  .consent input { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 0; }
  .lead-form .btn-blue { padding: 15px 30px; min-height: 52px; border-radius: 14px; }

  /* ---- Rodapé ----
     folga extra embaixo: o botão flutuante do WhatsApp é fixo e
     cobriria a última linha do copyright no fim da rolagem */
  .site-footer { padding: 38px 0 84px; }
  .site-footer .section-title { margin-bottom: 20px; }
  .footer-grid { gap: 18px; }
  .contact-list { gap: 8px; margin-bottom: 14px; }
  .contact-list li { align-items: center; }
  .contact-ico { flex: 0 0 44px; width: 44px; height: 44px; }
  /* área de toque maior nos links de texto do rodapé */
  .contact-list li > a:not(.contact-ico) { display: block; padding: 5px 0; font-size: .95rem; }
  .contact-list a { font-size: .95rem; }
  .social a { width: 46px; height: 46px; }
  .footer-map, .footer-map iframe { min-height: 180px; }
  .copyright { font-size: .82rem; margin-top: 20px; }

  /* ---- WhatsApp flutuante ---- */
  .whatsapp-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}

/* ---------------------------------------------------------
   ATÉ 380px — iPhone SE e similares
   --------------------------------------------------------- */
@media (max-width: 380px) {
  .brand-name { font-size: .86rem; }
  .hero-copy h1 { font-size: 1.5rem; }
  .hero-girl { height: 265px; }
  .hero-lockup { max-width: 262px; }
  .hashtag { font-size: 5.4rem; }
  .historia-hash-text { font-size: 1.7rem; }
  .form-aside-text h2 { font-size: 1.6rem; }
  /* Só as variáveis: a sobra lateral é calculada a partir delas e
     continua simétrica sozinha. */
  :root { --card-aprovado: 82vw; --card-depoimento: 80vw; }
}
