/*
Theme Name: Storybox Vision
Theme URI: https://storybox.agency/
Description: A WordPress recreation of the Storybox Vision experience with matching styling and event portfolio filtering.
Version: 1.0.0
Author: OpenAI
Text Domain: storybox-vision
*/

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

:root {
  --background: #050505;
  --foreground: #ececec;
  --card: #161616;
  --card-foreground: #ececec;
  --popover: #161616;
  --popover-foreground: #ececec;
  --primary: #ffffff;
  --primary-foreground: #050505;
  --secondary: #232323;
  --secondary-foreground: #ececec;
  --muted: #2b2b2b;
  --muted-foreground: #8b8b8b;
  --accent: #ffffff;
  --accent-foreground: #050505;
  --border: #333333;
  --ring: #ffffff;
  --radius: 0.25rem;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', Arial, sans-serif;
  --gold-glow: #d9c28e;
  --cream: #f3efe8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body, p, li, span, div { font-family: var(--font-body); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { width: min(1200px, calc(100% - 2rem)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5,5,5,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; gap: 1rem; }
.site-brand img { width: 150px; height: auto; filter: invert(1); }
.site-nav__wrap { display: flex; align-items: center; }
.site-nav__links { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.site-nav__links li { margin: 0; }
.site-nav__links a { font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-foreground); transition: color 0.3s ease; }
.site-nav__links a:hover, .site-nav__links a.current-menu-item { color: var(--foreground); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); background: transparent; border-radius: 999px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 1px; background: var(--foreground); }

.section { padding: 5rem 0; }
.section--tight { padding: 3rem 0; }
.section--centered { text-align: center; }
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; padding: 7rem 0 4rem; overflow: hidden; background-size: cover; background-position: center; }
.hero--compact { min-height: 68vh; padding: 6rem 0 3rem; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,0.78), rgba(5,5,5,0.35)); }
.hero__content { position: relative; z-index: 1; max-width: 820px; text-align: center; }
.hero__eyebrow, .section__eyebrow { font-size: 0.75rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold-glow); margin-bottom: 1rem; }
.single-event { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: start; }
.single-event__image { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); object-fit: cover; min-height: 420px; }
.single-event__content { background: var(--card); border: 1px solid var(--border); padding: 2rem; border-radius: var(--radius); }
.single-event__meta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 1.5rem; }
.meta-pill { display: inline-flex; align-items: center; padding: 0.5rem 0.85rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted-foreground); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; }
.hero__title, .section__title { font-size: clamp(2.3rem, 4vw, 3.8rem); line-height: 1.1; margin: 0 0 1.2rem; letter-spacing: -0.02em; }
.hero__subtitle, .section__subtitle { color: var(--muted-foreground); font-size: 1.05rem; line-height: 1.8; max-width: 760px; margin: 0 auto; }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.hero__meta .btn { min-width: 220px; }
.btn, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; padding: 0.9rem 1.35rem; border-radius: var(--radius); border: 1px solid var(--border); background: transparent; color: var(--foreground); cursor: pointer; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; transition: transform 0.3s ease, opacity 0.3s ease; }
.btn--primary, .wp-block-button__link { background: var(--primary); color: var(--primary-foreground); border-color: transparent; }
.btn:hover, .wp-block-button__link:hover { transform: translateY(-2px); opacity: 0.95; }

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,0.16); transition: transform 0.3s ease, border-color 0.3s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(217, 194, 142, 0.45); }
.card__body { padding: 1.25rem; }
.card__image { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card__title { font-size: 1.2rem; margin: 0 0 0.4rem; }
.card__meta { color: var(--muted-foreground); font-size: 0.9rem; margin-bottom: 0.6rem; }
.card__copy { color: var(--muted-foreground); font-size: 0.95rem; }

.featured-grid, .video-grid, .team-grid, .footer__grid, .stats-grid { display: grid; gap: 1.25rem; }
.featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.event-card { display: flex; flex-direction: column; height: 100%; }
.event-card--featured { border-color: rgba(217, 194, 142, 0.35); }
.event-card__content { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.65rem; flex: 1; }
.event-card__title { font-size: 1.15rem; margin: 0; }
.event-card__summary { color: var(--muted-foreground); min-height: 5rem; margin: 0; }
.event-card__footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; color: var(--muted-foreground); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.16em; gap: 0.5rem; }

.filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 0.75rem; }
.filter-select { width: 100%; background: var(--card); color: var(--foreground); border: 1px solid var(--border); padding: 0.85rem 1rem; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; }
.filter-select option { background: var(--card); color: var(--foreground); }
.filter-status { margin: 0 0 2rem; color: var(--muted-foreground); font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; }
.events-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }

.stat-card, .team-card, .testimonial-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.stat-card .icon { width: 36px; height: 36px; color: var(--gold-glow); margin-bottom: 0.8rem; }
.stat-card__value { font-size: 2rem; margin: 0 0 0.35rem; }
.stat-card__label { color: var(--muted-foreground); margin: 0; }
.video-grid video { width: 100%; min-height: 220px; background: #000; }

.footer { padding: 3rem 0 4rem; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 4rem; color: var(--muted-foreground); }
.footer__grid p, .footer__grid li { color: var(--muted-foreground); }
.footer .site-nav__links { flex-direction: column; align-items: flex-start; gap: 0.6rem; }

@media (max-width: 900px) {
  .grid--2, .grid--3, .featured-grid, .events-grid, .video-grid, .team-grid, .footer__grid, .stats-grid, .filters { grid-template-columns: 1fr 1fr; }
  .single-event { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .site-nav__wrap { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(5,5,5,0.97); border-bottom: 1px solid rgba(255,255,255,0.08); padding: 1rem 1rem 1.5rem; }
  .site-nav__wrap.is-open { display: block; }
  .site-nav__links { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 82vh; padding-top: 6rem; }
  .hero__meta { flex-direction: column; align-items: center; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .featured-grid, .events-grid, .video-grid, .team-grid, .footer__grid, .stats-grid, .filters { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .hero__title, .section__title { font-size: 2.25rem; }
}
