/* ==========================================================================
   Colégio Petit — estilos (mobile first)
   ========================================================================== */

:root {
  --roxo: #3B117A;
  --roxo-escuro: #2B0C5A;
  --roxo-claro: #EFE9F8;
  --amarelo: #FFD315;
  --amarelo-hover: #FBB801;
  --verde: #00A312;
  --verde-hover: #008A0F;
  --texto: #333333;
  --texto-suave: #56707A;
  --fundo-claro: #F6F8F5;
  --branco: #FFFFFF;

  --fonte-titulo: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fonte-texto: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;

  --raio: 10px;
  --sombra: 0 10px 30px rgba(59, 17, 122, .12);
  --header-h: 72px;
  --faixa-h: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Reset enxuto */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fonte-texto);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--branco);
  overflow-x: hidden;
  padding-bottom: calc(var(--faixa-h) + var(--safe-bottom));
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
address { font-style: normal; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Utilitários */
.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 16px; }
.container-estreito { max-width: 860px; }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--amarelo); color: var(--texto); padding: .6rem 1rem; border-radius: 4px;
  font-family: var(--fonte-titulo); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; }

.section-title {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.2;
  text-align: center;
  margin-bottom: 1rem;
}
.section-intro { max-width: 820px; margin: 0 auto 2.5rem; text-align: center; font-size: 1.125rem; font-weight: 500; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--fonte-titulo); font-weight: 900; font-size: 1.125rem;
  padding: .75rem 1.5rem; border: 0; border-radius: 4px;
  text-decoration: none; transition: background-color .3s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { font-size: clamp(1.35rem, 4vw, 1.875rem); padding: .6rem 1.75rem; }
.btn-primary { background: var(--amarelo); color: var(--texto); }
.btn-primary:hover { background: var(--amarelo-hover); }
.btn-whatsapp { background: var(--verde); color: var(--branco); border-radius: var(--raio); font-weight: 700; }
.btn-whatsapp:hover { background: var(--verde-hover); }
.btn-outline { background: transparent; color: var(--branco); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); font-weight: 700; }
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* Card roxo (Sobre e Contato) */
.card-roxo { background: var(--roxo); color: var(--branco); border-radius: var(--raio); padding: 30px 24px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled, .site-header.menu-aberto { background: var(--roxo); box-shadow: 0 2px 16px rgba(0,0,0,.18); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo img { width: 76px; }

.menu-toggle {
  width: 44px; height: 44px; border: 0; border-radius: 4px;
  background: var(--amarelo); display: grid; place-items: center;
}
.menu-toggle-bar, .menu-toggle-bar::before, .menu-toggle-bar::after {
  display: block; width: 22px; height: 3px; border-radius: 2px; background: var(--texto);
  transition: transform .3s, background-color .3s; content: "";
}
.menu-toggle-bar { position: relative; }
.menu-toggle-bar::before { position: absolute; top: -7px; }
.menu-toggle-bar::after { position: absolute; top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--roxo); padding: .5rem 16px 1.25rem;
  display: none;
}
.main-nav.is-open { display: block; }
.main-nav a {
  display: block; padding: .8rem 0;
  font-family: var(--fonte-titulo); font-weight: 700; color: var(--branco); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.main-nav a:hover { color: var(--amarelo); }

@media (min-width: 900px) {
  :root { --header-h: 96px; }
  .logo img { width: 100px; }
  .menu-toggle { display: none; }
  .main-nav { position: static; display: block; background: none; padding: 0; }
  .main-nav ul { display: flex; gap: 2rem; }
  .main-nav a { border: 0; padding: .4rem 0; position: relative; }
  .main-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: var(--amarelo); opacity: 0; transition: opacity .3s;
  }
  .main-nav a:hover::after { opacity: 1; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 3rem;
  color: var(--branco); text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--roxo); opacity: .6; }
.hero-content { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.hero-title {
  font-family: var(--fonte-titulo); font-weight: 900; line-height: 1.15;
  font-size: clamp(1.9rem, 7vw, 4.375rem);
  min-height: 2.3em;
}
.typing { color: var(--amarelo); white-space: nowrap; }
/* Cursor gerado por CSS para não entrar no texto do H1 */
.typing::after { content: "|"; color: var(--amarelo); font-weight: 400; animation: piscar 1s step-end infinite; }
@keyframes piscar { 50% { opacity: 0; } }
.hero-text { font-size: 1.0625rem; font-weight: 500; color: #F0F0F0; max-width: 46ch; text-wrap: pretty; }
.hero-text strong { font-family: var(--fonte-titulo); font-weight: 700; color: var(--branco); }

@media (min-width: 768px) {
  .hero-text { font-size: 1.1875rem; }
}

/* ==========================================================================
   Sobre
   ========================================================================== */
.sobre { position: relative; }
.sobre-bg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sobre .container { position: relative; margin-top: -3rem; }
.sobre-card h2 { font-family: var(--fonte-titulo); font-weight: 700; font-size: clamp(1.6rem, 4.5vw, 2.25rem); line-height: 1.2; margin-bottom: 1rem; }
.sobre-card p { font-size: 1.0625rem; font-weight: 500; margin-bottom: 1rem; }
.sobre-card .destaque { font-size: 1.1875rem; font-weight: 500; color: var(--amarelo); }
.fatos { display: grid; gap: .5rem; margin-top: 1.5rem; }
.fatos li { background: rgba(255,255,255,.1); border-left: 4px solid var(--amarelo); padding: .6rem .9rem; border-radius: 4px; }
.fatos strong { font-family: var(--fonte-titulo); font-weight: 700; }

@media (min-width: 900px) {
  .sobre { min-height: 90vh; display: flex; align-items: center; padding: 4rem 0; }
  .sobre picture { position: absolute; inset: 0; }
  .sobre-bg { height: 100%; aspect-ratio: auto; }
  .sobre .container { margin-top: 0; }
  .sobre-card { max-width: 560px; padding: 40px; box-shadow: var(--sombra); }
  .fatos { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Diferenciais
   ========================================================================== */
.diferenciais { background: var(--roxo); color: var(--branco); padding: 4.5rem 0; }
.cards-diferenciais { display: grid; grid-auto-rows: auto; gap: 1.25rem; margin-bottom: 2.5rem; }
.card-diferencial {
  display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0;
  justify-items: center; align-content: start;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--raio); padding: 1.75rem 1.25rem; text-align: center;
  transition: transform .3s, background-color .3s;
}
.card-diferencial:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.card-diferencial img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 1rem; }
.card-diferencial h3 { font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.25rem; line-height: 1.3; margin-bottom: .35rem; align-self: start; }
.card-diferencial p { font-size: 1rem; line-height: 1.5; }

@media (min-width: 600px) { .cards-diferenciais { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-diferenciais { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   Santana
   ========================================================================== */
.santana { background: var(--roxo-claro); padding: 3.5rem 0; }
.santana-inner { display: grid; gap: 1.25rem; }
.santana-icone { color: var(--roxo); }
.santana h2 { font-family: var(--fonte-titulo); font-weight: 700; color: var(--roxo); font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.25; margin-bottom: .75rem; }
.santana p { font-size: 1.0625rem; margin-bottom: 1rem; max-width: 70ch; }
.link-seta { font-family: var(--fonte-titulo); font-weight: 700; color: var(--roxo); text-underline-offset: 4px; }
.link-seta::after { content: " →"; }

@media (min-width: 768px) {
  .santana-inner { grid-template-columns: auto 1fr; align-items: start; gap: 2rem; }
}

/* ==========================================================================
   Depoimentos
   ========================================================================== */
.depoimentos { background: var(--fundo-claro); padding: 4.5rem 0; }
.depoimentos .section-title { color: var(--roxo); margin-bottom: 2.5rem; }
.cards-depoimentos { display: grid; gap: 1.25rem; }
.card-depoimento {
  background: var(--branco); border-radius: var(--raio); box-shadow: var(--sombra);
  padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; text-align: center;
}
.estrelas { color: var(--amarelo); font-size: 1.375rem; letter-spacing: .15em; }
.card-depoimento blockquote { color: var(--texto-suave); font-style: italic; font-size: 1rem; flex: 1; }
.card-depoimento figcaption {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  font-family: var(--fonte-titulo); font-weight: 500; color: #222;
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--roxo); color: var(--amarelo); font-weight: 700; font-size: 1.125rem;
}

@media (min-width: 900px) { .cards-depoimentos { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding: 4.5rem 0; }
.faq .section-title { color: var(--roxo); margin-bottom: 2rem; }
.faq-lista { display: grid; gap: .75rem; }
.faq details { border: 2px solid var(--roxo-claro); border-radius: var(--raio); background: var(--branco); transition: border-color .3s; }
.faq details[open] { border-color: var(--roxo); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1.25rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--amarelo); color: var(--texto); font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.25rem; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq summary h3 { font-family: var(--fonte-titulo); font-weight: 500; font-size: 1.0625rem; color: var(--roxo); line-height: 1.4; }
.faq details p { padding: 0 1.25rem 1.25rem; font-size: 1.0625rem; }
.faq details a { color: var(--roxo); font-weight: 500; }

/* ==========================================================================
   Contato
   ========================================================================== */
.contato { padding: 4.5rem 0; background: var(--branco); }
.contato-grid { display: grid; gap: 1.5rem; }
.contato-grid > * { min-width: 0; }
.contato-card { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.eyebrow { font-weight: 700; letter-spacing: .02em; }
.contato-card h2 { font-family: var(--fonte-titulo); font-weight: 700; font-size: clamp(1.6rem, 4.5vw, 2.3rem); line-height: 1.3; }
.contato-lista { display: grid; gap: 1rem; margin-top: .5rem; }
.contato-lista li { display: flex; align-items: flex-start; gap: .75rem; font-family: var(--fonte-titulo); font-weight: 500; font-size: .95rem; letter-spacing: .02em; }
.contato-lista svg { flex: none; margin-top: 1px; }
.contato-lista a { text-decoration: none; overflow-wrap: anywhere; }
.contato-lista a:hover { color: var(--amarelo); text-decoration: underline; }
.mapa { scroll-margin-top: 16px; border-radius: var(--raio); overflow: hidden; min-height: 360px; background: var(--roxo-claro); }
.mapa iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }

@media (min-width: 900px) {
  .contato-grid { grid-template-columns: 5fr 6fr; align-items: stretch; }
  .contato-card { padding: 40px; }
}

/* ==========================================================================
   Faixa fixa de matrículas
   ========================================================================== */
.faixa-matriculas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: var(--roxo-escuro); color: var(--branco);
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -6px 24px rgba(0,0,0,.2);
  transform: translateY(100%); visibility: hidden;
  transition: transform .45s cubic-bezier(.22,.61,.36,1), visibility 0s linear .45s;
}
.faixa-matriculas.is-visible {
  transform: translateY(0); visibility: visible;
  transition: transform .45s cubic-bezier(.22,.61,.36,1), visibility 0s;
}
.faixa-inner { min-height: var(--faixa-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faixa-texto { font-family: var(--fonte-titulo); font-weight: 700; font-size: clamp(.875rem, 4.4vw, 1rem); line-height: 1.2; white-space: nowrap; }
.faixa-longa { display: none; }
.faixa-destaque { color: var(--amarelo); }
.faixa-matriculas .btn { flex: none; font-size: clamp(.875rem, 4.4vw, 1rem); padding: .55rem clamp(.75rem, 3.5vw, 1rem); }

@media (min-width: 768px) {
  :root { --faixa-h: 76px; }
  .faixa-inner { justify-content: center; gap: 2rem; }
  .faixa-texto { font-size: 1.5rem; }
  .faixa-longa { display: inline; }
  .faixa-curta { display: none; }
  .faixa-matriculas .btn { font-size: 1.125rem; padding: .7rem 1.5rem; }
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
.site-footer { background: var(--roxo); color: var(--branco); padding: 2.5rem 0 1.5rem; font-size: .9375rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; text-align: center; }
.footer-inner img { width: 90px; }
.footer-nap p + p { margin-top: .25rem; }
.footer-nap a { color: var(--amarelo); }
.footer-copy { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.15); text-align: center; font-size: .8125rem; color: rgba(255,255,255,.8); display: grid; gap: .5rem; }
.link-botao { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; font-size: inherit; }

@media (min-width: 768px) {
  .footer-inner { flex-direction: row; text-align: left; gap: 2rem; }
  .footer-copy { display: flex; justify-content: space-between; text-align: left; }
}

/* ==========================================================================
   Banner de cookies
   ========================================================================== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; z-index: 150;
  bottom: calc(16px + var(--safe-bottom));
  transition: bottom .45s cubic-bezier(.22,.61,.36,1);
  max-width: 560px; margin-inline: auto;
  background: var(--roxo-escuro); color: var(--branco);
  border-radius: var(--raio); box-shadow: 0 10px 40px rgba(0,0,0,.35);
  padding: 1.25rem; font-size: .9375rem;
}
.cookie-banner[hidden] { display: none; }
/* Com a faixa visível, o banner sobe para ficar logo acima dela */
.faixa-visivel .cookie-banner { bottom: calc(var(--faixa-h) + var(--safe-bottom) + 12px); }
.cookie-acoes { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1rem; }
.cookie-acoes .btn { font-size: 1rem; padding: .55rem 1.25rem; }
