/* =========================================
   DESIGN TOKENS
   ========================================= */
:root {
  --color-red: #e3000b;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-dark: #0a0a0a;
  --color-text-muted: rgba(255, 255, 255, 0.55);
  --color-overlay-bg: rgba(0, 0, 0, 0.82);

  --font-base: "Hanken Grotesk", sans-serif;
  --font-size-nav-links: 0.625rem;

  --transition-fast: 0.25s ease;
  --transition-menu: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   RESET & BASE
   ========================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-base);
  background: var(--color-dark);
  color: var(--color-white);
  overflow-x: hidden;
}

/* =========================================
   FONTS
   ========================================= */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 500px;
  background-image: url("../img/zico-comemorando-gol-marcado-no-maracana.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.28) 55%,
    rgba(0, 0, 0, 0.05) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--color-dark));
  pointer-events: none;
  z-index: 1;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.875rem 1.5rem;
  width: 100%;
}

.navbar__partners-desktop {
  display: none;
  max-width: 100%;
  height: auto;
}

.navbar__partners-mobile {
  display: block;
  margin: 0 auto;
  max-width: 85%;
  height: auto;
}

.navbar__menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

.navbar__menu-btn:hover {
  opacity: 0.75;
}

.navbar__menu-btn img {
  width: 28px;
  height: 28px;
  display: block;
}

/* =========================================
   HERO CONTENT
   ========================================= */
.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 1.75rem 3rem;
}

.hero__logo {
  display: block;
  width: 100%;
  max-width: clamp(200px, 45vw, 479px);
  height: auto;
  margin-bottom: 1.75rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--color-red);
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.65rem 1.25rem 0.65rem 1rem;
  border-radius: 20px;
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
  align-self: flex-start;
}

.hero__cta:hover {
  background-color: #c0000a;
  transform: translateY(-1px);
}

.hero__cta img {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

/* =========================================
   OVERLAY MENU
   ========================================= */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-image: url("../img/zico-comemorando-gol-marcado-no-maracana.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;

  isolation: isolate;

  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-menu);
}

.menu-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-overlay-bg);
  z-index: -1;
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.menu-overlay__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.875rem 1.5rem;
}

.menu-overlay__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.menu-overlay__partners-img {
  display: block;
  max-width: 80%;
  margin-right: 1rem;
}

.menu-overlay__partners-img img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 24px;
  opacity: 0.6;
}

.menu-overlay__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transition: opacity var(--transition-fast);
}

.menu-overlay__close:hover {
  opacity: 0.75;
}

.menu-overlay__close img {
  width: 28px;
  height: 28px;
  display: block;
}

.menu-overlay__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 0.25rem;
}

.menu-overlay__nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.menu-overlay__nav a {
  display: inline-block;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-white);
  padding: 0.35rem 0;
  transition: color var(--transition-fast);

  transform: translateX(-20px);
  opacity: 0;
  transition:
    color var(--transition-fast),
    transform var(--transition-menu),
    opacity var(--transition-menu);
}

.menu-overlay.is-open .menu-overlay__nav a {
  transform: translateX(0);
  opacity: 1;
}

.menu-overlay__nav li:nth-child(1) a {
  transition-delay: 0.05s;
}
.menu-overlay__nav li:nth-child(2) a {
  transition-delay: 0.1s;
}
.menu-overlay__nav li:nth-child(3) a {
  transition-delay: 0.15s;
}
.menu-overlay__nav li:nth-child(4) a {
  transition-delay: 0.2s;
}
.menu-overlay__nav li:nth-child(5) a {
  transition-delay: 0.25s;
}

.menu-overlay__nav a.is-active,
.menu-overlay__nav a:hover {
  color: var(--color-red);
  font-weight: 700;
}

/* =========================================
   VIDEO MODAL
   ========================================= */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-overlay-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;

  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-menu);
}

.video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 201;
  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast);
  padding: 0.5rem;
}

.video-modal__close:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.video-modal__content {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.video-modal__aspect-ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform var(--transition-menu);
}

.video-modal.is-open .video-modal__aspect-ratio {
  transform: translateY(0);
}

.video-modal__aspect-ratio iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================
   SINOPSE
   ========================================= */
.sinopse {
  background: var(--color-black);
  width: 100%;
}

.sinopse__container {
  display: flex;
  flex-direction: column;
}

.sinopse__content {
  padding: 3rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sinopse__title {
  width: 100%;
  max-width: 338px;
  height: auto;
  margin-bottom: 1.5rem;
}

.sinopse__text {
  color: var(--color-white);
  font-size: 0.75rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.sinopse__text--highlight {
  font-weight: 700;
  font-style: italic;
}

.sinopse__image-wrapper {
  width: 100%;
  display: flex;
}

.sinopse__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* =========================================
   GALERIA (SWIPER)
   ========================================= */
.galeria {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: var(--color-black);
}

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

.galeria__slider .swiper-slide {
  height: 100vh;
  min-height: 300px;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-black);
  overflow: hidden;
}

.galeria__slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.galeria__slider .swiper-button-next,
.galeria__slider .swiper-button-prev {
  color: var(--color-white);
  --swiper-navigation-size: 2rem;
  --swiper-navigation-sides-offset: 2.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

/* =========================================
   DIRETOR
   ========================================= */
.diretor {
  width: 100%;
  background: var(--color-black);
}

.diretor__container {
  display: flex;
  flex-direction: column;
}

.diretor__perfil {
  position: relative;
  width: 100%;
  min-height: 400px;
  background-image: url("../img/diretor-joao-wainer-e-sua-equipe-avaliando-cenas-gravadas-do-filme.webp");
  background-size: cover;
  background-position: center left;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 3rem 1.75rem;
}

.diretor__perfil::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.diretor__perfil-content {
  position: relative;
  z-index: 2;
  max-width: 400px;
  text-align: left;
}

.diretor__nome {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 1.5rem;
  display: block;
}

.diretor__citacao {
  color: var(--color-white);
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 400;
}

.diretor__poster {
  width: 100%;
  display: flex;
}

.diretor__poster-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  width: 100%;
  background: var(--color-black);
  padding: 4rem 1.75rem 2rem;
}

.footer__container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer__logo {
  width: 50%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.footer__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer__data-estreia {
  width: 100%;
  max-width: 566px;
  height: auto;
  display: block;
}
.footer__data-estreia-text {
  color: #ede8cb;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
}

.footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background-color: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-base);
  font-size: 0.875rem;
  font-weight: 400;
  max-width: 566px;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  width: 100%;
  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast);
}

.footer__btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.footer__btn img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.footer__picture {
  width: 100%;
  display: flex;
  justify-content: center;
}

.footer__creditos-texto,
.footer__creditos-logos {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* =========================================
   DESKTOP ADJUSTMENTS
   ========================================= */
@media (min-width: 992px) {
  .hero__content {
    padding: 0 3rem 4rem;
  }

  .hero__cta {
    font-size: 1.5rem;
    padding: 1rem 2.5rem 1rem 2rem;
  }

  .navbar {
    padding: 1.5rem 3rem;
  }
  .menu-overlay__close {
    padding: 0.875rem 1.5rem 0 0;
  }
  .menu-overlay__close img,
  .navbar__menu-btn img {
    width: 40px;
    height: 40px;
  }

  .navbar__partners-mobile {
    display: none;
  }

  .navbar__partners-desktop {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: 80%;
  }
  .hero__cta {
    align-self: end;
    margin-bottom: 1rem;
  }
  .hero__cta img {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 1024px) {
  .hero::before {
    display: none;
  }
  .hero__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    position: relative;
    width: 100%;
    margin: 0 auto;
  }
  .menu-overlay__nav {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
  }
  .menu-overlay__nav ul {
    gap: 2rem;
  }
  .menu-overlay__nav a {
    font-size: 2.25rem;
  }

  .sinopse__container {
    flex-direction: row;
  }

  .sinopse__content {
    width: 45%;
    padding: 3.5rem 1.5rem 3rem;
  }

  .sinopse__title {
    font-size: 4.5rem;
  }

  .sinopse__text-wrapper {
    max-width: 520px;
    display: inline-flex;
    align-self: flex-end;
    flex-direction: column;
  }
  .sinopse__text {
    font-size: 1.125rem;
  }
  .sinopse__image-wrapper {
    flex: 1;
  }

  .galeria__slider .swiper-button-next,
  .galeria__slider .swiper-button-prev {
    --swiper-navigation-size: 3rem;
  }

  .diretor__container {
    display: grid;
    grid-template-columns: 66% 34%;

    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }

  .diretor__perfil {
    min-height: 600px;
    height: 100%;
    padding: 4rem 4rem 4rem 2rem;
    justify-content: flex-end;
    align-items: center;
  }

  .diretor__perfil::before {
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(0, 0, 0, 0.85) 100%
    );
  }

  .diretor__perfil-content {
    max-width: 420px;
  }

  .diretor__citacao {
    font-size: 1.35rem;
  }

  .diretor__poster {
    height: 100%;
  }

  .diretor__poster-img {
    height: 100%;
    object-position: center top;
  }

  .footer {
    padding: 6rem 3rem 4rem;
  }

  .footer__container {
    max-width: 1214px;
  }

  .footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6rem;
    max-width: 1170px;
  }
  .footer__bottom {
    gap: 3rem;
  }

  .footer__logo-wrapper {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
  }

  .footer__logo {
    margin: 0;
    width: 479px;
    max-width: 100%;
  }

  .footer__cta {
    flex: 0 0 auto;
    align-items: flex-end;
  }
  .footer__data-estreia-text {
    font-size: 1.5rem;
  }

  .footer__btn {
    font-size: 1.65rem;
    padding: 1.7rem 3.5rem;
  }
  .footer__btn img {
    width: 50px;
    height: 50px;
  }

  .footer__creditos-texto,
  .footer__creditos-logos {
    max-width: 100%;
  }
}
