/* =========================================================
   FORJA ACADEMIA — preto, vermelho e branco
   ========================================================= */

:root {
  --black: #000000;
  --ink: #0d0d0d;
  --graphite: #1a1a1a;
  --line: #2c2c2c;
  --red: #e10a1d;
  --red-dark: #b00014;
  --white: #ffffff;
  --paper: #f4f4f4;
  --muted: #a8a8a8;
  --text-dark: #4a4a4a;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; background: var(--graphite); }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--red); color: var(--white); padding: .75rem 1rem;
}
.skip-link:focus { left: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; font-stretch: 100%;
  padding: .85rem 1.6rem;
  border: 2px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--big { padding: 1.05rem 2rem; font-size: 1.1rem; }
.btn--small { padding: .55rem 1.1rem; font-size: .95rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--red); color: var(--white);
  box-shadow: 0 8px 24px rgba(225, 10, 29, .35);
}
.btn--primary:hover { background: var(--red-dark); }

.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: var(--white); color: var(--black); }

.btn--outline { color: var(--white); border-color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--black); }

/* ---------- Cabeçalho ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .3s;
}
.header.is-solid { background: var(--black); border-bottom: 1px solid var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: 1.6rem; font-weight: 900; font-stretch: 112%;
  letter-spacing: -.02em; text-decoration: none; color: var(--white);
}
.logo__mark {
  width: 22px; height: 22px; background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 55% 55%, 55% 100%, 0 100%);
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) {
  color: var(--white); text-decoration: none; font-weight: 600; font-size: .98rem;
  padding-block: .4rem; border-bottom: 2px solid transparent; transition: border-color .2s;
}
.nav a:not(.btn):hover { border-color: var(--red); }

.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--white); transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  color: var(--white); background: var(--black);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.7) 45%, rgba(0,0,0,.25) 100%),
    linear-gradient(0deg, rgba(0,0,0,.8) 0%, transparent 40%);
}

.hero__title {
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  font-weight: 900; font-stretch: 112%;
  line-height: .98; letter-spacing: -.035em;
  max-width: 14ch;
  animation: rise .8s cubic-bezier(.2,.7,.2,1) both;
}
.hero__title-red { color: var(--red); }

.hero__lead {
  margin-top: 1.5rem; max-width: 52ch;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #e6e6e6;
  animation: rise .8s .12s cubic-bezier(.2,.7,.2,1) both;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem;
  animation: rise .8s .24s cubic-bezier(.2,.7,.2,1) both;
}
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 1rem 3rem;
  margin-top: 3.5rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.25); max-width: 640px;
  animation: rise .8s .36s cubic-bezier(.2,.7,.2,1) both;
}
.hero__stats dt { font-size: .9rem; color: var(--muted); order: 2; }
.hero__stats dd { font-size: 2rem; font-weight: 800; font-stretch: 110%; line-height: 1.1; }
.hero__stats div { display: flex; flex-direction: column; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Faixa de oferta ---------- */
.ribbon { background: var(--red); color: var(--white); }
.ribbon__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: .9rem; font-size: 1.02rem;
}
.ribbon a {
  flex-shrink: 0; font-weight: 800; text-decoration: none;
  background: var(--black); padding: .5rem 1.1rem; border-radius: var(--radius);
}
.ribbon a:hover { background: var(--white); color: var(--black); }

/* ---------- Seções ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--dark { background: var(--black); color: var(--white); }

.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__title {
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  font-weight: 800; font-stretch: 108%;
  line-height: 1.05; letter-spacing: -.025em;
}
.section__sub { margin-top: 1rem; font-size: 1.15rem; color: var(--text-dark); }
.section--dark .section__sub { color: var(--muted); }

/* ---------- Sobre ---------- */
.about__grid { display: grid; gap: 3rem; align-items: center; }
.about__media { position: relative; padding-bottom: 3rem; }
.about__media > img:first-child { width: 88%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about__media-small {
  position: absolute; right: 0; bottom: 0; width: 46%;
  aspect-ratio: 3 / 4; object-fit: cover;
  border: 6px solid var(--white); border-radius: var(--radius);
}
.about__text > p { margin-top: 1.4rem; max-width: 56ch; color: var(--text-dark); }

.checklist { margin-block: 1.8rem 2.2rem; display: grid; gap: .8rem; }
.checklist li { position: relative; padding-left: 2rem; font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 100 24 12 12 0 000-24zm-2 17l-5-5 1.8-1.8L10 13.4l7.2-7.2L19 8l-9 9z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 100 24 12 12 0 000-24zm-2 17l-5-5 1.8-1.8L10 13.4l7.2-7.2L19 8l-9 9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Benefícios ---------- */
.benefits__grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.benefit { background: var(--black); padding: 2rem 1.75rem; transition: background .2s; }
.benefit:hover { background: var(--graphite); }
.benefit svg {
  width: 38px; height: 38px; margin-bottom: 1.2rem;
  fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.benefit h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 105%; margin-bottom: .5rem; }
.benefit p { color: var(--muted); font-size: 1rem; }

/* ---------- Galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--black); }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.4) contrast(1.05); transition: filter .4s; }
.gallery figure:hover img { filter: none; }

/* ---------- Planos ---------- */
.plans { background: var(--paper); }
.plans .section__head { max-width: none; text-align: center; margin-inline: auto; }
.plans .section__head .section__sub { margin-inline: auto; max-width: 52ch; }

.switch {
  display: inline-flex; margin-top: 2rem; padding: 5px;
  background: var(--black); border-radius: 999px;
}
.switch__btn {
  font: inherit; font-weight: 700; font-size: .98rem;
  color: var(--white); background: none; border: 0; cursor: pointer;
  padding: .6rem 1.4rem; border-radius: 999px; transition: background .2s;
}
.switch__btn.is-active { background: var(--red); }
.switch__tag { font-size: .8rem; background: var(--white); color: var(--black); padding: .1rem .4rem; border-radius: 4px; margin-left: .3rem; }

.plans__grid { display: grid; gap: 1.5rem; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--black); color: var(--white);
  padding: 2.2rem 1.9rem; border-radius: 10px;
  border: 2px solid transparent;
}
.plan h3 { font-size: 1.6rem; font-weight: 800; font-stretch: 108%; }
.plan__desc { margin-top: .3rem; color: var(--muted); font-size: .98rem; min-height: 3em; }
.plan__price { display: flex; align-items: baseline; gap: .25rem; margin-block: 1.4rem 1.6rem; }
.plan__price small { font-size: 1.2rem; font-weight: 700; }
.plan__price span { font-size: 3.6rem; font-weight: 900; font-stretch: 112%; line-height: 1; letter-spacing: -.03em; }
.plan__price em { font-style: normal; color: var(--muted); }
.plan ul { display: grid; gap: .7rem; margin-bottom: 2rem; flex: 1; }
.plan li { padding-left: 1.7rem; position: relative; font-size: 1rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 900; }
.plan li.off { color: #6d6d6d; text-decoration: line-through; }
.plan li.off::before { content: "–"; color: #6d6d6d; }

.plan--featured {
  border-color: var(--red);
  box-shadow: 0 24px 60px rgba(225, 10, 29, .3);
}
.plan__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: var(--white);
  font-weight: 800; font-size: .88rem; padding: .35rem 1rem; border-radius: 999px; white-space: nowrap;
}
.plans__note { margin-top: 2.2rem; text-align: center; color: var(--text-dark); font-size: .98rem; }

/* ---------- Depoimentos ---------- */
.slider { max-width: 820px; }
.slider__viewport, #slider { overflow: hidden; }
.slider__track { display: flex; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.quote { flex: 0 0 100%; padding-right: 1px; }
.quote blockquote {
  font-size: clamp(1.4rem, 3.4vw, 2.1rem); font-weight: 600; font-stretch: 100%;
  line-height: 1.3; letter-spacing: -.01em;
  padding-left: 1.5rem; border-left: 4px solid var(--red);
}
.quote figcaption { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; color: var(--muted); font-size: .95rem; }
.quote figcaption strong { display: block; color: var(--white); font-size: 1.05rem; }
.avatar {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: grid; place-items: center; font-weight: 800; font-size: 1rem;
}

.slider__controls { display: flex; align-items: center; gap: 1.2rem; margin-top: 2.5rem; }
.slider__btn {
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.2rem;
  color: var(--white); background: none; border: 2px solid var(--line); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.slider__btn:hover { background: var(--red); border-color: var(--red); }
.slider__dots { display: flex; gap: .6rem; }
.slider__dot {
  width: 12px; height: 12px; padding: 0; border-radius: 50%;
  background: var(--line); border: 0; cursor: pointer; transition: background .2s, width .2s;
}
.slider__dot.is-active { background: var(--red); width: 30px; border-radius: 6px; }

/* ---------- Matrícula ---------- */
.signup { background: var(--red); color: var(--white); }
.signup__grid { display: grid; gap: 3rem; align-items: center; }
.signup__text > p { margin-top: 1.2rem; max-width: 50ch; font-size: 1.15rem; }
.checklist--light li::before { background: var(--white); }

.form { background: var(--black); padding: 2rem 1.75rem; border-radius: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; margin-bottom: .4rem; font-weight: 700; font-size: .95rem; }
.field input, .field select {
  width: 100%; font: inherit; color: var(--white);
  background: var(--graphite); border: 2px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1rem; transition: border-color .2s;
}
.field input::placeholder { color: #777; }
.field input:focus, .field select:focus { outline: none; border-color: var(--red); }
.field.has-error input { border-color: #ff5a68; }
.field__error { display: block; min-height: 1.2em; margin-top: .3rem; color: #ff8a94; font-size: .88rem; }
.form__note { margin-top: 1rem; text-align: center; color: var(--muted); font-size: .88rem; }
.form__success {
  margin-top: 1.2rem; padding: 1rem; border-radius: var(--radius);
  background: var(--white); color: var(--black); font-weight: 600; text-align: center;
}

/* ---------- Rodapé ---------- */
.footer { background: var(--black); color: var(--white); padding-top: 4rem; border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: 2.2rem; padding-bottom: 3rem; }
.footer h3 { font-size: 1rem; margin-bottom: .8rem; }
.footer p, .footer a { color: var(--muted); font-size: .98rem; text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer .logo { color: var(--white); }
.footer__tag { margin-top: .8rem; }
.footer__legal { padding-block: 1.5rem 6rem; border-top: 1px solid var(--line); font-size: .88rem; color: #777; }

/* ---------- Botão flutuante ---------- */
.float-cta {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  background: var(--red); color: var(--white); text-decoration: none;
  font-weight: 800; padding: .95rem 1.5rem; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(225,10,29,.5);
  transform: translateY(150%); transition: transform .35s;
}
.float-cta.is-visible { transform: none; }
.float-cta:hover { background: var(--red-dark); }

/* ---------- Responsivo ---------- */
@media (min-width: 640px) {
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .benefits__grid { grid-template-columns: repeat(3, 1fr); }
  .plans__grid { grid-template-columns: repeat(3, 1fr); }
  .plan--featured { transform: translateY(-14px); padding-block: 2.8rem; }
  .signup__grid { grid-template-columns: 1.1fr .9fr; gap: 5rem; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .float-cta { display: none; }
  .footer__legal { padding-bottom: 1.5rem; }
}

@media (max-width: 899px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%); visibility: hidden;
    transition: transform .3s, visibility .3s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav__cta { margin-top: 1.2rem; padding: 1rem; font-size: 1.05rem; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery img { aspect-ratio: 16 / 10; }
  .ribbon__inner { flex-direction: column; text-align: center; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
