/* ============================================================
   JP MACHINERY — Exhibitions Page Styles
   Extends base site design language
   ============================================================ */

/* ===================== PAGE HERO ===================== */
.exh-hero {
  padding: 10rem 8vw 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.exh-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -60px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,79,216,0.055) 0%, transparent 70%);
  pointer-events: none;
}

.exh-hero-inner {
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: 4rem;
}

.exh-hero-left { max-width: 700px; }

.exh-hero-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.exh-hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.6rem;
}

.exh-hero-heading .accent-line { color: var(--accent-blue); }

.exh-hero-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 540px;
}

.exh-hero-stats {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  flex-shrink: 0;
}

.exh-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.exh-stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}

.exh-stat-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: right;
}

/* ── Tab navigation bar ── */
.exh-tab-nav {
  border-top: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 64px;
  z-index: 90;
}

.exh-tab-nav-inner {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 8vw;
  display: flex;
  gap: 0;
}

.exh-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 1rem 2rem 1rem 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  margin-right: 2.5rem;
}

.exh-tab-year {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  transition: color 0.2s;
}

.exh-tab-name {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.exh-tab.active {
  border-bottom-color: var(--accent-blue);
}

.exh-tab.active .exh-tab-year { color: var(--text-primary); }
.exh-tab.active .exh-tab-name { color: var(--accent-blue); }

.exh-tab:hover .exh-tab-year  { color: var(--text-primary); }
.exh-tab:hover .exh-tab-name  { color: var(--text-secondary); }

/* ===================== EXHIBITION SECTION ===================== */
.exh-section {
  padding: 5rem 8vw 6rem;
  background: var(--bg);
}

.exh-section--alt {
  background: var(--bg-subtle);
}

.exh-section-inner {
  max-width: 1350px;
  margin: 0 auto;
}

/* ── Section header ── */
.exh-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.exh-section-header-left {
  display: flex;
  align-items: flex-start;
  gap: 1.8rem;
}

.exh-year-badge {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #1B4FD8;
  opacity: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.exh-section-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.exh-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.exh-section-meta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-end;
}

.exh-meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.exh-meta-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.55;
}

/* ── Intro strip ── */
.exh-intro-strip {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.exh-intro-text {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 680px;
}

.exh-intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-self: flex-start;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.exh-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(27,79,216,0.2);
  border-radius: 2px;
  color: var(--accent-blue);
  background: rgba(27,79,216,0.04);
}

.exh-tag--2025 {
  border-color: rgba(232,166,0,0.25);
  color: #a07000;
  background: rgba(232,166,0,0.05);
}

/* ── Gallery block ── */
.exh-gallery-block,
.exh-video-block {
  margin-bottom: 3.5rem;
}

.exh-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.exh-gallery-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.exh-gallery-title svg {
  width: 16px;
  height: 16px;
  opacity: 0.5;
  flex-shrink: 0;
}

.exh-gallery-count {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ── Photo grid ── */
.exh-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}

/* Featured photo spans 2 cols × 2 rows */
.exh-photo--featured {
  grid-column: span 2;
  grid-row: span 2;
}

.exh-photo {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.exh-photo-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: var(--bg-subtle);
  border: 1.5px dashed rgba(0,0,0,0.12);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.exh-photo--featured .exh-photo-inner {
  min-height: 412px;
}

.exh-photo-inner:hover {
  border-color: var(--accent-blue);
  background: rgba(27,79,216,0.025);
}

.exh-photo.drag-over .exh-photo-inner {
  border-color: var(--accent-blue);
  background: rgba(27,79,216,0.06);
}

.exh-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.exh-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem;
  text-align: center;
  pointer-events: none;
  z-index: 1;
}

.exh-photo-placeholder svg {
  width: 36px;
  height: 36px;
  opacity: 0.2;
}

.exh-photo-placeholder span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.exh-photo-placeholder em {
  font-size: 0.68rem;
  font-style: normal;
  color: var(--text-muted);
  opacity: 0.65;
}

.exh-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 1;
}

.exh-photo-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.65);
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s;
}

.exh-photo-remove:hover { background: rgba(0,0,0,0.85); }

.exh-photo-remove svg {
  width: 12px;
  height: 12px;
  stroke: #fff;
}

/* ── Video grid ── */
.exh-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.exh-video { position: relative; border-radius: 4px; overflow: hidden; }

.exh-video-inner {
  position: relative;
  width: 100%;
  min-height: 220px;
  background: #0d0d0d;
  border: 1.5px dashed rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s;
  cursor: pointer;
}

.exh-video--featured .exh-video-inner { min-height: 320px; }

.exh-video-inner:hover { border-color: rgba(27,79,216,0.5); }

.exh-video.drag-over .exh-video-inner { border-color: var(--accent-blue); }

.exh-video-placeholder svg { opacity: 0.18; }

.exh-video-placeholder span { color: rgba(255,255,255,0.35); }
.exh-video-placeholder em   { color: rgba(255,255,255,0.2); }

.exh-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 1;
  background: #000;
}

/* ── Section divider ── */
.exh-section-divider {
  padding: 0 8vw;
  background: var(--bg);
}

.exh-divider-inner {
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem 0;
}

.exh-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.exh-divider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  opacity: 0.3;
  flex-shrink: 0;
}

/* ── Scroll reveal ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Animate-in (hero) ── */
.animate-in {
  opacity: 0;
  transform: translateY(14px);
  animation: exhFadeUp 0.75s ease forwards;
}

.anim-delay-1 { animation-delay: 0.15s; }
.anim-delay-2 { animation-delay: 0.28s; }
.anim-delay-3 { animation-delay: 0.40s; }

@keyframes exhFadeUp {
  to { opacity: 1; transform: none; }
}

/* ── contact section reuse ── */
.products-contact-section {
  background:
    radial-gradient(ellipse 80% 60% at 10% 30%,  rgba(27, 79, 216, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 90% 80%,  rgba(15, 40, 120, 0.45) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 55% 10%,  rgba(60, 100, 200, 0.18) 0%, transparent 55%),
    #0b1630 !important;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cta-contact-quote {
  background: #ffffff;
  color: #0d0d0d;
  border: 1.5px solid #ffffff;
  border-radius: 10px;
}

.cta-contact-quote:hover {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

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

  .exh-photo--featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  .exh-photo--featured .exh-photo-inner { min-height: 260px; }
}

@media (max-width: 768px) {
  .exh-hero { padding-top: 8rem; }

  .exh-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .exh-hero-stats {
    gap: 1.5rem;
    width: 100%;
  }

  .exh-stat { align-items: flex-start; }

  .exh-tab-nav { top: 56px; }

  .exh-tab {
    padding: 0.75rem 1.25rem 0.75rem 0;
    margin-right: 1.5rem;
  }

  .exh-tab-year { font-size: 0.9rem; }
  .exh-tab-name { display: none; }

  .exh-section { padding: 3rem 5vw 4rem; }
  .exh-section-divider { padding: 0 5vw; }

  .exh-section-header {
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .exh-section-meta { align-items: flex-start; }

  .exh-intro-strip { flex-direction: column; gap: 1.2rem; }

  .exh-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .exh-photo--featured {
    grid-column: span 2;
  }

  .exh-photo--featured .exh-photo-inner { min-height: 240px; }
  .exh-photo-inner { min-height: 160px; }

  .exh-video-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .exh-video--featured { grid-column: span 1; }
  .exh-video--featured .exh-video-inner { min-height: 240px; }
  .exh-video-inner { min-height: 180px; }

  .exh-section-header-left { gap: 1rem; }
  .exh-year-badge { font-size: 2.5rem; }
  .exh-section-title { font-size: clamp(1.2rem, 4.5vw, 1.8rem); }
}

@media (max-width: 480px) {
  .exh-year-badge { font-size: 2rem; }
  .exh-section-title {
    font-size: clamp(1rem, 3.8vw, 1.3rem);
    overflow-wrap: break-word;
  }

  .exh-gallery-grid {
    grid-template-columns: 1fr;
  }

  .exh-photo--featured {
    grid-column: span 1;
    grid-row: span 1;
  }

  .exh-photo--featured .exh-photo-inner { min-height: 200px; }
}
