/* ===================================================================
   CORPOMUNDO — Programa Digital
   Reprodução fiel do layout de referência (programa digital longo)
   =================================================================== */

/* -------------------- Variáveis de cor -------------------- */
:root {
  --blue:         #10197e;  /* azul profundo do hero */
  --blue-deep:    #061858;
  --purple:       #6e2ea6;  /* roxo das seções */
  --purple-soft:  #7a2eb0;  /* roxo dos botões */
  --purple-deep:  #160e41;  /* roxo escuro (degradê) */
  --purple-night: #0d093c;
  --gold:         #f0b324;  /* amarelo dos títulos / rodapé */
  --gold-light:   #f6d77a;
  --gold-dark:    #c9962e;
  --black:        #000000;
  --white:        #ffffff;
  --paper:        #fcfcfc;  /* branco das seções */
  --ink:          #1a1a1a;  /* texto sobre branco */
  --ink-soft:     #3a3a3a;
  --text-light:   #ededed;  /* texto sobre fundo escuro */
  --heading-purple: #4a1d7a;
  --heading-purple-soft: #9b6fc9;

  --maxw: 1080px;
  --gutter: 24px;
}

/* -------------------- Reset / base -------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--black);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

p { margin-bottom: 1.05em; }
p:last-child { margin-bottom: 0; }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  background: var(--black);
  padding-bottom: 56px;
}

/* Arte do hero (imagem já contém título e o fundo azul que esmaece para
   transparente na base). Exibida por inteiro, full-bleed, sem corte, para
   preservar a transição de transparência até o texto. */
.hero__art {
  width: 100%;
  overflow: hidden;
}
.hero__art--animate img {
  opacity: 0;
  transform: scale(1.045);
  transform-origin: center top;
}
body.hero--loaded .hero__art--animate img {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.6s ease, transform 2.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero__art img {
  display: block;
  width: 100%;
  height: auto;
}

/* Texto de abertura sobe levemente para dentro da área transparente da arte,
   criando a transição contínua imagem -> texto (e deixando o conjunto compacto). */
.hero__intro {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  max-width: 720px;
  margin-top: clamp(-150px, -9vw, -48px);
  text-align: left;
  font-size: 0.95rem;
}
.hero__intro--animate {
  opacity: 0;
  transform: translateY(20px);
}
body.hero--loaded .hero__intro--animate {
  opacity: 1;
  transform: none;
  transition: opacity 1.1s ease 0.65s, transform 1.1s ease 0.65s;
}
.hero__intro p { margin-bottom: 1.1em; }
.hero__intro-highlight {
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 0 24px rgba(246, 215, 122, 0.35);
}

/* Indicador de rolagem — telas maiores, onde o hero ocupa boa parte da viewport */
.hero__scroll-hint {
  display: none;
}

@media (min-width: 821px) {
  .hero__scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 20;
    transform: translateX(-50%);
    padding: 10px 16px 8px;
    border: none;
    background: transparent;
    color: var(--gold-light);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, color 0.2s ease;
  }
  body.hero--loaded .hero__scroll-hint:not(.hero__scroll-hint--hidden) {
    opacity: 0.85;
    pointer-events: auto;
    transition: opacity 0.6s ease 2.4s;
  }
  .hero__scroll-hint:hover {
    opacity: 1;
    color: var(--white);
  }
  .hero__scroll-hint--hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.35s ease !important;
  }
  .hero__scroll-hint-icon {
    display: block;
    filter: drop-shadow(0 0 8px rgba(246, 215, 122, 0.45));
    animation: hero-scroll-bounce 2.2s ease-in-out infinite;
  }
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ===================================================================
   SOBRE / FÁBRICA DE SONHOS (branco)
   =================================================================== */
.sobre {
  background: var(--paper);
  color: var(--ink);
  padding: 60px 0;
}
.sobre__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
}
.poster { width: 100%; }
.poster img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}
.poster:hover img { transform: scale(1.02); }
.sobre__text { font-size: 0.95rem; color: var(--ink-soft); }

/* ===================================================================
   PERTENCIMENTO (roxo)
   =================================================================== */
.pertence {
  background: var(--purple);
  color: var(--white);
  padding: 64px 0 0;
  position: relative;
}
.pertence__grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: center;
  padding-bottom: 56px;
}
.pertence__text { font-size: 0.95rem; }
.pertence__quote {
  font-style: italic;
  opacity: 0.95;
  margin-top: 0.25em;
}

.portrait { width: 100%; }
.portrait img { width: 100%; height: auto; }

/* Faixa branca de logos (imagem única, sobreposta entre roxo e preto) */
.apoios {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  padding: 22px 28px;
  margin-bottom: -42px;
  position: relative;
  z-index: 5;
  transform: translateY(42px);
  transition: box-shadow 0.6s ease;
}
.apoios.reveal {
  opacity: 0;
  transform: translateY(70px);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.6s ease;
}
.apoios.reveal.is-visible {
  opacity: 1;
  transform: translateY(42px);
}
.apoios.is-visible {
  box-shadow: 0 18px 44px rgba(110, 46, 166, 0.22), 0 12px 30px rgba(0, 0, 0, 0.35);
}
.apoios__img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* ===================================================================
   DEPOIMENTOS (preto)
   =================================================================== */
.depoimentos {
  background: var(--black);
  color: var(--text-light);
  padding: 90px 0 70px;
  overflow: hidden; /* contém o glow transparente das fotos ao dar zoom */
}
.depo {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}
.depo:last-child { margin-bottom: 0; }
.depo--right { grid-template-columns: 1fr 400px; }

/* As fotos já trazem o card + glow roxo com fundo transparente.
   Zoom via scale: o card cresce e a sombra (transparente) apenas transborda. */
.depo__photo { overflow: visible; }
.depo__photo img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.3);
  transform-origin: center;
}
.depo__title {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.depo__text { font-size: 0.95rem; }
.depo__sign {
  color: var(--gold-light);
  font-style: italic;
  font-size: 0.88rem;
  margin-top: 14px;
  text-shadow: 0 0 16px rgba(246, 215, 122, 0.25);
}

/* ===================================================================
   FAÇA PARTE (branco)
   =================================================================== */
.faca-parte {
  background: var(--paper);
  color: var(--ink);
  padding: 60px 0;
}
.faca-parte__head {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}
.faca-parte__photo img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}
.faca-parte__photo:hover img { transform: scale(1.02); }
.faca-parte__title {
  line-height: 1.12;
  text-transform: uppercase;
}
.faca-parte__title-top {
  display: block;
  color: var(--heading-purple-soft);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.faca-parte__title-main {
  display: block;
  color: var(--heading-purple);
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(74, 29, 122, 0.15);
}
.faca-parte__body {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.faca-parte__body a {
  color: var(--heading-purple);
  text-decoration: underline;
}
.faca-parte__body a:hover { opacity: 0.85; }

/* ===================================================================
   VÍDEO (branco com bloco roxo)
   =================================================================== */
.video {
  background: var(--paper);
  color: var(--ink);
  padding: 10px 0 60px;
}
.video__block {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--purple);
  border-radius: 26px;
  overflow: hidden;
  margin-bottom: 38px;
  box-shadow: 0 16px 48px rgba(110, 46, 166, 0.25);
}
.video__embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.video__text { font-size: 0.95rem; color: var(--ink-soft); }

/* ===================================================================
   MANIFESTO / DESUMANO É (roxo + foto)
   =================================================================== */
.manifesto {
  position: relative;
  background: var(--purple);
  color: var(--white);
  overflow: hidden;
  padding: 64px 0 70px;
  min-height: clamp(480px, 42vw, 620px);
}
.manifesto__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.manifesto__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  transform: translateY(var(--parallax-y, 0));
  will-change: transform;
}
/* leve reforço de contraste só na faixa esquerda (onde fica o texto) */
.manifesto::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(74,20,110,0.55) 0%, rgba(110,46,166,0.15) 40%, rgba(110,46,166,0) 60%);
}
.manifesto__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  text-align: left;
}
.manifesto__title {
  color: var(--gold);
  font-weight: 800;
  font-size: clamp(1.6rem, 4.6vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: linear-gradient(
    90deg,
    var(--gold-dark) 0%,
    var(--gold-light) 25%,
    var(--gold) 50%,
    var(--gold-light) 75%,
    var(--gold-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldShimmer 4s linear infinite;
}
.manifesto__content.is-visible .manifesto__kicker,
.manifesto__content.is-visible .manifesto__quote,
.manifesto__content.is-visible .manifesto__sign {
  opacity: 1;
}
.manifesto__content .manifesto__kicker,
.manifesto__content .manifesto__quote,
.manifesto__content .manifesto__sign {
  opacity: 0;
  transition: opacity 0.65s ease;
}
.manifesto__content.is-visible .manifesto__kicker { transition-delay: 0.15s; }
.manifesto__content.is-visible .manifesto__quote { transition-delay: 0.35s; }
.manifesto__content.is-visible .manifesto__sign { transition-delay: 0.55s; }
.manifesto__kicker {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: lowercase;
  margin-bottom: 18px;
  opacity: 0.95;
}
.manifesto__kicker-name {
  text-transform: uppercase;
}
.manifesto__quote { font-size: 0.95rem; }
.manifesto__sign {
  color: var(--gold-light);
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 22px;
}

/* ===================================================================
   FICHA TÉCNICA (preto + globo)
   =================================================================== */
.ficha {
  position: relative;
  background: var(--black);
  color: var(--text-light);
  overflow: hidden;
  padding: 60px 0 70px;
  min-height: clamp(520px, 52vw, 780px);
}
.ficha__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ficha__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
}
.ficha::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--black) 30%, rgba(0,0,0,0.55) 52%, rgba(0,0,0,0) 78%);
}
.ficha__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  text-align: left;
}
.ficha__title {
  color: var(--gold);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(240, 179, 36, 0.2);
}
.ficha__intro { font-size: 0.92rem; margin-bottom: 22px; }
.ficha__credits {
  font-size: 0.88rem;
  margin-bottom: 22px;
}
.ficha__credits-group {
  margin-bottom: 12px;
}
.ficha__credits-group:last-child {
  margin-bottom: 0;
}
.ficha__credits-group > div {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}
.ficha__credits-group > div:last-child {
  margin-bottom: 0;
}
.ficha__credits dt { font-weight: 700; color: var(--white); }
.ficha__credits dt::after { content: ":"; }
.ficha__credits dd { color: var(--text-light); }
.ficha__final { font-size: 0.86rem; opacity: 0.9; }

/* ===================================================================
   RODAPÉ
   =================================================================== */
.footer { background: var(--white); }
.footer__bar {
  background: linear-gradient(
    90deg,
    var(--gold-dark),
    var(--gold),
    var(--gold-light),
    var(--gold),
    var(--gold-dark)
  );
  background-size: 200% 100%;
  animation: footerGlow 6s ease-in-out infinite;
  padding: 30px 0 46px;
  position: relative;
}
.footer__call {
  color: var(--white);
  text-align: center;
  font-size: clamp(0.9rem, 2.4vw, 1.15rem);
  margin-bottom: 22px;
  font-weight: 500;
}
.footer__call strong { font-weight: 800; }

.footer__buttons {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  background: var(--purple-soft);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px 40px;
  border-radius: 999px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2), 0 8px 24px rgba(110, 46, 166, 0.45);
}
.btn:active { transform: translateY(2px); box-shadow: 0 3px 0 rgba(0,0,0,0.2); }

.footer__sign {
  text-align: center;
  color: var(--heading-purple);
  font-size: 0.8rem;
  font-weight: 600;
  padding-top: 22px;
  padding-bottom: 26px;
  line-height: 1.5;
}

/* ===================================================================
   ANIMAÇÕES / REVEAL
   =================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal--delay-1 { transition-delay: 0.12s; }
.reveal--delay-2 { transition-delay: 0.24s; }

@keyframes goldShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes footerGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__intro--animate,
  body.hero--loaded .hero__intro--animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__art--animate img,
  body.hero--loaded .hero__art--animate img {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__scroll-hint-icon {
    animation: none;
  }
  body.hero--loaded .hero__scroll-hint:not(.hero__scroll-hint--hidden) {
    opacity: 0.85;
    pointer-events: auto;
    transition: none;
  }
  .manifesto__title {
    animation: none;
    color: var(--gold);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
  .manifesto__content .manifesto__kicker,
  .manifesto__content .manifesto__quote,
  .manifesto__content .manifesto__sign {
    opacity: 1;
    transition: none;
  }
  .manifesto__bg img {
    transform: none !important;
  }
  .footer__bar { animation: none; }
  .poster:hover img { transform: none; }
  .faca-parte__photo:hover img { transform: none; }
  .apoios.reveal,
  .apoios.reveal.is-visible {
    transform: translateY(42px);
  }
}

/* ===================================================================
   RESPONSIVO
   =================================================================== */
@media (max-width: 820px) {
  .sobre__grid,
  .pertence__grid,
  .faca-parte__head { grid-template-columns: 1fr; gap: 28px; }

  .poster,
  .portrait { max-width: 320px; margin: 0 auto; }

  .pertence__grid .pertence__text { order: 2; }
  .pertence__grid .portrait { order: 1; }

  .depo,
  .depo--right { grid-template-columns: 1fr; gap: 22px; }
  .depo__photo { max-width: 360px; margin: 0 auto; }
  /* mantém a ordem: foto sempre antes do texto no mobile do depo--right */
  .depo--right .depo__text { order: 2; }
  .depo--right .depo__photo { order: 1; }

  .faca-parte__photo { max-width: 360px; margin: 0 auto; }

  .ficha__bg {
    position: relative;
    width: 100%;
    height: clamp(280px, 52vw, 420px);
  }
  .ficha__bg img { object-position: center top; }
  .ficha::after {
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, var(--black) 70%);
  }
  .ficha__content,
  .manifesto__content { max-width: 100%; text-align: left; }

  .manifesto__bg img { object-position: center top; }
  .manifesto::after {
    background: linear-gradient(180deg, rgba(110,46,166,0.55) 0%, var(--purple-deep) 90%);
  }

  .apoios__logos { grid-template-columns: repeat(5, 1fr); row-gap: 18px; }
}

@media (max-width: 480px) {
  .hero__content { padding-top: 40px; }
  .hero__intro { margin-top: 44px; }
  .footer__buttons { flex-direction: column; align-items: center; gap: 16px; }
  .btn { width: 100%; max-width: 320px; text-align: center; }
  .apoios__logos { grid-template-columns: repeat(3, 1fr); }
  .ficha__credits-group > div { flex-direction: row; flex-wrap: wrap; }
}
