/* ============================================================
   Colégio Seja | Matrículas 2027
   Paleta travada: papel #f7f7f5, tinta #0c0047, acento #323e8c
   Raio: containers 12px, interativos pill
   Tema claro travado na página inteira (cartaz de campanha)
   ============================================================ */

@font-face {
  font-family: "Boldonse";
  src: url("../assets/fonts/Boldonse-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Questrial";
  src: url("../assets/fonts/Questrial-Regular.woff2") format("woff2");
  font-weight: 400 700; /* fonte de peso único; 500/700 são sintetizados */
  font-display: swap;
}

:root {
  --paper: #f7f7f5;
  --paper-soft: #efefec;
  --ink: #0c0047;
  --sky: #00acea;
  --royal: #323e8c;
  --royal-deep: #28336f;
  --muted: #4c4d55;
  --basic-gray: #63646a; /* cinza da marca escurecido p/ contraste AA sobre paper-soft */
  --line: rgba(12, 0, 71, 0.14);
  --on-ink-muted: rgba(247, 247, 245, 0.78);
  --whats-green: #0e7a36; /* verde WhatsApp escurecido p/ contraste AA com branco */
  --radius: 12px;
  --shadow: 0 12px 32px rgba(12, 0, 71, 0.12);
  --font-display: "Boldonse", "Arial Black", sans-serif;
  --font-body: "Questrial", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Acessibilidade ---------- */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--royal);
  outline-offset: 2px;
}
.matricula :focus-visible,
.footer :focus-visible,
.sticky-bar :focus-visible {
  outline-color: #fff;
}

/* ---------- Tipografia ---------- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); }

.section-head {
  max-width: 62ch;
  margin-bottom: 48px;
}
.section-head p {
  margin-top: 16px;
  color: var(--muted);
  max-width: 58ch;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--royal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(50, 62, 140, 0.32);
}
.btn-primary:hover { background: var(--royal-deep); }

.btn-lg { padding: 17px 36px; font-size: 1.06rem; }
.btn-block { width: 100%; }

.btn-whats {
  background: var(--whats-green);
  color: #fff;
}
.btn-whats:hover { background: #188a43; }
.btn-whats .icon-sm { fill: #fff; }

/* ---------- Ícones ---------- */
.icon { width: 30px; height: 30px; fill: var(--royal); flex-shrink: 0; }
.icon-sm { width: 19px; height: 19px; fill: currentColor; flex-shrink: 0; }
.icon-lg { width: 52px; height: 52px; fill: var(--royal); }

/* ---------- Nav ---------- */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  padding-block: 12px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo img { height: 48px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-selo { width: 64px; height: 64px; }

@media (max-width: 640px) {
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media img {
  object-fit: cover;
  object-position: 60% center;
  transform: scale(1.22);
  will-change: transform;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.44);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 72px; /* espaço da nav */
  max-width: 1200px;
}
.hero-content > * { max-width: 580px; }
.hero-content h1 { color: #fff; }

.hero-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}

.hero-sub {
  margin-top: 22px;
  font-size: 1.13rem;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 500;
}

.hero .btn { margin-top: 32px; }

@media (max-width: 640px) {
  .hero-scrim { background: rgba(0, 0, 0, 0.5); }
  .hero-content { padding-top: 96px; padding-bottom: 48px; }
}

/* Entrada em cascata do hero (acima da dobra) */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero-tag,
  html.js .hero-content h1,
  html.js .hero-sub,
  html.js .hero-content .btn {
    opacity: 0;
    animation: heroIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  html.js .hero-tag { animation-delay: 0.1s; }
  html.js .hero-content h1 { animation-delay: 0.24s; }
  html.js .hero-sub { animation-delay: 0.4s; }
  html.js .hero-content .btn { animation-delay: 0.54s; }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Seções (ritmo) ---------- */
.contraste, .diferenciais, .faq { padding-block: 96px; }
@media (max-width: 768px) {
  .contraste, .diferenciais, .faq { padding-block: 64px; }
}

/* ---------- Contraste básico vs Seja ---------- */
.contraste-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .contraste-grid { grid-template-columns: 1fr; }
}

.c-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.c-body { padding: 32px 30px; }
.c-basico {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.c-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.35;
  margin-bottom: 14px;
}
.c-body p:last-child { font-size: 0.98rem; }

/* Variante escura (navy) */
.c-card--dark { background: var(--ink); color: var(--on-ink-muted); }
.c-card--dark .c-basico { color: rgba(247, 247, 245, 0.6); }
.c-card--dark h3 { color: #fdfdfc; }

/* Variante clara (céu #00acea) - texto navy para leitura AA */
.c-card--light { background: var(--sky); color: var(--ink); }
.c-card--light .c-basico { color: rgba(12, 0, 71, 0.72); }
.c-card--light h3 { color: var(--ink); }
.c-card--light .c-body p:last-child { color: var(--ink); }

.section-cta { text-align: center; margin-top: 56px; }

/* ---------- Diferenciais ---------- */
.diferenciais { background: #fff; }
.dif-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
}
@media (max-width: 768px) {
  .dif-grid { grid-template-columns: 1fr; gap: 32px; }
}
.dif-grid li { display: flex; gap: 18px; align-items: flex-start; }
.dif-grid h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 6px; }
.dif-grid p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Sobre / educação completa (texto + foto 50/50) ---------- */
.sobre { padding-block: 96px; }
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.sobre-text h2 { margin-bottom: 20px; }
.sobre-text p { color: var(--muted); margin-top: 16px; max-width: 54ch; }
.sobre-photo img { width: 100%; display: block; border-radius: var(--radius); }
@media (max-width: 900px) {
  .sobre { padding-block: 64px; }
  .sobre-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Urgência ---------- */
.urgencia {
  background: var(--royal);
  color: #fff;
  padding-block: 24px;
}
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  list-style: none;
  animation: marquee 34s linear infinite;
}
.marquee-track li {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding-inline: 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-lion { width: 44px; height: auto; flex-shrink: 0; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Formulário ---------- */
.matricula {
  background: var(--ink);
  color: var(--paper);
  padding-block: 96px;
}
@media (max-width: 768px) {
  .matricula { padding-block: 64px; }
}
.matricula-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .matricula-grid { grid-template-columns: 1fr; gap: 40px; }
}
.matricula-copy h2 { color: #fdfdfc; }
.matricula-copy > p {
  margin-top: 18px;
  color: var(--on-ink-muted);
  max-width: 46ch;
}
.matricula-trust {
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 14px;
}
.matricula-trust li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--on-ink-muted);
  font-size: 0.98rem;
}
.matricula-trust .icon-sm { color: #9aa4e0; margin-top: 3px; }

.form-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
@media (max-width: 640px) {
  .form-card { padding: 24px 20px; }
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 7px;
}
.req { color: var(--royal); }
.opt { color: var(--muted); font-weight: 400; font-size: 0.85rem; }

.field input,
.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 16px;
  transition: border-color 0.2s ease;
}
.field input::placeholder { color: #6f7075; }
.field input:hover, .field select:hover { border-color: rgba(12, 0, 71, 0.35); }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(50, 62, 140, 0.18);
}

.field.invalid input, .field.invalid select { border-color: #b3261e; }
.field-error {
  color: #b3261e;
  font-size: 0.85rem;
  margin-top: 6px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 44px; }
.select-caret {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--royal);
  pointer-events: none;
}

#submit-btn { margin-top: 8px; }
#submit-btn[disabled] { opacity: 0.7; cursor: wait; }

.lgpd {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.form-fail {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #fdeceb;
  color: #8c1d16;
  font-size: 0.92rem;
}
.form-fail a { color: inherit; font-weight: 700; }

.form-success { text-align: center; padding: 24px 8px; }
.form-success h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 20px 0 12px;
}
.form-success p { color: var(--muted); max-width: 40ch; margin-inline: auto; }
.form-success .btn { margin-top: 24px; }
.form-success .icon-lg { margin-inline: auto; }

/* ---------- FAQ ---------- */
.faq-inner { max-width: 800px; }
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 22px 4px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon-sm {
  color: var(--royal);
  transition: transform 0.25s ease;
}
.faq-list details[open] summary .icon-sm { transform: rotate(180deg); }
.faq-list details > p {
  padding: 0 4px 24px;
  color: var(--muted);
  max-width: 65ch;
}

/* ---------- Rodapé ---------- */
.footer {
  background: var(--ink);
  color: var(--on-ink-muted);
  padding-block: 64px 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 48px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(247, 247, 245, 0.16);
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand img { width: 180px; }
.footer-brand p { margin-top: 16px; font-size: 0.95rem; max-width: 34ch; }
.footer-contact { display: grid; gap: 12px; }
.footer-contact a, .footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-ink-muted);
  text-decoration: none;
  font-size: 0.98rem;
}
.footer-contact a:hover { color: #fff; }
.footer-selo img { width: 72px; height: 72px; }
.footer-legal { padding-block: 20px; }
.footer-legal p { font-size: 0.85rem; color: rgba(247, 247, 245, 0.55); }

/* ---------- WhatsApp flutuante (disco azul + texto rotativo) ---------- */
.whats-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  background: var(--royal);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  transition: transform 0.2s ease;
}
.whats-float:hover { transform: scale(1.05); }
.whats-float:active { transform: scale(0.97); }
.whats-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 9s linear infinite;
}
.whats-ring text {
  font-family: var(--font-body);
  font-size: 8.4px;
  font-weight: 700;
  letter-spacing: 0.6px;
  fill: #fff;
}
.whats-icon {
  position: relative;
  width: 34px;
  height: 34px;
  fill: #fff;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .whats-ring { animation: none; }
}
@media (max-width: 640px) {
  .whats-float { width: 90px; height: 90px; right: 14px; bottom: 14px; }
  .whats-ring text { font-size: 8.8px; }
  .whats-icon { width: 30px; height: 30px; }
}

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  html.js [data-reveal].revealed {
    opacity: 1;
    transform: none;
  }
}
