/* ==========================================================================
   House Party — promo site stylesheet
   Theme: "late-night house party" — warm cream canvas, deep purple ink,
   party-pink / violet / gold accents, ticket-stub cards, confetti dots.
   Light scheme, mobile-first. No inline styles anywhere in HTML.
   ========================================================================== */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #241a3b;
  background-color: #faf6ef;
  background-image: radial-gradient(circle at 12% 8%, rgba(252, 183, 64, 0.14) 0 60px, transparent 61px),
                    radial-gradient(circle at 88% 18%, rgba(232, 56, 127, 0.10) 0 90px, transparent 91px),
                    radial-gradient(circle at 70% 92%, rgba(124, 77, 255, 0.10) 0 70px, transparent 71px);
}

img { max-width: 100%; height: auto; display: block; }
a { color: #7c4dff; }
a:hover { color: #e8387f; }

h1, h2, h3, h4 {
  line-height: 1.25;
  color: #241a3b;
  font-weight: 800;
}

.container { width: min(1120px, 92%); margin: 0 auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #241a3b; color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 239, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 2px dashed #e6dcc9;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: #241a3b; text-decoration: none;
  letter-spacing: -0.02em;
}
.logo img { width: 38px; height: 38px; border-radius: 10px; }
.logo span b { color: #e8387f; }

.nav-toggle {
  display: none;
  background: none; border: 2px solid #241a3b; border-radius: 10px;
  color: #241a3b; font-size: 1.3rem; line-height: 1; padding: 6px 12px; cursor: pointer;
}
.nav-links {
  display: flex; align-items: center; gap: 6px; list-style: none; flex-wrap: wrap;
}
.nav-links a:not(.btn-play) {
  color: #241a3b; text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 10px;
}
.nav-links a:not(.btn-play):hover { background: #f1e8da; color: #e8387f; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font-weight: 700; border-radius: 999px; padding: 12px 26px; font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-play {
  background: linear-gradient(135deg, #e8387f, #7c4dff);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(232, 56, 127, 0.35);
}
.btn-play:hover { box-shadow: 0 10px 24px rgba(124, 77, 255, 0.45); }
.btn-ghost {
  background: transparent; border: 2px solid #241a3b; color: #241a3b;
}
.btn-ghost:hover { background: #241a3b; color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }

/* ---------- Hero (index) ---------- */
.hero {
  padding: 56px 0 40px;
  background: linear-gradient(160deg, #fdf3e7 0%, #f3e9ff 55%, #ffe9f2 100%);
  border-bottom: 2px dashed #e6dcc9;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.hero-kicker {
  display: inline-block; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #7c4dff; background: rgba(124, 77, 255, 0.12);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 14px; }
.hero h1 .accent { color: #e8387f; }
.hero-lead { font-size: 1.15rem; color: #4b3f66; max-width: 34em; margin-bottom: 22px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-figure { position: relative; }
.hero-figure::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border-radius: 24px; background: linear-gradient(135deg, #e8387f, #7c4dff);
  opacity: 0.9;
}
.hero-figure img {
  position: relative; border-radius: 22px; border: 4px solid #fff;
  box-shadow: 0 18px 40px rgba(36, 26, 59, 0.28);
}
.hero-badges {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px;
}

/* ---------- Hero (sub-pages) ---------- */
.hero-subpage {
  padding: 40px 0 8px;
  background: linear-gradient(160deg, #fdf3e7 0%, #f3e9ff 100%);
  border-bottom: 2px dashed #e6dcc9;
}
.hero-subpage h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.hero-subpage .lede { font-size: 1.1rem; color: #4b3f66; max-width: 46em; }
.crumb { font-size: 0.85rem; color: #8a7ba8; margin-bottom: 10px; }
.crumb a { color: #8a7ba8; text-decoration: none; }
.crumb a:hover { color: #e8387f; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.section-head h2::after {
  content: ""; display: block; width: 64px; height: 5px; margin: 12px auto 0;
  border-radius: 4px; background: linear-gradient(90deg, #e8387f, #ffb703, #7c4dff);
}
.section-head p { color: #4b3f66; }

.prose { max-width: 780px; margin: 0 auto; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { margin: 1.4em 0 0.6em; }
.prose h3 { margin: 1.2em 0 0.5em; }
.prose ul, .prose ol { margin: 0 0 1.1em 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 0.85rem; color: #8a7ba8; text-align: center; margin-top: 8px; }

/* ---------- Facts table ---------- */
.facts-card {
  background: #fff; border: 2px solid #efe5d2; border-radius: 20px;
  box-shadow: 0 10px 30px rgba(36, 26, 59, 0.08);
  padding: 26px 28px; margin: 0 auto; max-width: 860px;
}
.facts-table { width: 100%; border-collapse: collapse; }
.facts-table th, .facts-table td { text-align: left; padding: 12px 14px; border-bottom: 1px dashed #e6dcc9; vertical-align: top; }
.facts-table tr:last-child th, .facts-table tr:last-child td { border-bottom: 0; }
.facts-table th { width: 38%; color: #7c4dff; font-weight: 800; white-space: nowrap; }
.facts-table .chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  background: #f1e8da; color: #241a3b; border-radius: 999px; padding: 4px 12px;
}
.chip.pink { background: rgba(232, 56, 127, 0.14); color: #c22a66; }
.chip.violet { background: rgba(124, 77, 255, 0.14); color: #6a3cf0; }
.chip.gold { background: rgba(255, 183, 3, 0.22); color: #8a5f00; }

/* ---------- Feature cards ---------- */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature-card {
  background: #fff; border: 2px solid #efe5d2; border-top: 6px solid #e8387f;
  border-radius: 18px; padding: 26px 24px; box-shadow: 0 8px 24px rgba(36, 26, 59, 0.06);
}
.feature-card:nth-child(3n+2) { border-top-color: #7c4dff; }
.feature-card:nth-child(3n) { border-top-color: #ffb703; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.6rem; background: #fdf3e7; margin-bottom: 14px;
}
.feature-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-card p { color: #4b3f66; font-size: 0.97rem; }

/* ---------- Gallery / lightbox ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.gallery-item { position: relative; display: block; border-radius: 16px; overflow: hidden; cursor: zoom-in; }
.gallery-item img {
  aspect-ratio: 16/9; object-fit: cover; border-radius: 16px;
  border: 3px solid #fff; box-shadow: 0 8px 20px rgba(36, 26, 59, 0.18);
  transition: transform 0.25s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .zoom-hint {
  position: absolute; right: 10px; bottom: 10px; background: rgba(36, 26, 59, 0.75);
  color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  pointer-events: none;
}

.lightbox {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(20, 12, 34, 0.94); align-items: center; justify-content: center;
  flex-direction: column; gap: 14px; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1100px, 94vw); max-height: 82vh; border-radius: 14px;
  border: 3px solid #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute; top: 18px; right: 24px; font-size: 2.2rem; line-height: 1;
  background: none; border: 0; color: #fff; cursor: pointer; padding: 6px 12px;
}
.lightbox-caption { color: #e9e2ff; font-size: 0.95rem; text-align: center; max-width: 60ch; }
.lightbox-nav {
  display: flex; gap: 12px; align-items: center;
}
.lightbox-nav button {
  background: rgba(255, 255, 255, 0.14); color: #fff; border: 0; border-radius: 999px;
  font-size: 1rem; font-weight: 700; padding: 10px 20px; cursor: pointer;
}
.lightbox-nav button:hover { background: rgba(255, 255, 255, 0.28); }

/* ---------- Quotes ---------- */
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
blockquote.quote {
  background: #fff; border: 2px solid #efe5d2; border-radius: 18px;
  padding: 24px 22px; position: relative; box-shadow: 0 8px 24px rgba(36, 26, 59, 0.06);
}
blockquote.quote::before {
  content: "\201C"; position: absolute; top: -14px; left: 18px;
  font-size: 3.4rem; color: #e8387f; font-family: Georgia, serif; line-height: 1;
}
blockquote.quote p { color: #3d3157; font-style: italic; margin-bottom: 12px; }
footer.quote-author { font-size: 0.85rem; font-weight: 700; color: #8a7ba8; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, #241a3b 0%, #4b2a63 55%, #7c4dff 100%);
  border-radius: 24px; color: #fff; padding: 42px 40px; text-align: center;
  box-shadow: 0 18px 44px rgba(36, 26, 59, 0.35); position: relative; overflow: hidden;
}
.cta-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14) 0 8px, transparent 9px),
                    radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.10) 0 5px, transparent 6px),
                    radial-gradient(circle at 45% 85%, rgba(255, 255, 255, 0.12) 0 6px, transparent 7px);
  background-size: 220px 220px;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; position: relative; z-index: 1; }
.cta-banner p { color: #d9ccff; margin-bottom: 22px; position: relative; z-index: 1; }
.cta-banner .btn { position: relative; z-index: 1; }

/* ---------- Characters ---------- */
.character-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.character-card {
  background: #fff; border: 2px solid #efe5d2; border-radius: 18px; padding: 24px 22px;
  box-shadow: 0 8px 24px rgba(36, 26, 59, 0.06);
}
.character-card .avatar {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.7rem; margin-bottom: 12px; background: #f3e9ff;
}
.character-card h3 { font-size: 1.1rem; }
.character-card .role { font-size: 0.82rem; font-weight: 800; color: #e8387f; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.character-card p { color: #4b3f66; font-size: 0.95rem; }

/* ---------- Two-col prose + media ---------- */
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.two-col.flip { direction: rtl; }
.two-col.flip > * { direction: ltr; }
.media-frame { position: relative; }
.media-frame::before {
  content: ""; position: absolute; inset: 12px -12px -12px 12px; border-radius: 20px;
  background: linear-gradient(135deg, #ffb703, #e8387f); opacity: 0.85;
}
.media-frame img { position: relative; border-radius: 18px; border: 4px solid #fff; box-shadow: 0 14px 34px rgba(36, 26, 59, 0.25); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 2px solid #efe5d2; border-radius: 16px; margin-bottom: 14px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 800; color: #241a3b; padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-q::after {
  content: "+"; font-size: 1.5rem; font-weight: 700; color: #7c4dff; flex: 0 0 auto;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); color: #e8387f; }
.faq-a { display: none; padding: 0 22px 20px; color: #4b3f66; }
.faq-item.open .faq-a { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 2px dashed #e6dcc9; margin-top: 40px;
  background: #f3ecdf; padding: 28px 0 34px;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.site-footer .copyright { font-size: 0.88rem; color: #8a7ba8; }
.lang-switch { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; list-style: none; }
.lang-switch a {
  font-size: 0.82rem; font-weight: 700; text-decoration: none; color: #241a3b;
  border: 1.5px solid #d9cbab; border-radius: 999px; padding: 5px 13px; background: #fff;
}
.lang-switch a:hover { border-color: #e8387f; color: #e8387f; }
.lang-switch .active { background: #241a3b; color: #fff; border-color: #241a3b; }
.lang-switch .active:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .two-col { direction: ltr !important; }
  .features-grid, .quotes-grid, .gallery-grid, .character-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    padding: 10px 0 16px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn-play { text-align: center; margin-top: 6px; }
  .facts-table th { white-space: normal; width: 34%; }
  .cta-banner { padding: 34px 22px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .features-grid, .quotes-grid, .gallery-grid, .character-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 30px; }
  .section { padding: 40px 0; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .header-inner { flex-wrap: wrap; }
  .logo { font-size: 1.02rem; }
  .facts-table th, .facts-table td { display: block; width: 100%; padding: 6px 0; }
  .facts-table tr { padding: 8px 0; }
  .footer-inner { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto; }
}
