/* ---------- Tokens ---------- */
:root {
  /* Marca América Mineiro */
  --black: #2a262b;        /* preto da marca, base escura das seções */
  --black-soft: #332e35;   /* preto suavizado, apoio para blocos escuros alternados */
  --green: #4ed855;        /* verde da marca, acento sobre fundo escuro e cor de ação */
  --green-deep: #2f8f38;   /* verde escurecido, legível sobre fundo claro */
  --white: #fefefe;        /* branco da marca */
  --off-white: #fefefe;
  --off-white-soft: #ecf9ed;
  --steel: #6f6a72;
  --whatsapp: #25D366;

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-serif: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-utility: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Raleway", "Helvetica Neue", Arial, sans-serif;

  --navbar-h: 88px;
}

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed/BarlowCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed/BarlowCondensed-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed/BarlowCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed/BarlowCondensed-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed/BarlowCondensed-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed/BarlowCondensed-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed/BarlowCondensed-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed/BarlowCondensed-ExtraBoldItalic.ttf") format("truetype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* Raleway (fonte variável) para texto corrido */
@font-face {
  font-family: "Raleway";
  src: url("../assets/fonts/raleway/Raleway-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("../assets/fonts/raleway/Raleway-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-h);
}
html { overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.wrap { width: min(92%, 1200px); margin-inline: auto; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--green); color: var(--black); }

/* ---------- Section color themes ---------- */
.section-green-deep {
  --bg: var(--black);
  --fg: var(--white);
  --muted: rgba(254, 254, 254, .68);
  --card-bg: var(--black-soft);
  --card-border: rgba(254, 254, 254, .12);
  --accent: var(--green);
  background: var(--bg);
  color: var(--fg);
}
.section-green {
  --bg: var(--black-soft);
  --fg: var(--white);
  --muted: rgba(254, 254, 254, .68);
  --card-bg: var(--black);
  --card-border: rgba(254, 254, 254, .12);
  --accent: var(--green);
  background: var(--bg);
  color: var(--fg);
}
.section-white {
  --bg: var(--white);
  --fg: var(--black);
  --muted: #5a555c;
  --card-bg: #ffffff;
  --card-border: rgba(42, 38, 43, .1);
  --accent: var(--green-deep);
  background: var(--bg);
  color: var(--fg);
}
.section-red {
  /* bloco de destaque na cor verde da marca, com cards claros por cima */
  --bg: var(--green);
  --fg: var(--black);
  --muted: rgba(42, 38, 43, .75);
  --card-bg: var(--white);
  --card-border: rgba(42, 38, 43, .12);
  --accent: var(--black);
  background: var(--bg);
  color: var(--fg);
}

.section { padding-block: clamp(4rem, 8vw, 7rem); }

.starfield { position: relative; }
.starfield::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 20%, rgba(254, 254, 254, .5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 22% 65%, rgba(254, 254, 254, .35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 15%, rgba(254, 254, 254, .45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 80%, rgba(254, 254, 254, .3) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 68% 35%, rgba(254, 254, 254, .5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 82% 60%, rgba(254, 254, 254, .35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 25%, rgba(254, 254, 254, .45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 12% 88%, rgba(254, 254, 254, .3) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 45%, rgba(254, 254, 254, .4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 75% 92%, rgba(254, 254, 254, .3) 50%, transparent 51%);
  background-repeat: repeat;
  background-size: 480px 480px;
}
.starfield > * { position: relative; z-index: 1; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-utility);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .85rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.01em;
}
h1, h2, h3 { font-weight: 500; }
h1 strong, h2 strong, h3 strong,
h1 .text-green, h1 .text-green-bright {
  font-weight: 700;
  font-style: italic;
}
h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: .98;
}
h3 { font-size: 1.35rem; line-height: 1.15; }
.lead {
  margin-top: 1.4rem;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.6;
}
.text-green { color: var(--green); }
.text-green-bright { color: var(--green); }

.section-head { max-width: 42rem; margin-bottom: 3.5rem; }
.section-head--left { margin-bottom: 2.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-utility);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .85rem;
  padding: .95rem 1.6rem;
  border-radius: 0;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(.97); }
.btn--red { background: var(--green); color: var(--black); }
.btn--red:hover { background: #3fc247; }
.btn--ghost { border-color: rgba(254, 254, 254, .3); color: var(--fg); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--outline-dark { border-color: rgba(42, 38, 43, .25); color: var(--black); }
.btn--outline-dark:hover { border-color: var(--green-deep); color: var(--green-deep); }
.btn--white { background: var(--white); color: var(--black); }
.btn--white:hover { background: var(--off-white-soft); }
.btn--lg { padding: 1.2rem 2rem; font-size: .95rem; }

/* ---------- Navbar (lives inside the hero only, scrolls away with it) ---------- */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  background: transparent;
  padding-block: 1.1rem;
}
.navbar__inner { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.brand__logo { height: 170px; width: auto; }
.footer .brand__logo { height: 100px; }

.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a {
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(254, 254, 254, .82);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--green); }

@media (min-width: 992px) {
  .navbar__inner { justify-content: space-between; }
  .nav-links { display: flex; }
}

/* ---------- Hero pin (desktop: next section slides up and covers the hero) ---------- */
.hero-pin { position: relative; }
.hero-pin__inner { position: relative; }

.hero-cover { position: relative; z-index: 2; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__banner { display: block; width: 100%; height: auto; }

/* Arte de hero da escola, em duas versões. No mobile a arte fala sozinha e fica
   só o CTA no rodapé; no desktop os alunos ficam à esquerda e o texto ocupa a
   faixa livre à direita. O background-color é o mesmo verde da arte, então a
   emenda entre imagem e fundo não aparece. */
.hero--crest {
  background-color: var(--green);
  background-image: url("../assets/bg-hero/hero-america-mineiro-mobile.jpg");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: cover;
  /* o container tem a proporção exata do arquivo (1080x1800), então a arte
     aparece inteira, sem corte e sem sobra de fundo */
  aspect-ratio: 1080 / 1800;
  padding-block: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
}

@media (min-width: 992px) {
  .hero--crest {
    background-image: url("../assets/bg-hero/hero-america-mineiro-desktop.jpg");
    background-position: center;
    background-size: cover;
    /* mesma proporção da arte: nada é cortado e os alunos ficam sempre
       nos mesmos 62% da esquerda, o que garante espaço livre à direita */
    aspect-ratio: 2560 / 1080;
    min-height: 0;
    justify-content: center;
  }
}

.crest {
  position: relative;
  z-index: 1;
  width: min(92%, 1200px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 0 clamp(1.75rem, 6vw, 2.75rem);
}
.crest__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 34rem;
}
.crest__headline { display: flex; flex-direction: column; align-items: center; }

.crest__title {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  font-size: clamp(2.9rem, 11vw, 4.4rem);
  line-height: .95;
  color: var(--white);
}
.crest__title strong { font-weight: 800; font-style: italic; }

.crest__lead {
  margin-top: 1.1rem;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(254, 254, 254, .88);
}
.crest__lead strong { color: var(--white); }

.crest__cta { margin-top: 1.6rem; }

.crest__meta {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem .75rem;
  font-family: var(--font-utility);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  color: var(--white);
}
.crest__meta li { display: flex; align-items: center; gap: .75rem; }
.crest__meta li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(254, 254, 254, .55);
}

@media (min-width: 992px) {
  /* o texto ocupa a faixa livre à direita da arte; a largura em % acompanha a
     viewport, que é onde os alunos também estão ancorados */
  .crest {
    width: 100%;
    max-width: none;
    padding-inline: max(4vw, calc((100vw - 1400px) / 2));
    padding-block: 0;
    align-items: stretch;
  }
  .crest__copy {
    width: min(34%, 30rem);
    margin-left: auto;
    align-items: flex-end;
    text-align: right;
    max-width: none;
  }
  .crest__meta { justify-content: flex-end; }
  .crest__lead { font-size: 1.05rem; }
}

/* Mobile: logo menor no navbar libera altura para o título, o texto e a
   lista de categorias caberem no espaço vazio acima da foto; o botão
   continua ancorado embaixo, logo acima da faixa rolante. */
@media (max-width: 991px) {
  .brand__logo { height: 120px; }

  .crest { height: 100%; padding-top: 165px; }
  .crest__copy { height: 100%; }
  .crest__headline { width: 100%; }
  .crest__title { font-size: clamp(1.7rem, 6.5vw, 2.2rem); }
  .crest__lead { margin-top: .7rem; font-size: .76rem; line-height: 1.35; }
  .crest__meta { margin-top: .45rem; font-size: .6rem; gap: .25rem .45rem; }
  .crest__cta { margin-top: auto; }
}

.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.5rem; }
.badges li {
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .55rem 1.1rem;
  border: 1px solid rgba(42, 38, 43, .18);
  border-radius: 999px;
  background: rgba(42, 38, 43, .06);
  color: rgba(42, 38, 43, .85);
}

/* ---------- Marquee ---------- */
.marquee {
  /* mesmo verde da arte do hero: a faixa vira continuação do bloco */
  background: var(--green);
  overflow: hidden;
  padding-block: .9rem;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.3rem);
  padding-inline: 1.5rem;
  white-space: nowrap;
  color: var(--black);
}
.marquee__item i { width: 8px; height: 8px; border-radius: 999px; background: var(--black); display: block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Photo placeholder ---------- */
.photo-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black-soft);
  background-image: repeating-linear-gradient(135deg, rgba(254, 254, 254, .045) 0, rgba(254, 254, 254, .045) 2px, transparent 2px, transparent 14px);
  border: 1px solid rgba(254, 254, 254, .1);
  overflow: hidden;
  min-height: 220px;
}
.photo-placeholder span {
  font-family: var(--font-utility);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .7rem;
  color: var(--steel);
  text-align: center;
  padding: 0 1.5rem;
  line-height: 1.6;
}
.photo-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.benefits-grid__photo { position: relative; border-radius: 1.25rem; overflow: hidden; min-height: 280px; }
/* o card muda de proporção entre mobile (bem mais largo que alto) e desktop
   (bem mais alto que largo); nenhuma foto única encaixa nos dois sem cortar
   gente, então trocamos a imagem: retrato de time (paisagem) no mobile,
   comissão técnica com o troféu (retrato) no desktop, cada uma enquadrada
   para a proporção em que vai aparecer. */
.benefits-grid__photo-img--tall { display: none; object-position: center 75%; }
@media (min-width: 992px) {
  .benefits-grid__photo-img--wide { display: none; }
  .benefits-grid__photo-img--tall { display: block; }
}
.benefits-grid__photo .photo-placeholder { position: absolute; inset: 0; }
.benefits-grid__photo-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(42, 38, 43, .92), rgba(42, 38, 43, 0));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  text-transform: none;
  line-height: 1.2;
}

.benefit-card {
  border-radius: 1.25rem;
  padding: 1.75rem;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--card-border);
  transition: transform .3s ease, box-shadow .3s ease;
  transform-origin: center;
}
.benefit-card:hover { transform: translateY(-3px) scale(1.025); box-shadow: 0 16px 30px -18px rgba(42, 38, 43, .35); }
.benefit-card h3 { margin-bottom: .85rem; }
.benefit-card p { font-size: .92rem; line-height: 1.55; }

.benefit-card--green { background: var(--black); color: #fff; }
.benefit-card--green p { color: rgba(254, 254, 254, .65); }
.benefit-card--light { background: #fff; color: var(--black); box-shadow: 0 18px 40px -30px rgba(42, 38, 43, .35); }
.benefit-card--light p { color: #565056; }
.benefit-card--red { background: var(--green); color: var(--black); }
.benefit-card--red p { color: rgba(42, 38, 43, .75); }

.benefit-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  margin-bottom: 1rem;
  background: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--black);
}
.benefit-card--green .benefit-card__icon { background: rgba(255, 255, 255, .15); color: #fff; }
.benefit-card--red .benefit-card__icon { background: rgba(42, 38, 43, .12); color: var(--black); }
.benefit-card--light .benefit-card__icon { background: var(--off-white-soft); color: var(--green-deep); }

/* Os PNGs dos ícones são traços pretos sobre fundo transparente: sobre os
   cards claros e sobre o card verde o traço preto já funciona sem filtro;
   só o card escuro precisa do ícone em branco. */
.benefit-card__icon img { width: 22px; height: 22px; object-fit: contain; }
.benefit-card--green .benefit-card__icon img { filter: invert(1); }

@media (min-width: 640px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid__photo { grid-column: span 2; }
}
@media (min-width: 992px) {
  .benefits-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(160px, auto); }
  .benefits-grid__photo { grid-column: span 3; grid-row: span 2; }
  .benefit-card { grid-column: span 1; }
}

/* ---------- Methodology ---------- */
.methodology__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.pillars { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2.5rem; }
.pillar {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.1rem;
  padding: 1.5rem;
  transition: transform .3s ease, box-shadow .3s ease;
  transform-origin: center;
}
.pillar:hover { transform: translateY(-3px) scale(1.025); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .35); }
.pillar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--off-white-soft);
  color: var(--green-deep);
  margin-bottom: 1.1rem;
}
.pillar__icon svg { width: 24px; height: 24px; }
.pillar h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.pillar p { font-size: .9rem; color: var(--muted); line-height: 1.55; }

@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

/* ---------- About (Quem somos) ---------- */
.about-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--black);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
  transition: transform .3s ease;
}
.about-card:hover { transform: scale(1.015); }
.about-card__text {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 5vw, 3.25rem);
  max-width: 34rem;
}
.about-card__eyebrow { color: var(--steel); }
.about-card h2 { font-style: normal; }
.about-card .lead { color: #565056; }
.about-card__text .btn { margin-top: 1.75rem; }

.about-card__graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .75rem;
  min-height: 240px;
  background: var(--black);
  background-image: radial-gradient(rgba(254, 254, 254, .08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.about-card__graphic svg { width: 100%; height: 100%; }
.about-card__ball {
  offset-path: path("M60,210 C150,90 150,320 300,150 S420,60 460,150");
  animation: travel-ball 8s ease-in-out infinite;
}
@keyframes travel-ball {
  0%, 100% { offset-distance: 0%; }
  50% { offset-distance: 100%; }
}

@media (min-width: 768px) {
  .about-card { flex-direction: row; align-items: stretch; }
  /* o texto tem largura máxima própria, então o gráfico ocupa todo o resto do card */
  .about-card__text { flex: 0 1 auto; }
  .about-card__graphic { flex: 1 1 42%; min-width: 0; }
}

/* ---------- Stages (Turmas) ---------- */
.stages { position: relative; display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 2.5rem; }
.stages__line { display: none; }
.stage__dot {
  display: block;
  width: 12px; height: 12px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(78, 216, 85, .25);
  margin-bottom: 1.1rem;
  animation: dot-pulse 2.4s ease-in-out infinite;
}
.stage h3 { margin-bottom: .6rem; }
.stage p { font-size: .92rem; color: var(--muted); max-width: 20rem; line-height: 1.55; }
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(78, 216, 85, .25); }
  50% { box-shadow: 0 0 0 8px rgba(78, 216, 85, .12); }
}

.consult-bar {
  margin-top: 3.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-items: flex-start;
}
.consult-bar p { font-size: 1.05rem; color: var(--fg); max-width: 32rem; }

@media (min-width: 768px) {
  .stages { grid-template-columns: repeat(3, 1fr); }
  .stages__line {
    display: block;
    position: absolute;
    top: 6px; left: 0; right: 0; height: 1px;
    background: linear-gradient(to right, transparent, rgba(42, 38, 43, .4), transparent);
  }
  .consult-bar { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Gallery ticker ---------- */
.gallery-ticker {
  overflow: hidden;
  margin-top: 2.5rem;
}
.gallery-ticker__track {
  display: flex;
  width: max-content;
  gap: 1.25rem;
  animation: marquee 40s linear infinite reverse;
}
.gallery-ticker__item {
  flex: 0 0 auto;
  width: clamp(260px, 30vw, 420px);
  aspect-ratio: 3 / 4;
  border-radius: 1.1rem;
  overflow: hidden;
}
.gallery-ticker__item .photo-placeholder { width: 100%; height: 100%; transition: transform .35s ease; }
.gallery-ticker__item:hover .photo-placeholder { transform: scale(1.06); }
.gallery__note { margin-top: 3rem; font-size: 1.2rem; color: var(--muted); max-width: 38rem; margin-inline: auto; text-align: center; line-height: 1.6; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Categorias (ticker de cards) ----------
   Os cards ficam lado a lado numa trilha que rola sozinha, sem parar, em loop
   infinito (mesmo truque do .marquee: a trilha é duplicada e anima de 0 a
   -50%, então quando o primeiro conjunto some o segundo já está encostado). */
.cat-head {
  display: flex;
  justify-content: center;
}
.cat-head .section-head { margin-bottom: 0; }

.cat-carousel { margin-top: 3rem; overflow: hidden; }

.cat-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  /* espaço para a sombra dos cards não ser cortada */
  padding-block: .5rem 1.5rem;
  animation: marquee 48s linear infinite;
}
.cat-track:hover { animation-play-state: paused; }

.cat-card {
  flex: 0 0 clamp(255px, 74vw, 340px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--black);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 24px 45px -30px rgba(0, 0, 0, .55);
  transition: transform .3s ease, box-shadow .3s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 55px -28px rgba(0, 0, 0, .6);
}

/* flex: 0 0 auto + min-height: 0 impedem que uma foto quadrada estique o card:
   sem isso o mínimo automático do flex passa por cima do aspect-ratio */
.cat-card__media {
  position: relative;
  flex: 0 0 auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  background: var(--off-white-soft);
}
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; }

.cat-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  padding: 1.5rem 1.5rem 1.75rem;
}

.cat-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .9;
  font-size: clamp(2.5rem, 6vw, 3rem);
  color: var(--green-deep);
}
.cat-card__age {
  font-family: var(--font-utility);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  color: var(--steel);
}
.cat-card__desc {
  margin-top: .35rem;
  font-size: .92rem;
  line-height: 1.55;
  color: #565056;
}
/* empurra o botão para o rodapé, deixando todos alinhados entre os cards */
.cat-card__btn { margin-top: auto; padding-top: 1.25rem; }
.cat-card__btn .btn { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .cat-card:hover { transform: none; }
}

/* ---------- Steps (Como agendar) ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 3rem; }
.step__n { display: block; font-family: var(--font-display); font-weight: 900; font-size: 4.5rem; line-height: 1; color: rgba(254, 254, 254, .08); }
.step h3 { margin-top: .5rem; position: relative; margin-bottom: .7rem; font-size: 1.15rem; }
.step p { font-size: .92rem; color: var(--muted); max-width: 20rem; line-height: 1.55; }
.center-cta { text-align: center; margin-top: 3.5rem; }

@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Location ---------- */
.location-card {
  --fg: var(--white);
  --muted: rgba(254, 254, 254, .68);
  --accent: var(--green);
  margin-top: 2.5rem;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--black);
  display: grid;
  grid-template-columns: 1fr;
}
.location-card__info { padding: clamp(1.75rem, 5vw, 2.75rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; color: #fff; }
.location-card__info h3 { font-size: 1.5rem; line-height: 1.2; }
.location-card__info h3 span { display: block; color: var(--green); }
.location-card__info address { margin-top: 1.4rem; color: rgba(254, 254, 254, .75); line-height: 1.7; }
.location-card__actions { display: flex; flex-direction: column; gap: .75rem; }
.location-card__actions .btn { width: 100%; }
.location-card__ig { text-align: center; padding: .5rem; font-family: var(--font-utility); font-weight: 700; font-size: .85rem; color: rgba(254, 254, 254, .7); transition: color .2s ease; }
.location-card__ig:hover { color: var(--green); }
.location-card__map { min-height: 320px; }
.location-card__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

@media (min-width: 992px) {
  .location-card { grid-template-columns: 1fr 1.2fr; }
}

/* Variante sem mapa, para quando a unidade ainda não tem endereço público */
.location-card--simple .location-card__info { color: rgba(254, 254, 254, .85); }
@media (min-width: 992px) {
  .location-card.location-card--simple {
    grid-template-columns: 1fr;
    max-width: 40rem;
    margin-inline: auto;
  }
}

/* ---------- Final CTA ---------- */
.final-cta { position: relative; padding-block: clamp(5rem, 10vw, 8rem); overflow: hidden; text-align: center; }
.final-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.final-cta__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--black) 5%, rgba(42, 38, 43, .55) 55%, rgba(42, 38, 43, .82));
}
.final-cta__content { position: relative; max-width: 42rem; margin-inline: auto; }
.final-cta__content p { margin-top: 1.4rem; font-size: 1.1rem; color: rgba(254, 254, 254, .85); line-height: 1.6; }
.final-cta__content .btn { margin-top: 1.8rem; }
.final-cta__micro { margin-top: 1rem !important; font-size: .9rem !important; color: rgba(254, 254, 254, .6) !important; }

/* ---------- Footer ---------- */
.footer { padding-top: 4.5rem; padding-bottom: 2rem; border-top: 1px solid rgba(254, 254, 254, .08); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.footer address { margin-top: 1.25rem; font-size: .9rem; color: rgba(254, 254, 254, .6); line-height: 1.7; }
.footer__values {
  margin-top: 1.1rem;
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green);
}
.footer__label { font-family: var(--font-utility); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; color: var(--steel); margin-bottom: 1rem; }
.footer__links li { margin-bottom: .65rem; }
.footer__links a { font-size: .9rem; color: rgba(254, 254, 254, .6); transition: color .2s ease; }
.footer__links a:hover { color: var(--green); }
.footer__contact { display: block; margin-bottom: .65rem; font-size: .9rem; color: rgba(254, 254, 254, .6); transition: color .2s ease; }
.footer__contact:hover { color: var(--green); }
.footer__bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(254, 254, 254, .08);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  font-size: .75rem;
  color: rgba(254, 254, 254, .4);
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer__bottom p:last-child { max-width: 26rem; text-align: right; }
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 100;
  width: 58px; height: 58px;
  border-radius: 999px;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5);
  animation: pulse-whatsapp 2.6s ease-in-out infinite;
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 28px; height: 28px; }
@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); }
  50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* ---------- CTA modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 38, 43, .72);
  backdrop-filter: blur(3px);
}
.modal__box {
  position: relative;
  z-index: 1;
  width: min(92%, 380px);
  background: var(--off-white);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .85rem;
  transform: scale(.94);
  transition: transform .25s ease;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
}
.modal.is-open .modal__box { transform: scale(1); }
.modal__close {
  position: absolute;
  top: .75rem;
  right: .9rem;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--black);
  opacity: .6;
}
.modal__close:hover { opacity: 1; }
/* O arquivo logo.png tem bastante espaço vazio em volta do escudo (reservado
   para o texto "Escola de futebol oficial"); recorta só o escudo por cima
   dessa folga, senão aumentar a logo só aumenta o espaço em branco junto. */
.modal__logo-crop {
  width: 240px;
  height: 205px;
  overflow: hidden;
  position: relative;
}
.modal__logo {
  position: absolute;
  top: -71px;
  left: -71px;
  width: 381px;
  max-width: none;
  height: 381px;
}
.modal__text { color: var(--black); font-size: 1rem; line-height: 1.55; }

/* Lista de unidades: um botão por unidade, cada um com a sua mensagem */
.modal__units {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  max-height: 46vh;
  overflow-y: auto;
}
.modal__unit {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding-block: .8rem;
}
.modal__unit span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .72rem;
  text-transform: none;
  letter-spacing: .01em;
  opacity: .82;
}

/* ---------- Reveal on scroll (retriggers both ways) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
/* when it exits the viewport it resets so it plays again on the way back */
.reveal.is-hidden-up { opacity: 0; transform: translateY(-24px); transition-delay: 0s; }
.reveal.is-hidden-down { opacity: 0; transform: translateY(30px); transition-delay: 0s; }

/* ---------- Ambient decoration (loops back and forth) ---------- */
.drift { animation: drift 22s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-2%, 1.5%, 0) rotate(.6deg); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .drift, .whatsapp-float, .stage__dot, .about-card__ball, .gallery-ticker__track, .cat-track { animation: none !important; }
  .reveal, .reveal.is-hidden-up, .reveal.is-hidden-down { opacity: 1; transform: none; transition: none; }
}
