/* ==========================================================
   Fitness Academy Brasil - Folha de estilos (versão moderna)
   ========================================================== */
:root {
  --red: #e00f0f;
  --red-2: #ff3b3b;
  --red-dark: #a80000;
  --black: #0b0b0d;
  --ink: #15151a;
  --muted: #5b5b66;
  --line: #ececf0;
  --soft: #f6f6f8;
  --maxw: 1160px;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(10, 10, 20, .14);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Sora", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--red-2); outline-offset: 3px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Topo ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red-2), var(--red-dark));
  color: #fff;
  font: italic 800 20px var(--font-head);
  box-shadow: 0 8px 18px rgba(224, 15, 15, .35);
}
.brand__text { font: 800 15px/1.1 var(--font-head); letter-spacing: .2px; text-transform: uppercase; color: var(--ink); }
.brand__text b { color: var(--red); font-weight: 800; }
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--red); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font: 700 13px/1 var(--font-head);
  text-transform: uppercase;
  letter-spacing: .6px;
  text-decoration: none;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 12px 20px; font-size: 12px; }
.btn--red { background: linear-gradient(135deg, var(--red-2), var(--red)); color: #fff; box-shadow: 0 12px 26px rgba(224, 15, 15, .35); }
.btn--red:hover { box-shadow: 0 16px 32px rgba(224, 15, 15, .45); }
.btn--dark { background: var(--ink); color: #fff; box-shadow: 0 12px 26px rgba(0, 0, 0, .3); }
.btn--light { background: #fff; color: var(--red-dark); box-shadow: 0 12px 26px rgba(0, 0, 0, .25); }

/* ---------- Banners ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 640px;
  padding: 80px 0 150px;
  background-color: var(--black);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
  overflow: hidden;
}
/* Se existir hero-X.jpg (foto real) ela cobre a ilustração vetorial */
.hero--1 { background-image: url("../assets/img/hero-1.jpg"), url("../assets/img/hero-1.svg"); min-height: 760px; }
.hero--2 { background-image: url("../assets/img/hero-2.jpg"), url("../assets/img/hero-2.svg"); padding-bottom: 150px; }
.hero--3 { background-image: url("../assets/img/hero-3.jpg"), url("../assets/img/hero-3.svg"); min-height: 700px; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 11, 13, .92) 0%, rgba(11, 11, 13, .55) 45%, rgba(11, 11, 13, 0) 75%);
}
.hero__inner { position: relative; z-index: 1; }

.card { max-width: 500px; padding: 40px; border-radius: 24px; animation: rise .8s ease both; }
.card--red {
  background: linear-gradient(145deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  box-shadow: 0 30px 70px rgba(224, 15, 15, .35);
}
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  font: 700 11px/1 var(--font-head);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.card--red h1 { font: 800 clamp(28px, 3.4vw, 40px)/1.1 var(--font-head); margin-bottom: 18px; letter-spacing: -.5px; }
.card--red p { font-size: 16px; line-height: 1.7; opacity: .95; margin-bottom: 28px; }
.card--light { background: rgba(255, 255, 255, .96); box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.card__title { color: var(--red); font: 800 clamp(26px, 3vw, 36px)/1.1 var(--font-head); letter-spacing: -.5px; margin-bottom: 14px; }
.card__lead { color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.6; margin-bottom: 26px; }

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

/* ---------- Painéis sobrepostos ---------- */
.panel {
  background: #fff;
  border-radius: 28px;
  padding: 52px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.panel__title { font: 800 clamp(22px, 2.6vw, 30px)/1.2 var(--font-head); text-transform: uppercase; letter-spacing: -.3px; margin-bottom: 10px; }
.panel__subtitle { color: var(--red); font-weight: 700; font-size: 15px; margin-bottom: 44px; }

/* ---------- Serviços ---------- */
.services { position: relative; z-index: 2; margin-top: -90px; padding-bottom: 80px; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  padding: 34px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service__icon {
  width: 76px; height: 76px;
  margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 22px;
  background: #fff1f1;
  color: var(--red);
}
.service__icon svg { width: 42px; height: 42px; }
.service h3 { font: 700 15px/1.4 var(--font-head); text-transform: uppercase; margin-bottom: 12px; }
.service p { font-size: 15px; color: var(--muted); }

/* ---------- Cases ---------- */
.cases { padding: 60px 0 90px; background: #fff; }
.line-title {
  display: flex; align-items: center; gap: 20px;
  color: var(--red);
  font: 800 15px/1 var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}
.line-title::before, .line-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cases__subtitle { text-align: center; font: 800 clamp(18px, 2.2vw, 24px)/1.3 var(--font-head); margin-bottom: 44px; letter-spacing: -.3px; }
.logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.logos li {
  display: flex; align-items: center; justify-content: center;
  height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.logos li:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.logos img { max-height: 70px; width: auto; max-width: 100%; object-fit: contain; }
.img-fallback {
  font: 800 13px/1.25 var(--font-head);
  text-transform: uppercase;
  letter-spacing: .6px;
  text-align: center;
  color: var(--ink);
}

/* ---------- FAQ ---------- */
.faq { position: relative; z-index: 2; margin-top: -90px; padding-bottom: 80px; }
.panel--faq { text-align: left; padding: 44px 36px 24px; max-width: 900px; margin: 0 auto; }
.panel--faq .panel__title { text-align: center; margin-bottom: 24px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
  font: 600 16px/1.4 var(--font-head);
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff1f1;
  color: var(--red);
  font: 700 20px/1 var(--font-head);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.faq__item[open] summary::after { content: "–"; background: var(--red); color: #fff; }
.faq__item summary:hover { color: var(--red); }
.faq__item p { padding: 0 52px 22px 4px; color: var(--muted); font-size: 15px; line-height: 1.75; }

/* ---------- Rodapé ---------- */
.footer {
  background: linear-gradient(135deg, var(--red-dark), #6d0000);
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
  display: flex; flex-direction: column; gap: 4px;
}
.footer strong, .footer span { font-weight: 700; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .5);
  z-index: 70;
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 32px; height: 32px; }
.whatsapp-float::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================
   Responsivo
   ========================================================== */
@media (max-width: 992px) {
  .logos { grid-template-columns: repeat(3, 1fr); }
  .nav { gap: 22px; }
}

@media (max-width: 767px) {
  .container { padding: 0 18px; }
  .topbar__inner { height: 66px; }
  .nav { display: none; }
  .topbar__inner .btn { margin-left: auto; }
  .brand__text { font-size: 13px; }
  .brand__mark { width: 36px; height: 36px; }

  .hero, .hero--1, .hero--2, .hero--3 {
    min-height: 0;
    padding: 260px 0 120px;
    align-items: flex-end;
    background-position: 78% top;
    background-size: auto 420px, auto 420px;
  }
  .hero::before { background: linear-gradient(180deg, rgba(11, 11, 13, .1) 0%, rgba(11, 11, 13, .75) 38%, rgba(11, 11, 13, .96) 100%); }
  .card { padding: 28px 22px; max-width: 100%; border-radius: 20px; }

  .services, .faq { margin-top: -70px; padding-bottom: 56px; }
  .panel { padding: 36px 18px; border-radius: 22px; }
  .services__grid { grid-template-columns: 1fr; gap: 16px; }
  .service { padding: 28px 20px; }

  .cases { padding: 44px 0 64px; }
  .logos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .logos li { height: 96px; padding: 12px; }

  .panel--faq { padding: 34px 18px 14px; }
  .faq__item summary { font-size: 15px; padding: 18px 2px; }
  .faq__item p { padding-right: 8px; }

  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

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

/* ---------- Página 404 ---------- */
.notfound { text-align: center; padding: 100px 24px 130px; }
.notfound h1 { font: 800 clamp(64px, 14vw, 120px)/1 var(--font-head); color: var(--red); }
.notfound p { margin: 14px 0 30px; font-size: 18px; color: var(--muted); }
