/* Escolinha do Tio Alexandre — design system portado do projeto original (Tailwind/OKLCH) */

:root {
  --radius: 0.75rem;
  --background: oklch(0.99 0.005 120);
  --foreground: oklch(0.22 0.03 150);
  --card: oklch(1 0 0);
  --primary: oklch(0.48 0.13 150);
  --primary-foreground: oklch(0.99 0.005 120);
  --primary-deep: oklch(0.3 0.09 152);
  --secondary: oklch(0.95 0.02 145);
  --secondary-foreground: oklch(0.3 0.09 152);
  --muted-foreground: oklch(0.5 0.02 150);
  --gold: oklch(0.79 0.16 84);
  --gold-foreground: oklch(0.25 0.06 80);
  --whatsapp: oklch(0.68 0.16 150);
  --destructive: oklch(0.55 0.21 27);
  --border: oklch(0.9 0.015 145);
  --ring: oklch(0.48 0.13 150);
  --gradient-campo: linear-gradient(135deg, var(--primary-deep), var(--primary));
  --shadow-card: 0 10px 30px -18px oklch(0.3 0.09 152 / 0.45);
  --shadow-lift: 0 18px 45px -20px oklch(0.3 0.09 152 / 0.5);
  --font-display: "Archivo Black", system-ui, sans-serif;
  --font-sans: "Hind", system-ui, sans-serif;
}

* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}
img, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.icon-xs  { width:12px; height:12px; stroke-width:1.5; flex-shrink:0; color:currentColor; }
.icon-sm  { width:16px; height:16px; stroke-width:1.5; flex-shrink:0; color:currentColor; }
.icon-md  { width:20px; height:20px; stroke-width:1.5; flex-shrink:0; color:currentColor; }
.icon-lg  { width:24px; height:24px; stroke-width:1.5; flex-shrink:0; color:currentColor; }
.icon-xl  { width:32px; height:32px; stroke-width:1.5; flex-shrink:0; color:currentColor; }
.container { max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
.section-y { padding-block: 4rem; }
@media (min-width: 768px) { .section-y { padding-block: 6rem; } }
.gradient-campo { background-image: var(--gradient-campo); }
.shadow-card { box-shadow: var(--shadow-card); }
.shadow-lift { box-shadow: var(--shadow-lift); }
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow--claro { color: var(--gold); }
.card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding-inline: 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.btn:hover { transform: scale(1.03); }
.btn-gold { background: var(--gold); color: var(--gold-foreground); }
.btn-outline { background: color-mix(in oklch, var(--primary-foreground) 10%, transparent); color: var(--primary-foreground); border: 1px solid color-mix(in oklch, var(--primary-foreground) 40%, transparent); backdrop-filter: blur(4px); }
.btn-whatsapp { background: var(--whatsapp); color: var(--primary-foreground); }

/* ===== Header ===== */
.header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
  background: color-mix(in oklch, var(--background) 90%, transparent);
  backdrop-filter: blur(8px);
}
.header__row {
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  align-items: center; gap: 0.75rem; padding-block: 0.75rem;
}
.header__brand { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.header__brand img { height: 2.5rem; width: 2.5rem; object-fit: contain; flex-shrink: 0; }
.header__brand-text { line-height: 1.2; min-width: 0; }
.header__brand-text strong { display: block; font-family: var(--font-display); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header__brand-text span { display: block; font-size: 11px; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-desktop { display: none; align-items: center; gap: 1.25rem; }
.nav-desktop a.navlink { font-size: 0.9rem; font-weight: 500; color: color-mix(in oklch, var(--foreground) 80%, transparent); }
.nav-desktop a.navlink:hover { color: var(--primary); }
.icon-round { display: grid; place-items: center; height: 2.75rem; width: 2.75rem; border-radius: 999px; }
.icon-round--wa { background: var(--whatsapp); color: var(--primary-foreground); }
.menu-toggle { display: grid; place-items: center; height: 2.75rem; width: 2.75rem; border-radius: 999px; border: 1px solid var(--border); background: none; cursor: pointer; }
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
}
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: color-mix(in oklch, var(--foreground) 50%, transparent); display: none; }
.mobile-menu.aberto { display: block; }
.mobile-menu__panel { margin-left: auto; height: 100%; width: 82%; max-width: 24rem; background: var(--background); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-menu__panel a { display: flex; min-height: 3rem; align-items: center; border-radius: 0.5rem; padding-inline: 0.75rem; font-family: var(--font-display); font-size: 1.1rem; }
.mobile-menu__close { align-self: flex-end; margin-bottom: 1rem; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 92svh; display: flex; align-items: center; overflow: hidden; padding-top: 5rem; }
.hero img.hero-bg { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, oklch(0.22 0.03 150 / 0.82), oklch(0.22 0.03 150 / 0.55) 45%, oklch(0.22 0.03 150 / 0.88)); }
.hero__content { position: relative; max-width: 72rem; margin-inline: auto; padding: 4rem 1rem; width: 100%; }
.badge {
  display: inline-flex; border: 1px solid color-mix(in oklch, var(--gold) 60%, transparent);
  background: color-mix(in oklch, var(--gold) 15%, transparent);
  padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase; color: var(--gold);
}
.hero h1 { margin-top: 1.25rem; max-width: 42rem; font-size: 2.5rem; color: var(--primary-foreground); }
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }
.hero p { margin-top: 1.25rem; max-width: 34rem; color: color-mix(in oklch, var(--primary-foreground) 85%, transparent); }
.hero__ctas { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .hero__ctas { flex-direction: row; } }

/* ===== Faixa credibilidade ===== */
.faixa { }
.faixa__row { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding-block: 1.5rem; text-align: center; color: var(--primary-foreground); }
@media (min-width: 640px) { .faixa__row { flex-direction: row; text-align: left; } }
.faixa svg { color: var(--gold); flex-shrink: 0; }

/* ===== Grid genérico ===== */
.grid-2 { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; } }
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 2rem; }
.stat { background: var(--secondary); border-radius: 0.75rem; padding: 1rem; text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--primary); }
.stat span { font-size: 0.75rem; color: var(--muted-foreground); }
figure.foto-destaque { overflow: hidden; border-radius: 1rem; box-shadow: var(--shadow-lift); margin: 0; }
figure.foto-destaque img { aspect-ratio: 3/2; width: 100%; object-fit: cover; }

/* Logo grande centralizado acima do texto (seção Sobre) */
.sobre-logo { display: flex; justify-content: center; margin-bottom: var(--space-6, 24px); }
.sobre-logo img { width: 256px; height: 256px; object-fit: contain; }
.sobre-col-texto { text-align: center; }
.sobre-col-texto .stat-grid { text-align: left; }

/* ===== Painel histórico (mosaico) ===== */
.painel-historico { padding-block: 4rem; background: var(--secondary); text-align: center; }
.painel-historico .container { max-width: 40rem; }
.painel-historico figure { margin: 2rem auto 0; max-width: 32rem; overflow: hidden; border-radius: 1rem; box-shadow: var(--shadow-lift); }
.painel-historico img { width: 100%; height: auto; }
.painel-historico figcaption { margin-top: 0.75rem; font-size: 0.8rem; color: var(--muted-foreground); }

/* ===== Parallax — campo oficial ===== */
.parallax-campo {
  position: relative; min-height: 60vh; display: flex; align-items: center; justify-content: center;
  background-image: url('/imagens/campo-oficial.jpg');
  background-size: cover; background-position: center; background-attachment: fixed;
}
.parallax-campo__overlay { position: absolute; inset: 0; background: color-mix(in oklch, var(--foreground) 55%, transparent); }
.parallax-campo__texto { position: relative; text-align: center; padding: 2rem; }
.parallax-campo__texto h2 { font-size: 2rem; color: var(--primary-foreground); text-shadow: 0 2px 12px color-mix(in oklch, var(--foreground) 40%, transparent); }
@media (min-width: 640px) { .parallax-campo__texto h2 { font-size: 2.75rem; } }
@media (max-width: 768px) {
  /* background-attachment:fixed é instável em iOS Safari — cai para scroll normal no mobile */
  .parallax-campo { background-attachment: scroll; }
}
@media (prefers-reduced-motion: reduce) {
  .parallax-campo { background-attachment: scroll; }
}

/* ===== Fenômeno ===== */
.fenomeno { text-align: center; }
.fenomeno .container { max-width: 48rem; }
.fenomeno p.eyebrow { color: var(--gold); }
.fenomeno h2 { margin-top: 0.75rem; font-size: 1.875rem; color: var(--primary-foreground); }
@media (min-width: 640px) { .fenomeno h2 { font-size: 2.25rem; } }
.fenomeno p.corpo { margin-top: 1.5rem; color: color-mix(in oklch, var(--primary-foreground) 85%, transparent); }

/* ===== Cards de grid (metodologia/turmas/unidades) ===== */
.grid-cards { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-cards--2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .grid-cards--4 { grid-template-columns: repeat(4,1fr); } .grid-cards--3 { grid-template-columns: repeat(3,1fr); } }
.pilar { border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-card); }
.pilar__icon { display: grid; place-items: center; height: 3rem; width: 3rem; border-radius: 0.75rem; background: color-mix(in oklch, var(--primary) 10%, transparent); color: var(--primary); }
.pilar h3 { margin-top: 1rem; font-size: 1.125rem; }
.pilar p { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted-foreground); }

.turma-grid { margin-top: 2.5rem; list-style: none; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); }
.turma-card {
  display: flex; flex-direction: column; border-radius: 1rem; border: 1px solid var(--border);
  background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-card);
}
.turma-card__etapa {
  align-self: flex-start; font-family: var(--font-display); font-size: 0.7rem;
  background: var(--gold); color: var(--gold-foreground); border-radius: 999px; padding: 0.25rem 0.75rem;
}
.turma-card__cat { margin-top: 1rem; font-size: 1.5rem; color: var(--primary); }
.turma-card__faixa { margin-top: 0.25rem; font-size: 0.9rem; font-weight: 600; color: var(--foreground); }
.turma-card__foco { margin-top: 0.75rem; flex: 1; font-size: 0.9rem; color: var(--muted-foreground); }
.turma-card__turno { margin-top: 1rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--foreground); }
.turma-card__turno i { color: var(--primary); }
.turma-card__cta { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; font-family: var(--font-display); font-size: 0.9rem; color: var(--primary); }

.unidade-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 1rem; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-card); }
.unidade-card iframe { aspect-ratio: 16/10; width: 100%; border: 0; }
.unidade-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.unidade-card h3 { font-size: 1.25rem; }
.unidade-card .campo { margin-top: 0.25rem; font-size: 0.9rem; font-weight: 600; color: var(--primary); }
.unidade-card .endereco { margin-top: 0.75rem; display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.9rem; color: var(--muted-foreground); flex: 1; }
.unidade-card .endereco small { display: block; font-size: 0.75rem; }
.unidade-card .btn { margin-top: 1.25rem; background: var(--primary); color: var(--primary-foreground); align-self: flex-start; }

/* ===== Galeria — carrossel horizontal infinito, full-bleed ===== */
.galeria-carrossel {
  margin-top: 2rem; overflow: hidden; position: relative;
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
}
.galeria-carrossel::before, .galeria-carrossel::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 96px; z-index: 2; pointer-events: none;
}
.galeria-carrossel::before { left: 0; background: linear-gradient(90deg, var(--background), transparent); }
.galeria-carrossel::after { right: 0; background: linear-gradient(270deg, var(--background), transparent); }
.galeria-track { display: flex; gap: 1.5rem; width: max-content; animation: galeria-scroll 48s linear infinite; padding-inline: 1.5rem; }
.galeria-track:hover { animation-play-state: paused; }
.galeria-track button { padding: 0; border: 0; background: none; cursor: pointer; overflow: hidden; border-radius: 1rem; box-shadow: var(--shadow-card); flex-shrink: 0; }
.galeria-track img { width: 520px; height: 380px; object-fit: cover; transition: transform 0.4s ease; }
.galeria-track button:hover img { transform: scale(1.05); }
@keyframes galeria-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .galeria-track img { width: 340px; height: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  .galeria-track { animation: none; overflow-x: auto; }
}
.lightbox { position: fixed; inset: 0; z-index: 70; display: none; place-items: center; background: color-mix(in oklch, var(--foreground) 90%, transparent); padding: 1rem; }
.lightbox.aberto { display: grid; }
.lightbox img { max-height: 80svh; width: auto; border-radius: 0.75rem; object-fit: contain; }
.lightbox__fechar { position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center; height: 3rem; width: 3rem; border-radius: 999px; background: color-mix(in oklch, var(--primary-foreground) 20%, transparent); color: var(--primary-foreground); border: 0; cursor: pointer; }

/* ===== Depoimentos ===== */
.depo-card { border: 1px solid var(--border); background: var(--card); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow-card); }
.depo-card svg { color: var(--gold); }
.depo-card blockquote { margin: 0.75rem 0 0; font-size: 1rem; }
.depo-card .nome { margin-top: 1rem; font-family: var(--font-display); font-size: 0.9rem; color: var(--primary); }
.depo-card .relacao { font-size: 0.75rem; color: var(--muted-foreground); }

/* ===== Formulário ===== */
.form-card { border: 1px solid var(--border); background: var(--card); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow-card); }
.campo-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .campo-grid { grid-template-columns: 1fr 1fr; } }
.col-2 { grid-column: 1 / -1; }
.campo label { font-size: 0.875rem; font-weight: 600; }
.campo input, .campo select, .campo textarea {
  margin-top: 0.4rem; min-height: 3rem; width: 100%; border-radius: 0.75rem;
  border: 1px solid var(--border); background: var(--background); padding-inline: 1rem;
  font-size: 1rem; font-family: var(--font-sans); color: var(--foreground);
}
.campo textarea { padding-block: 0.75rem; min-height: auto; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 30%, transparent); }
.erro-campo { margin-top: 0.25rem; font-size: 0.75rem; color: var(--destructive); }
.consentimento { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.consentimento input { margin-top: 0.2rem; width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.categoria-indicada { margin-top: 1.5rem; display: inline-flex; border-radius: 999px; background: var(--gold); color: var(--gold-foreground); padding: 0.5rem 1rem; font-family: var(--font-display); font-size: 0.875rem; }
.form-status { margin-top: 1rem; display: flex; align-items: center; gap: 0.5rem; border-radius: 0.75rem; background: color-mix(in oklch, var(--primary) 10%, transparent); padding: 1rem; font-size: 0.875rem; color: var(--primary); }
.form-status.erro { background: color-mix(in oklch, var(--destructive) 10%, transparent); color: var(--destructive); }

/* ===== FAQ ===== */
.faq-item { overflow: hidden; border-radius: 1rem; border: 1px solid var(--border); background: var(--card); }
.faq-item summary { list-style: none; display: flex; min-height: 3.5rem; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; cursor: pointer; font-family: var(--font-display); font-size: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.25rem; color: var(--primary); transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 1.25rem 1.25rem; font-size: 0.9rem; color: var(--muted-foreground); }

/* ===== Footer ===== */
.footer { padding-bottom: 6rem; color: var(--primary-foreground); }
.footer__grid { display: grid; gap: 2.5rem; padding-block: 3.5rem; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(3,1fr); } }
.footer__brand { display: flex; align-items: center; gap: 0.75rem; }
.footer__brand img { height: 3rem; width: 3rem; object-fit: contain; }
.footer__brand strong { font-family: var(--font-display); font-size: 1.1rem; }
.footer p.desc { margin-top: 1rem; font-size: 0.9rem; color: color-mix(in oklch, var(--primary-foreground) 80%, transparent); }
.footer__social { margin-top: 1.25rem; display: flex; gap: 0.75rem; }
.footer__social a { display: grid; place-items: center; height: 2.75rem; width: 2.75rem; border-radius: 999px; background: color-mix(in oklch, var(--primary-foreground) 15%, transparent); }
.footer h2 { font-size: 1rem; }
.footer ul { list-style: none; margin: 1rem 0 0; padding: 0; font-size: 0.9rem; color: color-mix(in oklch, var(--primary-foreground) 80%, transparent); }
.footer ul li { margin-bottom: 0.75rem; }
.footer ul li strong { display: block; color: var(--primary-foreground); }
.footer .mapa-site { margin-top: 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; font-size: 0.9rem; }
.footer .mapa-site a:hover { text-decoration: underline; }
.footer__bottom { border-top: 1px solid color-mix(in oklch, var(--primary-foreground) 20%, transparent); }
.footer__bottom p { max-width: 72rem; margin-inline: auto; padding: 1.5rem 1rem; font-size: 0.75rem; color: color-mix(in oklch, var(--primary-foreground) 70%, transparent); }

/* ===== WhatsApp flutuante ===== */
.wa-flutuante {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 50;
  display: grid; place-items: center; height: 3.5rem; width: 3.5rem; border-radius: 999px;
  background: var(--whatsapp); color: var(--primary-foreground); box-shadow: var(--shadow-lift);
  animation: pulso-wa 2.4s infinite; transition: transform 0.15s ease;
}
.wa-flutuante:hover { transform: scale(1.05); }
@keyframes pulso-wa {
  0% { box-shadow: 0 0 0 0 oklch(0.68 0.16 150 / 0.55); }
  70% { box-shadow: 0 0 0 16px oklch(0.68 0.16 150 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.68 0.16 150 / 0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-flutuante { animation: none; }
}

/* ===== Página institucional (privacidade) ===== */
.pagina-institucional { padding-top: 6rem; }
.pagina-institucional article { max-width: 48rem; margin-inline: auto; padding: 3rem 1rem; }
.pagina-institucional nav.breadcrumb { font-size: 0.875rem; color: var(--muted-foreground); }
.pagina-institucional h1 { margin-top: 1rem; font-size: 1.875rem; }
.pagina-institucional section { margin-top: 2rem; }
.pagina-institucional section h2 { font-size: 1.25rem; }
.pagina-institucional section p { margin-top: 0.5rem; color: var(--muted-foreground); }
