/* ============================================================
   ILUME FILMES — Portfólio
   Complementa /style.css (tokens e componentes da marca)
   ============================================================ */

/* ------------------------------------------------------------
   HERO compacto
   ------------------------------------------------------------ */
.pf-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(9rem, 22vh, 14rem) var(--pad-x) clamp(4rem, 9vh, 6.5rem);
}

.pf-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(56% 60% at 84% 0%, rgba(255, 139, 44, .14) 0%, transparent 60%),
    radial-gradient(50% 60% at 8% 100%, rgba(210, 166, 184, .1) 0%, transparent 62%),
    linear-gradient(178deg, #121014 0%, var(--preto) 60%, var(--preto) 100%);
}

.pf-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.pf-titulo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 7rem);
  line-height: .98;
  letter-spacing: -.03em;
  color: var(--osso);
}

.pf-titulo em {
  font-style: normal;
  background: var(--grad-ilume);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pf-sub {
  max-width: 48ch;
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.7;
  color: var(--cinza);
}

/* ------------------------------------------------------------
   SEÇÕES
   ------------------------------------------------------------ */
.pf-secao {
  padding: clamp(4.5rem, 10vh, 8rem) var(--pad-x);
}

.pf-secao--clara {
  background: var(--creme);
  color: var(--preto);
}

.pf-secao--clara .kicker { color: #8a8378; }

.pf-secao--escura {
  background:
    radial-gradient(50% 35% at 12% 0%, rgba(255, 139, 44, .07) 0%, transparent 60%),
    var(--preto);
}

.pf-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.pf-head {
  margin-bottom: clamp(2.2rem, 5vh, 3.5rem);
}

.pf-head .secao-titulo {
  max-width: 24ch;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

/* ------------------------------------------------------------
   GRIDS
   ------------------------------------------------------------ */
.pf-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.8rem);
}

.pf-grid--destaque { grid-template-columns: repeat(2, 1fr); }

.pf-grid--eventos { grid-template-columns: repeat(3, 1fr); }

.pf-grid--shorts { grid-template-columns: repeat(5, 1fr); }

/* ------------------------------------------------------------
   CARD DE VÍDEO (facade: thumb leve, player só no clique)
   ------------------------------------------------------------ */
.video-card {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #121014;
  border: 1px solid rgba(246, 242, 236, .1);
}

.pf-secao--clara .video-thumb {
  border-color: rgba(12, 12, 13, .12);
}

.video-card--vertical .video-thumb {
  aspect-ratio: 9 / 16;
}

.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}

.video-card:hover .video-thumb img {
  transform: scale(1.04);
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12, 12, 13, .55) 100%);
  pointer-events: none;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--laranja);
  color: var(--preto);
  z-index: 1;
  transition: background-color .35s var(--ease), transform .35s var(--ease);
}

.video-play svg { margin-left: 2px; }

.video-card:hover .video-play {
  background: var(--dourado);
  transform: translate(-50%, -50%) scale(1.08);
}

.video-card:focus-visible {
  outline: 2px solid var(--laranja);
  outline-offset: 3px;
  border-radius: 8px;
}

.video-meta {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .8rem .2rem 0;
}

.video-meta strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -.01em;
}

.pf-secao--escura .video-meta strong { color: var(--osso); }
.pf-secao--clara .video-meta strong { color: var(--preto); }

.video-meta span {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.pf-secao--escura .video-meta span { color: var(--cinza-dim); }
.pf-secao--clara .video-meta span { color: #8a8378; }

/* card com player ativo */
.video-card.tocando .video-thumb img,
.video-card.tocando .video-play,
.video-card.tocando .video-thumb::after {
  display: none;
}

.video-card.tocando iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ------------------------------------------------------------
   CTA
   ------------------------------------------------------------ */
.pf-cta {
  position: relative;
  isolation: isolate;
  background: var(--preto);
  padding: clamp(5rem, 12vh, 8rem) var(--pad-x);
  text-align: center;
}

.pf-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.pf-cta-titulo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--osso);
}

.pf-cta-titulo em {
  font-style: normal;
  background: var(--grad-ilume);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pf-cta-apoio {
  max-width: 48ch;
  margin: 1.6rem auto 2.4rem;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.7;
  color: var(--cinza);
}

.pf-cta-voltar {
  margin-top: 2.2rem;
  font-size: .9rem;
}

.pf-cta-voltar a {
  color: var(--cinza);
  text-decoration: underline;
  text-decoration-color: rgba(170, 165, 173, .4);
  text-underline-offset: 4px;
  transition: color .25s var(--ease), text-decoration-color .25s var(--ease);
}

.pf-cta-voltar a:hover {
  color: var(--osso);
  text-decoration-color: var(--laranja);
}

/* ------------------------------------------------------------
   RESPONSIVO
   ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .pf-grid--eventos { grid-template-columns: repeat(2, 1fr); }
  .pf-grid--shorts { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .pf-grid--destaque { grid-template-columns: 1fr; }
  .pf-grid--eventos { grid-template-columns: 1fr; }
  .pf-grid--shorts { grid-template-columns: repeat(2, 1fr); }

  .video-meta strong { font-size: .9rem; }
}

/* ------------------------------------------------------------
   MOVIMENTO REDUZIDO
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .video-thumb img,
  .video-play {
    transition: none;
  }
}
