/* ════════════════════════════════════════════════
   EXHIBIT BEE — Global Stylesheet
   ════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─────────────────────────────
   Change these to restyle the entire site at once.
   ─────────────────────────────────────────────── */
:root {
  /* Colors */
  --bg:         #0c0c0c;
  --surface:    #161616;
  --gold:       #c98b2a;
  --gold-light: #e8a83c;
  --text:       #f0ece6;
  --muted:      #7a7570;
  --border:     #252520;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Motion */
  --ease-img: cubic-bezier(.25,.46,.45,.94);

  /* Layout */
  --gap:       10px;   /* gallery grid gap */
  --padding-x: 52px;  /* horizontal padding for page sections & footer */
}

/* ─── BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}
img { display: block; }

/* ─── HEADER ─── */
header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 36px;
  background: rgba(12,12,12,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-size: 1.25rem;
  color: var(--text); text-decoration: none; letter-spacing: 0.01em;
}
.logo-hex { width: 26px; height: 30px; }
.logo .bee { color: var(--gold-light); margin-left: 5px; }

/* ─── NAV ─── */
nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(240,236,228,0.7);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--gold-light); }
.nav-group { position: relative; }
.nav-label {
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(240,236,228,0.7);
  cursor: pointer; padding: 6px 0; user-select: none;
}
.nav-label::after { content: ' ↓'; font-size: 0.65rem; opacity: 0.6; }
.nav-dropdown {
  position: absolute; top: 100%; right: 0;
  padding-top: 12px; /* hover bridge — keeps hover alive as mouse moves from label to menu */
  min-width: 140px;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-group:hover .nav-dropdown,
.nav-group.open .nav-dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-dropdown-inner {
  padding: 8px 0;
  background: var(--surface); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
}
.nav-dropdown-inner a {
  display: block; padding: 9px 18px;
  font-family: var(--font-body); font-size: 0.8rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(240,236,228,0.75); text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown-inner a:hover { color: var(--gold-light); background: rgba(255,255,255,0.04); }
.nav-dropdown-inner a.active { color: var(--gold-light); }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 44px var(--padding-x);
  display: flex; align-items: center; justify-content: space-between;
}
.foot-logo {
  font-family: var(--font-heading); font-size: 1.3rem;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.foot-logo svg { width: 20px; height: 23px; }
.foot-logo .foot-bee { color: var(--gold-light); margin-left: 5px; }
footer p { font-size: 0.75rem; color: rgba(240,236,228,0.4); letter-spacing: 0.06em; }

/* ─── BUTTON / CTA ─── */
.panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 30px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
  align-self: flex-start;
}
.panel-cta:hover { background: var(--gold); color: var(--bg); }
.panel-cta::after { content: '→'; font-size: 1rem; line-height: 1; }

/* ─── TYPOGRAPHY HELPERS ─── */
.overline {
  display: block;
  font-size: 0.7rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}
.gold-rule { width: 48px; height: 1px; background: var(--gold); margin: 0 auto; }

/* ─── PAGE HEAD (gallery pages) ─── */
.page-head { text-align: center; padding: 52px 48px 48px; }
.page-head h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 400;
}
.page-head h1 em { font-style: italic; color: var(--gold-light); }
.page-head p {
  margin-top: 12px;
  font-size: 0.88rem; color: var(--muted); letter-spacing: 0.04em;
}

/* ─── SECTION HEAD (home page) ─── */
.section-head { text-align: center; padding: 90px 48px 52px; }
.section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 400;
}
.section-head h2 em { font-style: italic; color: var(--gold-light); }
.section-head p {
  margin-top: 14px;
  font-size: 0.88rem; color: var(--muted); letter-spacing: 0.04em; line-height: 1.8;
}

/* ─── MASONRY GALLERY ─── */
.gallery-wrap { padding: 0 28px 80px; }
.masonry {
  display: flex;
  gap: var(--gap);
  max-width: 92vw; margin: 0 auto;
  align-items: flex-start;
}
.masonry-col {
  flex: 1;
  display: flex; flex-direction: column;
  gap: var(--gap);
}
.g-item { overflow: hidden; position: relative; cursor: zoom-in; }
.g-item img {
  width: 100%; display: block;
  transition: transform 0.55s var(--ease-img);
}
.g-item:hover img { transform: scale(1.04); }
.g-item .g-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 36px 18px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 100%);
  opacity: 0; transition: opacity 0.3s;
}
.g-item:hover .g-cap { opacity: 1; }
.g-cap span {
  font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,.8);
}

/* ─── LIGHTBOX ─── */
.lb {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.96);
  z-index: 9999;
  align-items: center; justify-content: center;
  cursor: zoom-out;
}
.lb.open { display: flex; }
.lb img {
  max-width: 92vw; max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 0 80px rgba(0,0,0,.8);
}
.lb-close {
  position: absolute; top: 20px; right: 28px;
  background: none; border: none;
  color: rgba(255,255,255,.6);
  font-size: 2.4rem; line-height: 1;
  cursor: pointer; transition: color 0.2s;
}
.lb-close:hover { color: var(--gold-light); }
.lb-caption {
  position: absolute; bottom: 28px; left: 0; right: 0;
  text-align: center;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: rgba(255,255,255,.35);
  font-size: 2.8rem; line-height: 1;
  cursor: pointer; padding: 16px 20px;
  transition: color 0.2s; z-index: 10000;
}
.lb-nav:hover { color: var(--gold-light); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-counter {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; letter-spacing: 0.18em; color: rgba(255,255,255,.28);
}

/* ─── SCROLL ANIMATIONS ─── */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity 0.8s ease; }
.fade-in.visible { opacity: 1; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .masonry { flex-wrap: wrap; }
  .masonry-col { flex: 0 0 calc(50% - 5px); }
  .masonry-col:last-child { flex: 0 0 100%; }
}
@media (max-width: 600px) {
  header { padding: 18px 20px; }
  footer { flex-direction: column; gap: 10px; padding: 32px 20px; text-align: center; }
  .masonry { flex-direction: column; }
  .masonry-col { flex: none; width: 100%; }
}
