/* Tema Olinda (site TARTA) — Tartinha livre · polish flagship inscrição */
:root {
  --amarelo-olinda: #fdb913;
  --azul-ladeiras: #0072bc;
  --laranja-frevo: #f15a24;
  --verde-coqueiro: #8dc63f;
  --rosa-carnaval: #ec008c;
  --azul-marinho: #0a4c6a;
  --verde-agua: #2dccd3;
  --areia: #f7f5e9;
  --areia-deep: #ebe8db;
  --texto: #333333;
  --texto-suave: #3d4650;
  --branco: #ffffff;
  --borda: #d0d5dd;

  --primary: var(--azul-ladeiras);
  --primary-strong: #005a9c;
  --ink: var(--azul-marinho);
  --shadow-soft: 0 4px 18px rgba(10, 76, 106, 0.08);
  --shadow-lift: 0 12px 36px rgba(10, 76, 106, 0.12);
  --focus-ring: 0 0 0 3px rgba(0, 114, 188, 0.28);
  --radius-lg: 16px;
  --radius-xl: 24px;
  --space-section: 2rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Roboto", system-ui, sans-serif;
  background-color: var(--areia);
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

.font-headline {
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  color: var(--azul-marinho);
  text-wrap: balance;
}

h1, h2, h3 {
  text-wrap: balance;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.soft-shadow {
  box-shadow: var(--shadow-soft);
}

.lift-shadow {
  box-shadow: var(--shadow-lift);
}

/* Fundo areia Olinda */
.wave-bg {
  background-image:
    radial-gradient(circle at 18% 82%, rgba(253, 185, 19, 0.2) 0%, transparent 55%),
    radial-gradient(circle at 82% 18%, rgba(141, 198, 63, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 40%, rgba(247, 245, 233, 0.55) 0%, transparent 55%),
    linear-gradient(135deg, #f7f5e9 0%, #f0f0e8 40%, #e8e6d9 100%);
  /* fixed janka no iOS; scroll é mais estável */
  background-attachment: scroll;
}

.ocean-ring {
  background: linear-gradient(90deg, #0a4c6a 0%, #0072bc 42%, #fdb913 78%, #f15a24 100%);
}

/* —— Hero —— */
.hero-wow {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 65% 70% at 92% 12%, rgba(253, 185, 19, 0.18), transparent 55%),
    radial-gradient(ellipse 45% 55% at 0% 100%, rgba(0, 114, 188, 0.08), transparent 50%),
    linear-gradient(160deg, #ffffff 0%, #f7f5e9 58%, #eef6fb 100%);
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(0, 114, 188, 0.12);
}

.hero-wow::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 14% 30%, rgba(255, 255, 255, 0.75) 0 3px, transparent 4px),
    radial-gradient(circle at 80% 20%, rgba(253, 185, 19, 0.3) 0 2px, transparent 3px),
    radial-gradient(circle at 90% 70%, rgba(0, 114, 188, 0.12) 0 3px, transparent 4px);
  pointer-events: none;
  opacity: 0.9;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 70 Q150 35 300 70 T600 70 T900 70 T1200 70 V120 H0 Z' fill='%230072BC' opacity='0.09'/%3E%3Cpath d='M0 88 Q150 55 300 88 T600 88 T900 88 T1200 88 V120 H0 Z' fill='%23FDB913' opacity='0.16'/%3E%3C/svg%3E")
    center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

/* —— Mascote livre —— */
.mascot {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  background: transparent;
}

.mascot-float {
  animation: mascot-bob 3.8s ease-in-out infinite;
  filter: drop-shadow(0 10px 18px rgba(10, 76, 106, 0.14));
}

.mascot-free {
  display: block;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(10, 76, 106, 0.14));
}

/* Compat: se HTML antigo ainda tiver .mascot-circle, neutraliza */
.mascot-circle {
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}

.mascot-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 22rem;
  margin-top: 1rem;
}

.mascot-speech {
  position: relative;
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1.5px solid rgba(0, 114, 188, 0.22);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  padding: 0.7rem 0.9rem;
}

.mascot-speech::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1.5px solid rgba(0, 114, 188, 0.22);
  border-bottom: 1.5px solid rgba(0, 114, 188, 0.22);
  transform: translateY(-50%) rotate(45deg);
}

.mascot-speech p {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--azul-marinho);
  line-height: 1.4;
}

/* —— Chips —— */
.info-chip {
  background: #fff;
  border: 1px solid rgba(0, 114, 188, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.info-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.info-chip .chip-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e8f4fc, #d4ecfa);
  color: var(--azul-ladeiras);
}

/* —— Educativo —— */
.edu-card {
  background: linear-gradient(135deg, rgba(253, 185, 19, 0.1) 0%, #ffffff 42%, rgba(0, 114, 188, 0.05) 100%);
  border: 1px solid rgba(0, 114, 188, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.edu-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(0, 114, 188, 0.1);
  color: var(--azul-marinho);
}

/* —— Form —— */
.form-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 114, 188, 0.1);
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #0a4c6a, #0072bc, #fdb913, #f15a24);
}

.form-section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--azul-marinho);
  margin-bottom: 0.85rem;
}

.form-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 114, 188, 0.3), transparent);
}

.field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 0.4rem;
}

.field-input {
  display: block;
  width: 100%;
  min-height: 48px;
  border-radius: 0.9rem;
  border: 1.5px solid var(--borda);
  background: #faf9f4;
  color: var(--texto);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field-input::placeholder {
  color: #5c6570;
  opacity: 1;
}

.field-input:hover {
  border-color: #7eb8df;
}

.field-input:focus {
  outline: none;
  border-color: var(--azul-ladeiras);
  background: #fff;
  box-shadow: var(--focus-ring);
}

.btn-cta {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, #0072bc 0%, #0a4c6a 100%);
  box-shadow: 0 8px 22px rgba(0, 114, 188, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 114, 188, 0.34);
}

.btn-cta:active {
  transform: translateY(0);
}

.btn-cta:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 8px 22px rgba(0, 114, 188, 0.28);
}

.badge-vagas {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.8rem;
  background: rgba(241, 90, 36, 0.12);
  color: #9a3412;
  border: 1px solid rgba(241, 90, 36, 0.35);
}

.badge-vagas--ok {
  background: rgba(141, 198, 63, 0.18);
  color: #365314;
  border-color: rgba(141, 198, 63, 0.45);
}

.badge-vagas--full {
  background: #fef3c7;
  color: #854d0e;
  border-color: rgba(180, 83, 9, 0.3);
}

.header-mascot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 2px 6px rgba(10, 76, 106, 0.15));
}

/* Header limpo */
.header-bar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 3px solid var(--azul-ladeiras);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

/* Faixa de realização — logos sem “caixa branca de Paint” */
.partner-bar {
  background: linear-gradient(180deg, #ffffff 0%, #f7f5e9 100%);
  border-bottom: 1px solid rgba(0, 114, 188, 0.12);
}

.partner-bar__label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azul-marinho);
  opacity: 0.75;
}

.partner-bar__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1rem;
}

.partner-bar__logos--footer {
  justify-content: center;
}

.partner-bar__sep {
  width: 1px;
  height: 2rem;
  background: rgba(10, 76, 106, 0.18);
  flex-shrink: 0;
}

.partner-bar__names {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--texto-suave);
  max-width: 16rem;
  line-height: 1.3;
}

/* PNG com fundo removido: transparente, sem card branco */
.partner-logo {
  display: block;
  width: auto;
  height: 2.5rem;
  max-width: 9rem;
  object-fit: contain;
  object-position: left center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  /* evita “halo” de PNG em fundos claros */
  mix-blend-mode: multiply;
}

.partner-logo--cmcm {
  height: 2.65rem;
  width: 2.65rem;
  max-width: 2.65rem;
  mix-blend-mode: normal; /* brasão colorido costuma ficar melhor sem multiply */
}

.partner-logo--lg {
  height: 3.25rem;
  max-width: 11rem;
}

.partner-logo--cmcm.partner-logo--lg {
  height: 3.5rem;
  width: 3.5rem;
  max-width: 3.5rem;
}

@media (min-width: 640px) {
  .partner-logo {
    height: 2.85rem;
    max-width: 10.5rem;
  }

  .partner-logo--cmcm {
    height: 3rem;
    width: 3rem;
    max-width: 3rem;
  }
}

/* Utilitários de form / dia */
.text-soft {
  color: var(--texto-suave);
}

.day-card {
  background: #fff;
  border: 1px solid rgba(0, 114, 188, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem 1.35rem 1.35rem;
}

@media (min-width: 768px) {
  .day-card {
    padding: 1.5rem 1.75rem 1.65rem;
  }
}

.day-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .day-list {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
  }
}

.day-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.day-list .material-symbols-outlined {
  color: var(--azul-ladeiras);
  font-size: 1.35rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.day-list strong {
  display: block;
  color: var(--azul-marinho);
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.day-list p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--texto-suave);
  line-height: 1.4;
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9a3412;
}

.field-hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--texto-suave);
}

.field-hint--ok {
  color: #365314;
  font-weight: 600;
}

.field-hint--warn {
  color: #9a3412;
  font-weight: 600;
}

.field-input.is-invalid {
  border-color: #f15a24;
  background: #fff8f5;
}

.field-input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.22);
}

.consent-box.is-invalid {
  border-color: #f15a24;
  background: #fff8f5;
}

.btn-cta--inline {
  width: auto;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  font-size: 0.88rem;
  display: inline-flex;
}

.btn-cta:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
  filter: none;
}

.edu-summary {
  list-style: none;
}

.edu-summary::-webkit-details-marker {
  display: none;
}

.edu-card[open] {
  box-shadow: var(--shadow-lift);
}

.scroll-mt-24 {
  scroll-margin-top: 6rem;
}

/* Arte cartoon Imagine */
.hero-art {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.scene-banner {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 114, 188, 0.1);
  background: linear-gradient(180deg, #fde8c8 0%, #7ec8d4 55%, #3aa0b5 100%);
  /* faixa compacta — não meia tela, não “só a cabeça” */
  max-height: clamp(200px, 26vw, 300px);
}

/*
  cover + âncora embaixo: corta o céu/morros de cima e mantém a Tartinha
  inteira na onda (ela vive na metade inferior da arte).
*/
.scene-banner__img {
  display: block;
  width: 100%;
  height: clamp(200px, 26vw, 300px);
  object-fit: cover;
  object-position: 70% 88%;
}

/* —— Mobile story-first: CTA sticky (não form-first) —— */
.sticky-enroll {
  display: none;
}

@media (max-width: 767px) {
  .sticky-enroll {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 0.65rem 0.9rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 2px solid var(--azul-ladeiras);
    box-shadow: 0 -8px 24px rgba(10, 76, 106, 0.12);
    backdrop-filter: blur(10px);
    justify-content: center;
    transform: translateY(110%);
    transition: transform 0.22s ease;
  }

  .sticky-enroll.is-visible {
    transform: translateY(0);
  }

  .sticky-enroll .btn-cta {
    width: 100%;
    max-width: 420px;
    min-height: 48px;
  }

  /* Espaço para o sticky não cobrir o CTA do form */
  body.has-sticky-enroll {
    padding-bottom: 5.25rem;
  }

  /* Mobile: não forçar altura que “corta a cabeça” da Tartinha */
  .day-card__art img {
    min-height: 0;
    max-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-enroll {
    transition: none;
  }
}

/* Cena praia: mostrar a tartaruga inteira (contain), sem stretch/crop na cabeça */
.day-card__art {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(0, 114, 188, 0.1);
  background:
    radial-gradient(circle at 50% 80%, rgba(253, 185, 19, 0.12), transparent 55%),
    linear-gradient(180deg, #e8f4fc 0%, #f7f5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.day-card__art img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 300px;
  object-fit: contain;
  object-position: center center;
}

/* Rodapé limpo — sem padrão de “papel/confete” (mensagem de lixo no mar) */
.footer-pattern {
  background-color: #fff;
  background-image: linear-gradient(180deg, #ffffff 0%, #f7f5e9 100%);
}

.header-bar a:focus-visible,
footer a:focus-visible {
  outline: 2px solid var(--azul-ladeiras);
  outline-offset: 3px;
  border-radius: 4px;
}

.consent-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  background: rgba(247, 245, 233, 0.9);
  border: 1.5px solid var(--borda);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.consent-box:hover {
  border-color: rgba(0, 114, 188, 0.4);
  background: #fff;
}

.consent-box:has(input:focus-visible) {
  box-shadow: var(--focus-ring);
  border-color: var(--azul-ladeiras);
}

.consent-box input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--azul-ladeiras);
}

.mascot-celebrate {
  animation: mascot-celebrate 1.15s ease-out both;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--azul-ladeiras);
  color: #fff;
  font-weight: 700;
  border-radius: 0.5rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

@keyframes mascot-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes mascot-celebrate {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  60% {
    transform: scale(1.03);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .mascot-float {
    animation: none !important;
    filter: drop-shadow(0 6px 12px rgba(10, 76, 106, 0.12));
  }
}

@media (max-width: 767px) {
  .hero-wow {
    border-radius: 1.15rem;
  }

  .mascot-speech::before {
    left: 50%;
    top: -6px;
    transform: translateX(-50%) rotate(135deg);
  }

  .mascot-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .mascot-row .mascot-free {
    margin-inline: auto;
  }
}
