/* Colégio CEG — estilos do site. Tokens do Design System "Colégio CEG". */
:root {
  --girassol-300: #FEEC07;
  --girassol-500: #FFBB07;
  --laranja-500: #FF7A26;
  --brasa-500: #FF452B;
  --brasa-700: #B8360F;
  --grafite: #606060;
  --ink: #2B2B2B;
  --ink-muted: #6B6B6B;
  --surface: #FFFFFF;
  --surface-sol: #FFF8E1;
  --surface-noite: #1F1F1F;
  --on-dark: #FFFFFF;
  --on-dark-muted: #BDBDBD;
  --line: #E8E2D6;
  --whatsapp: #25D366;
  --focus: #B8360F;
  --grad-girassol: linear-gradient(90deg, #FEEC07 0%, #FFBB07 35%, #FF7A26 70%, #FF452B 100%);
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-text: "Nunito Sans", system-ui, sans-serif;
  --radius-sm: 8px; --radius-md: 16px; --radius-lg: 28px; --radius-pill: 999px;
  --shadow-card: 0 8px 24px rgba(43,43,43,.08);
  --shadow-raise: 0 14px 36px rgba(43,43,43,.14);
  --max: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--font-text); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brasa-700); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -.015em; }
h1 { font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-weight: 800; font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.section { padding: 96px 0; }
.section--sol { background: var(--surface-sol); }
.section--noite { background: var(--surface-noite); color: var(--on-dark); }
.eyebrow { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--brasa-700); margin-bottom: 12px; display: block; }
.section--noite .eyebrow { color: var(--girassol-500); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--ink-muted); font-size: 1.1rem; margin-top: 14px; }
.section--noite .section-head p { color: var(--on-dark-muted); }
.center { text-align: center; margin-inline: auto; }
.mark { background: linear-gradient(transparent 62%, var(--girassol-300) 62%); padding: 0 .08em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 14px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1.2; min-height: 50px; padding: 0 26px; border-radius: var(--radius-pill); border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-raise); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primario { background: var(--girassol-500); color: var(--ink); }
.btn--primario:hover { background: #FFC62E; }
.btn--whatsapp { background: var(--whatsapp); color: var(--ink); }
.btn--contorno { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--claro { background: var(--surface); color: var(--ink); }
.btn--lg { min-height: 58px; font-size: 17px; padding: 0 32px; }
.btn--block { width: 100%; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; }

/* Selos */
.selo { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; line-height: 1.3; padding: 7px 14px; border-radius: var(--radius-pill); background: var(--surface-sol); color: var(--ink); }
.selo--matricula { background: var(--girassol-500); }
.selo .ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--brasa-500); animation: pulso 1.6s infinite; }
@keyframes pulso { 50% { opacity: .35; } }

/* Faixa de aviso */
.aviso { background: var(--surface-noite); color: var(--on-dark); font-size: 14px; }
.aviso .wrap { display: flex; align-items: center; justify-content: center; gap: 8px 18px; padding: 9px 0; flex-wrap: wrap; text-align: center; }
.aviso strong { color: var(--girassol-500); }
.aviso a { color: var(--on-dark); font-weight: 800; }
.mini-count { font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; }

/* Cabeçalho */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: var(--shadow-raise); }
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad-girassol); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.header .logo img { height: 60px; width: auto; }
.nav { display: flex; gap: 26px; font-weight: 700; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--brasa-700); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 28px; height: 28px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; background: radial-gradient(1200px 500px at 85% 0%, var(--surface-sol), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero .selos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink-muted); margin-bottom: 30px; max-width: 34em; }
.hero .acoes { margin-bottom: 18px; }
.hero .nota { font-size: 14px; color: var(--ink-muted); font-weight: 600; }
.hero-foto { position: relative; }
.hero-foto img { border-radius: var(--radius-lg); aspect-ratio: 15/16; object-fit: cover; width: 100%; box-shadow: var(--shadow-raise); }
.haste { position: absolute; border-radius: var(--radius-pill); background: var(--grad-girassol); pointer-events: none; }
.hero-foto .haste--a { width: 230px; height: 46px; right: -40px; top: 26px; transform: rotate(-45deg); }
.hero-foto .haste--b { width: 160px; height: 46px; left: -50px; bottom: 60px; transform: rotate(45deg); opacity: .9; }
.hero-card { position: absolute; left: -28px; bottom: -28px; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-raise); padding: 16px 20px; display: flex; gap: 14px; align-items: center; }
.hero-card strong { font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1; }
.hero-card span { font-weight: 700; font-size: 14px; line-height: 1.3; }

/* Barra de provas */
.provas { background: var(--surface-noite); color: var(--on-dark); }
.provas .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.prova { padding: 30px 22px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid rgba(255,255,255,.12); }
.prova:first-child { border-left: 0; }
.prova strong { font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 1.1; color: var(--girassol-500); }
.prova span { color: var(--on-dark-muted); font-size: 15px; line-height: 1.4; }

/* Futuro */
.futuro .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.futuro .texto p { color: var(--ink-muted); font-size: 1.1rem; margin-top: 18px; }
.habilidades { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hab { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius-md); background: var(--surface-sol); }
.hab .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--girassol-500); display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 15px; }
.hab h3 { font-size: 1.02rem; margin-bottom: 2px; }
.hab p { font-size: .94rem; color: var(--ink-muted); line-height: 1.5; }

/* Cards de diferencial */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 12px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-raise); transform: translateY(-3px); }
.card .icone { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-sol); display: grid; place-items: center; color: var(--brasa-700); }
.section--sol .card .icone { background: #FFEFC2; }
.card .icone svg { width: 28px; height: 28px; }
.card p { color: var(--ink-muted); font-size: .98rem; line-height: 1.6; }

/* Estrutura */
.galeria { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 16px; }
.foto { position: relative; border-radius: var(--radius-md); overflow: hidden; margin: 0; background: var(--line); }
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.foto:hover img { transform: scale(1.04); }
.foto figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--surface); color: var(--ink); font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: var(--radius-pill); }
.foto--larga { grid-column: span 2; }
.foto--alta { grid-row: span 2; }
.foto--info { background: var(--girassol-500); padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.foto--info h3 { font-size: 1.2rem; }
.foto--info p { font-size: .95rem; line-height: 1.5; }
.foto--noite { background: var(--surface-noite); color: var(--on-dark); }
.foto--noite p { color: var(--on-dark-muted); }

/* Segmentos */
.segmento { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.segmento img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.segmento .corpo { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.segmento .idade { font-weight: 800; font-size: 14px; color: var(--brasa-700); }
.segmento p { color: var(--ink-muted); font-size: .98rem; }
.segmento ul { margin: 4px 0 0; padding-left: 20px; color: var(--ink); font-size: .95rem; }
.segmento .btn { margin-top: auto; align-self: flex-start; }

/* Vídeos */
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Passos */
.passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: passo; }
.passo { position: relative; padding: 30px 26px 26px; border-radius: var(--radius-md); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.passo::before { counter-increment: passo; content: counter(passo); font-family: var(--font-display); font-weight: 900; font-size: 54px; line-height: 1; color: var(--girassol-500); display: block; margin-bottom: 12px; }
.passo p { color: var(--on-dark-muted); margin-top: 8px; }

/* CTA + contagem */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-noite); color: var(--on-dark); padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.cta h2 em { font-style: normal; color: var(--girassol-500); }
.cta p { color: var(--on-dark-muted); margin-top: 14px; font-size: 1.08rem; }
.cta .lado { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.cta .haste { width: 380px; height: 72px; right: -200px; top: -40px; transform: rotate(-45deg); opacity: .9; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown div { background: #333333; border-radius: var(--radius-sm); padding: 12px 6px; text-align: center; }
.countdown strong { display: block; font-family: var(--font-display); font-weight: 900; font-size: 34px; line-height: 1; color: var(--girassol-500); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
.countdown-label { font-weight: 700; font-size: 14px; color: var(--on-dark); }
.countdown--claro div { background: var(--surface); box-shadow: var(--shadow-card); }
.countdown--claro strong { color: var(--ink); }
.countdown--claro span { color: var(--ink-muted); }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; padding: 20px 32px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--brasa-700); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: var(--ink-muted); }

/* Formulário */
.form { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-raise); padding: 32px; display: grid; gap: 16px; }
.form h2, .form h3 { font-size: 1.5rem; }
.form .sub { color: var(--ink-muted); font-size: .98rem; margin-top: -6px; }
.campo { display: grid; gap: 6px; }
.campo label { font-weight: 700; font-size: 14px; }
.campo label small { font-weight: 600; color: var(--ink-muted); }
.campo input, .campo select { font: inherit; font-size: 16px; min-height: 50px; padding: 0 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--grafite); background: var(--surface); color: var(--ink); width: 100%; }
.campo input:focus-visible, .campo select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.campo .erro { color: var(--brasa-700); font-size: 13px; font-weight: 700; display: none; }
.campo.invalido input, .campo.invalido select { border-color: var(--brasa-700); }
.campo.invalido .erro { display: block; }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-muted); line-height: 1.5; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brasa-700); flex: none; }
.form .seguro { font-size: 13px; color: var(--ink-muted); text-align: center; }
.form-ok { display: none; text-align: center; padding: 20px 0; }
.form-ok h3 { margin-bottom: 8px; }
.form.enviado > :not(.form-ok) { display: none; }
.form.enviado .form-ok { display: block; }

/* Contato / rodapé */
.contato .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.contato-lista { display: grid; gap: 18px; margin: 28px 0; }
.contato-item { display: flex; gap: 14px; align-items: flex-start; }
.contato-item .icone { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--surface-sol); color: var(--brasa-700); display: grid; place-items: center; }
.contato-item .icone svg { width: 22px; height: 22px; }
.contato-item strong { display: block; font-family: var(--font-display); }
.contato-item a, .contato-item span { color: var(--ink-muted); text-decoration: none; }
.contato-item a:hover { color: var(--brasa-700); }
.mapa { border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; background: var(--line); }
.mapa iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.footer { background: var(--surface-noite); color: var(--on-dark-muted); padding: 56px 0 28px; font-size: 15px; }
.footer .topo { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer img { height: 56px; width: auto; margin-bottom: 16px; }
.footer h4 { font-family: var(--font-display); color: var(--on-dark); font-size: 15px; margin: 0 0 12px; }
.footer a { color: var(--on-dark-muted); text-decoration: none; }
.footer a:hover { color: var(--girassol-500); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer .base { padding-top: 22px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px; background: var(--whatsapp); color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 15px; padding: 14px 20px 14px 16px; border-radius: var(--radius-pill); box-shadow: 0 10px 28px rgba(0,0,0,.22); transition: transform .15s; }
.wa-float:hover { transform: translateY(-2px) scale(1.02); }
.wa-float svg { width: 26px; height: 26px; }

/* Landing de matrícula */
.lp-header .wrap { min-height: 72px; }
.lp-hero { padding: 56px 0 80px; background: radial-gradient(900px 500px at 10% 0%, var(--surface-sol), transparent 70%); position: relative; overflow: hidden; }
.lp-hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; grid-template-areas: "intro form" "bens form"; column-gap: 56px; row-gap: 32px; align-items: start; }
.lp-intro { grid-area: intro; } .lp-form-wrap { grid-area: form; } .lp-bens { grid-area: bens; }
.h3-like { font-size: 1.25rem; margin-bottom: 16px; }
.lp-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 16px 0 18px; }
.lp-hero .lead { font-size: 1.15rem; color: var(--ink-muted); margin-bottom: 26px; }
.beneficios { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.beneficios li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.beneficios li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--girassol-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2B2B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }
.lp-count { background: var(--surface-noite); color: var(--on-dark); border-radius: var(--radius-md); padding: 20px; display: grid; gap: 12px; }
.lp-fotos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lp-fotos img { border-radius: var(--radius-md); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.lp-form-wrap { position: sticky; top: 96px; }

/* Responsivo */
@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .nav.aberto { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); box-shadow: var(--shadow-raise); padding: 8px 20px 16px; }
  .nav.aberto a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header .acoes-header .btn--primario { display: none; }
  .hero .wrap, .futuro .wrap, .cta, .contato .wrap, .lp-hero .wrap { grid-template-columns: 1fr; }
  .hero-foto { max-width: 560px; }
  .provas .wrap { grid-template-columns: repeat(2, 1fr); }
  .prova:nth-child(3) { border-left: 0; }
  .grid-3, .passos { grid-template-columns: 1fr 1fr; }
  .galeria { grid-template-columns: repeat(2, 1fr); }
  .footer .topo { grid-template-columns: 1fr 1fr; }
  .lp-form-wrap { position: static; }
  .lp-hero .wrap { grid-template-areas: "intro" "form" "bens"; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 64px; }
  .header .logo img { height: 42px; }
  .hero-card { left: 12px; bottom: -22px; }
  .grid-3, .passos, .videos, .habilidades, .duas { grid-template-columns: 1fr; }
  .galeria { grid-auto-rows: 200px; }
  .foto--larga { grid-column: span 2; }
  .foto--alta { grid-row: span 1; }
  .cta { padding: 32px 24px; }
  .countdown strong { font-size: 28px; }
  .footer .topo { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .lp-fotos { grid-template-columns: 1fr 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .acoes .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
