/* =========================================================
   GRUPO ARENA — Arena Fitness Club (recriação)
   Tipografia: Druk Wide Bold (títulos) · DM Mono (funcional)
   ========================================================= */

/* Druk Wide Bold — webfont do projeto Arena */
@font-face {
  font-family: "Druk Wide";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/DrukWideBold.ttf") format("truetype");
}

/* DM Mono — auto-alojado (self-hosted) */
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/dmmono-400-aFTU7PB1QTsUX8KYthSQBK6PYK3EXw.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/dmmono-400-aFTU7PB1QTsUX8KYthqQBK6PYK0.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/dmmono-500-aFTR7PB1QTsUX8KYvumzEY2tbYf-Vlh3uA.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/dmmono-500-aFTR7PB1QTsUX8KYvumzEYOtbYf-Vlg.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --yellow: #fcea2a;
  --black: #000000;
  --near-black: #0a0a0a;
  --white: #ffffff;
  --ink: #111111;
  --ink-soft: #5b5b5b;
  --line: rgba(0, 0, 0, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);

  --font-display: "Druk Wide", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Tamanhos de título calibrados ao original (Druk Wide, fluidos ~vw) */
  --fs-display: clamp(1.55rem, 2.85vw, 3rem);   /* hero + títulos de secção */
  --fs-marquee: clamp(3rem, 9vw, 9rem);
  --fs-cardtitle: clamp(0.85rem, 1.38vw, 1.3rem); /* serviços, modalidades, espaços */
  --fs-stat: clamp(1rem, 1.45vw, 1.35rem);

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-mono);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografia base ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.14;
  margin: 0;
}
.display--hero { font-size: var(--fs-display); }
.display--section { font-size: var(--fs-display); }
.display--light { color: var(--white); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0;
}
.eyebrow--yellow { color: var(--yellow); }
.eyebrow--line {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow--line::before {
  content: "";
  width: 44px;
  height: 2px;
  background: var(--yellow);
}

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 34px;
  border: none;
  border-radius: 40px;
  background: var(--btn-bg);
  color: var(--black);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  will-change: transform;
}
.btn--yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(252, 234, 42, 0.35);
}
.btn:active { transform: translateY(0); }
.btn--block { width: 100%; }

/* ---------- Botão circular ---------- */
.circle-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.circle-btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.circle-btn--light { border-color: var(--line-light); color: var(--white); }
.circle-btn--light:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 30%, rgba(0,0,0,0.82) 62%, rgba(0,0,0,0.95) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.35));
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  min-height: 100vh;
  padding-block: clamp(110px, 14vh, 160px) clamp(60px, 8vh, 90px);
}
.hero__content { max-width: 540px; }
.eyebrow--yellow { margin-bottom: 22px; }
.display--hero { margin-bottom: 26px; }
.hero__lead {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 460px;
  margin: 0 0 34px;
}
.hero__content .btn { margin-bottom: 48px; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 540px;
}
.stat {
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 0;
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-stat);
  color: var(--yellow);
  line-height: 1.2;
  margin-bottom: 12px;
}
.stat__label {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

/* Form */
.hero__form-wrap { width: 100%; max-width: 440px; justify-self: end; }
.hero__logo { margin: 0 0 30px auto; }
.form__intro {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 26px;
}
.field { position: relative; margin-bottom: 30px; }
.field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 8px 0;
  outline: none;
  transition: border-color 0.3s var(--ease);
}
.field input:focus { border-bottom-color: var(--yellow); }
.field label {
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
  transition: transform 0.25s var(--ease), font-size 0.25s var(--ease), color 0.25s var(--ease);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  transform: translateY(-26px);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--yellow);
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 30px;
  line-height: 1.5;
}
.consent input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  flex: 0 0 auto;
  margin-top: 2px;
  position: relative;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.consent input:checked { background: var(--yellow); border-color: var(--yellow); }
.consent input:checked::after {
  content: "";
  position: absolute; left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--black);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form__actions { display: flex; justify-content: center; }

/* Mensagem de sucesso do formulário */
.form__success { animation: fadeUp 0.5s var(--ease) both; }
.form__success::before {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--yellow);
  margin-bottom: 22px;
}
.form__success-title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--yellow);
  margin: 0 0 12px;
}
.form__success-text {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 42ch;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   SERVIÇOS
   ========================================================= */
.services { background: var(--white); padding-block: clamp(64px, 9vw, 120px); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(34px, 4.5vw, 64px) clamp(30px, 4vw, 56px);
}
.service__icon { height: 60px; width: auto; margin-bottom: 22px; }
.service__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--fs-cardtitle);
  line-height: 1.4;
  letter-spacing: 0;
  margin: 0 0 14px;
  color: var(--ink);
}
.service__text {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 34ch;
}
.services__cta { display: flex; justify-content: center; margin-top: clamp(48px, 6vw, 80px); }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: clamp(24px, 4vw, 48px);
}
.marquee--light { background: var(--white); }
.marquee__track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 26s linear infinite;
}
.marquee__item {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--fs-marquee);
  line-height: 1;
  color: var(--ink);
  padding-right: 0.12em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee--cta { display: flex; align-items: center; }
.marquee__cta {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.marquee__cta:hover { transform: translate(-50%, calc(-50% - 2px)); }

/* =========================================================
   MODALIDADES
   ========================================================= */
.modalidades { background: var(--black); color: var(--white); padding-block: clamp(64px, 9vw, 120px); }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .eyebrow { margin-bottom: 16px; }

/* Slider genérico */
.slider { position: relative; }
.slider__viewport { overflow: hidden; }
.slider__track {
  display: flex;
  gap: clamp(18px, 2.2vw, 30px);
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.slider__nav { display: flex; gap: 14px; margin-top: 30px; }

.mod-card { flex: 0 0 auto; width: clamp(260px, 40%, 380px); }
.mod-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}
.mod-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.mod-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(252,234,42,0) 35%, rgba(252,234,42,0.55) 100%);
  mix-blend-mode: multiply;
}
.mod-card:hover .mod-card__media img { transform: scale(1.05); }
.mod-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--fs-cardtitle);
  line-height: 1.4;
  letter-spacing: 0;
  margin: 18px 0 0;
}

/* Partners */
.partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 7vw, 90px);
  flex-wrap: wrap;
  margin-top: clamp(48px, 7vw, 90px);
}
.partners img {
  height: clamp(30px, 4vw, 44px);
  width: auto;
  object-fit: contain;
  opacity: 0.92;
  filter: grayscale(1) brightness(1.6);
  transition: opacity 0.3s var(--ease), filter 0.3s var(--ease);
}
.partners img:hover { opacity: 1; filter: none; }

/* =========================================================
   ESPAÇOS
   ========================================================= */
.espacos { background: var(--black); padding-block: clamp(30px, 5vw, 70px) clamp(64px, 9vw, 110px); }
.slider--espacos { padding-inline: clamp(16px, 5vw, 60px); max-width: calc(var(--container) + 120px); margin: 0 auto; }
.slider--espacos .slider__track { gap: clamp(20px, 3vw, 40px); }
/* uma imagem completa de cada vez — nunca cortada */
.espaco-card { flex: 0 0 100%; width: 100%; }
.espaco-card__media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
}
.espaco-card__media img { width: 100%; height: 100%; object-fit: cover; }
.espaco-card__caption { margin-top: 20px; color: var(--white); }
.espaco-card__kicker {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--fs-cardtitle);
  line-height: 1.4;
  letter-spacing: 0;
}
.espaco-card__name {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}
.slider__arrow {
  position: absolute;
  top: 0;
  bottom: 84px; /* reserva a legenda para centrar a seta na imagem */
  margin-block: auto;
  z-index: 3;
}
.slider__arrow--prev { left: clamp(24px, 6vw, 84px); }
.slider__arrow--next { right: clamp(24px, 6vw, 84px); }

/* =========================================================
   TESTEMUNHOS
   ========================================================= */
.testemunhos { background: var(--white); padding-block: clamp(64px, 9vw, 120px); }
.testemunhos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(22px, 3vw, 36px);
}
.quote {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
  margin: 0;
  background: #fff;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.quote:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
  transform: translateY(-3px);
  border-color: rgba(0,0,0,0.18);
}
.quote__stars { height: 16px; width: auto; margin-bottom: 20px; }
.quote blockquote {
  margin: 0 0 24px;
  font-size: 0.9rem;
  color: #2b2b2b;
  line-height: 1.7;
}
.quote figcaption { display: flex; flex-direction: column; gap: 3px; }
.quote__name {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
}
.quote__club { font-size: 0.75rem; color: var(--ink-soft); letter-spacing: 0.04em; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--black); color: var(--white); padding-block: clamp(64px, 9vw, 110px); }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.footer__left .display { margin-bottom: clamp(36px, 5vw, 56px); }
.locations { display: flex; flex-direction: column; gap: 30px; }
.location {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-light);
}
.location:last-child { border-bottom: none; }
.location__pin { width: 26px; height: auto; }
.location__name {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--white);
}
.location__addr {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}
.location__go {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--black);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.location__go:hover { background: var(--yellow); border-color: var(--yellow); transform: translateY(-2px); }
.footer__map img { border-radius: var(--radius); width: 100%; }

/* =========================================================
   FLUTUANTES
   ========================================================= */
.whatsapp {
  position: fixed;
  left: 22px; bottom: 22px;
  width: 54px; height: 54px;
  z-index: 50;
  transition: transform 0.3s var(--ease);
}
.whatsapp img { width: 100%; height: 100%; }
.whatsapp:hover { transform: scale(1.08); }

.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 1.1rem;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--yellow); border-color: var(--yellow); }

/* =========================================================
   REVEAL (scroll)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 991px) {
  .hero__grid { grid-template-columns: 1fr; min-height: auto; gap: 48px; }
  .hero__content { max-width: 620px; }
  .hero__form-wrap { justify-self: stretch; max-width: 100%; }
  .hero__logo { margin-inline: 0 auto; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__map { order: -1; }
  .mod-card { width: clamp(240px, 60%, 340px); }
  .espaco-card { width: clamp(260px, 84%, 640px); }
}

@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; max-width: 100%; }
  .stat { padding: 24px 18px; }
  .testemunhos__grid { grid-template-columns: 1fr; }
  .slider__arrow { top: auto; bottom: -70px; transform: none; }
  .slider__arrow--prev { left: var(--gutter); }
  .slider__arrow--next { left: calc(var(--gutter) + 66px); right: auto; }
  .espacos { padding-bottom: 110px; }
  .marquee__cta { position: static; transform: none; display: inline-flex; margin: 0 auto; }
  .marquee--cta { flex-direction: column; gap: 24px; }
  .partners { gap: 34px 40px; }
  .location { grid-template-columns: auto 1fr; }
  .location__go { grid-column: 2; justify-self: start; margin-top: 4px; }
}

/* Tipografia fluida em ecrãs estreitos (espelha os breakpoints do original) */
@media (max-width: 767px) {
  :root {
    --fs-display: clamp(1.75rem, 8vw, 2.55rem);
    --fs-marquee: clamp(2.6rem, 14vw, 5.5rem);
    --fs-cardtitle: clamp(1rem, 4.6vw, 1.3rem);
    --fs-stat: clamp(1.4rem, 7.5vw, 2rem);
  }
}

/* =========================================================
   MOVIMENTO REDUZIDO
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
