/* ═══════════════════════════════════════════════════
   TOPCOM — Events Page Styles
   ═══════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════
   PAGE HERO — Abstract Animated (shared pattern)
   ══════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

.hero-abstract {
  position: absolute; inset: 0; z-index: 1; overflow: hidden;
}
.abs-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0; animation: fadeIn 2s ease 0.3s forwards;
}
.abs-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
  z-index: 2;
}
.abs-shape { position: absolute; opacity: 0; animation-fill-mode: forwards; }
.abs-ring { border: 2px solid rgba(255,255,255,0.08); border-radius: 50%; }
.abs-1 { width: 200px; height: 200px; top: 10%; left: 5%; animation: fadeIn 1.2s ease 0.4s forwards, absFloat1 18s ease-in-out infinite; }
.abs-2 { width: 120px; height: 120px; bottom: 15%; right: 8%; border-color: rgba(255,255,255,0.06); animation: fadeIn 1.2s ease 0.7s forwards, absFloat2 22s ease-in-out infinite; }
.abs-dot { border-radius: 50%; background: rgba(255,255,255,0.2); }
.abs-3 { width: 6px; height: 6px; top: 20%; right: 25%; animation: fadeIn 0.8s ease 0.3s forwards, absFloat3 9s ease-in-out infinite; }
.abs-4 { width: 4px; height: 4px; bottom: 30%; left: 18%; animation: fadeIn 0.8s ease 0.5s forwards, absFloat1 11s ease-in-out infinite; }
.abs-5 { width: 5px; height: 5px; top: 65%; right: 12%; animation: fadeIn 0.8s ease 0.8s forwards, absFloat2 10s ease-in-out infinite; }
.abs-line { height: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); }
.abs-6 { width: 140px; top: 35%; left: 2%; transform: rotate(-20deg); animation: fadeIn 1s ease 0.6s forwards, absFloat3 16s ease-in-out infinite; }
.abs-7 { width: 90px; bottom: 25%; right: 4%; transform: rotate(30deg); animation: fadeIn 1s ease 0.9s forwards, absFloat1 14s ease-in-out infinite; }
.abs-cross { width: 20px; height: 20px; }
.abs-8 { top: 12%; right: 20%; animation: fadeIn 1s ease 0.5s forwards, shapeSpin 25s linear infinite; }
.abs-8::before, .abs-8::after { content: ''; position: absolute; background: rgba(255,255,255,0.12); }
.abs-8::before { width: 100%; height: 2px; top: 50%; transform: translateY(-50%); }
.abs-8::after { width: 2px; height: 100%; left: 50%; transform: translateX(-50%); }
.abs-square { border: 1.5px solid rgba(255,255,255,0.06); }
.abs-9 { width: 35px; height: 35px; bottom: 18%; left: 28%; animation: fadeIn 1s ease 1s forwards, shapeSpin 30s linear infinite reverse; }
.abs-circle-fill { border-radius: 50%; background: rgba(255,255,255,0.025); }
.abs-10 { width: 350px; height: 350px; top: -100px; right: -80px; animation: fadeIn 1.5s ease 0.2s forwards, absFloat2 25s ease-in-out infinite; }
.abs-11 { width: 250px; height: 250px; bottom: -80px; left: -60px; animation: fadeIn 1.5s ease 0.4s forwards, absFloat3 20s ease-in-out infinite; }

@keyframes absFloat1 { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(15px, -20px); } 66% { transform: translate(-12px, 12px); } }
@keyframes absFloat2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-20px, -15px); } }
@keyframes absFloat3 { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(12px, 15px); } 75% { transform: translate(-18px, -8px); } }
@keyframes shapeSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Hero Content */
.page-hero-content {
  position: relative; z-index: 3;
  text-align: center; padding: 0 var(--space-lg); max-width: 800px;
}
.hero-label {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-bottom: var(--space-lg); opacity: 0;
  animation: fadeInDown 0.8s var(--ease-out) 0.4s forwards;
}
.hero-label span:not(.label-line) {
  font-size: var(--fs-sm); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.25em; color: rgba(255,255,255,0.8); white-space: nowrap;
}
.label-line {
  display: block; height: 1px; width: 0;
  background: rgba(255,255,255,0.4);
  animation: lineDraw 1s var(--ease-out) 1s forwards;
}
@keyframes lineDraw { to { width: 60px; } }

.hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; color: var(--white); line-height: 1.15;
  opacity: 0; animation: fadeInUp 1s var(--ease-out) 0.6s forwards;
}
.hero-headline em {
  font-style: italic; font-weight: 300; color: rgba(255,255,255,0.5);
}
.hero-sub {
  font-size: var(--fs-md); color: rgba(255,255,255,0.45);
  margin-top: var(--space-sm); opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 1s forwards;
}

.hero-corner {
  position: absolute; width: 70px; height: 70px; z-index: 3;
  pointer-events: none; opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.2s forwards;
}
.hero-corner-tl { top: 30px; left: 30px; border-top: 2px solid rgba(255,255,255,0.15); border-left: 2px solid rgba(255,255,255,0.15); }
.hero-corner-br { bottom: 30px; right: 30px; border-bottom: 2px solid rgba(255,255,255,0.15); border-right: 2px solid rgba(255,255,255,0.15); }

/* ══════════════════════════════════════════════════
   INTRO — Two Columns
   ══════════════════════════════════════════════════ */
.ev-intro { background: var(--white); }
.intro-cols {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: var(--space-2xl); align-items: start;
}
.intro-col-left h2 {
  font-size: var(--fs-2xl); font-weight: 800; color: var(--black); line-height: 1.2;
}
.intro-col-left h2 em { font-style: italic; font-weight: 300; color: var(--gray-500); }
.text-divider {
  width: 60px; height: 3px; background: var(--black); margin-top: var(--space-md);
  transform-origin: left; transform: scaleX(0);
  animation: dividerIn 0.8s var(--ease-out) forwards; animation-play-state: paused;
}
.reveal-left.visible .text-divider { animation-play-state: running; }
@keyframes dividerIn { to { transform: scaleX(1); } }

.intro-col-right p {
  font-size: var(--fs-md); line-height: 1.8; color: var(--gray-600);
  margin-bottom: var(--space-sm);
}

/* ══════════════════════════════════════════════════
   PHILOSOPHY HIGHLIGHT
   ══════════════════════════════════════════════════ */
.ev-philosophy {
  padding: var(--space-xl) 0;
  background: var(--gray-100);
}
.philosophy-inner {
  max-width: 800px; margin: 0 auto; text-align: center;
  padding: var(--space-xl);
  position: relative;
}
.philosophy-accent {
  width: 50px; height: 3px; background: var(--black);
  margin: 0 auto var(--space-lg);
  transform: scaleX(0); transition: transform 0.8s var(--ease-out);
}
.philosophy-inner.visible .philosophy-accent { transform: scaleX(1); }

.philosophy-inner blockquote p {
  font-size: var(--fs-lg); font-weight: 400; line-height: 1.7;
  color: var(--gray-700); font-style: italic;
}
.philosophy-inner blockquote strong {
  font-weight: 800; color: var(--black); font-style: normal;
}

/* ══════════════════════════════════════════════════
   APPROACH CARDS
   ══════════════════════════════════════════════════ */
.ev-approach { background: var(--white); }
.approach-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl);
}
.approach-card {
  padding: var(--space-xl); background: var(--gray-100); border-radius: 20px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  position: relative; overflow: hidden;
}
.approach-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 4px; background: var(--black);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.approach-card:hover::before { transform: scaleX(1); }
.approach-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(0,0,0,0.08); }

.approach-icon {
  width: 72px; height: 72px; border-radius: 16px; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-md); color: var(--black);
  transition: all 0.4s var(--ease-out);
}
.approach-card:hover .approach-icon { background: var(--black); color: var(--white); transform: scale(1.05); }
.approach-card h3 { font-size: var(--fs-lg); font-weight: 700; color: var(--black); margin-bottom: var(--space-sm); }
.approach-card p { font-size: var(--fs-base); line-height: 1.8; color: var(--gray-600); }

/* ══════════════════════════════════════════════════
   EVENT TYPES GRID
   ══════════════════════════════════════════════════ */
.ev-types { background: var(--gray-100); }
.ev-types .section-label {
  font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.3em; color: var(--gray-500); margin-bottom: var(--space-sm);
}
.ev-types .section-title { font-size: var(--fs-2xl); color: var(--black); margin-bottom: var(--space-xl); }
.ev-types .section-title em { font-style: italic; font-weight: 300; color: var(--gray-500); }

.types-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; max-width: 1000px; margin: 0 auto;
}
.type-card {
  background: var(--white); border-radius: 16px;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  cursor: default;
}
.type-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.type-icon {
  font-size: 2.2rem; display: block; margin-bottom: var(--space-sm);
  transition: transform 0.3s var(--ease-out);
}
.type-card:hover .type-icon { transform: scale(1.15); }
.type-card h4 {
  font-size: var(--fs-sm); font-weight: 600; color: var(--black); line-height: 1.4;
}

/* ══════════════════════════════════════════════════
   PHOTO GALLERY — Masonry-style Grid
   ══════════════════════════════════════════════════ */
.ev-gallery { background: var(--white); }
.ev-gallery .section-label {
  font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.3em; color: var(--gray-500); margin-bottom: var(--space-sm);
}
.ev-gallery .section-title { font-size: var(--fs-2xl); color: var(--black); margin-bottom: var(--space-xl); }
.ev-gallery .section-title em { font-style: italic; font-weight: 300; color: var(--gray-500); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative; overflow: hidden; border-radius: 12px;
  cursor: pointer; aspect-ratio: 4 / 3;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
}

.gallery-item img {
  width: 100%; height: 100%; object-fit: contain; padding: 12px;
  transition: transform 0.6s var(--ease-out), filter 0.4s;
}

.gallery-item.hidden-item {
  display: none !important;
}
.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.6);
}

.gallery-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s var(--ease-out);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-zoom {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); color: var(--black);
  display: flex; align-items: center; justify-content: center;
  transform: scale(0.7); transition: transform 0.3s var(--ease-out);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.gallery-item:hover .gallery-zoom { transform: scale(1); }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.lightbox.active { opacity: 1; visibility: visible; }

.lightbox-content {
  max-width: 90vw; max-height: 85vh;
}
.lightbox-content img {
  max-width: 100%; max-height: 85vh;
  object-fit: contain; border-radius: 8px;
  opacity: 0; transform: scale(0.9);
  transition: opacity 0.4s, transform 0.4s;
}
.lightbox.active .lightbox-content img { opacity: 1; transform: scale(1); }

.lightbox-close {
  position: absolute; top: 20px; right: 30px;
  background: none; border: none; color: var(--white);
  font-size: 2.5rem; cursor: pointer; line-height: 1;
  transition: transform 0.3s; z-index: 2;
}
.lightbox-close:hover { transform: scale(1.15); }

.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: var(--white);
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.3s; z-index: 2;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }

.lightbox-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.5); font-size: var(--fs-sm); font-weight: 500;
}

/* ══════════════════════════════════════════════════
   REFERENCES LIST
   ══════════════════════════════════════════════════ */
.ev-references { background: var(--gray-100); }
.ev-references .section-label {
  font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.3em; color: var(--gray-500); margin-bottom: var(--space-sm);
}
.ev-references .section-title { font-size: var(--fs-2xl); color: var(--black); }
.ev-references .section-title em { font-style: italic; font-weight: 300; color: var(--gray-500); }
.ev-references .section-subtitle { color: var(--gray-500); margin-bottom: var(--space-xl); }

.ref-list { max-width: 800px; margin: 0 auto; }
.ref-item {
  display: flex; align-items: flex-start; gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.3s var(--ease-out);
}
.ref-item:first-child { border-top: 1px solid var(--gray-200); }
.ref-item:hover { padding-left: var(--space-sm); background: var(--white); border-radius: 8px; }

.ref-bullet {
  width: 8px; height: 8px; flex-shrink: 0; margin-top: 8px;
  border-radius: 50%; background: var(--black);
  transition: transform 0.3s;
}
.ref-item:hover .ref-bullet { transform: scale(1.5); }

.ref-item span:last-child {
  font-size: var(--fs-base); line-height: 1.6; color: var(--gray-700);
}
.ref-item:hover span:last-child { color: var(--black); }

/* ══════════════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════════════ */
.ev-cta { background: var(--black); padding: var(--space-2xl) 0; }
.cta-inner {
  max-width: 700px; margin: 0 auto; text-align: center;
  padding: var(--space-xl) 0;
}
.cta-accent {
  width: 60px; height: 4px; background: var(--white);
  margin: 0 auto var(--space-lg);
  transform: scaleX(0); transition: transform 0.8s var(--ease-out);
}
.cta-inner.visible .cta-accent { transform: scaleX(1); }

.cta-inner h2 { font-size: var(--fs-2xl); font-weight: 800; color: var(--white); margin-bottom: var(--space-sm); }
.cta-inner h2 em { font-style: italic; font-weight: 300; color: var(--gray-400); }
.cta-inner p { font-size: var(--fs-md); color: rgba(255,255,255,0.5); margin-bottom: var(--space-lg); }

.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px; font-size: var(--fs-sm); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--black); background: var(--white); border-radius: 100px;
  transition: all 0.4s var(--ease-out); position: relative; overflow: hidden;
}
.cta-btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gray-200); transform: scaleX(0);
  transform-origin: left; transition: transform 0.4s var(--ease-out);
  border-radius: inherit; z-index: 0;
}
.cta-btn:hover::before { transform: scaleX(1); }
.cta-btn span, .cta-btn svg { position: relative; z-index: 1; }
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(255,255,255,0.1); }
.cta-btn svg { transition: transform 0.3s var(--ease-out); }
.cta-btn:hover svg { transform: translateX(5px); }

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 968px) {
  .intro-cols { grid-template-columns: 1fr; gap: var(--space-xl); }
  .approach-grid { grid-template-columns: 1fr; }
  .types-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  /* Hide 3rd item purely on mobile unless gallery is expanded */
  .gallery-grid:not(.expanded) .gallery-item:nth-child(3) { display: none !important; }
  .hero-corner { width: 50px; height: 50px; }
  .hero-corner-tl { top: 16px; left: 16px; }
  .hero-corner-br { bottom: 16px; right: 16px; }
}

@media (max-width: 600px) {
  .page-hero { height: 65vh; min-height: 400px; }
  .page-hero-content { padding: 0 var(--space-sm); }
  .hero-headline { font-size: 1.8rem; }
  .hero-label span:not(.label-line) { font-size: var(--fs-xs); letter-spacing: 0.12em; }
  .label-line { display: none; }
  .hero-corner { display: none; }

  .types-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .type-card { padding: var(--space-md) var(--space-sm); }
  .type-icon { font-size: 1.6rem; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery-item { border-radius: 10px; }
  .gallery-zoom { width: 40px; height: 40px; }
  .gallery-zoom svg { width: 18px; height: 18px; }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }

  .approach-card { padding: var(--space-lg); }
  .cta-inner h2 { font-size: var(--fs-xl); }
}
