/* ============================================
   OUR STAFF MEGAMENU - Royal Adventures PR
   ============================================ */

:root {
  --staff-bg: #060606;
  --staff-bg-elevated: #0d0d0d;
  --staff-border: rgba(199, 199, 199, 0.14);
  --staff-silver: #d8d8d8;
  --staff-silver-dim: #9a9a9a;
  --staff-silver-metal: linear-gradient(135deg, #f5f5f5 0%, #b8b8b8 28%, #8a8a8a 50%, #cfcfcf 72%, #f2f2f2 100%);
  --staff-gold: #d9b872;
  --staff-gold-glow: rgba(217, 184, 114, 0.16);
  --staff-radius: 12px;
  --staff-transition: 0.45s cubic-bezier(0.19, 1, 0.22, 1);
  --nav-height: 84px;
}

/* MEGAMENU */
.staff-megamenu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  z-index: 999;
  background: var(--staff-bg);
  border-top: 1px solid var(--staff-border);
  border-bottom: 1px solid var(--staff-border);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition:
    max-height var(--staff-transition),
    opacity 0.4s ease,
    transform var(--staff-transition),
    visibility 0s linear 0.5s;
}
.staff-megamenu.is-open {
  max-height: 640px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    max-height var(--staff-transition),
    opacity 0.5s ease,
    transform var(--staff-transition),
    visibility 0s linear 0s;
}
.staff-megamenu::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 0%, var(--staff-gold-glow), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(255, 255, 255, 0.03), transparent 50%);
  opacity: 0.9;
}
.staff-megamenu__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 32px 36px;
}

.staff-close-btn {
  position: absolute;
  top: 18px;
  right: 32px;
  width: 92px;
  height: 38px;
  border-radius: 4px;
  border: 1px solid rgba(216, 216, 216, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  color: var(--staff-silver);
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
}
.staff-close-btn:hover {
  color: #060606;
  background: var(--staff-silver-metal);
  border-color: transparent;
  box-shadow: 0 6px 18px -4px rgba(217, 184, 114, 0.35);
}
.staff-close-btn .x { font-size: 0.85rem; line-height: 1; transform: translateY(-1px); }

.staff-header { text-align: center; margin-bottom: 24px; }
.staff-header h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--staff-silver-metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 6px;
}
.staff-header p {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  color: var(--staff-silver-dim);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin: 0;
}

/* TRACK - compact centered cards */
.staff-track-wrapper { position: relative; }
.staff-track {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 4px 4px 8px;
  justify-content: center;
}

@media (min-width: 1025px) {
  .staff-track { overflow: visible; }
  .staff-card { flex: 0 0 196px; }
  .staff-dots { display: none; }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .staff-track {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .staff-track::-webkit-scrollbar { display: none; }
  .staff-card { flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start; }
}

@media (max-width: 640px) {
  .staff-megamenu__inner { padding: 66px 18px 28px; }
  .staff-close-btn { top: 14px; right: 18px; }
  .staff-track {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .staff-track::-webkit-scrollbar { display: none; }
  .staff-card { flex: 0 0 calc((100% - 18px) / 2); scroll-snap-align: start; }
}

.staff-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.staff-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(216, 216, 216, 0.25);
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.staff-dots button.is-active { background: var(--staff-gold); width: 20px; border-radius: 4px; }

/* CARD - small & square photo */
.staff-card {
  background: linear-gradient(180deg, var(--staff-bg-elevated), #050505);
  border: 1px solid var(--staff-border);
  border-radius: var(--staff-radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.staff-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 184, 114, 0.4);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(217, 184, 114, 0.08);
}

.staff-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0a0a0a;
}
.staff-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.15) contrast(1.05);
  transform: scale(1.02);
  transition: transform 0.6s ease, filter 0.6s ease;
}
.staff-card:hover .staff-photo-wrap img { transform: scale(1.08); filter: grayscale(0) contrast(1.1); }

.staff-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.staff-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}
.staff-photo-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--staff-silver-metal);
  opacity: 0.5;
  z-index: 2;
}

.staff-info { padding: 12px 12px 16px; text-align: center; }
.staff-info h3 {
  margin: 0 0 2px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}
.staff-role {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--staff-gold);
  margin-bottom: 8px;
}
.staff-bio {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--staff-silver-dim);
}

/* Backdrop */
.staff-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.staff-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
  .staff-megamenu, .staff-card, .staff-photo-wrap img, .staff-close-btn { transition: none !important; }
}
