/*
Theme Name: Ask Me to Dance
Theme URI: https://askmetodancemovie.com
Description: Official one-page landing theme for the film Ask Me to Dance (2022) — featuring the trailer, synopsis, cast, and VOD links.
Version: 1.0
Author: Tom Malloy / Trick Candle Productions
Author URI: https://www.imdb.com/name/nm0540176/
Tags: one-page, landing-page, film, movie, bright, full-width-template
Text Domain: ask-me-to-dance
*/

/* =============================================
   GOOGLE FONTS
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --pink:        #E63B7A;
  --pink-light:  #FF6FA3;
  --pink-dark:   #B02059;
  --gold:        #F9A826;
  --gold-light:  #FFD166;
  --purple:      #6C63FF;
  --purple-dark: #4A42CC;
  --dark:        #16091F;
  --dark-card:   #1F1030;
  --blush:       #FFF0F5;
  --white:       #FFFFFF;
  --text-dark:   #1E1028;
  --text-mid:    #5B4A6B;
  --text-light:  #C9B8D8;
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --shadow-card: 0 8px 32px rgba(230, 59, 122, 0.15);
  --shadow-hover: 0 16px 48px rgba(230, 59, 122, 0.3);
  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--blush);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(22, 9, 31, 0.9), transparent);
  transition: var(--transition);
}

.site-nav.scrolled {
  background: rgba(22, 9, 31, 0.96);
  backdrop-filter: blur(12px);
  padding: 12px 40px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--pink);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  background: var(--pink);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 100px;
  transition: var(--transition) !important;
}

.nav-cta:hover {
  background: var(--pink-light) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(230,59,122,0.4);
}

/* =============================================
   CONTAINER
   ============================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  background: rgba(230, 59, 122, 0.1);
  border: 1px solid rgba(230, 59, 122, 0.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.15;
}

.section-header.light h2 {
  color: var(--white);
}

.section-header.light .section-tag {
  color: var(--gold);
  background: rgba(249, 168, 38, 0.15);
  border-color: rgba(249, 168, 38, 0.3);
}

.section-subtitle {
  margin-top: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* Default gradient — replace with poster image in WordPress Customizer */
  background:
    linear-gradient(160deg, #16091F 0%, #3D1053 40%, #1A0D3D 70%, #16091F 100%);
  background-attachment: fixed;
  overflow: hidden;
}

/* Use a poster image by adding class="hero-has-image" via a WP filter,
   or set a custom-header image via the WordPress Customizer. */
.hero-section.has-post-thumbnail {
  background-size: cover;
  background-position: center top;
}

/* Decorative animated blobs */
.hero-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,59,122,0.25) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: pulse-blob 6s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,0.2) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
  animation: pulse-blob 8s ease-in-out infinite reverse;
}

@keyframes pulse-blob {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.8; }
  50% { transform: scale(1.15) translate(20px, -20px); opacity: 1; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(22, 9, 31, 0.55) 0%,
    rgba(22, 9, 31, 0.4) 50%,
    rgba(22, 9, 31, 0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease both;
}

.film-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1;
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInUp 0.9s ease 0.1s both;
  text-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

.film-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 40px;
  letter-spacing: 0.04em;
  animation: fadeInUp 0.9s ease 0.2s both;
}

.film-meta span:not(:last-child)::after {
  content: none;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fadeInUp 0.9s ease 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(230,59,122,0.45);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(230,59,122,0.55);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-3px);
}

.hero-imdb {
  animation: fadeInUp 0.9s ease 0.4s both;
}

.hero-imdb a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(245,197,24,0.15);
  border: 1px solid rgba(245,197,24,0.3);
  padding: 8px 20px;
  border-radius: 100px;
  color: var(--gold-light);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}

.hero-imdb a:hover {
  background: rgba(245,197,24,0.25);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.imdb-star {
  font-size: 1rem;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   SYNOPSIS SECTION
   ============================================= */
.synopsis-section {
  padding: 100px 0;
  background: var(--blush);
  position: relative;
}

.synopsis-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--blush);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.synopsis-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
}

.movie-poster {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(230,59,122,0.25), 0 8px 24px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.movie-poster:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 32px 80px rgba(230,59,122,0.35);
}

/* Placeholder if no poster loaded */
.poster-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--pink-dark) 0%, var(--purple-dark) 50%, var(--dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  text-align: center;
  gap: 8px;
  box-shadow: var(--shadow-card);
}

.synopsis-text .lead {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--pink-dark);
  margin-bottom: 24px;
  line-height: 1.5;
}

.synopsis-text p {
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.film-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid rgba(230,59,122,0.15);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
}

.detail-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Rotten Tomatoes badge */
.rt-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dark);
  font-weight: 700;
}

.rt-tomato {
  font-size: 1.1rem;
}

/* =============================================
   TRAILER SECTION
   ============================================= */
.trailer-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--dark) 0%, #2D1050 50%, var(--dark) 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative sparkles */
.trailer-section::before {
  content: '✦ ✦ ✦';
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(249,168,38,0.15);
  font-size: 2rem;
  letter-spacing: 20px;
}

.trailer-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.trailer-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(230,59,122,0.3), 0 0 0 1px rgba(255,255,255,0.08);
}

.trailer-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =============================================
   CAST SECTION
   ============================================= */
.cast-section {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}

.cast-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}

.cast-card {
  background: var(--white);
  border: 1px solid rgba(230,59,122,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.cast-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(230,59,122,0.3);
}

.cast-photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-dark) 0%, var(--purple-dark) 60%, var(--dark) 100%);
  position: relative;
}

.cast-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cast-card:hover .cast-photo img {
  transform: scale(1.05);
}

/* Placeholder color when no image */
.cast-photo::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  pointer-events: none;
}

.cast-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.actor-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.character-name {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
}

.imdb-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,197,24,0.08);
  border: 1px solid rgba(245,197,24,0.25);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8B6800;
  transition: var(--transition);
}

.imdb-link:hover {
  background: rgba(245,197,24,0.18);
  border-color: var(--gold);
  color: #5A4000;
  transform: translateY(-2px);
}

.imdb-badge-icon {
  background: #F5C518;
  color: #000;
  font-weight: 900;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

/* =============================================
   WHERE TO WATCH
   ============================================= */
.watch-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #1A0535 0%, #2D1050 50%, #1A0535 100%);
  position: relative;
  overflow: hidden;
}

.watch-section::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,59,122,0.12) 0%, transparent 65%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.watch-section::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,0.12) 0%, transparent 65%);
  bottom: -150px;
  left: -150px;
  pointer-events: none;
}

.vod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
}

.vod-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.vod-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.3);
}

.vod-logo {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vod-logo svg {
  max-height: 100%;
  width: auto;
}

.vod-platform-name {
  font-size: 1.5rem;
  font-weight: 800;
}

.vod-card.amazon .vod-platform-name { color: #FF9900; }
.vod-card.appletv .vod-platform-name { color: #e8e8ed; }
.vod-card.vudu .vod-platform-name { color: #3CB2E2; }
.vod-card.justwatch .vod-platform-name { color: #FFC300; }
.vod-card.google .vod-platform-name { color: #EA4335; }

.vod-action {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.vod-card:hover .vod-action {
  color: rgba(255,255,255,0.8);
}

.free-streaming {
  margin-top: 56px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.free-streaming-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.free-platforms {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.platform-badge {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 100px;
  transition: var(--transition);
}

.platform-badge:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--dark);
  padding: 48px 0;
  border-top: 1px solid rgba(230,59,122,0.2);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-film-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-film-title span {
  color: var(--pink);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--pink-light);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal — class toggled by JS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .synopsis-grid {
    grid-template-columns: 240px 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .site-nav {
    padding: 14px 20px;
  }

  .nav-links {
    display: none;
  }

  .synopsis-grid {
    grid-template-columns: 1fr;
  }

  .movie-poster, .poster-placeholder {
    max-width: 280px;
    margin: 0 auto;
  }

  .film-details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cast-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 100px 20px 60px;
  }

  .cast-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .vod-grid {
    grid-template-columns: 1fr 1fr;
  }

  .film-meta {
    flex-wrap: wrap;
    font-size: 0.8rem;
  }
}
