/* ==========================================
   CREO MEDIA - Main Stylesheet
   ========================================== */

/* --- CSS Variables --- */
:root {
  --color-bg: #0f0f0f;
  --color-bg-alt: #1a1a1a;
  --color-bg-card: #1e1e1e;
  --color-surface: #2a2a2a;
  --color-text: #f5f0e8;
  --color-text-muted: #a8a29e;
  --color-accent: #c9b99a;
  --color-accent-hover: #ddd0b5;
  --color-border: rgba(201, 185, 154, 0.15);
  --color-border-hover: rgba(201, 185, 154, 0.35);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --container-max: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Section Labels & Titles --- */
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 3rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.875rem 2rem;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-bg);
  border-color: var(--color-accent-hover);
}

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

.btn-outline:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(255,255,255,0.3);
}

.btn-ghost:hover {
  border-color: var(--color-text);
  background: rgba(255,255,255,0.05);
  color: var(--color-text);
}

.btn-text {
  padding: 0;
  border: none;
  color: var(--color-accent);
  font-weight: 500;
}

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

.btn-full {
  width: 100%;
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(15, 15, 15, 0.95);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

.logo-creo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.logo-media {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: 140px;
  display: block;
  object-fit: contain;
}

.site-footer .logo-img {
  height: 72px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.8rem;
  padding: 0.625rem 1.5rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 50%, #1a1816 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201, 185, 154, 0.06) 0%, transparent 60%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(201, 185, 154, 0.03) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.hero-line {
  display: block;
  font-size: clamp(3rem, 8vw, 6rem);
}

.hero-title em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-divider {
  width: 80px;
  height: 1px;
  background: var(--color-accent);
  margin: 2rem auto;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ==========================================
   REEL SECTION
   ========================================== */
.reel-section {
  padding: 8rem 0;
  background: var(--color-bg);
}

.reel-wrapper {
  aspect-ratio: 16/9;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.reel-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--color-text-muted);
}

.play-button {
  width: 80px;
  height: 80px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.play-button:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.play-button svg {
  width: 24px;
  height: 24px;
  margin-left: 4px;
}

/* ==========================================
   SPOTLIGHT SECTION
   ========================================== */
.spotlight-section {
  padding: 8rem 0;
  background: var(--color-bg-alt);
}

.stars {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.stars svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  opacity: 0;
  transform: scale(0) rotate(-20deg);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.stars.visible svg:nth-child(1) { transition-delay: 0s; }
.stars.visible svg:nth-child(2) { transition-delay: 0.15s; }
.stars.visible svg:nth-child(3) { transition-delay: 0.3s; }
.stars.visible svg:nth-child(4) { transition-delay: 0.45s; }
.stars.visible svg:nth-child(5) { transition-delay: 0.6s; }

.stars.visible svg {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.spotlight-content blockquote {
  border-left: 2px solid var(--color-accent);
  padding-left: 2rem;
  margin-bottom: 2rem;
}

.spotlight-content blockquote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.spotlight-content blockquote cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 500;
}

.spotlight-video {
  margin-top: 2.5rem;
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.spotlight-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ==========================================
   VALUE SECTION
   ========================================== */
.value-section {
  padding: 8rem 0;
  background: var(--color-bg);
}

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

.value-statement h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.3;
}

.value-detail p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.value-divider {
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  margin: 2rem 0;
}

.value-detail h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-accent);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-section {
  padding: 8rem 0;
  background: var(--color-bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 2.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: rgba(201, 185, 154, 0.15);
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-list {
  list-style: none;
}

.service-list li {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--color-accent);
}

/* ==========================================
   PROCESS SECTION
   ========================================== */
.process-section {
  padding: 8rem 0;
  background: var(--color-bg);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.process-step {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--color-border);
  transition: border-color var(--transition);
}

.process-step:hover {
  border-top-color: var(--color-accent);
}

.process-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(201, 185, 154, 0.12);
  font-weight: 700;
  margin-bottom: 1rem;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ==========================================
   PLANS SECTION
   ========================================== */
.plans-section {
  padding: 8rem 0;
  background: var(--color-bg-alt);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.plan-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 3rem 2.5rem;
  transition: all var(--transition);
}

.plan-card.featured {
  border-color: var(--color-accent);
  position: relative;
  transform: scale(1.03);
}

.plan-card:hover {
  border-color: var(--color-border-hover);
}

.plan-card.featured:hover {
  border-color: var(--color-accent-hover);
}

.plan-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.plan-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.plan-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.plan-features li {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.8rem;
}

.plan-features li.addon {
  font-style: italic;
  color: rgba(168, 162, 158, 0.7);
}

.plan-features li.addon::before {
  content: '+';
}

/* ==========================================
   PARTNER SECTION
   ========================================== */
.partner-section {
  padding: 8rem 0;
  background: var(--color-bg);
  text-align: center;
}

.partner-content {
  max-width: 700px;
  margin: 0 auto;
}

.partner-content p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
  padding: 8rem 0;
  background: var(--color-bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info .section-title {
  margin-bottom: 1.5rem;
}

.contact-info > p {
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.contact-form-wrapper {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 3rem;
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

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

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a8a29e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  padding: 4rem 0 2rem;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  display: inline-flex;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-text-muted);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

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

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

.footer-contact a,
.footer-contact p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.25rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition);
}

.social-links a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  text-align: center;
}

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

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 15, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 998;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
    z-index: 999;
  }

  .hero-line {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

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

  .plan-card.featured {
    transform: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

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

  section {
    padding: 5rem 0;
  }
}

/* ==========================================
   VIDEO LIGHTBOX (shared across pages)
   ========================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: 1px solid rgba(201, 185, 154, 0.3);
  color: var(--color-accent);
  font-size: 1.75rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 9999;
}

.lightbox-close:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.lightbox-inner {
  width: 100%;
  max-width: 1000px;
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-overlay.active .lightbox-inner {
  transform: scale(1);
}

.lightbox-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.lightbox-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.lightbox-overlay.vertical .lightbox-inner {
  max-width: 400px;
}

.lightbox-overlay.vertical .lightbox-frame {
  aspect-ratio: 9 / 16;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   NEWSLETTER POPUP
   ========================================== */

.newsletter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.newsletter-overlay.active {
  opacity: 1;
  visibility: visible;
}

.newsletter-popup {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  max-width: 520px;
  width: 100%;
  padding: 3.5rem 3rem;
  transform: translateY(28px);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter-overlay.active .newsletter-popup {
  transform: translateY(0);
}

/* Decorative corner accent */
.newsletter-popup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
}

.newsletter-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color var(--transition);
}

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

.newsletter-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.newsletter-title em {
  font-style: italic;
  color: var(--color-accent);
}

.newsletter-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.newsletter-input-group {
  display: flex;
  gap: 0;
}

.newsletter-input-group input[type="email"] {
  flex: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-right: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 0.875rem 1.25rem;
  outline: none;
  transition: border-color var(--transition);
  min-width: 0;
}

.newsletter-input-group input[type="email"]::placeholder {
  color: var(--color-text-muted);
}

.newsletter-input-group input[type="email"]:focus {
  border-color: var(--color-accent);
}

.newsletter-input-group .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.newsletter-fine {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.875rem;
  opacity: 0.7;
}

.newsletter-success {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}

.newsletter-success p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-accent);
}

/* Mobile */
@media (max-width: 560px) {
  .newsletter-popup {
    padding: 2.5rem 1.75rem;
  }

  .newsletter-input-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .newsletter-input-group input[type="email"] {
    border-right: 1px solid var(--color-border);
  }

  .newsletter-input-group .btn {
    width: 100%;
  }
}
