:root {
  --azul: #1b4fb5;
  --azul-escuro: #0f3079;
  --amarelo: #f9c81e;
  --tinta: #1c2230;
  --cinza: #5b6472;
  --linha: #e8eaef;
  --azul-suave: #eff5ff;
  --creme: #fffaf0;
  --bg: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--tinta);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .badge, .title, .hero-title { font-family: 'Baloo 2', 'Inter', sans-serif; }

.wrap { width: min(1080px, 90%); margin: 0 auto; }
.wrap.narrow { max-width: 760px; }

/* ===== CABEÇALHO ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linha);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand img { height: 36px; display: block; }
.nav { display: flex; gap: 30px; }
.nav a {
  position: relative;
  text-decoration: none;
  color: var(--cinza);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--amarelo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav a:hover { color: var(--azul); }
.nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--tinta); border-radius: 2px; }

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 80px 0 100px;
  background: radial-gradient(120% 80% at 50% 0%, var(--azul-suave), var(--bg) 70%);
}
.badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--linha);
  color: var(--azul-escuro);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 40px;
  box-shadow: 0 6px 18px rgba(27, 79, 181, 0.08);
  margin-bottom: 34px;
}
.hero-logo {
  width: min(520px, 88%);
  height: auto;
  margin-bottom: 34px;
  filter: drop-shadow(0 14px 30px rgba(15, 48, 121, 0.15));
}
.hero-school {
  color: var(--azul);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero-text {
  max-width: 560px;
  margin: 0 auto;
  color: var(--cinza);
  font-size: 1.1rem;
}

/* Entrada do hero em cascata */
.hero > .wrap > * {
  opacity: 0;
  animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.badge      { animation-delay: 0.05s; }
.hero-logo  { animation-delay: 0.2s; }
.hero-school{ animation-delay: 0.35s; }
.hero-title { animation-delay: 0.48s; }
.hero-text  { animation-delay: 0.6s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ===== SEÇÕES ===== */
.section { padding: 84px 0; }
.section:nth-of-type(even) { background: var(--azul-suave); }
.label {
  display: inline-block;
  color: var(--azul);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  padding-left: 22px;
  position: relative;
}
.label::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--amarelo);
  box-shadow: 0 0 0 4px rgba(249, 200, 30, 0.25);
}
.title {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}
.lead {
  font-size: 1.15rem;
  color: var(--cinza);
  max-width: 680px;
}

/* ===== VÍDEO ===== */
.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #0f1116;
  box-shadow: 0 20px 50px rgba(15, 48, 121, 0.15);
  border: 4px solid #fff;
  outline: 1px solid var(--linha);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; color: #fff;
}
.video-ph span {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--amarelo);
  color: var(--azul-escuro);
  font-size: 1.2rem;
}
.video-ph p { color: rgba(255,255,255,0.7); font-size: 0.95rem; }

/* ===== PILARES ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.pillar {
  position: relative;
  background: #fff;
  border: 1px solid var(--linha);
  border-radius: 18px;
  padding: 30px 26px 26px;
  box-shadow: 0 10px 30px rgba(15, 48, 121, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15, 48, 121, 0.12); }
.pillar::before {
  content: attr(data-num);
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--azul-suave);
  color: var(--azul);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}
.pillar h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; color: var(--azul-escuro); }
.pillar p { color: var(--cinza); font-size: 0.98rem; }

/* ===== CITAÇÃO ===== */
.quote {
  position: relative;
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--linha);
  border-radius: 18px;
  padding: 34px 34px 34px 74px;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--azul-escuro);
  max-width: 700px;
  box-shadow: 0 10px 30px rgba(15, 48, 121, 0.06);
}
.quote::before {
  content: "\201C";
  position: absolute;
  left: 22px; top: 6px;
  font-family: 'Baloo 2', serif;
  font-size: 4rem;
  color: var(--amarelo);
  line-height: 1;
}

/* ===== GALERIA ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.g-item {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 2;
  border: 3px solid #fff;
  box-shadow: 0 10px 26px rgba(15, 48, 121, 0.1);
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.g-item:hover img { transform: scale(1.06); }
.g-item:first-child { grid-column: span 2; aspect-ratio: 2 / 1.05; }

/* ===== EQUIPE ===== */
.team {
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.team li {
  background: #fff;
  border: 1px solid var(--linha);
  border-radius: 40px;
  padding: 12px 24px 12px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--azul-escuro);
  position: relative;
  padding-left: 40px;
  box-shadow: 0 6px 18px rgba(15, 48, 121, 0.06);
}
.team li::before {
  content: "";
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--amarelo);
}

/* ===== RODAPÉ ===== */
.footer {
  padding: 56px 0 44px;
  background: linear-gradient(160deg, var(--azul-escuro), var(--azul));
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-size: 0.95rem;
}
.footer-logo { height: 64px; margin-bottom: 18px; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25)); }
.footer-title {
  font-family: 'Baloo 2', sans-serif;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.footer-heart {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.18);
  display: inline-block;
  font-size: 0.9rem;
}

/* ===== ANIMAÇÃO AO ROLAR ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVO ===== */
@media (max-width: 720px) {
  .pillars { grid-template-columns: 1fr; gap: 16px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .g-item:first-child { grid-column: span 2; aspect-ratio: 2 / 1; }
  .quote { font-size: 1.15rem; padding: 28px 24px 28px 60px; }
  .nav {
    position: absolute;
    top: 68px; right: 5%;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--linha);
    border-radius: 14px;
    padding: 16px 22px;
    gap: 14px;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
}
