/* ============================================================
   Expodeck — Expo Detail Page Styles
   /css/expo-detail.css
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --ink:       #0F0E0C;
  --ink2:      #2A2824;
  --paper:     #F6F3EE;
  --cream:     #FAF8F4;
  --accent:    #C8471A;
  --accent-hi: #E05A28;
  --muted:     #8A857C;
  --border:    #E2DDD5;
  --border2:   #CCC7BE;
  --white:     #FFFFFF;
  --serif:     'Playfair Display', Georgia, serif;
  --sans:      'Instrument Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--serif); }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(246,243,238,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 40px; height: 58px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--serif); font-size: 20px; font-weight: 700;
  color: var(--ink); text-decoration: none; letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 8px;
}
.logo-dot { color: var(--accent); }
.lang-toggle {
  display: flex; border: 1px solid var(--border2);
  border-radius: 6px; overflow: hidden;
}
.lang-btn {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border: none; background: transparent;
  color: var(--muted); cursor: pointer; transition: all 0.15s;
}
.lang-btn.active { background: var(--ink); color: var(--white); }

/* ── HERO ── */
.hero {
  position: relative; width: 100%;
  height: 92svh; min-height: 640px; max-height: 960px;
  overflow: hidden; background: var(--ink);
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.6;
  transform: scale(1.06);
  transition: transform 9s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.6s ease;
  will-change: transform;
}
.hero-img.loaded { transform: scale(1); opacity: 0.58; }
.hero-grad {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(15,14,12,0.18) 0%,
      rgba(15,14,12,0.0)  30%,
      rgba(15,14,12,0.0)  50%,
      rgba(15,14,12,0.72) 82%,
      rgba(15,14,12,0.96) 100%),
    linear-gradient(to right,
      rgba(15,14,12,0.55) 0%,
      rgba(15,14,12,0.0)  55%);
}
/* Vertical accent rule */
.hero-rule {
  position: absolute; left: 40px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
    transparent 0%, var(--accent) 28%, var(--accent) 72%, transparent 100%);
  opacity: 0.65;
}
.hero-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  max-width: 1280px; margin: 0 auto;
  padding: 0 56px 72px 56px;
}
.hero-issue-line {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px;
}
.hero-issue-num {
  font-family: var(--sans); font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}
.hero-issue-sep {
  flex: 0 0 40px; height: 1px; background: rgba(255,255,255,0.25);
}
.hero-country-tag {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.hero-featured-badge {
  display: inline-flex; align-items: center;
  font-family: var(--sans); font-size: 9px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 10px; background: var(--accent); color: #fff; border-radius: 3px;
}
.hero-h1 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.97; letter-spacing: -2.5px;
  color: #fff; margin-bottom: 32px; max-width: 860px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}
.hero-h1 em { font-style: italic; color: rgba(255,255,255,0.72); }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px; max-width: 700px; gap: 0;
}
.hero-meta-cell {
  padding: 0 28px 0 0; margin-right: 28px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.hero-meta-cell:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.hero-meta-label {
  font-family: var(--sans); font-size: 9px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.38); margin-bottom: 5px;
}
.hero-meta-value {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.88); white-space: nowrap;
}
.hero-logo-badge {
  position: absolute; top: 32px; right: 40px;
  background: rgba(255,255,255,0.96); border-radius: 12px;
  padding: 10px 16px; box-shadow: 0 8px 40px rgba(0,0,0,0.28);
}
.hero-logo-badge img {
  height: 40px; max-width: 110px; object-fit: contain; display: block;
}
.hero-actions {
  position: absolute; top: 32px; right: 40px; display: flex; gap: 8px;
}
.hero-action-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s;
}
.hero-action-btn:hover { background: rgba(255,255,255,0.22); }

/* ── BREADCRUMB ── */
.bc-wrap { max-width: 1280px; margin: 0 auto; padding: 18px 56px 0; }
.bc-nav {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 11.5px; font-weight: 500;
  color: var(--muted); letter-spacing: 0.02em;
}
.bc-nav a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.bc-nav a:hover { color: var(--ink); }
.bc-sep { color: var(--border2); }

/* ── MAIN LAYOUT ── */
.page-body {
  max-width: 1280px; margin: 0 auto;
  padding: 56px 56px 120px;
  display: grid; grid-template-columns: 1fr 352px;
  gap: 80px; align-items: start;
}

/* ── SECTION HEADING ── */
.section-title {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 28px; padding-top: 52px;
}
.section-title:first-child { padding-top: 0; }
.section-title h2 {
  font-family: var(--serif); font-size: 26px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.5px; white-space: nowrap;
}
.section-title-rule { flex: 1; height: 1px; background: var(--border); margin-bottom: 3px; }
.section-title-num {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase;
  white-space: nowrap;
}

/* ── DESCRIPTION ── */
.expo-desc {
  font-family: var(--sans); font-size: 15.5px; line-height: 1.88;
  color: var(--ink2); font-weight: 400;
}
/* Drop cap */
.expo-desc::first-letter {
  font-family: var(--serif); font-size: 4em; font-weight: 900;
  float: left; line-height: 0.8; margin: 5px 10px 0 0;
  color: var(--accent);
}

/* ── STATS BAND ── */
.stats-band {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink); border-radius: 4px; overflow: hidden;
}
.stat-item {
  padding: 28px 20px; border-right: 1px solid rgba(255,255,255,0.08);
  background: var(--ink); position: relative; overflow: hidden;
}
.stat-item:last-child { border-right: none; }
/* ── FIX: fluid stat number that scales to fit ── */
.stat-num {
  font-family: var(--serif); font-weight: 900; line-height: 1;
  color: var(--white); letter-spacing: -1.5px; margin-bottom: 8px;
  /* fluid: shrinks when content is long (e.g. "920000") */
  font-size: clamp(24px, 3.8vw, 46px);
  word-break: break-all;
}
.stat-num em { font-style: normal; color: var(--accent); }
.stat-unit {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.04em; margin-left: 2px;
}
.stat-label {
  font-family: var(--sans); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}
.stat-item::after {
  content: attr(data-idx);
  position: absolute; top: 12px; right: 14px;
  font-family: var(--serif); font-size: 10px; font-style: italic;
  color: rgba(255,255,255,0.12);
}

/* ── HIGHLIGHTS ── */
.highlights-grid { display: grid; gap: 2px; }
.highlight-card {
  display: grid; grid-template-columns: 68px 1fr;
  background: var(--cream); border: 1px solid var(--border);
  transition: border-color 0.22s, background 0.22s;
}
.highlight-card:first-child { border-radius: 4px 4px 0 0; }
.highlight-card:last-child  { border-radius: 0 0 4px 4px; }
.highlight-card:only-child  { border-radius: 4px; }
.highlight-card:hover { border-color: var(--accent); background: #fff; }
.highlight-num {
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 0;
  font-family: var(--serif); font-size: 20px; font-weight: 700;
  font-style: italic; color: rgba(200,71,26,0.2);
  border-right: 1px solid var(--border);
}
.highlight-body { padding: 20px 24px; }
.highlight-title {
  font-family: var(--sans); font-size: 13.5px; font-weight: 700;
  color: var(--ink); margin-bottom: 5px; line-height: 1.4;
}
.highlight-desc {
  font-family: var(--sans); font-size: 12.5px;
  color: var(--muted); line-height: 1.72;
}

/* ── GALLERY ── */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto; gap: 3px;
}
.gallery-item { position: relative; overflow: hidden; background: var(--border); }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%; min-height: 160px;
  object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
  will-change: transform;
}
.gallery-item:first-child img { min-height: 340px; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 14px; font-family: var(--sans);
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.9);
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  opacity: 0; transition: opacity 0.28s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ── VIDEOS ── */
.videos-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.video-item { display: flex; flex-direction: column; }
.video-embed {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: 4px; background: var(--ink);
}
.video-embed iframe { position: absolute; top:0; left:0; width:100%; height:100%; border:0; }
.video-title {
  margin-top: 10px; font-family: var(--sans);
  font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em;
}

/* ── FAQ ── */
.faq-list { display: grid; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-btn {
  width: 100%; text-align: left; padding: 19px 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  background: transparent; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  color: var(--ink); line-height: 1.5; gap: 16px;
  transition: color 0.18s;
}
.faq-btn:hover { color: var(--accent); }
/* Icon: simple rotating plus — no JS transform, uses CSS var */
.faq-icon {
  flex-shrink: 0; margin-top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--border2); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), border-color 0.18s, color 0.18s;
  will-change: transform;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--accent); color: var(--accent);
}
.faq-item.open .faq-btn { color: var(--accent); }
/*
  Smooth accordion using CSS grid trick —
  avoids max-height jump with unknown content height
*/
.faq-answer-wrap {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4,0,0.2,1);
}
.faq-item.open .faq-answer-wrap { grid-template-rows: 1fr; }
.faq-answer {
  overflow: hidden;
  font-family: var(--sans); font-size: 13.5px; line-height: 1.82;
  color: var(--ink2);
}
.faq-answer-inner { padding-bottom: 20px; }

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 20px; }

.info-card {
  border: 1px solid var(--border2); border-radius: 4px;
  overflow: hidden; background: var(--cream);
}
.info-card-header {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ink);
}
.info-card-header h3 {
  font-family: var(--sans); font-size: 10px; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.info-card-actions { display: flex; align-items: center; gap: 2px; }
.info-action-btn {
  width: 28px; height: 28px; border-radius: 4px;
  background: transparent; border: none;
  color: rgba(255,255,255,0.38); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.18s, background 0.18s;
}
.info-action-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }

.info-row {
  display: grid; grid-template-columns: 17px 1fr;
  gap: 13px; align-items: start;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-icon { color: var(--muted); margin-top: 1px; }
.info-label {
  font-family: var(--sans); font-size: 9px; font-weight: 800;
  color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px;
}
.info-value {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--ink); line-height: 1.5;
}
.info-value a { color: var(--accent); text-decoration: none; word-break: break-all; }
.info-value a:hover { text-decoration: underline; }

/* Industry tags inside sidebar */
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sidebar-tag {
  font-family: var(--sans); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.03em; padding: 4px 11px; border-radius: 3px;
  background: transparent; color: var(--muted);
  border: 1px solid var(--border2);
  text-decoration: none; transition: all 0.18s;
}
.sidebar-tag:hover { border-color: var(--accent); color: var(--accent); }

/* CTA card */
.cta-card {
  background: var(--ink); border-radius: 4px;
  padding: 30px 26px; position: relative; overflow: hidden;
}
.cta-card::before {
  content: 'PR';
  position: absolute; right: -6px; bottom: -18px;
  font-family: var(--serif); font-size: 110px; font-weight: 900;
  font-style: italic; color: rgba(255,255,255,0.035);
  line-height: 1; pointer-events: none; user-select: none;
}
.cta-overline {
  font-family: var(--sans); font-size: 9px; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px; display: block;
}
.cta-card strong {
  font-family: var(--serif); font-weight: 700;
  font-size: 20px; color: #fff;
  display: block; line-height: 1.25; margin-bottom: 12px; letter-spacing: -0.3px;
}
.cta-card p {
  font-family: var(--sans); font-size: 12px; line-height: 1.7;
  color: rgba(255,255,255,0.36); margin-bottom: 22px;
}
.cta-btn {
  display: block; background: var(--accent); color: #fff;
  font-family: var(--sans); font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 13px 18px; border-radius: 3px;
  text-decoration: none; text-align: center;
  transition: background 0.15s, transform 0.12s;
}
.cta-btn:hover { background: var(--accent-hi); transform: translateY(-1px); }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); background: var(--ink); }
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 30px 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--serif); font-size: 17px; font-weight: 700;
  color: rgba(255,255,255,0.65); letter-spacing: -0.3px;
}
.footer-brand span { color: var(--accent); }
.footer-copy {
  font-family: var(--sans); font-size: 11px;
  color: rgba(255,255,255,0.22); font-weight: 500;
}

/* ── PAGE-LOAD ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-issue-line { animation: fadeUp 0.5s 0.05s cubic-bezier(0.22,1,0.36,1) both; }
.hero-h1         { animation: fadeUp 0.7s 0.12s cubic-bezier(0.22,1,0.36,1) both; }
.hero-meta       { animation: fadeUp 0.6s 0.28s cubic-bezier(0.22,1,0.36,1) both; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .page-body { grid-template-columns: 1fr; gap: 40px; padding: 40px 36px 100px; }
  .sidebar { position: static; }
  .bc-wrap { padding: 16px 36px 0; }
  .hero-body { padding: 0 36px 56px; }
  .hero-rule { left: 36px; }
  .footer-inner { padding: 26px 36px; }
}
@media (max-width: 768px) {
  .hero { height: 78svh; min-height: 520px; }
  .hero-body { padding: 0 24px 44px; }
  .hero-rule { left: 24px; }
  .hero-logo-badge { top: 22px; right: 22px; }
  .hero-actions { top: 22px; right: 22px; }
  .stats-band { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .videos-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 3; grid-row: span 1; }
  .gallery-item:first-child img { min-height: 220px; }
  .bc-wrap { padding: 14px 24px 0; }
  .page-body { padding: 32px 24px 80px; }
  .header-inner { padding: 0 24px; }
  .footer-inner { padding: 22px 24px; }
}
@media (max-width: 480px) {
  .hero-h1 { font-size: clamp(34px, 10vw, 50px); letter-spacing: -1.5px; }
  .hero-meta-cell { padding: 0 16px 0 0; margin-right: 16px; }
  .stats-band { grid-template-columns: repeat(2,1fr); }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
  .gallery-item:first-child img { min-height: 200px; }
}
