/* =========================================================
   Agatha Mercadante — Beach Tennis
   Mobile first
   ========================================================= */

:root {
  --teal: #78D3D3;
  --teal-dark: #4FB5B5;
  --dark: #262626;
  --card: #333333;
  --card-2: #2E2E2E;
  --white: #FFFFFF;
  --text-soft: #E4E4E4;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Julius Sans One", var(--font);

  --gutter: 16px;
  --container: 1120px;
  --radius: 14px;

  /* celular: hero vertical (vídeo 9:16, limitada à altura da tela); desktop: wide (ver media query) */
  --hero-h: min(177.78vw, 100svh);
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, video, svg, iframe { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: var(--hero-h);
  overflow: hidden;
  background: #000 url("../assets/video-vertical-poster.jpg") center / cover no-repeat;
}

/* o vídeo só aparece quando estiver rodando de fato; até lá fica a capa
   (assim o botão de play nativo nunca aparece quando o autoplay é bloqueado) */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero__video.is-playing { opacity: 1; }

/* esconde o botão de play nativo quando o celular bloqueia o autoplay */
.hero__video::-webkit-media-controls,
.hero__video::-webkit-media-controls-panel,
.hero__video::-webkit-media-controls-overlay-play-button,
.hero__video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0 !important;
}

/* Gradiente preto nos cantos, clareando no centro */
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 75% at 50% 50%, rgba(0,0,0,0) 0%, rgba(0,0,0,.18) 50%, rgba(0,0,0,.78) 100%),
    linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,0) 38%, rgba(0,0,0,0) 58%, rgba(0,0,0,.7) 100%);
}

.hero__content {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
}

.hero__name {
  position: absolute;
  top: 7.5vw;
  left: 8vw;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .95;
}
.hero__first {
  display: block;
  color: var(--teal);
  font-size: clamp(33px, 9.46vw, 101px);
  letter-spacing: .01em;
}
.hero__last {
  display: block;
  color: var(--white);
  font-size: clamp(15.4px, 4.57vw, 48.4px);
  letter-spacing: .01em;
}

.hero__scroll {
  position: absolute;
  top: 7vw;
  right: 7vw;
  width: clamp(24px, 6.3vw, 45px);
  opacity: .85;
  transition: opacity .2s;
}
.hero__scroll:hover { opacity: 1; }
.hero__scroll img { width: 100%; height: auto; animation: bob 2.2s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

.hero__sport,
.hero__ghost {
  position: absolute;
  left: 50%;
  font-family: var(--font-display);
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: .2em;
  /* compensa o espaçamento após a última letra para centralizar */
  transform: translateX(calc(-50% + .1em));
  line-height: 1;
}
.hero__sport {
  bottom: 18%;
  z-index: 2;
  color: var(--white);
  font-size: clamp(26px, 7.6vw, 104px);
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero__ghost {
  bottom: -.3em;
  z-index: 1;
  color: rgba(255,255,255,.1);
  font-size: clamp(30px, 9.4vw, 128px);
  text-transform: uppercase;
}

/* Escurece a hero conforme o módulo de baixo sobe */
.hero__dim {
  position: absolute;
  inset: 0;
  background: #0d0d0d;
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   MÓDULO QUE COBRE A HERO
   ========================================================= */
.cover {
  position: relative;
  z-index: 1;
  background: var(--dark);
}

.ball-stage {
  position: relative;
  z-index: 3;
  height: 70px; /* sobrescrito via JS */
  pointer-events: none;
}

.ball {
  position: absolute;
  top: 0;
  left: 50%;
  width: 300px; /* sobrescrito via JS */
  height: auto;
  margin-left: -150px;
  transform-origin: 50% 50%;
  will-change: transform;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.45));
}

.rest {
  position: relative;
  z-index: 1;
  background: var(--dark);
}

/* =========================================================
   PERFIL
   ========================================================= */
.profile {
  --cw: min(96cqw, 560px);
  position: relative;
  container-type: inline-size;
  padding-bottom: 28px;
  isolation: isolate;
}

/* Faixa turquesa + linhas de quadra atrás do losango */
.profile__band {
  position: absolute;
  left: 0;
  right: 0;
  z-index: -1;
  top: calc(var(--cw) * 1.019 * .18);
  height: calc(var(--cw) * 1.019 * .68);
  background: linear-gradient(180deg,
    var(--teal) 0 56%,
    transparent 56% 63%,
    var(--teal) 63% 67%,
    transparent 67% 76%,
    var(--teal) 76% 78.5%,
    transparent 78.5% 90%,
    var(--teal) 90% 91.5%,
    transparent 91.5%);
}

.profile__card {
  position: relative;
  width: var(--cw);
  margin-inline: auto;
  container-type: inline-size;
}

.profile__photo { width: 100%; height: auto; }

.profile__info {
  position: absolute;
  top: 37.5%;
  left: 44.5%;
  right: 6%;
  color: var(--white);
}
.profile__name {
  color: var(--teal);
  font-weight: 800;
  font-size: 9.6cqw;
  line-height: 1.05;
}
.profile__age {
  margin-top: 1.4cqw;
  font-weight: 700;
  font-size: 3.6cqw;
  line-height: 1.2;
}
.profile__tagline {
  font-weight: 300;
  font-size: 4.9cqw;
  line-height: 1.22;
  max-width: 40cqw;
}

/* =========================================================
   SEÇÕES / CARDS
   ========================================================= */
.section { padding-block: 28px 36px; }
.section--tight { padding-top: 8px; }

.section__title {
  margin-bottom: 22px;
  text-align: center;
  color: var(--teal);
  font-weight: 800;
  font-size: clamp(22px, 6vw, 40px);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.1;
}
.section__title--dark { color: var(--dark); }

.cards {
  display: grid;
  gap: 14px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 20px 26px;
  text-align: center;
  color: var(--text-soft);
  font-weight: 300;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.card__title {
  margin: 0 auto 18px;
  max-width: 17em;
  color: var(--white);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
}

.card--media { padding-inline: 14px; }
.card__video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.card__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.card__text { margin-top: 18px; padding-inline: 6px; }

/* =========================================================
   CONQUISTAS (slider infinito)
   ========================================================= */
.slider { position: relative; }

/* margem = gap do track: o card anterior fica escondido, o próximo aparece */
.slider__viewport {
  margin-inline: -16px;
  padding-inline: 16px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}
.slider__viewport.is-dragging { cursor: grabbing; }

.slider__track {
  display: flex;
  gap: 16px;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.conq {
  position: relative;
  flex: 0 0 auto;
  width: min(70vw, 290px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 22px;
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

/* topo turquesa com curva */
.conq__top {
  position: absolute;
  inset: 0 0 auto 0;
  height: 128px;
  z-index: -1;
  background: var(--teal);
  border-radius: 0 0 50% 50% / 0 0 34px 34px;
}

.conq__year {
  margin-top: 14px;
  min-height: 1.4em;
  color: var(--dark);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .02em;
}

.conq__ball {
  position: relative;
  display: grid;
  place-items: center;
  width: 136px;
  margin-top: 4px;
}
.conq__ball img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.35));
  pointer-events: none;
}
.conq__place {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-top: 4px;
  color: #134C4E;
  font-weight: 800;
  font-size: 62px;
  line-height: 1;
  -webkit-text-stroke: 2px rgba(255,255,255,.75);
  paint-order: stroke fill;
  text-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.conq__place--text { font-size: 26px; }

.conq__title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.9em;
  margin: 18px 16px 12px;
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
}

.conq__tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--dark);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
}

.slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.slider__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  max-width: 300px;
}
.slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  cursor: pointer;
  transition: width .3s, background-color .3s;
}
.slider__dot[aria-selected="true"] { width: 20px; background: var(--white); }

.slider__arrow {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1.5px solid rgba(120,211,211,.55);
  border-radius: 50%;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.slider__arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.slider__arrow:hover { background: var(--teal); color: var(--dark); }

/* =========================================================
   CORPO TÉCNICO
   ========================================================= */
.team {
  position: relative;
  padding-top: 40px;
  background: var(--teal) url("../assets/background.svg") center / cover no-repeat;
  overflow: hidden;
}

.team__stage {
  max-width: 600px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.team__names {
  display: flex;
  justify-content: space-between;
  padding-inline: 2%;
}

.coach {
  width: 33%;
  padding-top: 18px;
  text-align: center;
  color: var(--dark);
}
.coach--mid { padding-top: 0; }
.coach__name {
  font-weight: 700;
  font-size: clamp(15px, 4.2vw, 22px);
  line-height: 1.15;
}
.coach__role {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(38,38,38,.12);
  font-weight: 500;
  font-size: 11px;
}

.team__photo {
  width: 100%;
  height: auto;
  margin-top: 10px;
}

/* =========================================================
   PATROCÍNIOS / PARCEIROS
   ========================================================= */
/* respiro igual entre título, conteúdo e a próxima seção */
.section.sponsors,
.section.partners { --space: clamp(56px, 9vw, 120px); padding-block: calc(var(--space) / 2); }
.sponsors .section__title,
.partners .section__title { margin-bottom: var(--space); }

.sponsors__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sponsors__joog { width: 76px; height: auto; border-radius: 12px; }
.sponsors__sushi { width: 128px; height: auto; }


.partners__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(42vw, 200px);
  padding: 18px 8px 16px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  text-align: center;
}
.partner__name {
  color: var(--white);
  font-weight: 700;
  font-size: clamp(15px, 4.2vw, 20px);
  line-height: 1.15;
}
.partner__photo {
  width: 64px;
  height: 64px;
  margin-block: 14px;
  border-radius: 50%;
  object-fit: cover;
}
.partner__role {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--dark);
  font-weight: 500;
  font-size: 11px;
  white-space: nowrap;
}

/* =========================================================
   CONTATO / RODAPÉ
   ========================================================= */
.contact { padding-block: 40px 48px; }

.contact__list {
  display: grid;
  gap: 26px;
  justify-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--white);
  font-weight: 400;
  font-size: clamp(17px, 4.8vw, 22px);
  overflow-wrap: anywhere;
  text-align: center;
}
.contact__item img { width: 40px; height: 40px; margin-bottom: 6px; transition: transform .25s; }
.contact__item a { transition: color .2s; }
.contact__item a:hover { color: var(--teal); }
.contact__item:hover img { transform: translateY(-3px); }

.footer {
  display: grid;
  place-items: center;
  padding: 26px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  background: var(--teal) url("../assets/background.svg") center / cover no-repeat;
}
.footer__insta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--dark);
  font-size: 12px;
  font-weight: 500;
}
.footer__insta img { width: 36px; height: 36px; transition: transform .25s; }
.footer__insta:hover img { transform: scale(1.1); }

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

/* =========================================================
   REVEAL
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   TABLET / DESKTOP
   ========================================================= */
@media (min-width: 720px) {
  :root {
    --gutter: 32px;
    --hero-h: clamp(240px, 56vw, 100svh);
  }

  .hero { background-image: url("../assets/video-poster.jpg"); }

  body { font-size: 16px; }

  .section { padding-block: 56px 64px; }
  .section--tight { padding-top: 8px; }
  .section__title { margin-bottom: 36px; }

  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .card { padding: 32px 34px 36px; font-size: 16px; }
  .card__title { font-size: 22px; }

  .card--media {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-template-areas:
      "video title"
      "video text";
    align-content: center;
    column-gap: 36px;
    padding: 28px;
    text-align: left;
  }
  .card--media .card__title { grid-area: title; align-self: end; margin: 0 0 14px; }
  .card--media .card__video { grid-area: video; }
  .card--media .card__text { grid-area: text; align-self: start; margin: 0; padding: 0; }

  .conq { width: 300px; }
  .slider__arrow { display: grid; }
  .slider__dots { max-width: 520px; }

  .team { padding-top: 64px; }
  .coach__role { font-size: 12px; }

  .sponsors__list { gap: 40px 96px; }
  .sponsors__joog { width: 110px; border-radius: 16px; }
  .sponsors__sushi { width: 190px; }
  .partners__list { gap: 24px; }
  .partner { width: 240px; padding: 26px 16px 22px; }
  .partner__photo { width: 88px; height: 88px; }
  .partner__role { font-size: 12px; }

  .contact__list {
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    column-gap: 96px;
  }
}

@media (hover: none) {
  .slider__viewport { cursor: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll img { animation: none; }
  .js .reveal { transition: none; opacity: 1; transform: none; }
}
