/* ===== Design tokens ===== */
:root {
  /* Paleta Dom Bosco */
  --db-navy: #0b3c5c;
  --db-blue: #0e5879;
  --db-green: #2bb673;
  --db-teal: #0fb2a0;
  --db-orange: #f28c00;
  --db-yellow: #ffc423;

  /* MK roxos */
  --mk-purple: #5b3ee5;
  --mk-deeppurple: #4a2ed9;

  --ink: #0b2940;
  --bg: #f2f6f9;
  --card: #ffffff;
  --muted: #5e748c;

  --shadow: 0 10px 30px rgba(11, 60, 92, 0.18);
  --shadow-strong: 0 18px 50px rgba(11, 60, 92, 0.25);
  --ring: 0 0 0 3px rgba(255, 196, 35, 0.85);
}

/* ===== Base ===== */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, Montserrat, system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(
      900px 500px at -10% -10%,
      rgba(15, 178, 160, 0.18),
      transparent 55%
    ),
    radial-gradient(
      800px 500px at 110% -10%,
      rgba(43, 182, 115, 0.12),
      transparent 55%
    ),
    var(--bg);
  color: var(--ink);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Topbar / Header ===== */
.topbar {
  background: linear-gradient(90deg, var(--mk-deeppurple), var(--mk-purple));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 8px 0;
  text-align: center;
  font-size: 13px;
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(6px) saturate(1.15);
  background: rgba(242, 246, 249, 0.75);
  border-bottom: 1px solid rgba(11, 60, 92, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: auto;
  width: auto;
  max-width: 320px;
}

/* ===== Buttons ===== */
.cta-header {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.2px;
  border: 2px solid transparent;
  background: var(--db-orange);
  color: #0a2537;
  box-shadow: var(--shadow);
  transition: 0.2s transform, 0.2s box-shadow, 0.2s background, 0.2s color;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(11, 60, 92, 0.22);
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow), var(--ring);
}
.btn--pre-matricula {
  background: linear-gradient(90deg, var(--db-navy), var(--db-blue));
  color: #fff;
}
.btn--pre-matricula:hover {
  filter: brightness(1.1);
}
.btn--portal {
  background: linear-gradient(90deg, var(--db-navy), var(--db-blue));
  color: #fff;
}
.btn--portal:hover {
  filter: brightness(1.1);
}
.btn--renovacao {
  background: linear-gradient(90deg, var(--db-teal), var(--db-teal));
  color: #fff;
}
.btn--renovacao:hover {
  filter: brightness(1.1);
}
.btn--novo {
  background: var(--db-orange);
  color: #112;
}
.btn--novo:hover {
  filter: brightness(1.1);
}
.btn--whatsapp {
  background: #1fa851;
  color: #fff;
}
.btn--whatsapp:hover {
  filter: brightness(1.1);
}

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 38px;
  align-items: center;
  padding: 48px 0 20px;
}
.kicker {
  color: var(--db-green);
  font-weight: 800;
  letter-spacing: 0.25em;
  font-size: 0.82rem;
  text-transform: uppercase;
}
.display {
  font-family: Montserrat;
  font-weight: 900;
  font-size: clamp(34px, 5.2vw, 49px);
  line-height: 1.03;
  margin: 10px 0 12px;
  color: #0a2d45;
}
.lead {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  margin: 0 0 20px;
}
.badges {
  display: flex;
  gap: 10px;
  margin: 10px 0 0;
}
.badge {
  background: rgba(15, 178, 160, 0.14);
  color: var(--db-teal);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
}

/* ===== Mock (CTA) ===== */
.frame {
  background: var(--card);
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(11, 60, 92, 0.08);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.mock {
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #0d4d6c, #0a2d45);
  padding: 26px;
  min-height: 320px;
  position: relative;
}
.mock .card {
  background: #fff;
  border-radius: 18px;
  padding: 2px;
  border: 1px solid rgba(11, 60, 92, 0.06);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}
.mock img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Badge “Matrículas 2026” sobre o mock */
.mock-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: linear-gradient(90deg, var(--mk-purple), #7b62ff);
  color: #fff;
  font-weight: 900;
  font-family: Montserrat;
  letter-spacing: 0.3px;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: var(--shadow-strong);
  transform-origin: 80% 80%;
}

/* Mock como CTA (cursor, foco e animação) */
.mock--cta {
  cursor: pointer;
  outline: none;
}
.mock--cta:focus-visible {
  box-shadow: var(--ring);
  outline: none;
}
.mock--cta[data-anim="on"] .card {
  animation: floaty 3.2s ease-in-out infinite;
}
.mock--cta[data-anim="on"] .mock-badge {
  animation: pulse 1.6s ease-in-out infinite;
}

/* Animações */
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-6px) rotate(-2deg);
  }
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 6px 18px rgba(91, 62, 229, 0.35));
  }
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 10px 26px rgba(91, 62, 229, 0.45));
  }
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.stat {
  background: #fff;
  border: 1px solid rgba(11, 60, 92, 0.08);
  border-radius: 16px;
  padding: 16px;
}
.stat .n {
  font-weight: 900;
  font-family: Montserrat;
  font-size: 32px;
  color: #0a2d45;
}
.stat .t {
  color: #5e748c;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2px;
}

/* ===== Cards, lists, footer ===== */
section.card {
  background: var(--card);
  border: 1px solid rgba(11, 60, 92, 0.08);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  margin-top: 18px;
}
h3 {
  margin: 0 0 6px;
  color: #0a2d45;
}
ul {
  margin: 10px 0 0 18px;
}
footer {
  margin: 42px 0 22px;
  color: #5e748c;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
}

/* ===== Toast copy ===== */
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  background: #fff;
  border: 1px solid rgba(11, 60, 92, 0.12);
  box-shadow: var(--shadow);
  padding: 10px 16px;
  border-radius: 12px;
  display: none;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  z-index: 60;
}

/* ===== Modal (A11y-first) ===== */
.modal[hidden] {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
}
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 22, 40, 0.45);
  backdrop-filter: saturate(1.1) blur(2px);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 720px);
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(11, 60, 92, 0.08);
  box-shadow: var(--shadow-strong);
  padding: 22px;
  animation: modalIn 0.24s ease-out;
}
@keyframes modalIn {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 6px;
  border-radius: 10px;
}
.modal__close:hover {
  background: rgba(11, 60, 92, 0.06);
}
.modal__close:focus-visible {
  box-shadow: var(--ring);
  outline: none;
}

.modal__header h2 {
  margin: 0;
  font-family: Montserrat;
  font-weight: 900;
  color: #0a2d45;
}
.modal__subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
}
.modal__bullets {
  margin: 0.8rem 0 1rem 1.2rem;
}
.modal__bullets li {
  margin: 0.35rem 0;
}
.modal__ctaGroup {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}
.modal__note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cta-header {
    justify-content: flex-end;
  }
}

/* === Mobile first (≤640px) — bloco único e consolidado === */
@media (max-width: 640px) {
  /* Grid/hero */
  .stats { grid-template-columns: 1fr 1fr; }

  /* Header & CTAs */
  .nav {
    flex-direction: column;
    align-items: center;      /* centraliza a logo */
    gap: 12px;
    padding: 10px 0;
  }
  .cta-header {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr; /* 1 por linha */
    gap: 10px;
    justify-items: center;      /* centraliza os botões */
  }
  .btn {
    width: 90%;                 /* ocupa 90% da largura */
    justify-content: center;
    padding: 14px 16px;
    min-height: 48px;
    font-size: 15px;
    border-radius: 14px;
  }
  .brand img {
    max-width: 220px;           /* consistente com o HTML `sizes` */
    height: auto;
  }
  .topbar {
    font-size: 12px;
    padding: 6px 0;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;     /* quebra em duas linhas */
    gap: 6px;
    text-align: center;
  }
}

/* ===== Acessibilidade/motion ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
