/* ==========================================================================
   Documentaries — Page-Specific Styles
   Shared components (page-hero, gallery, video-grid, lightbox, buttons, etc.)
   are defined in css/style.css. This file only contains overrides and
   additions unique to the documentaries page.
   ========================================================================== */

/* ── Documentaries Hero — full-bleed looping video with text overlay ── */
body[data-page="documentaries"] .page-hero {
  display: block;
  position: relative;
  min-height: 70vh;
  padding: 0;
  background: #000;
  overflow: hidden;
}

body[data-page="documentaries"] .page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  z-index: 0;
  margin: 0;
  top: 0;
  right: auto;
}

body[data-page="documentaries"] .page-hero-overlay {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.05) 35%,
      rgba(0, 0, 0, 0.05) 60%,
      rgba(0, 0, 0, 0.75) 100%);
}

body[data-page="documentaries"] .page-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 70vh;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

body[data-page="documentaries"] .page-hero-label {
  color: var(--coral);
}

body[data-page="documentaries"] .page-hero-title {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
  /* Smaller, more refined — doesn't span full hero width */
  font-size: clamp(2rem, 5vw, 3.8rem);
  letter-spacing: .08em;
  max-width: 18ch;
}

body[data-page="documentaries"] .page-hero-title em.serif {
  /* "Stories" — serif italic accent, slightly larger than the sans
     uppercase for visual hierarchy (matches fashion page treatment). */
  font-size: 1.15em;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
}

body[data-page="documentaries"] .page-hero-desc {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
  max-width: 640px;
}

@media (max-width: 768px) {
  body[data-page="documentaries"] .page-hero,
  body[data-page="documentaries"] .page-hero-content {
    min-height: 60vh;
  }
}

/* Featured Documentary — large hero-style card */
.video-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.video-featured-player .video-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.video-featured-player .video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.19,1,.22,1), filter .6s cubic-bezier(.19,1,.22,1);
}

/* Play button overlay on the featured player */
.video-thumb-playable { cursor: pointer; }

.video-featured-player .video-thumb-playable .video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  z-index: 2;
  transition: background .35s ease, transform .35s cubic-bezier(.19,1,.22,1), border-color .35s ease;
  pointer-events: none;
}

.video-featured-player .video-thumb-playable .video-play-btn svg {
  width: 32px;
  height: 32px;
  transform: translateX(2px);
}

.video-featured-player .video-thumb-playable:hover .video-play-btn {
  background: var(--coral, #c9a84c);
  border-color: transparent;
  transform: translate(-50%, -50%) scale(1.06);
}

.video-featured-player .video-thumb-playable:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

@media (max-width: 640px) {
  .video-featured-player .video-thumb-playable .video-play-btn {
    width: 64px;
    height: 64px;
  }
  .video-featured-player .video-thumb-playable .video-play-btn svg {
    width: 24px;
    height: 24px;
  }
}

.video-featured-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.video-featured-title {
  font-family: 'Monument Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--coral);
  line-height: 1.2;
}

.video-featured-duration {
  font-family: 'Monument Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

.video-featured-synopsis {
  font-family: 'Monument Grotesk', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 640px;
}

.video-featured-synopsis .brand-link {
  color: var(--coral);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
  transition: border-color .25s ease, color .25s ease;
}
.video-featured-synopsis .brand-link:hover {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

/* ── Behind-the-Scenes Gallery — masonry-style high-end grid ── */
.bts-gallery {
  column-count: 3;
  column-gap: 12px;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.bts-gallery img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 12px 0;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  cursor: pointer;
  transition:
    transform .55s cubic-bezier(.19,1,.22,1),
    filter .55s cubic-bezier(.19,1,.22,1),
    opacity .8s ease;
  background: rgba(0, 0, 0, 0.04);
  /* faint vignette below the image while it lazy-loads */
}

.bts-gallery img:hover {
  transform: translateY(-2px);
  filter: brightness(1.04) saturate(1.05);
}

@media (max-width: 900px) {
  .bts-gallery {
    column-count: 2;
    column-gap: 8px;
  }
  .bts-gallery img {
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .bts-gallery {
    column-count: 1;
  }
}

/* CTA section centering */
.cta-section {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 0;
}

.cta-section .section-title {
  text-align: center;
}

.cta-section .section-text {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ── Video card hover — overlay darkening + play icon pulse ── */
[data-page="documentaries"] .video-card{
  position:relative;
  transition:transform .5s cubic-bezier(.19,1,.22,1);
}
[data-page="documentaries"] .video-card:hover{
  transform:translateY(-3px);
}
[data-page="documentaries"] .video-thumb::after{
  content:'';
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0);
  transition:background .5s cubic-bezier(.19,1,.22,1);
  pointer-events:none;
  z-index:1;
}
[data-page="documentaries"] .video-card:hover .video-thumb::after{
  background:rgba(0,0,0,.18);
}
[data-page="documentaries"] .video-card .video-play-sm{
  transition:opacity .4s cubic-bezier(.19,1,.22,1), transform .4s cubic-bezier(.19,1,.22,1);
  z-index:2;
}
[data-page="documentaries"] .video-card:hover .video-play-sm{
  opacity:1;
  transform:translate(-50%,-50%) scale(1.12);
}
[data-page="documentaries"] .video-thumb img,
[data-page="documentaries"] .video-thumb video{
  transition:transform .6s cubic-bezier(.19,1,.22,1), filter .6s cubic-bezier(.19,1,.22,1);
}
[data-page="documentaries"] .video-card:hover .video-thumb img,
[data-page="documentaries"] .video-card:hover .video-thumb video{
  transform:scale(1.05);
  filter:brightness(1.08);
}

/* Projects grid — allow more cards per row on wider screens */
[data-page="documentaries"] .video-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* ---- Responsive ---- */
@media (min-width: 900px) {
  .video-featured {
    grid-template-columns: 3fr 2fr;
    align-items: start;
    gap: 3rem;
  }

  .video-featured-info {
    padding-top: 0.5rem;
  }
}

@media (max-width: 768px) {
  .video-featured-title {
    font-size: 1.5rem;
  }

  [data-page="documentaries"] .video-grid {
    grid-template-columns: 1fr;
  }
}
