/* ==========================================================================
   Discoveries School — Home
   ========================================================================== */

/* Fontes ------------------------------------------------------------------ */
@font-face {
  font-family: "Bryndan Write";
  src: url("../assets/fonts/bryndan-write.woff2") format("woff2"), url("../assets/fonts/bryndan-write.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-v20-latin-regular.woff2") format("woff2"), url("../assets/fonts/poppins-v20-latin-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-v20-latin-600.woff2") format("woff2"), url("../assets/fonts/poppins-v20-latin-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-v20-latin-700.woff2") format("woff2"), url("../assets/fonts/poppins-v20-latin-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

/* Tokens ------------------------------------------------------------------ */
:root {
  --blue: #002E62;
  --blue-deep: #00234B;
  --blue-card: #0B3A72;
  --yellow: #EDBE0C;
  --yellow-soft: #F8D75A;
  --gray: #EBEDEC;
  --off-white: #F4F4F4;
  --light-blue: #8BB7C2;
  --white: #FFFFFF;
  --whatsapp: #25D366;

  --font-display: "Bryndan Write", "Comic Neue", "Poppins", cursive;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1128px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 9vw, 120px);
  --radius: 20px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* nada passa da largura da tela (clip não quebra o position: sticky do trilho) */
html, body { overflow-x: clip; }
/* âncoras do menu: o topo do bloco para logo abaixo do header fixo */
section[id] { scroll-margin-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.1vw + 4px, 18px);
  line-height: 1.55;
  color: var(--blue);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 18px; border-radius: 999px;
  background: var(--yellow); color: var(--blue); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

/* Tipografia -------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: .01em;
}
.section-title { font-size: clamp(38px, 4.6vw, 62px); margin-bottom: 24px; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
}
.eyebrow--blue { color: var(--blue); }
.lead { max-width: 1060px; }
.body-copy > * + * { margin-top: 1.4em; }

/* Botões ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 12px 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 400 16px/1.2 var(--font-body);
  text-decoration: none; text-align: center;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
/* Estados conforme o guia de botões: normal → hover */
.btn--yellow { background: var(--yellow); color: var(--blue); }
.btn--yellow:hover, .btn--yellow:focus-visible { background: var(--white); color: var(--blue); }
.btn--outline { border-color: var(--yellow); color: var(--white); }
.btn--outline:hover, .btn--outline:focus-visible { border-color: var(--white); color: var(--yellow); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover, .btn--blue:focus-visible { background: var(--yellow); color: var(--blue); }
/* Botão de formulário (ex.: Enviar), largura total */
.btn--line { width: 100%; border-color: var(--white); color: var(--white); background: none; cursor: pointer; }
.btn--line:hover, .btn--line:focus-visible { border-color: var(--yellow); color: var(--yellow); }
/* Sobre o fundo amarelo das Oficinas de Férias o hover amarelo sumiria: usa branco */
.ferias .btn--blue:hover, .ferias .btn--blue:focus-visible { background: var(--white); color: var(--blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: 36px; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--white);
  transition: background-color .35s, box-shadow .35s, padding .35s;
  padding-block: 28px;
}
.site-header.is-solid {
  background: rgba(0, 46, 98, .96);
  box-shadow: 0 8px 30px -18px rgba(0, 0, 0, .6);
  padding-block: 12px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 186px; transition: width .35s var(--ease); }
.is-solid .brand img { width: 150px; }
/* Página principal: com a foto sem filtro, o header já começa na barra azul (legível sobre qualquer foto) */
body:has(.hero > .hero__slides) .site-header { background: rgba(0, 46, 98, .96); box-shadow: 0 8px 30px -18px rgba(0, 0, 0, .6); padding-block: 12px; }
body:has(.hero > .hero__slides) .brand img { width: 150px; }
.main-nav ul { display: flex; gap: 33px; }
.main-nav a {
  position: relative;
  font-size: 16px; text-decoration: none; white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--yellow); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.menu-toggle { display: none; }

/* 1. Hero ----------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh;
  min-height: 100lvh;
  display: flex; align-items: center;
  padding-block: 140px 100px;
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* filtro só atrás do texto; o resto da foto fica sem filtro */
  background:
    radial-gradient(ellipse 62% 58% at 34% 52%, rgba(0, 35, 75, .5) 0%, rgba(0, 35, 75, .5) 55%, rgba(0, 35, 75, .2) 80%, rgba(0, 35, 75, 0) 100%);
}
/* sombra suave só em volta das letras: permite um filtro mais leve sem perder a leitura */
.hero__content { text-shadow: 0 1px 2px rgba(0, 25, 55, .55), 0 0 22px rgba(0, 25, 55, .55); }
.hero .btn { text-shadow: none; }
.hero__meta {
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em;
  margin-bottom: 14px;
}
.hero__meta span { color: var(--yellow); margin-inline: 10px; }
.hero__title { font-size: clamp(32px, 9vw, 92px); line-height: 1.05; margin-bottom: 40px; white-space: nowrap; }
.hero__fixed { display: inline; }

/* Fotos do Hero que trocam em cortina junto com a palavra (página principal, A e B) */
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 0; clip-path: inset(0 0 0 100%);
  transform: scale(1.08);
}
.hero__slide.is-prev { z-index: 1; clip-path: inset(0); transform: scale(1); }
.hero__slide.is-active {
  z-index: 2; clip-path: inset(0); transform: scale(1);
  transition: clip-path 1s cubic-bezier(.77, 0, .18, 1), transform 3.2s var(--ease);
}
.hero__slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }

/* Palavra rotativa do Hero: Descobrir → Criar → Explorar */
.rotator {
  position: relative;
  display: inline-grid;
  padding: .08em 0 .22em;
  margin-bottom: -.22em;
  overflow: hidden;
  vertical-align: baseline;
  transition: width .6s var(--ease);
}
.rotator__word {
  grid-area: 1 / 1;
  justify-self: start;
  white-space: nowrap;
  transform: translateY(105%);
  opacity: 0;
  transition: transform .7s var(--ease), opacity .5s var(--ease);
}
.rotator__word.is-active { transform: translateY(0); opacity: 1; }
.rotator__word.is-out { transform: translateY(-105%); opacity: 0; }
.rotator__word:not(.is-active) { pointer-events: none; }
.rotator__line {
  position: absolute; left: 0; bottom: .02em;
  width: 100%; height: .2em; overflow: visible;
  transition: width .5s var(--ease);
}
.rotator__line path {
  fill: none; stroke: var(--yellow); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 0;
}
.rotator__line.is-drawing path { animation: rotator-line .9s .25s var(--ease) both; }
@keyframes rotator-line { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.hero__lead { max-width: 700px; font-weight: 600; }

/* Páginas internas: abertura com faixa azul (título + introdução) ---------- */
.page-interna .site-header { background: rgba(0, 46, 98, .96); box-shadow: 0 8px 30px -18px rgba(0, 0, 0, .6); padding-block: 12px; }
.page-interna .brand img { width: 150px; }
.page-hero { background: var(--blue); color: var(--white); padding-block: clamp(120px, 12vw, 168px) clamp(64px, 8vw, 104px); }
.page-hero__trail { font-size: 14px; margin-bottom: 22px; opacity: .85; }
.page-hero__trail a { color: inherit; text-underline-offset: 3px; }
.page-hero__trail a:hover { color: var(--yellow); }
.page-hero__title { font-size: clamp(44px, 6vw, 84px); max-width: 14ch; margin-bottom: 24px; }
.page-hero__lead { max-width: 720px; font-size: clamp(17px, 1.4vw, 20px); }
.page-figure { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--gray); }
.page-figure img { width: 100%; height: 100%; object-fit: cover; }

/* 2. Diferencial ---------------------------------------------------------- */
.diferencial { padding-block: var(--section-y) 110px; }
.concepts {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px; align-items: center;
  margin-top: 64px;
}
.concept { padding-block: 14px; cursor: pointer; }
.concept__word {
  font-family: var(--font-body); font-weight: 700;
  font-size: clamp(40px, 4.8vw, 68px); line-height: 1; letter-spacing: -.01em;
  color: #CFDFE3;
  transition: color .4s var(--ease), transform .4s var(--ease);
  transform-origin: left center;
}
.concept__label {
  margin-top: 6px;
  font-size: 15px; font-weight: 700; text-transform: uppercase; color: var(--yellow);
}
.concept__text { margin-top: 4px; }
.concept.is-active .concept__word { color: var(--light-blue); transform: translateX(6px); }

.concepts__media { position: relative; aspect-ratio: 660 / 520; }
.blob-outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.blob-outline path { fill: var(--yellow); }
.concepts__media .blob-outline { transform: translate(-1.2%, 1.5%) scale(1.03); }
.blob-img { position: absolute; inset: 0; }
.blob-img--a { clip-path: url(#blob-a); }
.blob-img--b { clip-path: url(#blob-b); }
.blob-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.05);
  transition: opacity .6s var(--ease), transform 1.2s var(--ease);
}
.blob-img img.is-active { opacity: 1; transform: scale(1); }
.one__media .blob-img img { opacity: 1; transform: none; object-position: 50% 30%; }

/* Banner ------------------------------------------------------------------ */
.banner {
  background: linear-gradient(90deg, var(--light-blue) 0%, #C9DEE3 55%, var(--white) 100%);
  padding-block: 60px;
}
.banner__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 48px; }
.banner__inner > div:first-child { flex: 1 1 640px; }
.banner__actions { display: flex; flex-wrap: wrap; gap: 12px 16px; flex: none; }
.btn--outline-dark { border-color: var(--blue); color: var(--blue); }
.btn--outline-dark:hover, .btn--outline-dark:focus-visible { background: var(--blue); color: var(--white); }
.banner__title { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; line-height: 1.25; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 26px; }
.tags li { display: flex; align-items: center; }
.tags li + li::before {
  content: ""; width: 5px; height: 5px; margin-inline: 16px;
  border-radius: 50%; background: var(--white);
}

/* Layout em duas colunas -------------------------------------------------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 64px; align-items: center;
}
.split__text > .btn { margin-top: 36px; }

/* 3. Jornada -------------------------------------------------------------- */
.jornada { background: var(--off-white); padding-block: var(--section-y); }
.jornada__head { max-width: 780px; }

/* Trilho (esquerda) + etapas (direita). O trilho acompanha a rolagem. */
.journey {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px); align-items: start;
  margin-top: clamp(48px, 6vw, 80px);
}
.j-rail { position: sticky; top: calc(50vh - 170px); }
.j-line { position: absolute; left: 17px; top: 32px; bottom: 32px; width: 2px; background: rgba(0, 46, 98, .14); }
.j-line i { position: absolute; inset: 0; background: var(--yellow); transform-origin: top; transform: scaleY(var(--p, 1)); }
.j-nav { position: relative; display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.j-step {
  position: relative; display: grid; gap: 2px; width: 100%;
  padding: 16px 0 16px 58px;
  border: 0; background: none; color: var(--blue); text-align: left;
  font: inherit; cursor: pointer;
}
.j-step::before, .j-step::after { content: ""; position: absolute; border-radius: 50%; }
.j-step::before {
  left: 0; top: 18px; width: 36px; height: 36px;
  border: 2px solid rgba(0, 46, 98, .2); background: var(--off-white);
  transition: border-color .35s var(--ease);
}
.j-step::after {
  left: 11px; top: 29px; width: 14px; height: 14px; background: var(--yellow);
  transform: scale(0); transition: transform .45s var(--ease);
}
.j-step.is-active::before { border-color: var(--blue); }
.j-step.is-active::after { transform: scale(1); }
.j-step__name { font-size: 14px; font-weight: 600; opacity: .55; transition: opacity .35s; }
.j-step__title {
  font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1;
  opacity: .32; transition: opacity .35s var(--ease);
}
.j-step__age { font-size: 14px; opacity: .55; }
.j-step:hover .j-step__title { opacity: .6; }
.j-step.is-active .j-step__name, .j-step.is-active .j-step__age { opacity: 1; }
.j-step.is-active .j-step__title { opacity: 1; }

.j-stages { display: grid; gap: clamp(72px, 12vh, 140px); }
.j-stage { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 28px; scroll-margin-top: 90px; }
.j-stage__media { position: relative; margin: 0; aspect-ratio: 16 / 11; border-radius: 28px; overflow: hidden; background: var(--gray); }
.j-stage__media img { width: 100%; height: 100%; object-fit: cover; }
.j-stage__media--video { aspect-ratio: 16 / 9; }
.j-stage__media--video .video-cover { position: absolute; inset: 0; }
.j-stage__figure { position: relative; margin: 0; }
.j-stage__figure.disco { aspect-ratio: auto; }
/* Disco: selo solto no canto inferior direito, um pouco para fora da foto */
.disco-sticker.disco__img {
  left: auto; right: -5%; bottom: -12%; width: clamp(110px, 27%, 190px); z-index: 2;
  filter: drop-shadow(0 18px 18px rgba(0, 35, 75, .32)) drop-shadow(0 3px 4px rgba(0, 35, 75, .25));
  cursor: pointer;
}
.j-stage__figure.disco { margin-bottom: 60px; }
/* "Meet Disco!" + seta apontando para o selo, logo abaixo da foto */
.disco__caption.disco__caption--sticker {
  right: calc(clamp(110px, 27%, 190px) - 2%); top: calc(100% + 8px); bottom: auto; left: auto;
  align-items: flex-start; font-size: clamp(22px, 2vw, 26px); text-align: right;
}
.disco__caption.disco__caption--sticker .disco__arrow { width: 58px; margin: -6px 0 0 4px; transform: scaleX(-1) rotate(-12deg); }
/* aceno de novo ao passar o mouse (só em aparelhos com mouse) */
@keyframes disco-wave {
  0%   { transform: rotate(0); }
  20%  { transform: rotate(-8deg) scale(1.04); }
  40%  { transform: rotate(7deg) scale(1.04); }
  60%  { transform: rotate(-5deg) scale(1.02); }
  80%  { transform: rotate(3deg); }
  100% { transform: rotate(0); }
}
/* depois da entrada, o Disco fica parado (sem repetir a entrada) */
.js .disco.is-in.is-done .disco__img { animation: none; opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .js .disco.is-in.is-done.is-hello .disco__img { animation: disco-wave 1.3s var(--ease); }
}
.j-stage__tag { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; margin-bottom: 12px; }
.j-stage__tag span { display: block; margin-top: 4px; font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--light-blue); }
.j-stage__text p { max-width: 46ch; font-size: clamp(17px, 1.3vw, 19px); }

.jornada__close { max-width: 780px; margin-top: clamp(56px, 8vw, 96px); }
.jornada__close > * + * { margin-top: 20px; }
.jornada__close .btn { margin-top: 32px; }
.disco { position: relative; aspect-ratio: 600 / 640; }
.disco__blob { position: absolute; left: 0; right: -6%; bottom: 8%; width: 106%; }
.disco__blob path { fill: var(--light-blue); }
.disco__img {
  position: absolute; left: 14%; bottom: 20%; width: 72%;
  transform-origin: 50% 90%;
}
.disco__caption {
  position: absolute; right: 2%; bottom: 0;
  display: flex; align-items: flex-end; gap: 6px;
  font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); line-height: 1.1;
}
.disco__arrow { width: 70px; margin-bottom: 18px; }
.disco__arrow path { fill: none; stroke: var(--blue); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }

/* Microanimação do Disco: aparece por trás da forma, acena e permanece. */
.js .disco__img { opacity: 0; transform: translateY(18%) rotate(-4deg); }
.js .disco__caption { opacity: 0; transform: translateX(-12px); transition: opacity .6s .9s, transform .6s .9s var(--ease); }
.js .disco.is-in .disco__img { animation: disco-hello 2.6s var(--ease) forwards; }
.js .disco.is-in .disco__caption { opacity: 1; transform: none; }
@keyframes disco-hello {
  0%   { opacity: 0; transform: translateY(18%) rotate(-4deg); }
  35%  { opacity: 1; transform: translateY(0) rotate(0); }
  50%  { transform: translateY(0) rotate(-5deg); }
  65%  { transform: translateY(0) rotate(4deg); }
  80%  { transform: translateY(0) rotate(-2deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0); }
}


/* 4. Discoveries One ------------------------------------------------------ */
.one {
  position: relative; isolation: isolate;
  background: var(--off-white);
  color: var(--white);
  padding-block: var(--section-y);
}
.one .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.one__media { position: relative; aspect-ratio: 450 / 590; max-width: 450px; }
.one__doodle { position: absolute; left: -2%; bottom: -1%; width: 96%; overflow: visible; }
.one__doodle path { fill: none; stroke: var(--yellow); stroke-width: 7; stroke-linecap: round; }
.one__doodle circle { fill: none; stroke: var(--yellow); stroke-width: 7; }
.js .one__doodle .draw { stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 1.8s .3s var(--ease); }
.js .one__media.is-visible .one__doodle .draw { stroke-dashoffset: 0; }
.one__name { font-size: clamp(40px, 4vw, 56px); margin-bottom: 18px; }
.one__title { font-size: clamp(24px, 2.3vw, 31px); font-weight: 700; line-height: 1.2; margin-bottom: 26px; }
.checklist { margin-top: 30px; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='10' fill='none' stroke='%23EDBE0C' stroke-width='1.5'/%3E%3Cpath d='M9.5 7l4 4-4 4' fill='none' stroke='%23EDBE0C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 5. Experiências --------------------------------------------------------- */
.experiencias { background: var(--off-white); padding-block: var(--section-y) 130px; }
.gallery {
  display: grid; gap: 20px 24px; margin-top: 40px;
  grid-template-columns: 360fr 264fr 168fr 264fr;
  grid-template-rows: clamp(150px, 15vw, 200px) clamp(170px, 17vw, 230px);
}
.gallery__item { position: relative; overflow: hidden; border-radius: 12px; background: var(--gray); }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.gallery__item figcaption {
  position: absolute; left: 12px; bottom: 12px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--yellow); color: var(--blue);
  font-size: 13px; font-weight: 600;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s, transform .35s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover figcaption,
.gallery__item:focus-within figcaption,
.gallery__item.is-tapped figcaption { opacity: 1; transform: none; }
.g1 { grid-column: 1; grid-row: 1 / 3; }
.g2 { grid-column: 2 / 4; grid-row: 1; }
.g3 { grid-column: 2; grid-row: 2; }
.g4 { grid-column: 3; grid-row: 2; }
.g5 { grid-column: 4; grid-row: 1 / 3; }

/* 6. Oficinas de Férias --------------------------------------------------- */
.ferias {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--off-white);
  padding-block: var(--section-y);
}
.ferias__shape { position: absolute; z-index: -1; }
.ferias__shape path, .ferias__shape circle { fill: var(--yellow-soft); opacity: .75; }
.ferias__shape--top { width: 620px; right: -120px; top: -110px; }
.ferias__shape--bottom { width: 560px; left: -40px; bottom: -40px; }
.ferias .btn { margin-top: 36px; }
.collage { position: relative; aspect-ratio: 650 / 560; }
.collage > img, .collage > .video-cover {
  position: absolute; object-fit: cover; border-radius: 14px;
  box-shadow: 0 18px 40px -22px rgba(0, 35, 75, .55);
}
.collage__a { left: 0; top: 4%; width: 52%; height: 86%; rotate: -4deg; }
/* vídeo das Férias: mantém o formato vertical original (9:16) — mais peso que a regra genérica .video-cover */
.collage > .collage__a.video-cover { width: auto; height: 86%; aspect-ratio: 9 / 16; }
.collage__b { right: 0; top: 10%; width: 46%; height: 52%; rotate: 5deg; z-index: 1; }
.collage__c { left: 34%; bottom: 0; width: 50%; height: 46%; rotate: 3deg; z-index: 2; }
/* leve zoom na foto sob o mouse (usa "scale", que soma com o leque animado pelo GSAP) */
.collage > img, .collage > .video-cover { transition: scale .5s var(--ease), box-shadow .5s var(--ease); }
.collage > :hover { scale: 1.06; z-index: 3; box-shadow: 0 28px 54px -24px rgba(0, 35, 75, .6); }

/* 7. Depoimentos ---------------------------------------------------------- */
.depoimentos { padding-block: calc(var(--section-y) + 20px); }
.depoimentos__inner { text-align: center; }
.depoimentos .eyebrow { margin-bottom: 26px; }
.spark { width: 100px; margin: 0 auto 36px; }
.spark path { fill: none; stroke: var(--yellow); stroke-width: 3.5; stroke-linejoin: round; }
.quote { max-width: 900px; margin-inline: auto; }
.quote blockquote p { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; }
.quotes { max-width: 900px; margin-inline: auto; }
.quotes__track { display: grid; overflow-x: clip; overflow-clip-margin: 24px; }
/* troca lateral: o atual sai para o lado oposto e o próximo entra deslizando */
.quote { grid-area: 1 / 1; transition: opacity .55s var(--ease), transform .7s var(--ease), visibility 0s; }
.quote[hidden] {
  display: block; visibility: hidden; opacity: 0;
  transform: translateX(calc(var(--dir, 1) * -80px));
  transition: opacity .45s var(--ease), transform .7s var(--ease), visibility 0s .7s;
}
.quote__author { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 26px; }
.quotes__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 34px; }
.quotes__arrow {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1.5px solid var(--blue); border-radius: 50%; background: none; color: var(--blue); cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.quotes__arrow:hover, .quotes__arrow:focus-visible { background: var(--blue); color: var(--white); }
.quotes__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quotes__dots { display: flex; gap: 4px; }
.quotes__dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.quotes__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(0, 46, 98, .25); transition: width .3s var(--ease), background-color .3s; }
.quotes__dot.is-active::before { width: 22px; border-radius: 4px; background: var(--yellow); }
.quote__author cite { display: block; font-style: normal; font-weight: 700; font-size: 16px; }
.quote__role { font-size: 16px; }

/* 8. Localização + Rodapé ------------------------------------------------- */
.localizacao {
  position: relative; isolation: isolate;
  background: var(--blue);
  color: var(--white);
  padding-block: var(--section-y) 110px;
}
.localizacao .section-title { font-size: clamp(42px, 5vw, 68px); max-width: 420px; }
.loc-video { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(40px, 6vw, 96px); align-items: center; }
.units-rows { display: grid; gap: 14px; margin-top: 40px; }
.unit-row {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; align-items: center;
  padding: 12px; border-radius: var(--radius); background: var(--blue-card);
  font-size: 15px; line-height: 1.5; transition: transform .35s var(--ease);
}
.unit-row:hover { transform: translateX(4px); }
.unit-row img { width: 104px; height: 104px; object-fit: cover; border-radius: 14px; }
.unit-row h3 { color: var(--yellow); font-size: 17px; font-weight: 400; margin-bottom: 4px; }
.unit-row .arrow-link { margin-top: 6px; }
.tour { margin: 0; }
.tour__frame {
  position: relative; aspect-ratio: 9 / 16; max-height: 78vh; margin-inline: auto;
  border-radius: 32px; overflow: hidden; background: var(--blue-deep);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7), 0 0 0 6px rgba(255, 255, 255, .06);
}
.tour__frame .video-cover { position: absolute; inset: 0; }
.tour figcaption { margin-top: 14px; text-align: center; font-size: 14px; opacity: .8; }

/* Formulário (abre o WhatsApp com as respostas) */
.contact {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(40px, 6vw, 96px); align-items: center;
  margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(56px, 7vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, .9);
}
.contact__intro { font-size: clamp(24px, 2.2vw, 28px); line-height: 1.25; }
.contact__intro strong { font-weight: 700; }
/* Frase em negrito numa linha só no desktop; no celular ela quebra (senão alarga a coluna e o formulário estoura a tela) */
@media (min-width: 901px) { .contact__intro strong { white-space: nowrap; } }
.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 13px 18px;
  border: 1.5px solid transparent; border-radius: 999px; background: var(--blue-card); color: var(--white);
  font: 400 15px/1.4 var(--font-body); resize: none; transition: border-color .25s var(--ease);
}
.field textarea { border-radius: 24px; min-height: 48px; field-sizing: content; max-height: 200px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .78); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--yellow); }
.field input[aria-invalid="true"] { border-color: #FF9B8A; }
.contact__error { color: #FFB4A6; font-size: 14px; }
/* anti-spam: fora da tela para pessoas, visível para robôs */
.contact__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__form .btn[disabled] { opacity: .6; cursor: progress; }
.contact__done { grid-column: 1 / -1; padding: 28px; border-radius: 24px; background: var(--blue-card); font-size: 18px; line-height: 1.5; }
.contact__done strong { display: block; color: var(--yellow); font-size: 22px; margin-bottom: 4px; }
.arrow-link { display: inline-block; margin-top: 14px; font-size: 14px; text-underline-offset: 3px; }
.arrow-link span { display: inline-block; transition: transform .25s var(--ease); }
.arrow-link:hover span { transform: translateX(4px); }
.arrow-link { transition: color .25s var(--ease); }
.arrow-link:hover, .arrow-link:focus-visible { color: var(--yellow); }
/* telefone nos cards das unidades e no rodapé: aparência de texto, toque liga no celular */
.unit-row__tel { display: block; color: inherit; text-decoration: none; font-size: 15px; transition: color .25s var(--ease); }
.unit-row__tel:hover, .unit-row__tel:focus-visible { color: var(--yellow); }
.footer__tel { font-size: 16px; line-height: 1.2; }
.site-footer .footer__tel a { display: block; margin-top: 8px; }

.site-footer {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--white);
  padding-bottom: 40px;
}
.footer__grid {
  display: grid; grid-template-columns: 1.15fr .95fr 1fr .7fr auto; gap: 36px;
  border-top: 1px solid rgba(255, 255, 255, .9);
  padding-block: 60px 56px;
}
.footer__brand img { width: 262px; margin-bottom: 30px; }
.footer__brand p { font-size: 15px; max-width: 260px; }
.footer__title {
  font-size: 15px; font-weight: 400; text-transform: uppercase; letter-spacing: .02em;
  color: rgba(255, 255, 255, .7); margin-bottom: 22px;
}
.site-footer ul { display: grid; gap: 14px; }
.site-footer ul a { text-decoration: none; font-size: 16px; line-height: 1.2; }
.site-footer a:hover { color: var(--yellow); }
.footer__note { font-size: 14px; opacity: .8; margin-bottom: 6px; }
.footer__email { font-size: 16px; user-select: all; white-space: nowrap; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px;
  border-top: 1px solid rgba(255, 255, 255, .9);
  padding-top: 26px; font-size: 12px;
}
.footer__bottom a { text-decoration: none; }

/* WhatsApp flutuante ------------------------------------------------------ */
.whatsapp-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 12px; border-radius: 999px;
  background: var(--whatsapp); color: var(--white);
  font-size: 14px; font-weight: 700; text-decoration: none;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .45);
  transition: transform .25s var(--ease);
}
.whatsapp-float:hover { transform: translateY(-3px); }
.whatsapp-float svg { width: 32px; height: 32px; fill: currentColor; }

/* Vídeos (arquivos do próprio site): cobrem a moldura como uma foto; sem som, sem controles */
.video-cover { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--blue-deep); }

/* Movimento ligado ao scroll (js/motion.js) ------------------------------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Fundos que se expandem na transição entre blocos */
.section-bg { position: absolute; inset: 0; z-index: -2; }
.one > .section-bg { background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 100%); }
.ferias > .section-bg { background: var(--yellow); }

/* Traços de lápis desenhados pelo scroll */
.scribble { position: relative; display: inline-block; }
.scribble__line {
  position: absolute; left: -2%; bottom: -.04em;
  width: 104%; height: .24em; overflow: visible; pointer-events: none;
}
.scribble__line path {
  fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
}
.scribble__line path { stroke: var(--yellow); }

/* Diferencial: foto acompanha enquanto as quatro palavras passam (desktop) */
.blob-outline { transition: transform .8s var(--ease); }
.concepts__media[data-active="1"] .blob-outline { transform: translate(1.5%, -1%) scale(1.035) rotate(1.5deg); }
.concepts__media[data-active="2"] .blob-outline { transform: translate(-2%, 2%) scale(1.04) rotate(-1.5deg); }
.concepts__media[data-active="3"] .blob-outline { transform: translate(1%, 2.5%) scale(1.03) rotate(1deg); }
/* Diferencial travado: o bloco vira um trilho alto e o painel (palavras + foto) fica parado
   na tela enquanto a rolagem troca o conceito ativo (main.js). --pin-top = altura do cabeçalho.
   Sem movimento (sem GSAP ou "reduzir movimento"), .concepts__pin some e o layout é o original. */
.concepts__pin { display: contents; }
.has-motion .concepts {
  display: block; position: relative;
  height: calc(100vh - var(--pin-top, 70px) + 4 * 45vh);
}
.has-motion .concepts__pin {
  position: sticky; top: var(--pin-top, 70px);
  height: calc(100vh - var(--pin-top, 70px));
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px; align-items: center;
}
.has-motion .concepts__media { width: min(100%, calc((100vh - var(--pin-top, 70px) - 80px) * 660 / 520)); justify-self: center; }
@media (max-width: 900px) {
  .has-motion .concepts { height: calc(100svh - var(--pin-top, 70px) + 4 * 50svh); margin-top: 28px; }
  .has-motion .concepts__pin {
    height: calc(100svh - var(--pin-top, 70px));
    display: flex; flex-direction: column; justify-content: flex-start; gap: 22px; padding-top: max(16px, 6svh);
  }
  .has-motion .concepts__media { order: -1; width: min(100%, 50svh); max-width: none; margin-inline: auto; flex: none; }
  .has-motion .concept { padding-block: 8px; }
  .has-motion .concept__word { font-size: clamp(34px, 10vw, 44px); }
  .has-motion .concept__text { font-size: 15px; }
}
@media (max-width: 900px) and (max-height: 720px) {
  .has-motion .concepts__media { width: min(100%, 40svh); }
  .has-motion .concepts__pin { gap: 14px; padding-top: 12px; }
  .has-motion .concept { padding-block: 5px; }
  .has-motion .concept__word { font-size: 32px; }
}

/* Palavras sobem de baixo (máscara) e o texto abre só na palavra ativa */
.concept__word { clip-path: inset(-.3em -40% 0 -10%); padding-bottom: .14em; margin-bottom: -.14em; } /* máscara só em cima/embaixo */
.concept__word > span { display: inline-block; }
.js .concept__detail {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .55s var(--ease), opacity .45s var(--ease);
}
.js .concept__detail > div { overflow: hidden; }
.js .concept.is-active .concept__detail { grid-template-rows: 1fr; opacity: 1; }

/* Cortina: o fim da página sobe e revela o bloco final (Localização + rodapé) */
.site-end { position: relative; z-index: 0; background: var(--blue); will-change: transform; }
/* o conteúdo inteiro (main) é o painel que sobe; a última seção define o canto arredondado */
.has-motion main {
  position: relative; z-index: 1; background: var(--white);
  border-radius: 0 0 clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px);
  box-shadow: 0 34px 60px -34px rgba(0, 20, 45, .6);
}
.has-motion main > section:last-of-type { border-radius: inherit; }

/* Elementos controlados pelo GSAP não usam as transições CSS de transform */
.has-motion .one__doodle .draw { transition: none; }
.has-motion .collage > * { rotate: 0deg; }

/* Revelação ao rolar ------------------------------------------------------ */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .btn.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.js .btn.reveal.is-visible { transition-delay: 0s; }

/* Responsivo -------------------------------------------------------------- */
@media (max-width: 1080px) {
  .main-nav ul { gap: 22px; }
  .main-nav a { font-size: 15px; }
  .gallery { grid-template-rows: 170px 190px; }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 46px; height: 46px; padding: 0 11px; z-index: 2;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--white); cursor: pointer;
  }
  .menu-toggle__bar { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-of-type { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-of-type { transform: translateY(-4.5px) rotate(-45deg); }
  .main-nav {
    position: fixed; inset: 0;
    display: flex; align-items: center;
    padding: 100px var(--gutter) 40px;
    background: var(--blue);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 22px; }
  .main-nav a { font-family: var(--font-display); font-size: 36px; }
  .brand { position: relative; z-index: 2; }
  .brand img { width: 150px; }

  .split, .one .split, .localizacao .split, .concepts { grid-template-columns: 1fr; }
  .concepts { gap: 48px; margin-top: 44px; }
  .concepts__media { order: -1; max-width: 560px; }
  .one .split { gap: 56px; }
  .one__media { max-width: 360px; }
  .journey { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .j-rail { display: none; }
  .j-stage { min-height: 0; padding-block: 28px; }
  .banner__inner { flex-direction: column; align-items: flex-start; }
  .banner__inner > div:first-child { flex: 0 1 auto; }
  .loc-video, .contact { grid-template-columns: minmax(0, 1fr); }
  .tour { order: 2; }
  .tour__frame { max-width: 340px; max-height: none; }
  .disco-sticker.disco__img { right: -2%; }
  .collage { max-width: 560px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .site-header { padding-block: 16px; }
  .hero { padding-block: 96px 92px; align-items: flex-end; } /* embaixo: espaço para o botão flutuante do WhatsApp */
}
/* celulares baixos (ex.: iPhone SE): título e espaçamentos um pouco menores para tudo caber */
@media (max-width: 640px) and (max-height: 760px) {
  .hero { padding-block: 82px 84px; }
  .hero__meta { margin-bottom: 8px; }
  .hero__lead { font-size: 15px; line-height: 1.5; }
  .hero .btn-row { margin-top: 22px; gap: 10px; }
  .hero .btn { min-height: 48px; padding-block: 10px; }
}
@media (max-width: 640px) {
  .hero__bg { object-position: 65% center; }
  .hero::before {
    background:
      linear-gradient(0deg, rgba(0, 35, 75, .5) 0%, rgba(0, 35, 75, .5) 62%, rgba(0, 35, 75, .22) 84%, rgba(0, 35, 75, .15) 100%);
  }
  .hero__title br, .concept__text br, .banner__title br, .one__title br { display: none; }
  .hero__title { font-size: 20vw; line-height: .98; margin-bottom: 28px; }
  .hero__fixed { display: block; }
  .tags { gap: 8px; }
  .tags li + li::before { display: none; }
  .tags li { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .55); font-size: 14px; }
  .btn-row { gap: 12px; }
  .btn-row .btn { width: 100%; }
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px; grid-auto-rows: 190px;
  }
  .g2 { grid-column: 1 / -1; grid-row: 1; }
  .g1 { grid-column: 1; grid-row: 2; }
  .g3 { grid-column: 2; grid-row: 2; }
  .g4 { grid-column: 1; grid-row: 3; }
  .g5 { grid-column: 2; grid-row: 3; }
  .gallery__item figcaption { opacity: 1; transform: none; font-size: 12px; }
  .contact__form { grid-template-columns: minmax(0, 1fr); }
  .unit-row { grid-template-columns: 84px minmax(0, 1fr); }
  .unit-row img { width: 84px; height: 84px; }
  .banner__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; }
  .whatsapp-float { right: 16px; bottom: 16px; padding: 10px; }
  .whatsapp-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Acessibilidade: movimento reduzido ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .disco__img, .js .disco__caption { opacity: 1; transform: none; }
  .js .one__doodle .draw { stroke-dashoffset: 0; }
  .hero__bg { transform: none; }
}
