/* =========================================================================
   KRITÉRION CONSULTORIA — Folha de estilos principal
   Tema escuro alinhado à página de cursos (academia.kriterion.com.br).
   Mobile first: estilos base para celular; breakpoints ampliam o layout.

   Índice
   01. Tokens (cores, tipografia, espaçamentos)
   02. Reset e base
   03. Utilitários e acessibilidade
   04. Botões e links
   05. Header e navegação
   06. Hero
   07. Seções genéricas
   08. Conheça-nos e pilares
   09. Soluções
   10. Método
   11. Sobre (Prof. Dr. Josemar Soares)
   12. Cursos online
   13. Depoimentos (carrossel)
   14. Blog
   14b. Cursos cadastrados no painel
   15. Contato e formulário
   16. Rodapé
   17. WhatsApp flutuante
   18. Banner de cookies
   19. Animações (entrada, saída e scroll motion)
   20. Breakpoints
   21. Pré-visualização do painel
   ========================================================================= */


/* =========================================================================
   01. TOKENS
   Cores extraídas da página da Academia Kritérion.
   Contraste (WCAG) conferido:
   - Branco sobre azul de botão #3D69A7 ............ 5,5:1 (AA)
   - Azul de destaque #4790EF sobre fundo #09090B ... 6,1:1 (AA)
   - Laranja #EC8236 sobre fundo #09090B ............ 7,3:1 (AA)
   - Texto secundário #A1A1AA sobre #09090B / #18181B  7,7:1 / 6,9:1 (AA)
   - O laranja NUNCA recebe texto branco (2,7:1): é usado só como destaque.
   ========================================================================= */
:root {
  /* Superfícies (escala "zinc" usada na Academia) */
  --bg: #09090B;            /* fundo da página */
  --bg-alt: #111113;        /* seções alternadas */
  --header: #141416;        /* header */
  --surface: #18181B;       /* cards */
  --surface-2: #202024;     /* hover de cards, chips */
  --border: #27272A;
  --border-strong: #3F3F46;
  --black: #000000;         /* hero e faixa de cursos */

  /* Texto */
  --text: #FAFAFA;
  --text-soft: #D4D4D8;
  --muted: #A1A1AA;

  /* Marca / ação */
  --blue: #3D69A7;          /* botão principal (igual "Área de membros") */
  --blue-hover: #4A7BC0;
  --blue-bright: #4790EF;   /* títulos de apoio, ícones, links */
  --blue-glow: #1C79E3;     /* brilhos e gradientes */
  --orange: #EC8236;        /* detalhes, traços e destaques */
  --orange-hot: #FD7C22;

  --error: #F97066;         /* 6,9:1 sobre #18181B */
  --success: #4ADE80;
  --wa-green: #1F9D55;      /* verde WhatsApp escurecido p/ contraste do ícone */

  /* Botões (painel → Botões). Os que usam var() acompanham as cores gerais até serem trocados. */
  --btn-primary-fg: #FFFFFF;
  --btn-primary-hover-fg: #FFFFFF;
  --btn-secondary-bg: var(--surface-2);
  --btn-secondary-fg: var(--text);
  --btn-secondary-border: var(--border-strong);
  --btn-ghost-fg: var(--text);
  --btn-ghost-border: #5A5A5E;

  /* Foco visível */
  --focus: var(--blue-bright);

  /* Tipografia */
  --font-head: "PT Sans Narrow", "Arial Narrow", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: 16px;
  --header-h: 68px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --section-y: clamp(4rem, 11vw, 7.5rem);

  /* Sombras (no escuro, profundidade vem mais de borda e brilho que de sombra) */
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  --glow: 0 0 0 1px color-mix(in srgb, var(--blue-bright) 45%, transparent), 0 16px 48px color-mix(in srgb, var(--blue-glow) 18%, transparent);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --cookie-offset: 0px;     /* atualizado via JS quando o banner de cookies aparece */

  color-scheme: dark;
}


/* =========================================================================
   02. RESET E BASE
   ========================================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-soft);
  background: var(--bg);
  overflow-x: clip;                 /* garantia contra scroll horizontal */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  text-wrap: balance;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }

a { color: inherit; text-underline-offset: .2em; }

address { font-style: normal; }

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

button { cursor: pointer; }

::selection { background: var(--blue-bright); color: var(--bg); }


/* =========================================================================
   03. UTILITÁRIOS E ACESSIBILIDADE
   ========================================================================= */
.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;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

[hidden] { display: none !important; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 1000;
  padding: .75rem 1.25rem;
  background: var(--blue);
  color: #FFF;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* Foco visível em todos os elementos interativos */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.center { text-align: center; }

/* Marcadores visuais de conteúdo pendente (remover quando preencher) */
.placeholder-tag {
  display: inline-block;
  padding: .2rem .55rem;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #F8B27E;
  background: color-mix(in srgb, var(--orange) 12%, transparent);
  border: 1px dashed var(--orange);
  border-radius: 6px;
}

.placeholder-box {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.25rem 1.5rem;
  background: color-mix(in srgb, var(--orange) 5%, transparent);
  border: 1.5px dashed color-mix(in srgb, var(--orange) 60%, transparent);
  border-radius: var(--radius);
  color: var(--muted);
}
.placeholder-box .placeholder-tag { margin-bottom: .75rem; }


/* =========================================================================
   04. BOTÕES E LINKS
   ========================================================================= */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #FFF;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 52px;
  padding: .6rem 1.5rem;
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-border);
  border-radius: var(--btn-radius, 999px);
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Principal: azul da Academia */
.btn--primary { --btn-bg: var(--blue); --btn-fg: var(--btn-primary-fg); box-shadow: 0 8px 24px color-mix(in srgb, var(--blue-glow) 25%, transparent); }
.btn--primary:hover { --btn-bg: var(--blue-hover); --btn-fg: var(--btn-primary-hover-fg); box-shadow: 0 10px 30px color-mix(in srgb, var(--blue-glow) 38%, transparent); }

/* Secundário: superfície escura com borda */
.btn--secondary { --btn-bg: var(--btn-secondary-bg); --btn-fg: var(--btn-secondary-fg); --btn-border: var(--btn-secondary-border); }
.btn--secondary:hover { --btn-bg: color-mix(in srgb, var(--btn-secondary-bg), #FFFFFF 8%); --btn-border: var(--btn-secondary-fg); }

/* Contorno claro */
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--btn-ghost-fg); --btn-border: var(--btn-ghost-border); }
.btn--ghost:hover { --btn-bg: var(--btn-ghost-fg); --btn-fg: var(--bg); --btn-border: var(--btn-ghost-fg); }

.btn--sm { min-height: 44px; padding: .45rem 1.1rem; }
.btn--lg { min-height: 56px; padding: .7rem 1.75rem; font-size: 1.25rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  font-weight: 700;
  color: var(--blue-bright);
  text-decoration: none;
}
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--text); }
.link-arrow:hover .icon:last-child { transform: translateX(4px); }


/* =========================================================================
   05. HEADER E NAVEGAÇÃO
   ========================================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  /* Fundo sólido de propósito: backdrop-filter criaria um bloco de contenção
     e quebraria o menu mobile (position: fixed) que fica dentro do header. */
  background: var(--header);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.header.is-scrolled {
  border-color: var(--border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .4);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

/* Marca: símbolo (arquivo enviado pelo cliente) + nome em texto */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
/* O JPG original é azul sobre branco: o filtro o transforma em símbolo branco
   e o "screen" elimina o fundo, sem precisar de outro arquivo. */
.brand__symbol {
  width: auto;
  height: 40px;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(1) invert(1) contrast(4);
  mix-blend-mode: screen;
}
/* Logo enviado já claro/colorido: o painel desliga a conversão para branco */
.brand__symbol.logo-original,
.intro__logo.logo-original { filter: none; mix-blend-mode: normal; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.brand__tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .15rem;
}

/* Botão hambúrguer (mobile) */
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-right: -6px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 12px;
}
.menu-toggle .icon { width: 28px; height: 28px; grid-area: 1 / 1; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

/* Menu mobile: painel em tela cheia abaixo do header */
.nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--header);
  border-top: 1px solid var(--border);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
}

.nav__list { list-style: none; }
.nav__link {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav__link.is-active { color: var(--blue-bright); }

.nav__actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.nav__actions .btn { min-height: 54px; }
.nav__student {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  order: 3;
  font-size: .98rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.nav__student:hover { color: var(--text); text-decoration: underline; }


/* =========================================================================
   06. HERO
   ========================================================================= */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(100svh, 880px);
  padding: calc(var(--header-h) + 3.5rem) 0 4.5rem;
  overflow: hidden;
  color: var(--text);
  background: var(--black);
}

/* Fundo: arte de ondas azul/laranja (mesma linguagem visual da Academia)
   ou a foto enviada pelo painel, que chega na variável --k-bg. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .7) 100%),
    var(--k-bg, url("../img/placeholder-hero.svg"));
  background-size: cover;
  background-position: 70% center;
}
/* Com foto: escurece mais e centraliza, para o texto continuar legível */
.hero__bg--photo {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .8) 100%),
    var(--k-bg);
  background-position: center;
}

.hero__inner { max-width: calc(var(--container) + var(--gutter) * 2); }

.hero__title {
  max-width: 13ch;
  margin: .5rem 0 1.25rem;
  font-size: clamp(2.75rem, 11vw, 5rem);
  line-height: 1;
  letter-spacing: -.005em;
}
.hero__title em {
  font-style: normal;
  color: var(--orange);
}
/* Traço laranja abaixo do título, como na Academia */
.hero__title::after {
  content: "";
  display: block;
  width: 88px;
  height: 3px;
  margin-top: 1.5rem;
  background: var(--orange);
  border-radius: 2px;
}

.hero__text {
  max-width: 40rem;
  margin-bottom: 2rem;
  font-size: clamp(1.125rem, 2.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-soft);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 2.25rem;
  font-size: .95rem;
  color: var(--muted);
}
.hero__meta .icon { color: var(--blue-bright); }


/* =========================================================================
   07. SEÇÕES GENÉRICAS
   ========================================================================= */
.section { padding-block: var(--section-y); background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }
/* Brilhos azul/laranja em camada própria (animada na seção 19) */
.section--glow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-alt);
}
.section--glow::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--blue-glow) 20%, transparent), transparent) 78% 12% / 55% 55% no-repeat,
    radial-gradient(closest-side, color-mix(in srgb, var(--orange) 11%, transparent), transparent) 12% 88% / 45% 45% no-repeat;
  pointer-events: none;
}

/* Seções com divisória sutil entre si */
.section + .section { border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 3.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  max-width: none;
}

.section__title {
  font-size: clamp(2.1rem, 6.5vw, 3.25rem);
  line-height: 1.05;
  color: var(--text);
}

.section__lead {
  margin-top: 1rem;
  font-size: clamp(1.075rem, 2.2vw, 1.2rem);
  color: var(--muted);
}

/* Rótulo acima dos títulos: azul e espaçado, como "A C A D E M I A" */
.eyebrow {
  display: block;
  margin-bottom: .85rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.subhead {
  margin: clamp(3rem, 8vw, 4.5rem) 0 1.5rem;
  font-size: 1.5rem;
  color: var(--text);
}
.subhead::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: .6rem;
  background: var(--orange);
  border-radius: 2px;
}


/* =========================================================================
   08. CONHEÇA-NOS E PILARES
   ========================================================================= */
.intro-split { display: grid; gap: 1.5rem; }
.intro-split__text { font-size: 1.125rem; color: var(--muted); }
.intro-split__text p:first-child { color: var(--text-soft); }

.pillars { display: grid; gap: 1rem; }

.pillar {
  position: relative;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: translate .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.pillar:hover {
  translate: 0 -4px;
  background: var(--surface-2);
  border-color: transparent;
  box-shadow: var(--glow);
}

.pillar__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  color: var(--blue-bright);
  background: color-mix(in srgb, var(--blue-bright) 12%, transparent);
  border-radius: 14px;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.pillar__icon .icon { width: 26px; height: 26px; }
.pillar:hover .pillar__icon { color: #FFF; background: var(--blue); }

.pillar__title {
  margin-bottom: .4rem;
  font-size: 1.35rem;
}
.pillar__text { font-size: 1rem; color: var(--muted); }


/* =========================================================================
   09. SOLUÇÕES
   ========================================================================= */
.solutions { display: grid; gap: 1.25rem; }

.solution {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
/* Card em destaque com brilho azul */
.solution--featured {
  background:
    radial-gradient(520px 320px at 100% 0%, color-mix(in srgb, var(--blue-glow) 28%, transparent), transparent 70%),
    linear-gradient(180deg, #161A24 0%, var(--surface) 100%);
  border-color: color-mix(in srgb, var(--blue-bright) 35%, transparent);
  box-shadow: var(--shadow);
}
.solution--plain { background: var(--surface); }

.solution__icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  color: var(--blue-bright);
  background: color-mix(in srgb, var(--blue-bright) 12%, transparent);
  border-radius: 16px;
}
.solution__icon .icon { width: 28px; height: 28px; }

.solution__kicker {
  margin-bottom: .35rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--orange);
}

.solution__title {
  margin-bottom: .75rem;
  font-size: clamp(1.9rem, 5vw, 2.4rem);
}

.solution__desc { font-size: 1.075rem; color: var(--muted); }

.services { flex: 1; }
.service {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}
.service:last-child { padding-bottom: 0; }

.service__title {
  margin-bottom: .3rem;
  font-size: 1.3rem;
}

.service__text { margin-bottom: .5rem; font-size: 1rem; color: var(--muted); }

.service__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  font-weight: 700;
  font-size: .98rem;
  color: var(--blue-bright);
  text-decoration: none;
}
.service__link .icon { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
.service__link:hover { color: var(--text); text-decoration: underline; }
.service__link:hover .icon { transform: translateX(4px); }


/* =========================================================================
   10. MÉTODO
   ========================================================================= */
.steps {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.step {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.step:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--orange) 50%, transparent); }

.step__num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--orange);
}

.step__title { margin-bottom: .5rem; font-size: 1.45rem; }
.step__title .placeholder-tag { display: table; margin-bottom: .6rem; }
.step__text { font-size: 1rem; color: var(--muted); }


/* =========================================================================
   11. SOBRE — PROF. DR. JOSEMAR SOARES
   ========================================================================= */
.about { display: grid; gap: 2.5rem; align-items: center; }

.about__photo {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  width: 88%;
}
.about__photo::before {               /* moldura decorativa deslocada */
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--orange);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.about__photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.about__content .section__title { margin-bottom: .25rem; }

.about__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
}


/* =========================================================================
   12. CURSOS ONLINE — faixa preta com as ondas da Academia
   ========================================================================= */
.courses {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 2rem;
  padding: clamp(2rem, 6vw, 3.5rem);
  overflow: hidden;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.courses::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .1) 100%),
    url("../img/placeholder-hero.svg") right center / cover no-repeat;
}

.courses__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  color: var(--blue-bright);
  background: color-mix(in srgb, var(--blue-bright) 14%, transparent);
  border-radius: 16px;
}
.courses__icon .icon { width: 28px; height: 28px; }

.courses .section__title { font-size: clamp(1.9rem, 5.5vw, 2.75rem); max-width: 22ch; }
.courses__text { margin-top: 1rem; max-width: 38rem; color: var(--text-soft); font-size: 1.1rem; }

.courses__actions { display: flex; flex-direction: column; gap: .75rem; }


/* =========================================================================
   13. DEPOIMENTOS (carrossel com scroll-snap)
   ========================================================================= */
.carousel { max-width: 880px; margin-inline: auto; }

.carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: var(--radius-lg);
  padding: 4px;                       /* espaço para o anel de foco */
}
.carousel__track::-webkit-scrollbar { display: none; }

.testimonial {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin: 0;
  padding: clamp(1.75rem, 6vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  scroll-snap-align: center;
}

.testimonial__quote { position: relative; margin: 0; }
.testimonial__quote::before {
  content: "\201C";
  display: block;
  height: 2.6rem;
  margin-bottom: .5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--orange);
}
.testimonial__quote p {
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--text);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .98rem;
  line-height: 1.4;
  color: var(--muted);
}
.testimonial__author strong { font-size: 1.05rem; color: var(--text); }

.testimonial__avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFF;
  background: var(--blue);
  border-radius: 50%;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.carousel__btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.carousel__btn:hover { color: #FFF; background: var(--blue); border-color: var(--blue); }
.carousel__btn:disabled { opacity: .35; cursor: default; }
.carousel__btn:disabled:hover { color: var(--text); background: var(--surface); border-color: var(--border-strong); }

.carousel__dots { display: flex; gap: .25rem; }
.carousel__dot {
  position: relative;
  width: 32px;                         /* área de toque maior que o ponto visível */
  height: 32px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
}
.carousel__dot::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 10px;
  height: 10px;
  background: #52525B;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), background-color .25s var(--ease);
}
.carousel__dot[aria-current="true"]::after { width: 24px; background: var(--orange); }


/* =========================================================================
   14. BLOG — cards no mesmo formato dos cursos da Academia
   ========================================================================= */
.posts { display: grid; gap: 1.25rem; }

.post {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: translate .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.post:hover { translate: 0 -4px; border-color: transparent; box-shadow: var(--glow); }

.post__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.post__link:focus-visible { outline-offset: -3px; border-radius: var(--radius); }

.post__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-2);
  transition: transform .5s var(--ease);
}
.post:hover .post__img { transform: scale(1.04); }

.post__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  flex: 1;
  padding: 1.5rem;
  background: var(--surface);
}
.post__title { font-size: 1.45rem; }
.post__excerpt { font-size: 1rem; color: var(--muted); }
.post__more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
  padding-top: .5rem;
  font-weight: 700;
  color: var(--blue-bright);
}
.post__more .icon { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
.post:hover .post__more .icon { transform: translateX(4px); }
.post__date { font-size: .88rem; color: var(--muted); }

/* Categoria do artigo (opcional, definida no painel) */
.post__tag {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
}


/* =========================================================================
   14b. CURSOS CADASTRADOS NO PAINEL (cards no formato da Academia)
   ========================================================================= */
.courses-list { margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.courses-list .subhead { margin-top: 0; }

.course-grid { display: grid; gap: 1.25rem; }

.course {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: translate .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.course:hover { translate: 0 -4px; border-color: transparent; box-shadow: var(--glow); }

.course__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.course__link:focus-visible { outline-offset: -3px; border-radius: var(--radius); }

.course__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-2);
  transition: transform .5s var(--ease);
}
.course:hover .course__img { transform: scale(1.04); }

.course__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
  flex: 1;
  padding: 1.5rem;
  background: var(--surface);
}
.course__badge {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
}
.course__title { font-size: 1.45rem; }
.course__info {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}
.course__info .icon { margin-top: .15em; color: var(--blue-bright); }
.course__text { margin: 0; font-size: 1rem; color: var(--muted); }
.course__more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
  padding-top: .5rem;
  font-weight: 700;
  color: var(--blue-bright);
}
.course__more .icon { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
.course:hover .course__more .icon { transform: translateX(4px); }

/* Foto opcional nos depoimentos (substitui as iniciais) */
.testimonial__photo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
}

/* Minibiografia do professor */
.about__bio { margin: 1.5rem 0 2rem; color: var(--text-soft); }
.about__bio p + p { margin-top: 1rem; }


/* =========================================================================
   15. CONTATO E FORMULÁRIO
   ========================================================================= */
.contact { display: grid; gap: 2rem; align-items: start; }

.form {
  padding: clamp(1.25rem, 5vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.form__grid { display: grid; gap: 1.1rem; margin-bottom: 1.5rem; }

.field { display: flex; flex-direction: column; gap: .4rem; }

.field label {
  font-size: .98rem;
  font-weight: 600;
  color: var(--text);
}
.req { color: var(--orange); }
.opt { font-weight: 400; color: var(--muted); }

/* Campos no estilo da busca da Academia: fundo preto e borda clara */
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: .75rem 1rem;
  font-size: 1rem;                    /* 16px: evita zoom automático no iOS */
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
}
.field select option,
.field select optgroup { background: var(--surface); color: var(--text); }
.field input::placeholder { color: #71717A; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #52525B; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue-bright) 22%, transparent);
}

.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--error) 20%, transparent); }

.field__error {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  color: var(--error);
}
.field__error:empty { display: none; }

.field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: .75rem;
  align-items: start;
}
.field--check input {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: .15rem 0 0;
  accent-color: var(--blue);
}
.field--check label { font-weight: 400; font-size: .95rem; color: var(--muted); }
.field--check label a { color: var(--blue-bright); font-weight: 600; }
.field--check .field__error { grid-column: 1 / -1; }

.form__note { margin-top: 1rem; font-size: .9rem; color: var(--muted); }

.form__status { margin-top: .75rem; font-weight: 600; color: var(--success); }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); }
.form__status a { color: var(--text); }

/* Dados de contato */
.info-list { display: grid; gap: 1.25rem; margin-bottom: 1.75rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list__icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--blue-bright);
  background: color-mix(in srgb, var(--blue-bright) 12%, transparent);
  border-radius: 14px;
}
.info-list__label {
  margin-bottom: .1rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-list a {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  word-break: break-word;
}
.info-list a:hover { color: var(--blue-bright); text-decoration: underline; }
.info-list p,
.info-list address { color: var(--text-soft); }

/* Redes sociais: botões redondos como no header da Academia */
.social { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; }
.social__link {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--text);
  background: #2B2B2E;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.social__link:hover { color: #FFF; background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }

/* Mapa (carregamento sob demanda) */
.map {
  position: relative;
  margin-top: 1.75rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(255, 255, 255, .025) 22px 44px),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__facade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1.25rem;
  text-align: center;
  font-size: .95rem;
  color: var(--muted);
}
.map__pin { width: 36px; height: 36px; color: var(--orange); }
.map__ext { font-weight: 600; color: var(--blue-bright); min-height: 44px; display: inline-flex; align-items: center; }
.map.is-loaded .map__facade { display: none; }


/* =========================================================================
   16. RODAPÉ
   ========================================================================= */
.footer {
  padding-top: clamp(3.5rem, 8vw, 5rem);
  color: var(--muted);
  background: var(--black);
  border-top: 1px solid var(--border);
  font-size: .98rem;
}

.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }

.footer__slogan {
  margin: 1rem 0 1.25rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--text);
}

.footer__title {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.footer__col ul { list-style: none; display: grid; gap: .15rem; }
.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text-soft);
  text-decoration: none;
}
.footer a:hover { color: var(--blue-bright); text-decoration: underline; }
.footer .social__link { color: var(--text); }
.footer .social__link:hover { color: #FFF; text-decoration: none; }
.footer__address { line-height: 1.8; }
.footer__address a { min-height: 0; }

.footer__bottom { border-top: 1px solid var(--border); }
.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding-block: 1.5rem calc(5.5rem + env(safe-area-inset-bottom)); /* espaço p/ botão flutuante */
  font-size: .88rem;
  color: var(--muted);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 0 1.25rem; list-style: none; }
.footer__legal a { min-height: 36px; color: var(--muted); }
.footer__cookie-btn {
  min-height: 36px;
  padding: 0;
  font-size: inherit;
  color: var(--muted);
  background: none;
  border: 0;
}
.footer__cookie-btn:hover { color: var(--blue-bright); text-decoration: underline; }


/* =========================================================================
   17. WHATSAPP FLUTUANTE
   ========================================================================= */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + var(--cookie-offset) + env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 60px;
  height: 60px;
  color: #FFF;
  text-decoration: none;
  background: var(--wa-green);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
  transition: transform .25s var(--ease), bottom .3s var(--ease), background-color .2s var(--ease);
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); background: color-mix(in srgb, var(--wa-green), #000000 15%); }
.wa-float__label { display: none; }

/* Pulso discreto para chamar atenção (desligado com reduced motion) */
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--wa-green) 50%, transparent);
  animation: wa-pulse 2.8s var(--ease) infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--wa-green) 45%, transparent); }
  70%  { box-shadow: 0 0 0 16px color-mix(in srgb, var(--wa-green) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--wa-green) 0%, transparent); }
}


/* =========================================================================
   18. BANNER DE COOKIES
   ========================================================================= */
.cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 120;
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  animation: cookie-in .4s var(--ease);
}
.cookie[hidden] { display: none; }
.cookie__text { font-size: .95rem; line-height: 1.55; color: var(--text-soft); }
.cookie__text a { color: var(--blue-bright); font-weight: 600; }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

@keyframes cookie-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}


/* =========================================================================
   19. ANIMAÇÕES — ENTRADA, SAÍDA E SCROLL MOTION
   Todos os estados "escondidos" ficam sob .motion (classe posta no <html>
   pelo script do <head>). Quem pede "reduzir movimento" não recebe .motion
   e vê o site completo e estático. O JS (js/app.js) só troca classes e
   variáveis CSS; o movimento em si é definido aqui.

   Convenções
   - data-anim="..."   variante de entrada (definida no JS ou no HTML)
   - .is-visible       elemento na tela (entrada)
   - data-exit="up"    saiu pelo topo → sai subindo (saída)
   - --delay / --i     atraso em cascata
   - --rel             posição relativa ao centro da tela (-1 a 1), p/ parallax
   - --progress        progresso de rolagem de um bloco (0 a 1)
   Hover/tilt usam as propriedades individuais translate/rotate/scale, para
   não conflitar com o transform das entradas.
   ========================================================================= */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);     /* desaceleração longa */
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1); /* pequeno "pulo" */
}

main, .footer { overflow-x: clip; }            /* entradas laterais não geram scroll horizontal */


/* ---------- 19.1 Entradas e saídas (reveal) ---------- */
.motion .reveal {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  transition:
    opacity .9s var(--ease-out),
    transform 1.1s var(--ease-out),
    filter .9s var(--ease-out);
  transition-delay: calc(var(--delay, 0s) + var(--intro, 0s));
}
.motion .reveal[data-anim="fade-down"]  { transform: translate3d(0, -48px, 0); }
.motion .reveal[data-anim="fade-left"]  { transform: translate3d(72px, 0, 0); }   /* vem da direita */
.motion .reveal[data-anim="fade-right"] { transform: translate3d(-72px, 0, 0); }  /* vem da esquerda */
.motion .reveal[data-anim="zoom-in"]    { transform: scale(.82); }
.motion .reveal[data-anim="zoom-out"]   { transform: scale(1.1); }
.motion .reveal[data-anim="blur-in"]    { transform: translate3d(0, 24px, 0); filter: blur(14px); }
.motion .reveal[data-anim="flip-up"]    { transform: perspective(900px) rotateX(-38deg) translate3d(0, 56px, 0); transform-origin: 50% 100%; }
.motion .reveal[data-anim="text"]       { opacity: 1; transform: none; }       /* só as palavras animam */

.motion .reveal.is-visible,
.motion .reveal[data-anim].is-visible { opacity: 1; transform: none; filter: none; }   /* vence as variantes, inclusive nas media queries */

/* Saída pelo topo: sobe e encolhe um pouco (vale para todas as variantes) */
.motion .reveal[data-exit="up"]:not(.is-visible) {
  transform: translate3d(0, -56px, 0) scale(.96);
  filter: blur(6px);
}
/* Saídas são mais rápidas e sem atraso */
.motion .reveal:not(.is-visible) { transition-duration: .55s; transition-delay: 0s; }

/* Na abertura, o hero espera a cortina subir */
.intro-play .hero { --intro: 1.15s; }

@media (max-width: 719px) {
  .motion .reveal[data-anim="fade-left"]  { transform: translate3d(36px, 0, 0); }
  .motion .reveal[data-anim="fade-right"] { transform: translate3d(-36px, 0, 0); }
}


/* ---------- 19.2 Texto palavra por palavra (títulos) ---------- */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .14em;                 /* não corta ç, g, p */
  margin-bottom: -.14em;
}
.w__i { display: inline-block; }
.motion .w__i {
  transform: translate3d(0, 115%, 0) rotate(6deg);
  transform-origin: 0 100%;
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--delay, 0s) + var(--intro, 0s) + var(--i, 0) * .055s + .08s);
}
.motion .is-visible .w__i { transform: none; }
.motion .reveal:not(.is-visible) .w__i { transition-duration: .45s; transition-delay: 0s; }

/* Rótulos: as letras se aproximam ao entrar */
.motion .reveal .eyebrow,
.motion .reveal.eyebrow {
  letter-spacing: .7em;
  opacity: 0;
  transition: letter-spacing 1.2s var(--ease-out), opacity .9s var(--ease-out);
  transition-delay: calc(var(--delay, 0s) + var(--intro, 0s));
}
.motion .is-visible .eyebrow,
.motion .eyebrow.is-visible { letter-spacing: .3em; opacity: 1; }

/* Traços laranja crescem da esquerda */
.motion .hero__title::after,
.motion .subhead::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--delay, 0s) + var(--intro, 0s) + .5s);
}
.motion .is-visible.hero__title::after,
.motion .is-visible.subhead::after { transform: none; }


/* ---------- 19.3 Detalhes que entram depois do card ---------- */
/* Ícones dos pilares: "pulo" com giro */
.motion .pillar .pillar__icon {
  opacity: 0;
  scale: .3;
  rotate: -35deg;
  transition: opacity .5s var(--ease-out), scale .8s var(--ease-back), rotate .8s var(--ease-back),
              background-color .3s var(--ease), color .3s var(--ease);
  transition-delay: calc(var(--delay, 0s) + .3s), calc(var(--delay, 0s) + .3s), calc(var(--delay, 0s) + .3s), 0s, 0s;
}
.motion .pillar.is-visible .pillar__icon { opacity: 1; scale: 1; rotate: 0deg; }

/* Itens em cascata dentro de cards/listas (--i definido no JS) */
.motion .solution .service,
.motion .form .field,
.motion .contact__info .info-list > li,
.motion .contact__info .social > li {
  opacity: 0;
  translate: 0 22px;
  transition: opacity .6s var(--ease-out), translate .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * .08s + .3s);
}
.motion .solution.is-visible .service,
.motion .form.is-visible .field,
.motion .contact__info.is-visible .info-list > li,
.motion .contact__info.is-visible .social > li { opacity: 1; translate: 0 0; }

/* Imagens reveladas por "cortina" */
.motion .post .post__img,
.motion .about__photo img {
  clip-path: inset(100% 0 0 0);
  scale: 1.18;
  transition: clip-path 1.2s var(--ease-in-out), scale 1.8s var(--ease-out), transform .5s var(--ease);
  transition-delay: calc(var(--delay, 0s) + .15s);
}
.motion .post.is-visible .post__img,
.motion .about__photo.is-visible img { clip-path: inset(0 0 0 0); scale: 1; }

/* Moldura da foto: aparece e acompanha a rolagem (parallax) */
.about__photo::before { translate: calc(var(--rel, 0) * 26px) calc(var(--rel, 0) * 40px); }
.motion .about__photo::before {
  opacity: 0;
  scale: .88;
  transition: opacity .9s var(--ease-out) .6s, scale 1.2s var(--ease-out) .6s;
}
.motion .about__photo.is-visible::before { opacity: 1; scale: 1; }

/* Faixa de cursos: fundo de ondas com parallax horizontal */
.courses::before {
  transform: translate3d(calc(var(--rel, 0) * -90px), 0, 0) scale(1.18);
}

/* Brilhos das seções escuras flutuando */
.motion .section--glow::before { animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift {
  to { transform: translate3d(-7%, 5%, 0) rotate(10deg) scale(1.08); }
}


/* ---------- 19.4 Abertura (intro) ---------- */
.intro { display: none; }
.intro-play .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}
.intro__panel,
.intro__curtain {
  position: absolute;
  inset: 0;
}
.intro__panel {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--black);
  animation: curtain-up .9s var(--ease-in-out) 1.05s forwards;
}
.intro__curtain {
  z-index: 1;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-glow) 100%);
  animation: curtain-up .9s var(--ease-in-out) 1.2s forwards;
}
.intro__logo {
  width: auto;
  height: 72px;
  max-width: 240px;
  object-fit: contain;
  filter: grayscale(1) invert(1) contrast(4);
  mix-blend-mode: screen;
  animation: intro-logo .9s var(--ease-back) both;
}
.intro__name {
  display: block;
  overflow: hidden;
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
}
.intro__name span {
  display: block;
  animation: intro-name .8s var(--ease-out) .25s both;
}
.intro__bar {
  width: 120px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  transform-origin: left;
  animation: intro-bar .7s var(--ease-out) .45s both;
}
@keyframes intro-logo { from { opacity: 0; transform: scale(.4) rotate(-120deg); } }
@keyframes intro-name { from { transform: translate3d(0, 110%, 0); } }
@keyframes intro-bar  { from { transform: scaleX(0); } }
@keyframes curtain-up { to { transform: translate3d(0, -100%, 0); visibility: hidden; } }

/* Header e botão do WhatsApp entram depois da abertura */
.motion .header { animation: header-in .8s var(--ease-out) .1s backwards; }
.intro-play .header { animation-delay: 1.5s; }
.motion .wa-float { animation: pop-in .7s var(--ease-back) 1s backwards; }
.intro-play .wa-float { animation-delay: 2.2s; }
@keyframes header-in { from { transform: translate3d(0, -100%, 0); } }
@keyframes pop-in { from { opacity: 0; transform: scale(0) rotate(-45deg); } }


/* ---------- 19.5 Scroll motion ---------- */
/* Header some ao rolar para baixo e volta ao rolar para cima */
.header.is-hidden { transform: translate3d(0, -100%, 0); }

/* Hero: luz que segue o mouse */
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px circle at var(--gx, 70%) var(--gy, 40%), color-mix(in srgb, var(--blue-bright) 16%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.hero:hover .hero__glow { opacity: 1; }
.motion .hero__bg { will-change: transform; }

/* Método: linha que se preenche e acende as etapas */
.steps-wrap { position: relative; padding-left: 26px; }
.steps__line {
  position: absolute;
  top: 0;
  bottom: clamp(2.5rem, 6vw, 3.5rem);   /* acompanha a margem inferior da lista */
  left: 0;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}
.steps__line span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--orange), var(--blue-bright));
  transform: scaleY(var(--progress, 0));
  transform-origin: top;
  box-shadow: 0 0 14px color-mix(in srgb, var(--orange) 50%, transparent);
}
.step::before {                          /* nó da linha */
  content: "";
  position: absolute;
  top: 2.1rem;
  left: -32px;
  width: 14px;
  height: 14px;
  background: var(--bg-alt);
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease), scale .5s var(--ease-back);
}
.step.is-active::before {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--orange) 18%, transparent), 0 0 18px color-mix(in srgb, var(--orange) 60%, transparent);
  scale: 1.15;
}
.step .step__num { transition: color .5s var(--ease), text-shadow .5s var(--ease); }
.step.is-active .step__num {
  color: var(--orange);
  text-shadow: 0 0 28px color-mix(in srgb, var(--orange) 45%, transparent);
}
.step.is-active { border-color: color-mix(in srgb, var(--orange) 45%, transparent); }

/* No desktop as etapas ficam lado a lado: a linha passa a ser horizontal */
@media (min-width: 1024px) {
  .steps-wrap { padding-left: 0; padding-top: 34px; }
  .steps__line { top: 0; bottom: auto; right: 0; width: auto; height: 2px; }
  .steps__line span {
    background: linear-gradient(90deg, var(--orange), var(--blue-bright));
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
  }
  .step::before { top: -40px; left: 1.5rem; }
}

/* Depoimentos: o slide central em destaque, os vizinhos recuam */
.testimonial {
  scale: calc(1 - var(--d, 0) * .08);
  opacity: calc(1 - var(--d, 0) * .6);
}

/* Rodapé: marca d'água deslizando */
.footer { position: relative; }
.footer__wordmark {
  margin: 0 0 1.5rem;
  font-family: var(--font-head);
  font-size: clamp(5rem, 26vw, 21rem);
  font-weight: 700;
  line-height: .9;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px #2E2E33;
  user-select: none;
  pointer-events: none;
  transform: translate3d(calc((var(--rel, .3) - .3) * -55%), 0, 0);
}


/* ---------- 19.6 Interações com o mouse (só em telas com mouse) ---------- */
/* Inclinação 3D + luz que segue o cursor nos cards (JS define --mx/--my e rotate) */
.pillars, .solutions, .posts, .steps { perspective: 1200px; }
[data-tilt] { transition: rotate .6s var(--ease-out), translate .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease); }
[data-tilt].is-tilting { transition: rotate .12s linear, translate .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease); }
.solution { position: relative; }
[data-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--blue-bright) 14%, transparent), transparent 55%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
[data-tilt].is-tilting::after { opacity: 1; }

/* Botões "magnéticos" (JS define translate) */
[data-magnetic] { transition: all .4s var(--ease-out); }
[data-magnetic].is-magnet { transition-duration: .15s; }

/* Brilho que atravessa os botões principais no hover */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease-out);
}
.btn--primary:hover::after { transform: translateX(120%); }

/* Símbolo da marca gira no hover */
.brand__symbol { transition: rotate .9s var(--ease-out); }
.brand:hover .brand__symbol { rotate: 360deg; }


/* ---------- 19.7 Menu mobile e banner de cookies ---------- */
@media (max-width: 1139px) {
  .motion .nav__list > li,
  .motion .nav__actions > * {
    opacity: 0;
    translate: 0 24px;
    transition: opacity .3s var(--ease), translate .4s var(--ease);
  }
  .motion .nav.is-open .nav__list > li,
  .motion .nav.is-open .nav__actions > * {
    opacity: 1;
    translate: 0 0;
    transition: opacity .5s var(--ease-out), translate .7s var(--ease-out);
    transition-delay: calc(var(--i, 0) * .055s + .12s);
  }
}

.cookie.is-leaving { animation: cookie-out .45s var(--ease-in-out) forwards; }
@keyframes cookie-out { to { opacity: 0; transform: translate3d(0, 24px, 0) scale(.96); } }


/* ---------- 19.8 Reduzir movimento ---------- */
/* Sem .motion os estados escondidos não existem; aqui só desligamos o que é
   contínuo ou decorativo mesmo assim. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .wa-float::after { display: none; }
  .testimonial { scale: 1; opacity: 1; }
  .footer__wordmark, .courses::before { transform: none; }
  .about__photo::before { translate: none; }
}


/* =========================================================================
   20. BREAKPOINTS
   ========================================================================= */

/* ≥ 560px — celulares grandes / tablets pequenos */
@media (min-width: 560px) {
  :root { --gutter: 24px; }

  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form__grid { grid-template-columns: repeat(2, 1fr); }
  .field--full { grid-column: 1 / -1; }
  .courses__actions { flex-direction: row; flex-wrap: wrap; }

  .cookie {
    left: 24px;
    right: auto;
    bottom: 24px;
    max-width: 520px;
  }
  .cookie__actions { display: flex; justify-content: flex-end; }
}

/* ≥ 720px — tablets */
@media (min-width: 720px) {
  .posts,
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
  }

  /* No tablet/desktop as ondas ficam à direita e o texto sobre o preto */
  .hero__bg {
    background-image:
      linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, 0) 75%),
      var(--k-bg, url("../img/placeholder-hero.svg"));
    background-position: right center;
  }
  .hero__bg--photo {
    background-image:
      linear-gradient(90deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .6) 50%, rgba(0, 0, 0, .25) 100%),
      var(--k-bg);
    background-position: center;
  }

  /* Botão flutuante com rótulo visível */
  .wa-float { width: auto; padding: 0 1.35rem 0 1.1rem; }
  .wa-float__label {
    display: inline;
    font-family: var(--font-head);
    font-size: 1.1875rem;
    font-weight: 700;
  }
}

/* ≥ 900px — notebooks */
@media (min-width: 900px) {
  :root { --header-h: 80px; --gutter: 32px; }

  .hero__title { max-width: 16ch; }
  .intro-split { grid-template-columns: 5fr 6fr; gap: 4rem; align-items: end; }
  .solutions { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .about { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 5.5rem); }
  .about__photo { width: 100%; margin: 0; }
  .courses { grid-template-columns: 1.4fr 1fr; align-items: end; }
  .courses__actions { flex-direction: column; align-items: stretch; }
  .contact { grid-template-columns: 7fr 5fr; gap: 3rem; }
  .testimonial { padding: 3rem 3.5rem; }
}

/* ≥ 1024px */
@media (min-width: 1024px) {
  .pillars { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
  .posts,
  .course-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem; }

  /* Etapas lado a lado */
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}

/* ≥ 1140px — menu completo no header */
@media (min-width: 1140px) {
  .menu-toggle { display: none; }

  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
    overflow: visible;
    background: none;
    border: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav__list { display: flex; gap: .25rem; }
  .nav__link {
    position: relative;
    min-height: 44px;
    padding: 0 .7rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-soft);
    border: 0;
    border-radius: 8px;
  }
  .nav__link::after {
    content: "";
    position: absolute;
    left: .7rem;
    right: .7rem;
    bottom: 6px;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .nav__link:hover { color: var(--text); }
  .nav__link:hover::after,
  .nav__link.is-active::after { transform: scaleX(1); }
  .nav__link.is-active { color: var(--text); }

  .nav__actions { flex-direction: row; align-items: center; gap: .6rem; }
  .nav__actions .btn { min-height: 44px; }
  .nav__student { order: 0; margin-right: .4rem; font-size: .92rem; }
}


/* =========================================================================
   21. PRÉ-VISUALIZAÇÃO DO PAINEL (?preview=1)
   Contorno nos elementos editáveis: clicar abre o campo no painel.
   ========================================================================= */
/* Cor fixa (não segue o tema) para o contorno ficar visível com qualquer paleta */
.k-preview [data-k-path] { cursor: pointer; transition: outline-color .15s, box-shadow .15s; }
.k-preview [data-k-path]:hover {
  outline: 2px solid rgba(71, 144, 239, .6);
  outline-offset: 4px;
}
.k-preview .k-selected,
.k-preview .k-selected:hover {
  outline: 2px solid #4790EF;
  outline-offset: 4px;
  box-shadow: 0 0 0 7px rgba(71, 144, 239, .22);
}
.k-preview .cookie { display: none !important; }
