/* ============ Hemp Museum — Shared Styles ============ */
/* Loaded on every page instead of duplicating these rules 10 times. */

body { background-color: #161410; }

.glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(141,135,65,0.15);
}

.grid-bg {
  background-image:
    linear-gradient(rgba(141,135,65,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141,135,65,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Circular logo mark with glow ring */
.logo-ring {
  width: 52px; height: 52px;
  border-radius: 9999px;
  background: radial-gradient(circle at 35% 30%, #B8A94E, #6f6a33);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px rgba(141,135,65,0.12), 0 0 24px rgba(141,135,65,0.45);
}

/* Pill-shaped glass navigation bar */
.pill-nav {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(141,135,65,0.18);
  border-radius: 9999px;
  backdrop-filter: blur(10px);
}

/* Circular icon badge used on stat cards, feature cards, artifact cards */
.icon-badge {
  width: 56px; height: 56px;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: #B8A94E;
  background: radial-gradient(circle at 35% 30%, rgba(141,135,65,0.35), rgba(111,106,51,0.12));
  border: 1px solid rgba(141,135,65,0.35);
}

/* Card with a soft glowing line along the bottom edge */
.glow-card { position: relative; overflow: hidden; }
.glow-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 12%; right: 12%;
  height: 3px;
  border-radius: 9999px;
  background: radial-gradient(ellipse at center, rgba(141,135,65,0.9), transparent 75%);
  filter: blur(1px);
}

/* Visible keyboard focus for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid #8D8741;
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}

/* Timeline item connector (used on Acquisitions process steps) */
.timeline-item { position: relative; padding-left: 40px; margin-bottom: 32px; }
.timeline-item::before {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 12px; height: 12px;
  background: #8D8741; border-radius: 50%;
  border: 3px solid #161410;
}
.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute; left: 4.5px; top: 12px; bottom: -32px;
  width: 2px; background: rgba(141,135,65,0.3);
}

/* Stat number: tabular figures so digits don't shift width */
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ============ Membership gate (demo paywall) ============ */
.gate-wrap { position: relative; }
.gate-locked .gate-content {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  max-height: 340px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
}
.gate-overlay { display: none; }
.gate-locked .gate-overlay {
  display: flex;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  padding: 24px;
  z-index: 5;
}

.a11y-large-text, .a11y-large-text * { font-size: 1.15em !important; }
.a11y-high-contrast { background: #000 !important; }
.a11y-high-contrast, .a11y-high-contrast * { color: #fff !important; background-color: #000 !important; border-color: #fff !important; }
.a11y-high-contrast img, .a11y-high-contrast iframe { filter: grayscale(0%) contrast(1.1); }
.a11y-btn {
  position: fixed; z-index: 9999; bottom: 24px; right: 24px;
  width: 52px; height: 52px; border-radius: 9999px;
  background: #8D8741; color: #2c2913; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.a11y-panel {
  position: fixed; z-index: 9999; bottom: 84px; right: 24px;
  background: #161410; border: 1px solid rgba(141,135,65,0.4); border-radius: 12px;
  padding: 16px; width: 220px; display: none; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.a11y-panel.open { display: block; }
.a11y-panel button {
  display: block; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 6px;
  background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(141,135,65,0.25);
  border-radius: 8px; cursor: pointer; font-size: 14px;
}
.a11y-panel button:hover { background: rgba(141,135,65,0.15); }
.wa-btn {
  position: fixed; z-index: 9999; bottom: 24px; left: 24px;
  width: 52px; height: 52px; border-radius: 9999px;
  background: #25D366; color: #fff; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* ============ Cookie consent banner ============ */
.cookie-banner {
  position: fixed; z-index: 9998; bottom: 0; left: 0; right: 0;
  background: rgba(10,10,10,0.97);
  border-top: 1px solid rgba(141,135,65,0.4);
  padding: 16px 20px;
  display: none;
  backdrop-filter: blur(8px);
}
.cookie-banner.visible { display: flex; }
.cookie-banner-inner {
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between;
}
.cookie-banner p { color: #a1a1aa; font-size: 13px; max-width: 640px; margin: 0; }
.cookie-banner a { color: #B8A94E; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner button {
  padding: 8px 18px; border-radius: 9999px; font-size: 13px; font-weight: 600; cursor: pointer; border: none;
}
.cookie-banner .cb-accept { background: #8D8741; color: #2c2913; }
.cookie-banner .cb-dismiss { background: transparent; color: #a1a1aa; border: 1px solid #3f3f46; }

.is-rtl { direction: rtl; }
.is-rtl .flex { flex-direction: row; }
.is-rtl svg.rtl-flip { transform: scaleX(-1); }

/* ---------- language switcher ---------- */
.lang-switcher { position: relative; display: inline-block; }
.lang-switcher__btn {
  display: flex; align-items: center; gap: 4px;
  background: none; border: 1px solid rgba(141,135,65,0.3);
  color: #a1a1aa; font-size: 12px; padding: 6px 10px;
  border-radius: 9999px; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lang-switcher__btn:hover { border-color: rgba(141,135,65,0.6); color: #d4d4d8; }
.lang-switcher__btn:focus-visible { outline: 2px solid #8D8741; outline-offset: 2px; }
.lang-switcher__menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #161410; border: 1px solid rgba(141,135,65,0.4);
  border-radius: 8px; padding: 6px; min-width: 140px; z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.lang-switcher__menu.is-open { display: block; }
.lang-switcher__item {
  display: block; width: 100%; text-align: left;
  padding: 8px 10px; background: none; border: none;
  color: #fff; font-size: 13px; cursor: pointer; border-radius: 6px;
}
.lang-switcher__item:hover { background: rgba(141,135,65,0.15); }
.lang-switcher__item:focus-visible { outline: 2px solid #8D8741; outline-offset: -2px; }
.is-rtl .lang-switcher__menu { right: auto; left: 0; }
.is-rtl .lang-switcher__item { text-align: right; }

/* ---------- RTL text alignment ---------- */
.is-rtl .text-left { text-align: right; }
.is-rtl .text-right { text-align: left; }

/* ---------- CJK / Devanagari typography ---------- */
html[lang="zh"] body {
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
html[lang="zh"] .font-serif {
  font-family: "Cormorant Garamond", "Noto Serif SC", "Songti SC", serif;
  letter-spacing: 0.02em;
}
html[lang="hi"] body,
html[lang="hi"] .font-serif {
  font-family: "Inter", "Noto Sans Devanagari", sans-serif;
}
html[lang="hi"] .font-serif { letter-spacing: 0; }

/* ============ Hero background video ============ */
.hero-video-block {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(141,135,65,0.35);
  box-shadow: 0 0 50px rgba(141,135,65,0.12), 0 20px 60px rgba(0,0,0,0.5);
  aspect-ratio: 16 / 9;
  background: #0d0b08;
}
.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 640px) {
  .hero-video-block { max-width: 100%; }
}


/* ---------- 3D museum gate (centered locked panel) ---------- */
.museum-gate { position: relative; }
.museum-gate-locked-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: 48px 24px;
}
.museum-gate.gate-locked .museum-gate-locked-panel { display: flex; }
.museum-gate.gate-locked .museum-gate-content { display: none; }
