/* ==========================================================================
   KIN — Landing page
   --------------------------------------------------------------------------
   Sistema de medidas: 1rem = 10px do Figma (frame de 1276.93px).
   • Desktop (≥1200px): o rem é fluido (100vw / 127.693), então a página
     mantém a proporção exata do layout em 1280, 1440, 1920…, com teto de 1.5×.
   • Tablet / mobile: rem fixo em 10px e layouts dedicados.
   ========================================================================== */

/* ---------- Fontes (locais) ---------- */

@font-face {
  font-family: "PP Pangram Sans";
  src: url("assets/fonts/PPPangramSans-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Pangram Sans";
  src: url("assets/fonts/PPPangramSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Títulos: a Narrow Semibold do design (70px / 35px). Texto, menu e botões: PP Pangram Sans. */
@font-face {
  font-family: "PP Pangram Sans Narrow";
  src: url("assets/fonts/PPPangramSans-NarrowSemibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --orange: #d46b3c;
  --brown: #924e26;
  --sand: #f0dbae;
  --cream: #fcf7ea;
  --navy: #3d5266;
  --olive: #61663d;
  --khaki: #cfba93;
  --grey: #98a6ab;
  --sage: #b4b89e;
  --ink: #525252;
  --placeholder: #7b7b7b;
  --map: #767676;
  --error: #b4462b;

  --font-display: "PP Pangram Sans Narrow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "PP Pangram Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout global — UM único container para a página inteira (header, seções, footer) */
  --container: 115.24rem;      /* largura máxima do conteúdo */
  --gutter: 4rem;              /* respiro lateral mínimo */
  --section-y: 10rem;          /* padding vertical padrão de TODAS as seções */
  --header-pad: 2.8rem;        /* padding vertical do header */
  --header-h: 8rem;

  /* Títulos em PP Pangram Sans Narrow Semibold, nos tamanhos do PDF (70px / 35px) */
  --size-hero: 7rem;
  --size-display: 3.5rem;
  --track-hero: -0.01em;
  --track-display: -0.01em;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --navy-tone: #475d72;   /* elementos gráficos sobre o azul */
  --brown-tone: #824522;  /* elementos gráficos sobre o marrom */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  font-size: 62.5%; /* 1rem = 10px */
}

/* Escala fluida proporcional ao Figma entre 1200px e 1440px. Acima disso o layout
   para de crescer: o container fica centralizado com largura máxima fixa e só
   os fundos continuam ocupando a tela toda. */
@media (min-width: 1200px) {
  html {
    font-size: min(0.78313vw, 11.28px);
  }
}

/* ---------- Reset ---------- */

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

/* Seleção de texto nas cores da marca, em vez do azul padrão do navegador */
::selection {
  background: var(--orange);
  color: var(--cream);
}

::-moz-selection {
  background: var(--orange);
  color: var(--cream);
}

/* Onde o fundo já é laranja, a seleção muda pra marrom — senão ela "some" */
.hero ::selection,
.activity--orange ::selection {
  background: var(--brown);
  color: var(--cream);
}

.hero ::-moz-selection,
.activity--orange ::-moz-selection {
  background: var(--brown);
  color: var(--cream);
}

/* Lenis (https://github.com/darkroomengineering/lenis): regras recomendadas.
   O scroll-behavior nativo precisa ser desligado enquanto o Lenis está ativo. */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* evita que o iframe do mapa "engula" a roda do mouse durante o scroll */
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg,
iframe {
  display: block;
}

img {
  max-width: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

address {
  font-style: normal;
}

strong {
  font-weight: 600;
}

h1,
h2,
h3 {
  font-weight: inherit;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 100;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  background: var(--brown);
  color: var(--cream);
  font-weight: 600;
  font-size: 1.4rem;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Layout ---------- */

.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* Duas colunas: texto à esquerda, bloco de 50.4rem alinhado à borda direita do container */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50.372rem;
  align-items: start;
}

/* ---------- Typography ---------- */

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--size-display);
  line-height: 4.3rem;
  letter-spacing: var(--track-display);
}

.body {
  font-size: 1.3rem;
  line-height: 2rem;
}

/* Textos curtos (cards, descrições, respostas do FAQ): quando quebram em 2-3 linhas,
   o navegador equilibra a largura de cada linha em vez de deixar a última "sobrando". */
.body,
.activity__desc {
  text-wrap: balance;
}

/* Alinhamento óptico: as métricas verticais do PP Pangram Sans deixam a baseline
   ~3px (35px) / ~5px (70px) acima da do PDF. O deslocamento relativo corrige
   sem alterar a altura de nenhuma seção. */
.h2,
.card__title,
.activity__title {
  position: relative;
  top: 0.3rem;
}

/* ---------- Buttons & pills ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease-out), color 0.3s ease;
}

/* camada de hover que "enche" o botão */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--btn-hover, rgba(0, 0, 0, 0.12));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease-out);
}

.btn:hover::before {
  transform: scaleY(1);
}

.btn:hover {
  transform: translateY(-0.2rem);
}

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

.btn--lg {
  height: 5.313rem;
  font-size: 1.59rem;
  line-height: 2.5rem;
}

.btn--sm {
  width: 16.396rem;
  height: 3.697rem;
  font-size: 1.1rem;
  line-height: 1.7rem;
}

.btn--brown {
  background: var(--brown);
  color: var(--sand);
  --btn-hover: #7f4420;
}

.btn--cream {
  background: var(--cream);
  color: var(--brown);
  --btn-hover: #fff;
}

.btn--orange {
  background: var(--orange);
  color: var(--cream);
  --btn-hover: #c35e31;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center; /* largura fixa do design: centraliza o texto, qualquer que seja a fonte */
  width: 25.099rem;
  height: 5.313rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.59rem;
  line-height: 2.5rem;
  color: var(--sand);
  white-space: nowrap;
}

.pill--brown { background: var(--brown); }
.pill--orange { background: var(--orange); }

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--cream);
  transition: transform 0.5s var(--ease-out), background-color 0.4s ease;
}

.header__inner {
  display: flex;
  align-items: center;
  padding-block: var(--header-pad);
  transition: padding 0.45s var(--ease-out);
}

.header__logo {
  flex-shrink: 0;
}

.header__logo img {
  width: 15.342rem;
  height: auto;
  transition: width 0.45s var(--ease-out);
}

.nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav__list {
  display: flex;
  gap: 2.99rem;
  font-size: 1.3rem;
  line-height: 2rem;
}

.nav__list a {
  position: relative;
  display: block;
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.3rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}

.nav__list a:hover::after,
.nav__list a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__cta {
  background: var(--brown);
  color: var(--cream);
  --btn-hover: #7f4420;
  width: 14.502rem;
  height: 3.898rem;
  margin-left: 3.23rem;
  font-size: 1.3rem;
  line-height: 2rem;
}

.nav__footer,
.header__toggle {
  display: none;
}

/* Estado ao rolar: barra compacta, opaca (sem blur nem sombra — não combina com a marca) */
.header.is-scrolled {
  background: var(--brown);
}

.header.is-scrolled .header__inner {
  padding-block: 1.4rem;
}

.header.is-scrolled .header__logo img {
  width: 11rem;
}

.header.is-scrolled .nav__cta {
  background: var(--orange);
  --btn-hover: #c35e31;
}

.header.is-hidden {
  transform: translateY(-100%);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: max(72rem, 100svh);
  background: var(--orange);
  color: var(--cream);
  overflow: hidden;
}

/* Conteúdo só para leitores de tela / buscadores */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero__content {
  position: relative;
}

.hero__title {
  position: relative;
  top: 0.6rem;
  display: flex; /* evita colapso das margens negativas das linhas */
  flex-direction: column;
  margin-top: 4.401rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--size-hero);
  line-height: 6.5rem;
  letter-spacing: var(--track-hero);
}

.hero__title .line {
  display: block;
  /* folga para a máscara não cortar acentos/descendentes */
  padding-block: 0.12em;
  margin-block: -0.12em;
  overflow: hidden;
}

.hero__title .line > span {
  display: block;
}

.hero__text {
  max-width: 54rem;
  margin-top: 1.986rem;
  font-size: 1.59rem;
  line-height: 2.3914rem;
}

.hero__text p + p {
  margin-top: 1.2rem;
}

.hero__address {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2.293rem;
  font-weight: 600;
  font-size: 1.59rem;
  line-height: 2.5rem;
  color: var(--sand);
}

.hero__address img {
  flex-shrink: 0;
  width: 1.106rem;
  height: auto;
  margin-top: 0.325rem;
}

.hero__actions {
  display: flex;
  gap: 2.035rem;
  margin-top: 4.476rem;
}

.hero__btn-primary { width: 19.384rem; }
.hero__btn-secondary { width: 16.759rem; }

/* ==========================================================================
   Quem somos
   ========================================================================== */

.about {
  background: var(--sand);
}

.about__inner {
  display: grid;
  grid-template-columns: 41.859rem minmax(0, 1fr);
  align-items: center;
  padding-block: var(--section-y);
}

/* Vídeo em arco (eco das formas semicirculares da marca) + ponto de cor no canto cortado */
.about__media {
  position: relative;
  width: 32rem;
  max-width: 100%;
}

.video-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  isolation: isolate;
  border-radius: 50% 50% 2rem 2rem / 40% 40% 2rem 2rem;
  background: var(--sand); /* mesma cor da seção: sem filete escuro no antialiasing do arco */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.video-card:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 0.5rem;
}

.video-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.4s var(--ease-out);
}

.video-card:hover .video-card__video {
  transform: scale(1.06);
}

.video-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(32, 43, 56, 0.55), rgba(32, 43, 56, 0) 45%);
}

.video-card__cta {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.8rem 0.7rem 0.7rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: transform 0.6s var(--ease-out);
}

.video-card__play {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  transition: transform 0.6s var(--ease-out);
}

.video-card__play svg {
  width: 1.1rem;
  height: auto;
  margin-left: 0.2rem;
}

.video-card__time {
  font-weight: 400;
  opacity: 0.55;
}

.video-card:hover .video-card__cta {
  transform: translateX(-50%) translateY(-0.4rem);
}

.video-card:hover .video-card__play {
  transform: scale(1.14);
}

.video-card__dot {
  position: absolute;
  top: 0.8rem;
  right: 0.4rem;
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  background: var(--orange);
  pointer-events: none;
}

/* ---------- Lightbox do vídeo ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: rgba(30, 40, 53, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 1;
  transition: opacity 0.4s ease;
}

.lightbox[open]::backdrop {
  animation: lightbox-fade 0.45s ease both;
}

.lightbox.is-closing::backdrop {
  opacity: 0;
}

@keyframes lightbox-fade {
  from {
    opacity: 0;
  }
}

.lightbox__stage {
  position: relative;
  width: min(92vw, calc(88vh * 9 / 16));
  width: min(92vw, calc(88svh * 9 / 16));
  aspect-ratio: 9 / 16;
  border-radius: 2rem;
  overflow: hidden;
  background: #10151c;
}

.lightbox__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox__close {
  position: fixed;
  top: max(2rem, env(safe-area-inset-top));
  right: max(2.4rem, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  cursor: pointer;
  transition: transform 0.6s var(--ease-out), background-color 0.3s ease;
}

.lightbox__close:hover {
  background: var(--sand);
  transform: rotate(90deg);
}

.lightbox__close:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

/* ---------- Popup do WhatsApp (depois do cadastro) ---------- */

.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 2.4rem;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.wa-modal[open] {
  display: grid;
  place-items: center;
}

/* sem blur: fundo liso, igual ao resto do site */
.wa-modal::backdrop {
  background: rgba(30, 40, 53, 0.78);
  opacity: 1;
  transition: opacity 0.35s ease;
}

.wa-modal[open]::backdrop {
  animation: lightbox-fade 0.4s ease both;
}

.wa-modal__card {
  position: relative;
  width: min(100%, 38rem);
  padding: 4rem 3.2rem 3.2rem;
  border-radius: 2rem;
  background: var(--cream);
  text-align: center;
  animation: wa-modal-in 0.5s var(--ease-out) both;
}

@keyframes wa-modal-in {
  from {
    opacity: 0;
    transform: translateY(1.6rem) scale(0.97);
  }
}

.wa-modal__close {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), background-color 0.3s ease;
}

.wa-modal__close:hover {
  background: var(--sand);
  transform: rotate(90deg);
}

.wa-modal__close:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.wa-modal__icon {
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.8rem;
  border-radius: 50%;
  background: #25d366; /* verde do WhatsApp: mantém o ícone reconhecível */
}

.wa-modal__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.2rem;
  line-height: 2.8rem;
  letter-spacing: var(--track-display);
  color: var(--brown);
}

.wa-modal__text {
  max-width: 29rem;
  margin: 0.8rem auto 2.4rem;
  color: var(--ink);
}

.wa-modal__cta {
  width: 100%;
  height: 5.2rem;
  font-size: 1.4rem;
}

.wa-modal__skip {
  margin-top: 1.4rem;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--placeholder);
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  transition: color 0.25s ease;
}

.wa-modal__skip:hover {
  color: var(--ink);
}

.wa-modal__hint {
  margin-top: 0.8rem;
  font-size: 1.1rem;
  color: var(--placeholder);
}

@media (max-width: 379px) {
  .wa-modal__card {
    padding: 3.6rem 2.4rem 2.8rem;
  }
}

.about__text {
  color: var(--navy);
}

.about__p {
  max-width: 58rem;
  margin-top: 1.991rem;
  color: var(--ink);
}

.about__p--strong {
  margin-top: 2rem;
  font-weight: 600;
  color: var(--navy);
}

/* ==========================================================================
   Públicos
   ========================================================================== */

.audiences {
  position: relative;
  background: var(--orange);
  color: var(--cream);
  overflow: hidden;
}

/* Foto à esquerda: vaza para fora do container (até perto da borda da tela)
   e ocupa a altura toda da seção */
.audiences__media {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2.9rem;
  width: 62rem;
  pointer-events: none;
}

.audiences__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
}

.audiences__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56.614rem;
  padding-block: var(--section-y);
}

.audiences__content {
  grid-column: 2;
}

.audiences__text {
  margin-top: 1.6rem;
}

/* 2×2 — ordem por idade lida em linha (Crianças | Adolescentes / Adultos | 60+).
   Gap curto: os cards leem como um conjunto, uma "mesa" de gerações juntas */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 4.1rem;
}

.card {
  min-height: 22.3rem;
  padding: 2.1rem 2.4rem 2.4rem;
  border-radius: 1rem;
  transition: transform 0.6s var(--ease-out);
}

.card:hover {
  transform: translateY(-0.6rem);
}

.card--navy { background: var(--navy); }
.card--olive { background: var(--olive); }
.card--brown { background: var(--brown); }

/* frase de fechamento: reforça que as gerações dividem o mesmo espaço */
.audiences__closing {
  max-width: 44rem;
  margin-top: 3.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 3rem;
  letter-spacing: var(--track-display);
  text-wrap: balance;
  color: var(--cream);
}

.audiences__closing strong {
  display: block;
  color: var(--sand);
  font-weight: 600;
}

/* ---------- Slideshow (Públicos) ---------- */
.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.025);
  transform-origin: left bottom;
  visibility: hidden;
  transition: opacity 0.9s ease, transform 1.4s var(--ease-out), visibility 0s 0.9s;
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}

.slide > picture {
  display: block;
  width: 100%;
  height: 100%;
}

.slide > picture > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
}

/* fotos preenchem a área (o enquadramento vem do painel); ilustrações sem fundo aparecem inteiras */
.slide[data-fit="cover"] {
  /* foto emoldurada: alinhada ao container, longe da coluna de texto e abaixo dos controles */
  inset: 7rem 3.6rem 4rem 2.9rem;
  border-radius: 2rem;
  overflow: hidden;
}

.slide[data-fit="cover"] > picture > img {
  object-fit: cover;
  object-position: var(--focus, center);
}

/* ---------- Slider do Hero ----------
   Tela cheia, uma foto por slide com o mesmo texto por cima. A troca é uma "cortina" diagonal
   (clip-path) feita no script.js com GSAP; aqui ficam só o layout e os estados iniciais. */
.hero-slider {
  --hero-pad: var(--gutter);
  height: 100svh;
  min-height: 76rem;
  background: var(--orange);
  touch-action: pan-y; /* swipe horizontal troca o slide; vertical continua rolando */
}

.hero-slider__list {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none; /* o script mostra o atual (e o próximo durante a troca) */
  overflow: hidden;
  background: var(--orange);
  will-change: clip-path, filter;
}

.hero-slide:first-child {
  display: flex; /* sem JS, só o primeiro aparece */
}

.hero-slide > picture {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-slide > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, center);
  filter: brightness(0.8) saturate(1.1); /* foto levemente escurecida para o texto creme ler melhor */
}

/* clique/toque na metade esquerda = anterior, direita = próximo */
.hero-slide__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 50%;
  cursor: pointer; /* mãozinha de link: a foto é clicável (anterior/próximo) */
}

.hero-slide__nav.is-prev { left: 0; }
.hero-slide__nav.is-next { right: 0; }

.hero-slide__nav:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: -4px;
}

/* texto fixo: uma camada única por cima das fotos (não troca nem anima com os slides).
   Não intercepta o clique (a foto atrás navega); só os botões ficam clicáveis. */
.hero-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.hero-text .hero__content {
  padding-block: 0 5.6rem;
}

/* véu escuro bem sutil na esquerda (sem desfoque, a foto segue nítida): dá contraste ao texto
   sobre qualquer foto, inclusive as claras. Fica entre as fotos e o texto. */
.hero-text::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(28, 20, 14, 0.42) 0%, rgba(28, 20, 14, 0.28) 38%, rgba(28, 20, 14, 0) 72%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 72%);
  mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 72%);
  pointer-events: none;
}

.hero-text .hero__actions {
  pointer-events: auto;
}

.hero-text .hero__title {
  margin-top: 3rem;
}

/* barras de progresso (uma por slide) + pausa, no canto inferior direito */
.hero-ui {
  position: absolute;
  inset: auto 0 7rem 0;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.6rem;
  pointer-events: none;
}

.hero-ui > * {
  pointer-events: auto;
}

.hero-dots {
  display: flex;
  gap: 1.6rem;
}

.hero-dot {
  position: relative;
  display: block;
  width: 8rem;
  height: 3.2rem; /* área de clique maior que a linha */
  cursor: pointer;
}

.hero-dot::before,
.hero-dot__line {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 1px);
  height: 2px;
}

.hero-dot::before {
  background: rgba(252, 247, 234, 0.28);
}

.hero-dot__line {
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: left center;
}

.hero-dot:focus-visible,
.hero-toggle:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

.hero-toggle {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  color: var(--cream);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hero-toggle:hover {
  background: rgba(252, 247, 234, 0.2);
}

.hero-toggle .i-play,
.hero-toggle.is-paused .i-pause {
  display: none;
}

.hero-toggle.is-paused .i-play {
  display: block;
}

/* cursor customizado (só mouse): círculo com seta que segue o ponteiro */
.hero-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(252, 247, 234, 0.16); /* quase transparente, bem suave */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--cream);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.3);
  will-change: transform;
}

.hero-cursor svg {
  position: absolute;
  width: 22px;
  height: 22px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.hero-cursor .i-link {
  opacity: 0;
  transform: scale(0.6);
}

.hero-cursor.is-prev .i-arrow {
  transform: scaleX(-1);
}

.hero-cursor.is-link .i-arrow {
  opacity: 0;
  transform: scale(0.6);
}

.hero-cursor.is-link .i-link {
  opacity: 1;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .hero-cursor {
    display: flex;
  }
}

.slides__ui {
  position: absolute;
  top: 3.2rem;
  left: calc(2.9rem + var(--gutter));
  display: flex;
  align-items: center;
  gap: 1.2rem;
  pointer-events: auto;
}

.slides__ui[hidden] {
  display: none;
}

.slides__dots {
  display: flex;
  gap: 0.8rem;
}

.slides__dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(252, 247, 234, 0.45);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.4s var(--ease-out), width 0.4s var(--ease-out);
}

.slides__dot::before {
  content: "";
  position: absolute;
  inset: -0.8rem; /* área de toque maior que o ponto */
}

.slides__dot {
  position: relative;
}

.slides__dot:hover {
  background: rgba(252, 247, 234, 0.8);
}

.slides__dot.is-active {
  width: 2.6rem;
  border-radius: 99px;
  background: var(--cream);
}

.slides__toggle {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: rgba(252, 247, 234, 0.18);
  color: var(--cream);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slides__toggle:hover {
  background: rgba(252, 247, 234, 0.32);
}

.slides__toggle .i-play,
.slides__toggle.is-paused .i-pause {
  display: none;
}

.slides__toggle.is-paused .i-play {
  display: block;
}

.slides__dot:focus-visible,
.slides__toggle:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--size-display);
  line-height: 4.3rem;
  letter-spacing: var(--track-display);
}

.card__title {
  font-size: 2.9rem;
  line-height: 3.6rem;
}

.card__lead,
.card__text {
  font-size: 1.1rem;
  line-height: 1.8rem;
}

.card__lead {
  margin-top: 2.55rem;
  font-weight: 600;
  line-height: 1.7rem;
}

.card__text {
  margin-top: 1.65rem;
}

/* ==========================================================================
   Atividades
   ========================================================================== */

.activities {
  background: var(--cream);
  padding-block: var(--section-y);
}

.activities__title {
  color: var(--brown);
}

.activity__desc strong {
  font-weight: 600;
}

/* "Você se diverte. Seu corpo se desenvolve." */
.activities__outro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  column-gap: 4rem;
  margin-top: 8rem;
  padding-top: 4.4rem;
  border-top: 1px solid rgba(146, 78, 38, 0.28);
}

.activities__outro-title {
  color: var(--brown);
}

.activities__outro-text {
  max-width: 56rem;
  font-size: 1.5rem;
  line-height: 2.4rem;
  color: var(--ink);
}

/* Duas colunas independentes: ao abrir um card, só os de baixo na MESMA coluna descem,
   sem abrir vazio na outra. (Em celular as colunas viram uma só — ver breakpoint.) */
.activities__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.863rem;
  align-items: start;
  margin-top: 5.058rem;
}

.activities__col {
  display: flex;
  flex-direction: column;
  gap: 2.05rem;
}

.activity {
  position: relative;
  border-radius: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--size-display);
  line-height: 4.3rem;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

.activity__head {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 9.532rem;
  padding: 0 12rem 0 3rem;
  text-align: left;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.activity__head:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -0.7rem;
  border-radius: 1rem;
}

.activity__title {
  display: inline-block;
  letter-spacing: var(--track-display);
  transition: transform 0.5s var(--ease-expo);
}

.activity__icon {
  position: absolute;
  top: calc(var(--t) * 0.1rem);
  right: calc(var(--r) * 0.1rem);
  width: calc(var(--w) * 0.1rem);
  height: calc(var(--h) * 0.1rem);
  pointer-events: none;
  transition: transform 0.5s var(--ease-expo);
}

.activity:hover .activity__title {
  transform: translateX(0.8rem);
}

.activity:hover .activity__icon {
  transform: rotate(-10deg) scale(1.12);
}

/* painel: abre animando grid-template-rows (0fr → 1fr), sem medir altura em JS */
.activity__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.5s var(--ease-expo), visibility 0s linear 0.5s;
}

.activity.is-open .activity__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition-delay: 0s, 0s;
}

.activity__panel-inner {
  min-height: 0;
  overflow: hidden;
}

.activity__desc {
  max-width: 54rem;
  padding: 0.2rem 3rem 3.2rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 2.6rem;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(0.8rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.activity.is-open .activity__desc {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease 0.08s, transform 0.55s var(--ease-expo) 0.08s;
}

.activity--sand-brown { background: var(--sand); color: var(--brown); }
.activity--sand-olive { background: var(--sand); color: var(--olive); }
.activity--olive { background: var(--olive); }
.activity--brown { background: var(--brown); }
.activity--khaki { background: var(--khaki); color: var(--navy); }
.activity--grey { background: var(--grey); }
.activity--navy { background: var(--navy); }
.activity--orange { background: var(--orange); }

/* ==========================================================================
   Formulário
   ========================================================================== */

.signup {
  background: var(--navy);
  color: var(--cream);
  padding-block: var(--section-y);
}

/* intro e card do formulário centralizados entre si */
.signup .split,
.location .split {
  align-items: center;
}

.signup__title {
  margin-top: 5.161rem;
}

.signup__p {
  margin-top: 1.6rem;
}

.signup__p--gap {
  margin-top: 2rem;
}

.form {
  position: relative;
  border-radius: 2rem;
  background: var(--sand);
  color: var(--ink);
}

.form__fields {
  padding: 3.87rem 3.158rem 1.7rem;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.181rem;
}

.form__row + .field,
.field + .field {
  margin-top: 1.624rem;
}

.form__row > .field {
  margin-top: 0;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: max(1.25rem, 12.5px);
  line-height: 1.8rem;
  color: var(--orange);
}

.field input {
  display: block;
  width: 100%;
  height: 4.497rem;
  margin-top: 0.606rem;
  padding: 0 1.1rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  background: var(--cream);
  font-size: max(1.25rem, 13px);
  line-height: 1.7rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.field input:hover {
  border-color: rgba(212, 107, 60, 0.35);
}

.field input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 0.3rem rgba(212, 107, 60, 0.2);
}

.field.has-error input {
  border-color: var(--error);
  box-shadow: 0 0 0 0.3rem rgba(180, 70, 43, 0.12);
}

/* perguntas de múltipla escolha (espelham o Google Forms) */
.group {
  margin: 1.9rem 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.group legend {
  padding: 0;
  font-weight: 600;
  font-size: max(1.25rem, 12.5px);
  line-height: 1.8rem;
  color: var(--orange);
}

.group__hint {
  margin-top: 0.2rem;
  font-size: max(1.15rem, 11.5px);
  line-height: 1.6rem;
  color: rgba(82, 82, 82, 0.75);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.choice {
  position: relative;
  max-width: 100%;
  cursor: pointer;
}

.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  display: block;
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 99px;
  background: var(--cream);
  font-size: max(1.25rem, 13px);
  line-height: 1.7rem;
  color: var(--ink);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.choice input:hover + span {
  border-color: rgba(212, 107, 60, 0.45);
}

.choice input:checked + span {
  background: var(--brown);
  color: var(--cream);
}

.choice input:focus-visible + span {
  border-color: var(--orange);
  box-shadow: 0 0 0 0.3rem rgba(212, 107, 60, 0.28);
}

.group.has-error legend {
  color: var(--error);
}

.group.has-error .choice span {
  border-color: rgba(180, 70, 43, 0.55);
}

.field--ages {
  margin-top: 1.4rem;
}

.field--ages:not([hidden]) {
  animation: ages-in 0.45s var(--ease-out);
}

@keyframes ages-in {
  from { opacity: 0; transform: translateY(-0.6rem); }
}

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* largura acompanha o texto (mínimo = botão do design) para o rótulo nunca vazar */
.form__submit {
  display: flex;
  font-size: max(1.2rem, 12.5px);
  width: auto;
  min-width: 16.396rem;
  max-width: 100%;
  padding-inline: 2.4rem;
  margin: 2.067rem auto 0;
}

.form__submit[aria-busy="true"] {
  pointer-events: none;
}

.form__submit[aria-busy="true"] .form__submit-label {
  opacity: 0;
}

.form__submit[aria-busy="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.4rem;
  height: 1.4rem;
  border: 2px solid rgba(252, 247, 234, 0.35);
  border-top-color: var(--cream);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form__note {
  margin-top: 1rem;
  font-size: max(1.15rem, 11.5px);
  line-height: 1.7rem;
  text-align: center;
  color: rgba(82, 82, 82, 0.75);
}

.form__note.is-error {
  color: var(--error);
  font-weight: 600;
}

.form__success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 3.2rem;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.2rem);
  transition: opacity 0.5s ease 0.15s, transform 0.6s var(--ease-out) 0.15s, visibility 0.5s;
}

.form__success svg {
  width: 4.8rem;
  height: 4.8rem;
}

.form__success-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 3.2rem;
  letter-spacing: var(--track-display);
  color: var(--brown);
}

.form__success .body {
  max-width: 32rem;
}

.form__reset {
  margin-top: 0.4rem;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.form.is-success .form__fields {
  opacity: 0;
  visibility: hidden;
}

.form.is-success .form__success {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ==========================================================================
   Onde estamos
   ========================================================================== */

.location {
  background: var(--sand);
  padding-block: var(--section-y);
}

.location__title {
  color: var(--brown);
}

.location__p {
  margin-top: 1.6rem;
}

.location__address {
  position: relative;
  display: block;
  width: fit-content; /* acompanha o texto: padding simétrico, qualquer que seja a fonte */
  min-height: 7.356rem;
  margin-top: 3.395rem;
  padding: 1.565rem 3.444rem 1.6rem;
  border-radius: 1rem;
  background: var(--brown);
  color: var(--sand);
  transition: transform 0.5s var(--ease-out), background-color 0.3s ease;
}

.location__arrow {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 1.4rem;
  height: 1.4rem;
  opacity: 0;
  transform: translate(-0.4rem, 0.4rem);
  transition: opacity 0.3s ease, transform 0.45s var(--ease-out);
}

.location__address:hover {
  background: #7f4420;
  transform: translateY(-0.2rem);
}

.location__address:hover .location__arrow,
.location__address:focus-visible .location__arrow {
  opacity: 1;
  transform: none;
}

.location__p--near {
  margin-top: 3.366rem;
}

.location__map {
  position: relative;
  height: 37.186rem;
  border-radius: 2rem;
  background: var(--map);
  overflow: hidden;
  isolation: isolate;
}

.location__map-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.26rem;
  line-height: 3.4rem;
  color: var(--ink);
}

.location__map iframe {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  /* tom quente para integrar o mapa à paleta */
  filter: grayscale(1) sepia(0.28) contrast(0.95) brightness(1.02);
  transition: filter 0.5s ease;
}

.location__map:hover iframe {
  filter: none;
}

/* ==========================================================================
   Parceria
   ========================================================================== */

.partner {
  position: relative;
  background: var(--olive);
  color: var(--cream);
  overflow: hidden;
}

/* Imagem da section 06: os 5 pilares em círculos, alinhados à borda direita do container.
   Centralizada na vertical com margin:auto (sem transform, que o reveal sobrescreveria). */
.partner__media {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -2.5rem;
  width: 52rem;
  height: max-content;
  margin-block: auto;
  pointer-events: none;
}

.partner__media img {
  width: 100%;
  height: auto;
}

.partner__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 62rem;
  padding-block: var(--section-y);
}

.partner__title {
  color: var(--sage);
}

.partner__p {
  margin-top: 1.6rem;
}

.partner__p--gap {
  margin-top: 2rem;
}

.partner__cta {
  margin-top: 3.138rem;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  background: var(--cream);
  padding-block: var(--section-y);
}

.faq__title {
  color: var(--brown);
}

.faq__list {
  margin-top: 2.305rem;
}

.faq__item {
  position: relative;
  border-bottom: max(1px, 0.1rem) solid var(--brown);
}

.faq__q {
  display: block;
  width: 100%;
  padding: 3.15rem 5.6rem 1.35rem 0;
  text-align: left;
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 2.5rem;
  color: var(--brown);
  transition: padding 0.45s var(--ease-out), color 0.3s ease;
}

.faq__item.is-open .faq__q {
  padding-bottom: 1rem;
}

.faq__icon {
  position: absolute;
  right: 0;
  bottom: 1.95rem;
  width: 3.118rem;
  height: 3.118rem;
  border-radius: 50%;
  background: var(--brown);
  transition: background-color 0.3s ease, bottom 0.45s var(--ease-out);
}

/* + / − desenhados em CSS para animar a transição */
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.828rem;
  height: 0.23rem;
  background: var(--cream);
  transform: translate(-50%, -50%);
  transition: transform 0.45s var(--ease-out);
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item.is-open .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq__q:hover .faq__icon {
  background: var(--orange);
}

.faq__a {
  overflow: hidden;
  transition: height 0.45s var(--ease-out);
}

.faq__a p {
  padding: 0 5.6rem 1.554rem 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--brown);
  color: var(--cream);
}

.footer__inner {
  padding-block: 7rem;
}

.footer__logo {
  justify-self: start;
}

.footer__logo img {
  width: 15.342rem;
  height: auto;
}

.footer__cols {
  display: flex;
}

.footer__links {
  font-size: 1.3rem;
  line-height: 2rem;
}

.footer__links--nav {
  width: 17.686rem;
}

.footer__links li + li {
  margin-top: 0.392rem;
}

.footer__links a {
  position: relative;
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: var(--sand);
}

/* ==========================================================================
   Elementos gráficos da marca (assets/svg)
   Metades de círculo, arcos e a figura "kin": usados como pontuação visual
   nos respiros do layout. Puramente decorativos (aria-hidden, sem clique).
   ========================================================================== */

.deco {
  position: absolute;
  display: block;
  height: auto;
  fill: currentColor;
  overflow: visible;
  pointer-events: none;
}

.deco__p {
  transform-box: fill-box;
  transform-origin: center;
}

/* Quem somos — duas metades que se encontram (gerações / "onde os movimentos se encontram") */
.about__inner {
  position: relative;
}

.deco--meet {
  right: 0;
  bottom: var(--section-y);
  width: 17rem;
  aspect-ratio: 960 / 934;
}

.deco--meet .deco__p--a { fill: var(--brown); }
.deco--meet .deco__p--b { fill: var(--orange); }

/* Atividades — arcos ao lado do título */
.activities__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
}

.deco--arches {
  position: relative;
  flex: none;
  width: 11.6rem;
  aspect-ratio: 1372 / 474;
  margin-bottom: 0.9rem;
  color: var(--orange);
  overflow: hidden; /* os arcos "nascem" de baixo da linha de base */
}

/* Formulário — meia-lua tom sobre tom nascendo da base da seção */
.signup {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.deco--dome {
  z-index: -1;
  left: calc((100% - var(--container)) / 2 - 12rem);
  bottom: -9rem;
  width: 58rem;
  aspect-ratio: 628 / 314;
  color: var(--navy-tone);
}

/* Cadastro confirmado — a figura da marca comemorando */
.form__success .cheer {
  width: 6.4rem;
  height: auto;
  margin-bottom: 0.4rem;
  overflow: visible;
}

.cheer__legs,
.cheer__arms { fill: var(--brown); }
.cheer__head { fill: var(--orange); }

.cheer__body,
.cheer__arms,
.cheer__head {
  transform-box: fill-box;
}

/* FAQ — três peças empilhadas em equilíbrio, acima da linha do título */
.faq__inner {
  position: relative;
}

.deco--stack {
  right: 0;
  bottom: calc(100% - 4.3rem);
  width: 8rem;
  aspect-ratio: 734 / 924;
}

.deco--stack .deco__p { fill: var(--brown); }
.deco--stack .deco__p:nth-child(2) { fill: var(--orange); }

/* Footer — sequência de metades subindo, tom sobre tom */
.footer {
  overflow: clip;
}

.footer__inner {
  position: relative;
}

.deco--row {
  left: 25rem;
  bottom: -5rem;
  width: 30rem;
  aspect-ratio: 1610 / 822;
  color: var(--brown-tone);
}

/* Menu mobile — "kin" vertical no respiro do painel (só existe abaixo de 1200px) */
.deco--menu {
  display: none;
}

/* ---------- Movimento dos elementos ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .deco[data-deco] .deco__p {
    opacity: 0;
    transition:
      transform 1.4s var(--ease-expo) calc(var(--k, 0) * 0.12s + 0.1s),
      opacity 0.6s ease calc(var(--k, 0) * 0.12s + 0.1s);
  }

  .js .deco[data-deco].is-visible .deco__p {
    opacity: 1;
    transform: none;
  }

  /* encontro: cada metade chega de um lado */
  .js .deco--meet[data-deco] .deco__p--a { transform: translate(18%, -18%) rotate(14deg); }
  .js .deco--meet[data-deco] .deco__p--b { transform: translate(-18%, 18%) rotate(14deg); --k: 1; }

  /* arcos sobem um a um */
  .js .deco--arches[data-deco] .deco__p {
    opacity: 1;
    transform: translateY(105%);
    transition: transform 1.1s var(--ease-expo) calc(var(--k, 0) * 0.1s + 0.2s);
  }

  /* meia-lua nasce devagar */
  .js .deco--dome[data-deco] .deco__p {
    transform: translateY(40%);
    transition: transform 1.8s var(--ease-expo), opacity 1s ease;
  }

  /* peças caem e assentam, de baixo para cima */
  .js .deco--stack[data-deco] .deco__p {
    transform: translateY(-90%) rotate(-10deg);
    transition:
      transform 0.9s var(--ease-spring) calc(var(--k, 0) * 0.14s + 0.15s),
      opacity 0.3s ease calc(var(--k, 0) * 0.14s + 0.15s);
  }

  /* metades sobem em sequência; a última vem do lado e "olha de volta" */
  .js .deco--row[data-deco] .deco__p { transform: translateY(70%); }
  .js .deco--row[data-deco] .deco__p--back { transform: translateX(45%); }

  /* figura comemorando: pula, ergue os braços e a cabeça "acende" */
  .form.is-success .cheer__body {
    transform-origin: 50% 100%;
    animation: kin-hop 1.1s var(--ease-out) 0.25s both;
  }

  .form.is-success .cheer__arms {
    transform-origin: 50% 100%;
    animation: kin-arms 0.9s var(--ease-spring) 0.4s both;
  }

  .form.is-success .cheer__head {
    transform-origin: 50% 50%;
    animation: kin-pop 0.7s var(--ease-spring) 0.55s both;
  }

  @keyframes kin-hop {
    0%   { opacity: 0; transform: translateY(25%) scale(1, 0.86); }
    30%  { opacity: 1; transform: translateY(-20%) scale(0.97, 1.05); }
    58%  { transform: translateY(0) scale(1.05, 0.92); }
    78%  { transform: translateY(-5%) scale(1); }
    100% { transform: none; }
  }

  @keyframes kin-arms {
    from { transform: scale(0.75, 0.35); }
    to   { transform: none; }
  }

  @keyframes kin-pop {
    from { transform: scale(0); }
    to   { transform: none; }
  }
}

/* ==========================================================================
   Motion — intro do hero + reveal ao rolar
   (somente com JS ativo e sem preferência por movimento reduzido)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .js [data-intro],
  .js .hero__title .line > span,
  .js .header {
    transition-property: opacity, transform;
  }

  .js [data-intro] {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.9s ease var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s);
  }

  .js .hero__title .line > span {
    transform: translateY(105%);
    transition: transform 1.1s var(--ease-out) var(--d, 0s);
  }

  .js .header:not(.is-ready) .header__inner {
    opacity: 0;
    transform: translateY(-1.5rem);
  }

  .js .header .header__inner {
    transition: opacity 0.9s ease 0.1s, transform 1s var(--ease-out) 0.1s, padding 0.45s var(--ease-out);
  }

  .js.is-loaded [data-intro],
  .js.is-loaded .hero__title .line > span {
    opacity: 1;
    transform: none;
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(3rem);
    transition:
      opacity 0.9s ease calc(var(--i, 0) * 0.09s),
      transform 1.1s var(--ease-out) calc(var(--i, 0) * 0.09s);
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  /* depois de revelado, devolve a transição de hover */
  .js .card[data-reveal].is-done {
    transition: transform 0.6s var(--ease-out);
  }

  .js .location__address[data-reveal].is-done {
    transition: transform 0.5s var(--ease-out), background-color 0.3s ease;
  }
}

/* ==========================================================================
   Tablet (< 1200px)
   ========================================================================== */

@media (max-width: 1199px) {
  :root {
    --header-h: 8.2rem;
    --header-pad: 2.8rem;
    --section-y: 8rem;
  }

  br.d {
    display: none;
  }

  .body {
    font-size: 1.4rem;
    line-height: 2.2rem;
  }

  /* --- Header / menu mobile --- */

  .header__inner {
    align-items: center;
    padding-block: 2.8rem;
  }

  .header__logo img {
    width: 12.8rem;
  }

  .header.is-scrolled .header__inner {
    padding-block: 1.4rem;
  }

  .header.is-scrolled .header__logo img {
    width: 10rem;
  }

  .header__toggle {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 4.8rem;
    height: 4.8rem;
    margin-left: auto;
    border-radius: 50%;
    background: var(--brown);
    transition: background-color 0.3s ease;
  }

  .header.is-scrolled .header__toggle {
    background: var(--orange);
  }

  .header__toggle span {
    position: absolute;
    width: 1.8rem;
    height: 2px;
    border-radius: 2px;
    background: var(--cream);
    transition: transform 0.45s var(--ease-out);
  }

  .header__toggle span:first-child { transform: translateY(-0.4rem); }
  .header__toggle span:last-child { transform: translateY(0.4rem); }

  .header.is-open .header__toggle span:first-child { transform: rotate(45deg); }
  .header.is-open .header__toggle span:last-child { transform: rotate(-45deg); }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: calc(var(--header-h) + 6rem) var(--gutter) max(3.2rem, env(safe-area-inset-bottom));
    background: var(--brown);
    overflow-y: auto;
    clip-path: circle(0 at calc(100% - var(--gutter) - 2.4rem) 5.2rem);
    visibility: hidden;
    transition: clip-path 0.7s var(--ease-out), visibility 0.7s;
  }

  .header.is-open .nav {
    clip-path: circle(150% at calc(100% - var(--gutter) - 2.4rem) 5.2rem);
    visibility: visible;
  }

  .header.is-open {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .nav__list {
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(3.2rem, 7vw, 4.8rem);
    line-height: 1.2;
    letter-spacing: var(--track-display);
  }

  .header.is-scrolled .nav__list {
    margin: 0;
  }

  .nav__list li,
  .nav__cta,
  .nav__footer {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.4s ease, transform 0.6s var(--ease-out);
  }

  .header.is-open .nav__list li,
  .header.is-open .nav__cta,
  .header.is-open .nav__footer {
    opacity: 1;
    transform: none;
    transition-delay: calc(0.12s + var(--n, 0) * 0.05s);
  }

  .nav__list a::after {
    bottom: 0.2rem;
    height: 2px;
  }

  .nav__cta {
    background: var(--orange);
    --btn-hover: #c35e31;
    width: auto;
    height: 5.2rem;
    margin: 4rem 0 0 !important;
    padding-inline: 2.8rem;
    font-size: 1.5rem;
  }

  .nav__footer {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 4rem;
    font-size: 1.4rem;
    color: var(--sand);
  }

  /* --- Hero --- */

  .hero__title {
    font-size: 6rem;
    line-height: 5.8rem;
  }

  .hero__text,
  .hero__address {
    max-width: 50rem;
  }

  /* --- Seções --- */

  .about__inner {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  }

  .about__media {
    width: min(100%, 32rem);
  }

  .audiences__inner {
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
    column-gap: 3.2rem;
  }

  .audiences__media {
    left: calc(var(--gutter) * -1);
    width: calc(42% + var(--gutter));
  }

  /* coluna estreita: a foto fica limitada pela largura, então centraliza na vertical */
  .audiences__media img {
    object-position: left center;
  }

  .partner__media {
    right: calc(var(--gutter) * -1);
    width: 46rem;
  }

  /* reserva a faixa direita para os círculos */
  .partner__content {
    min-height: 56rem;
    padding-right: 44rem;
  }

  .card {
    padding: 2.6rem 2.4rem 3rem;
  }

  .card__title {
    font-size: 3rem;
    line-height: 3.8rem;
  }

  .card__lead,
  .card__text {
    font-size: 1.4rem;
    line-height: 2.2rem;
  }

  .card__lead {
    margin-top: 2.2rem;
  }

  .card__text {
    margin-top: 1.4rem;
  }

  .activities__grid {
    column-gap: 1.4rem;
  }

  .activities__col {
    gap: 1.4rem;
  }

  .activity {
    font-size: 2.6rem;
    line-height: 3rem;
  }

  .activity__head {
    display: flex;
    align-items: center;
    height: 8.4rem;
    padding: 0 9.6rem 0 2.6rem;
    white-space: normal;
  }

  .activity__title {
    letter-spacing: var(--track-display);
  }

  .activity__icon {
    top: 4.2rem; /* centro do cabeçalho: não acompanha o card ao expandir */
    right: 2.6rem;
    width: calc(var(--w) * 0.085rem);
    height: calc(var(--h) * 0.085rem);
    transform: translateY(-50%);
  }

  .activity:hover .activity__icon {
    transform: translateY(-50%) rotate(-10deg) scale(1.1);
  }

  .activity__desc {
    padding: 0 2.6rem 2.8rem;
    font-size: 1.6rem;
    line-height: 2.5rem;
  }

  /* linhas de texto confortáveis em telas médias */
  .about__p,
  .audiences__text,
  .signup__p,
  .location__p,
  .partner__p {
    max-width: 58ch;
  }

  .split {
    column-gap: 4rem;
  }

  .field input {
    height: 4.8rem;
    font-size: 1.4rem;
  }

  .field label {
    font-size: 1.3rem;
  }

  .group legend {
    font-size: 1.3rem;
  }

  .form__note {
    font-size: 1.2rem;
  }

  .form__submit {
    font-size: 1.3rem;
  }

  .location__address {
    width: fit-content;
    max-width: 100%;
  }

  .faq__q {
    font-size: 1.7rem;
  }

  .faq__icon {
    width: 3.2rem;
    height: 3.2rem;
  }

  .footer__links {
    font-size: 1.4rem;
  }
}

/* ==========================================================================
   Tablet retrato (< 960px)
   ========================================================================== */

@media (max-width: 959px) {
  .hero__text,
  .hero__address {
    max-width: 60rem;
  }

  .split,
  .about__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .about__inner {
    gap: 4rem;
  }

  .audiences__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 4rem;
  }

  .audiences__content {
    grid-column: auto;
  }

  .audiences__media {
    position: relative;
    order: 2;
    inset: auto;
    width: min(44rem, 100%);
    margin: 4rem auto 0;
  }

  .audiences__media {
    pointer-events: auto;
    touch-action: pan-y; /* swipe horizontal troca a imagem; vertical continua rolando a página */
  }

  .slides {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .slide[data-fit="cover"] {
    inset: 0;
    border-radius: 1.6rem;
  }

  .slides__ui {
    position: static;
    justify-content: center;
    margin-top: 1.6rem;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 4rem;
  }

  .activities__outro {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.6rem;
    margin-top: 6rem;
    padding-top: 3.6rem;
  }

  .card {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
    column-gap: 2.4rem;
    align-items: start;
  }

  .card__title {
    grid-row: span 2;
  }

  .card__lead {
    margin-top: 0.6rem;
  }

  .form {
    margin-top: 4.8rem;
  }

  .location__map {
    height: 36rem;
    margin-top: 4.8rem;
  }

  .partner__content {
    min-height: 0;
    align-items: stretch;
    justify-content: flex-start;
    padding-right: 0;
    padding-bottom: 4rem;
  }

  .partner__media {
    position: relative;
    inset: auto;
    width: min(52rem, 100%);
    height: auto;
    margin: 3.2rem auto 0;
  }

  .partner__cta {
    align-self: flex-start;
  }

  .footer__inner {
    row-gap: 4rem;
    padding-block: 6.4rem;
  }
}

/* ==========================================================================
   Mobile (< 768px)
   ========================================================================== */

@media (max-width: 767px) {
  :root {
    --gutter: 2rem;
    --header-pad: 2rem;
    --header-h: 6.8rem;
    --section-y: 6.4rem;
  }

  .body {
    font-size: 1.5rem;
    line-height: 2.4rem;
  }

  .h2 {
    font-size: 3rem;
    line-height: 3.4rem;
    letter-spacing: var(--track-display);
  }

  .header__logo img {
    width: 11rem;
  }

  .header.is-scrolled .header__inner {
    padding-block: 1.2rem;
  }

  .header.is-scrolled .header__logo img {
    width: 9.2rem;
  }

  .header__toggle {
    width: 4.4rem;
    height: 4.4rem;
  }

  /* --- Hero --- */

  .hero-slider {
    min-height: 86rem;
  }

  .hero-text .hero__content {
    padding-bottom: 6.8rem;
  }

  /* no celular o texto ocupa a largura toda: véu mais uniforme */
  .hero-text::before {
    background: linear-gradient(90deg, rgba(28, 20, 14, 0.4), rgba(28, 20, 14, 0.26));
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-ui {
    bottom: 1.8rem;
    gap: 0.8rem;
  }

  .hero-dots {
    gap: 0.8rem;
  }

  .hero-dot {
    width: 4rem;
  }

  .pill {
    width: auto;
    height: 4.4rem;
    padding: 0 2rem;
    font-size: 1.4rem;
  }

  .hero__title {
    margin-top: 3.2rem;
    font-size: clamp(4.2rem, 12.4vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: var(--track-hero);
  }

  .hero__text {
    margin-top: 2rem;
    font-size: 1.6rem;
    line-height: 2.5rem;
  }

  .hero__address {
    margin-top: 2rem;
    font-size: 1.5rem;
    line-height: 2.3rem;
  }

  .hero__address img {
    margin-top: 0.4rem;
  }

  .hero__actions {
    flex-direction: column;
    gap: 1.2rem;
    margin: 3.6rem 0 0;
  }

  .hero__btn-primary,
  .hero__btn-secondary {
    width: 100%;
    height: 5.4rem;
    font-size: 1.6rem;
  }

  /* --- Quem somos --- */

  .about__inner {
    gap: 3.2rem;
  }

  .about__media {
    width: min(100%, 34rem);
  }

  .video-card__cta {
    bottom: 1.8rem;
  }

  .lightbox__close {
    top: max(1.2rem, env(safe-area-inset-top));
    right: 1.2rem;
  }

  .about__p {
    margin-top: 1.6rem;
  }

  .about__p--strong {
    margin-top: 1.6rem;
  }

  /* --- Públicos --- */

  .audiences__inner {
    padding-bottom: 3.2rem;
  }

  .card {
    display: block;
    padding: 2.4rem 2.4rem 2.8rem;
  }

  .card__title {
    font-size: 3rem;
    line-height: 3.6rem;
  }

  .card__lead {
    margin-top: 1.6rem;
  }

  .card__text {
    margin-top: 0.8rem;
  }

  /* --- Atividades --- */

  .activities__grid {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* o desktop usa start; aqui os cards sempre ocupam a largura toda */
    gap: 1rem;
    margin-top: 3.2rem;
  }

  /* as colunas "somem" e os cards voltam à ordem original pela variável --o */
  .activities__col {
    display: contents;
  }

  .activity {
    order: var(--o);
  }

  .activity {
    font-size: 2.4rem;
    line-height: 2.8rem;
  }

  .activity__head {
    height: 7.2rem;
    padding: 0 8.4rem 0 2.2rem;
  }

  .activity__icon {
    top: 3.6rem;
    right: 2.2rem;
    width: calc(var(--w) * 0.075rem);
    height: calc(var(--h) * 0.075rem);
  }

  .activity__desc {
    padding: 0 2.2rem 2.4rem;
    font-size: 1.5rem;
    line-height: 2.4rem;
  }

  /* --- Formulário --- */

  .signup__title {
    margin-top: 3.2rem;
  }

  .form {
    margin-top: 3.6rem;
  }

  .form__fields {
    padding: 2.8rem 2rem 2rem;
  }

  .form__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }

  .group legend {
    font-size: 1.3rem;
  }

  .choice span {
    padding: 1rem 1.5rem;
    font-size: 1.4rem;
  }

  .field input {
    height: 5rem;
    font-size: 1.6rem; /* evita zoom automático no iOS */
    padding-inline: 1.4rem;
  }

  .form__submit {
    width: 100%;
    height: 5.2rem;
    margin-top: 2.4rem;
    padding-inline: 1.6rem;
    font-size: 1.5rem;
    white-space: normal;
    text-align: center;
    line-height: 1.8rem;
  }

  /* --- Onde estamos --- */

  .location__address {
    margin-top: 2.8rem;
    padding: 1.6rem 4.4rem 1.6rem 2.4rem;
  }

  .location__arrow {
    top: 50%;
    right: 2rem;
    opacity: 1;
    transform: translateY(-50%);
  }

  .location__address:hover .location__arrow {
    transform: translateY(-50%);
  }

  .location__p--near {
    margin-top: 2.8rem;
  }

  .location__map {
    height: 30rem;
    margin-top: 3.6rem;
  }

  /* --- Parceria --- */

  .partner__cta {
    width: auto;
    height: 5.2rem;
    padding-inline: 2.8rem;
    font-size: 1.5rem;
  }

  .partner__media {
    width: 100%;
    max-width: 44rem;
    margin-top: 2.4rem;
  }

  /* --- FAQ --- */

  .faq__list {
    margin-top: 2rem;
  }

  .faq__q {
    padding: 2.4rem 5.2rem 2.4rem 0;
    font-size: 1.6rem;
    line-height: 2.3rem;
  }

  .faq__item.is-open .faq__q {
    padding-bottom: 1rem;
  }

  .faq__icon {
    top: 2.2rem;
    bottom: auto;
  }

  .faq__a p {
    padding: 0 0 2.4rem;
  }

  /* --- Footer --- */

  .footer__inner {
    padding-block: 5.6rem 6.4rem;
  }

  .footer__logo img {
    width: 12.8rem;
  }

  .footer__cols {
    flex-wrap: wrap;
    gap: 2.8rem 4rem;
  }

  .footer__links {
    font-size: 1.5rem;
    line-height: 2.2rem;
  }

  .footer__links--nav {
    width: auto;
  }

  .footer__links li + li {
    margin-top: 0.8rem;
  }
}

@media (max-width: 379px) {
  .hero__address span {
    font-size: 1.4rem;
  }

  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 320px: a palavra "acompanhamento" não cabe no título de 24px */
  .activity {
    font-size: 2rem;
    line-height: 2.4rem;
  }

  .activity__head {
    padding-right: 7.2rem;
  }

  .activity__icon {
    right: 1.8rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Elementos gráficos — responsivo
   ========================================================================== */

@media (max-width: 1199px) {
  .deco--meet {
    width: 13rem;
  }

  .deco--arches {
    width: 9.6rem;
    margin-bottom: 0.7rem;
  }

  .deco--dome {
    left: -14rem;
    width: 50rem;
  }

  .deco--row {
    left: auto;
    right: -4rem;
    width: 30rem;
  }

  /* painel do menu: "kin" vertical à direita, entra depois dos links */
  .deco--menu {
    display: block;
    z-index: -1;
    right: var(--gutter);
    bottom: 9rem;
    width: auto;
    height: min(30rem, 34vh);
    aspect-ratio: 472 / 796;
    color: var(--brown-tone);
  }

  .deco--menu .deco__dot {
    fill: var(--orange);
  }
}

@media (max-width: 1199px) and (prefers-reduced-motion: no-preference) {
  .deco--menu .deco__p {
    opacity: 0;
    transform: translateX(30%);
    transition: transform 0.3s ease, opacity 0.2s ease;
  }

  .header.is-open .deco--menu .deco__p {
    opacity: 1;
    transform: none;
    transition:
      transform 1s var(--ease-expo) calc(0.35s + var(--k, 0) * 0.07s),
      opacity 0.6s ease calc(0.35s + var(--k, 0) * 0.07s);
  }
}

/* coluna única: o "encontro" sai do canto e vira o fecho da seção, sem cobrir o texto */
@media (max-width: 959px) {
  .deco--meet {
    position: relative;
    right: auto;
    bottom: auto;
    justify-self: end;
    width: 9rem;
    margin-top: -1.6rem;
  }
}

@media (max-width: 767px) {
  /* FAQ: o título quebra em duas linhas — as peças ficam no canto, com respiro reservado */
  .faq__title {
    padding-right: 7rem;
  }

  .deco--stack {
    top: 0.2rem;
    bottom: auto;
    width: 5.2rem;
  }

  .deco--row {
    width: 24rem;
    bottom: -4rem;
  }
}
