/* James: Getting Away With It — cinema microsite */

:root {
  --pink: #e91e8c;
  --pink-soft: #f7b6d7;
  --purple: #4a2c5a;
  --purple-deep: #2a1835;
  --bg: #080608;
  --bg-elevated: #121018;
  --text: #f5f0f2;
  --text-muted: #a89aad;
  --border: rgba(255, 255, 255, 0.1);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --nav-height: 4.5rem;
  --max-width: 72rem;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--pink-soft);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--pink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Nav ——— */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(to bottom, rgba(8, 6, 8, 0.92), transparent);
  transition: background var(--transition), backdrop-filter var(--transition);
}

.site-header.scrolled {
  background: rgba(8, 6, 8, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 4px;
}

.brand:hover {
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.nav-cta {
  display: flex;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--pink);
  color: #fff;
}

.btn-primary:hover {
  background: #ff2d9a;
  color: #fff;
  box-shadow: 0 8px 24px rgba(233, 30, 140, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--pink);
  color: var(--pink-soft);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 0.875rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  padding: 0.5rem;
  cursor: pointer;
}

/* ——— Hero ——— */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video,
.hero-slideshow,
.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slideshow .slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: kenBurns 18s ease-in-out infinite;
}

.hero-slideshow .slide:nth-child(1) {
  background-image: url("../images/hero-crowd.jpg");
  animation-delay: 0s;
}

.hero-slideshow .slide:nth-child(2) {
  background-image: url("../images/hero-acropolis.jpg");
  animation-delay: 6s;
}

.hero-slideshow .slide:nth-child(3) {
  background-image: url("../images/live-stage.jpg");
  animation-delay: 12s;
}

@keyframes kenBurns {
  0%, 28% { opacity: 1; transform: scale(1); }
  33%, 100% { opacity: 0; transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8, 6, 8, 0.95) 0%, rgba(8, 6, 8, 0.4) 45%, rgba(8, 6, 8, 0.55) 100%),
    linear-gradient(135deg, rgba(74, 44, 90, 0.25) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 3rem) clamp(1.25rem, 4vw, 2.5rem) 4rem;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-soft);
  border: 1px solid rgba(233, 30, 140, 0.4);
  border-radius: 2px;
  background: rgba(74, 44, 90, 0.35);
}

.hero-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  font-style: italic;
  color: var(--pink-soft);
}

.hero-meta {
  margin: 1.25rem 0 2rem;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.hero-meta strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2.5s ease-in-out infinite;
}

.scroll-hint::after {
  content: "";
  width: 1px;
  height: 2rem;
  background: linear-gradient(to bottom, var(--pink), transparent);
}

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

/* ——— Sections ——— */

section {
  padding: clamp(4rem, 10vw, 6rem) clamp(1.25rem, 4vw, 2.5rem);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
}

.section-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
}

/* Event strip */

.event-strip {
  background: var(--purple-deep);
  border-block: 1px solid var(--border);
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
}

.event-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.event-stat dt {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.event-stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

/* Trailer */

.trailer-section {
  background: var(--bg-elevated);
}

.trailer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.trailer-poster img {
  border-radius: 4px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.trailer-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
}

.trailer-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity var(--transition);
}

.trailer-player:hover img {
  opacity: 0.55;
}

.play-button {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button span {
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(233, 30, 140, 0.45);
  transition: transform var(--transition);
}

.trailer-player:hover .play-button span {
  transform: scale(1.08);
}

.play-button svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 4px;
  fill: #fff;
}

.trailer-copy p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.trailer-copy p:last-child {
  margin-bottom: 0;
}

/* Synopsis */

.synopsis-section .synopsis-lead {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 1.5rem;
}

.synopsis-body {
  columns: 2;
  column-gap: 3rem;
  color: var(--text-muted);
}

.synopsis-body p {
  margin: 0 0 1rem;
  break-inside: avoid;
}

/* Exclusive */

.exclusive-section {
  background:
    linear-gradient(135deg, rgba(74, 44, 90, 0.4) 0%, transparent 60%),
    var(--bg-elevated);
}

.exclusive-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(8, 6, 8, 0.5);
}

.exclusive-card img {
  border-radius: 4px;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.exclusive-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--pink);
  color: #fff;
  border-radius: 2px;
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 0.5rem;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
}

.gallery-grid figure:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
}

/* Tickets / Usheru */

.tickets-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.usheru-widget {
  min-height: 420px;
  padding: 2rem;
  border: 1px dashed rgba(233, 30, 140, 0.35);
  border-radius: 4px;
  background: rgba(18, 16, 24, 0.6);
  text-align: center;
}

.usheru-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  gap: 1rem;
  color: var(--text-muted);
}

.usheru-placeholder svg {
  width: 3rem;
  height: 3rem;
  opacity: 0.4;
}

.usheru-placeholder code {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 2px;
  color: var(--pink-soft);
}

/* Sign up */

.signup-section {
  background:
    linear-gradient(to bottom, var(--bg-elevated), var(--purple-deep));
  text-align: center;
}

.signup-section .section-inner {
  max-width: 36rem;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-field input,
.form-field select {
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color var(--transition);
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--pink);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-consent input {
  margin-top: 0.25rem;
  accent-color: var(--pink);
}

.form-message {
  padding: 0.85rem 1rem;
  border-radius: 2px;
  font-size: 0.9rem;
  display: none;
}

.form-message.visible {
  display: block;
}

.form-message.success {
  background: rgba(46, 160, 67, 0.15);
  border: 1px solid rgba(46, 160, 67, 0.4);
  color: #7ee787;
}

.form-message.error {
  background: rgba(248, 81, 73, 0.12);
  border: 1px solid rgba(248, 81, 73, 0.35);
  color: #ff7b72;
}

.signup-form .btn-primary {
  width: 100%;
  margin-top: 0.5rem;
}

/* Footer */

.site-footer {
  padding: 3rem clamp(1.25rem, 4vw, 2.5rem);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-partners {
  width: 100%;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.modal-dialog iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(18, 16, 24, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transform: translateY(100%);
  transition: transform var(--transition);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner p {
  margin: 0;
  flex: 1;
  min-width: 240px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
}

/* Legal pages */

.legal-page {
  padding: calc(var(--nav-height) + 3rem) clamp(1.25rem, 4vw, 2.5rem) 4rem;
  max-width: 48rem;
  margin: 0 auto;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  margin: 0 0 0.5rem;
}

.legal-page .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
}

.legal-page ul {
  padding-left: 1.25rem;
}

/* Mobile nav */

@media (max-width: 900px) {
  .trailer-grid,
  .exclusive-card {
    grid-template-columns: 1fr;
  }

  .synopsis-body {
    columns: 1;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .gallery-grid figure:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links,
  .nav-cta .btn-outline {
    display: none;
  }

  .nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    padding: 2rem;
    background: rgba(8, 6, 8, 0.98);
    border-bottom: 1px solid var(--border);
  }

  .nav-open .nav-cta {
    position: fixed;
    top: calc(var(--nav-height) + 14rem);
    left: 1.25rem;
    right: 1.25rem;
    flex-direction: column;
  }

  .nav-open .nav-cta .btn-outline {
    display: inline-flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
