/* ═══════════════════════════════════════════════════════════════
   COMPONENTS — Cards, Tables, Tabs, Timeline, Gallery, etc.
   ═══════════════════════════════════════════════════════════════ */

/* ═══ STAT CARDS ═══ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-card {
  background: var(--bg-card);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
}
.stat-card:hover {
  background: var(--bg-card-hover);
}
.stat-card__icon {
  width: 36px;
  height: 36px;
  margin: 0 auto var(--space-md);
  color: var(--gold-500);
}
.stat-card__icon svg { width: 100%; height: 100%; }
.stat-card__number {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--white);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}
.stat-card__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}
.stat-card__value {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--text-primary);
  line-height: var(--leading-snug);
  margin-top: var(--space-xs);
}


/* ═══ NAV CARDS ═══ */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.nav-card {
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}
.nav-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.nav-card:hover::before { opacity: 1; }

.nav-card__icon {
  width: 40px;
  height: 40px;
  color: var(--gold-500);
  margin-bottom: var(--space-lg);
  opacity: 0.8;
}
.nav-card__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; }
.nav-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--white);
  margin-bottom: var(--space-sm);
}
.nav-card__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-lg);
}
.nav-card__cta {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--gold-500);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: gap var(--duration-fast) var(--ease-out);
}
.nav-card:hover .nav-card__cta { gap: var(--space-sm); }
.nav-card__cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}


/* ═══ DATA TABLES ═══ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.data-table thead {
  background: var(--surface);
}
.data-table th {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.data-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td {
  background: rgba(200, 164, 92, 0.03);
}


/* ═══ TIMELINE ═══ */
.timeline--vertical {
  position: relative;
  padding-left: var(--space-3xl);
}
.timeline--vertical::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-500) 0%, var(--border-subtle) 20%, var(--border-subtle) 80%, var(--gold-500) 100%);
}
.timeline__item {
  position: relative;
  padding-bottom: var(--space-3xl);
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--space-3xl) + 2px);
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--navy-950);
  border: 2px solid var(--gold-500);
  z-index: 2;
}
.timeline__dot--pulse {
  background: var(--gold-500);
  animation: pulse 2s ease-in-out infinite;
}

.timeline__year {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--gold-500);
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-xs);
}
.timeline__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--white);
  margin-bottom: var(--space-md);
  line-height: var(--leading-snug);
}
.timeline__content {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
}
.timeline__content ul {
  list-style: none;
  padding-left: 0;
}
.timeline__content li {
  padding-left: var(--space-lg);
  position: relative;
  margin-bottom: var(--space-sm);
}
.timeline__content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 1px;
  background: var(--gold-500);
}


/* ═══ TABS ═══ */
.tabs__nav {
  display: flex;
  gap: var(--space-xs);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0;
  margin-bottom: var(--space-2xl);
  overflow-x: auto;
}
.tabs__btn {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-md) var(--space-lg);
  position: relative;
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-out);
}
.tabs__btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration-normal) var(--ease-out);
}
.tabs__btn:hover { color: var(--text-primary); }
.tabs__btn--active {
  color: var(--gold-500);
}
.tabs__btn--active::after { transform: scaleX(1); }

.tabs__panel { display: none; }
.tabs__panel--active {
  display: block;
  animation: fadeIn var(--duration-normal) var(--ease-out);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ═══ NEWS CARDS ═══ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-lg);
}
.news-card {
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.news-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,164,92,0.03), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}
.news-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.news-card:hover::before { opacity: 1; }

.news-card__source {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: var(--space-xs);
}
.news-card__date {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: var(--space-md);
}
.news-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-lg);
}
.news-card__link {
  font-size: var(--text-sm);
  color: var(--gold-500);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: gap var(--duration-fast) var(--ease-out);
}
.news-card:hover .news-card__link { gap: var(--space-sm); }
.news-card__link svg { width: 14px; height: 14px; }


/* ═══ GALLERY ═══ */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-2xl);
  justify-content: center;
}
.gallery-filter {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: var(--space-xs) var(--space-lg);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.gallery-filter:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}
.gallery-filter--active {
  color: var(--gold-500);
  border-color: var(--gold-500);
  background: var(--gold-dim);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
}
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--text-sm);
  gap: var(--space-xs);
  padding: var(--space-lg);
  text-align: center;
}
.gallery-placeholder svg { width: 36px; height: 36px; opacity: 0.3; }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,11,21,0.9), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__caption {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  color: var(--white);
  font-weight: var(--weight-medium);
}
.gallery-item__date {
  font-size: var(--text-xs);
  color: var(--gold-500);
  font-family: var(--font-mono);
  margin-top: var(--space-2xs);
}


/* ═══ CONTACT CARDS ═══ */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}
.contact-card__title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: var(--space-xl);
}
.contact-card__item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: flex-start;
}
.contact-card__item:last-child { border-bottom: none; }
.contact-card__icon {
  width: 20px;
  height: 20px;
  color: var(--gold-500);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-card__icon svg { width: 100%; height: 100%; }
.contact-card__item div {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}


/* ═══ INFO BOX ═══ */
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}
.info-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-dim), transparent);
}
.info-box__title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: var(--space-xl);
}


/* ═══ PHOTO PLACEHOLDER ═══ */
.photo-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  gap: var(--space-xs);
}
.photo-placeholder svg { width: 40px; height: 40px; opacity: 0.3; }


/* ═══ PAGE PHOTOS ═══ */
.page-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: relative;
}
.page-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-photo--wide {
  aspect-ratio: 21/9;
}
.page-photo--standard {
  aspect-ratio: 16/9;
}
.page-photo--square {
  aspect-ratio: 1;
}
.page-photo__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(to top, rgba(5,11,21,0.85), transparent);
  font-size: var(--text-xs);
  color: var(--slate-300);
  letter-spacing: var(--tracking-wide);
}


/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .nav-cards { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
  .nav-cards { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .tabs__nav { gap: 0; }
}

@media (max-width: 480px) {
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}


/* ═══ PAGE PHOTO FOCUS — keep faces in frame ═══ */
/* Subjects sit in the upper third of these shots; bias the crop
   upward so faces are never clipped on wide/standard ratios. */
.page-photo img { object-position: center 28%; }


/* ═══ FOOTER SOCIAL ICONS ═══ */
.footer__socials {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.footer__socials .footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* ═══ ACCESS GATE (passcode screen) ═══ */
html.gate-locked,
html.gate-locked body { overflow: hidden; }

#gate-screen { display: none; }

html.gate-locked #gate-screen {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background: radial-gradient(circle at 50% 30%, var(--navy-900) 0%, var(--navy-950) 70%);
}

.gate__card {
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.gate__brand {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  font-weight: var(--weight-semibold);
  color: var(--white);
  margin-bottom: var(--space-2xs);
}
.gate__sub {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: var(--space-3xl);
}
.gate__label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}
.gate__field {
  display: flex;
  gap: var(--space-xs);
}
.gate__input {
  flex: 1;
  min-width: 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: var(--text-base);
  font-family: var(--font-sans);
  letter-spacing: var(--tracking-wide);
}
.gate__input::placeholder { color: var(--text-muted); }
.gate__input:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: var(--shadow-gold);
}
.gate__btn {
  padding: var(--space-md) var(--space-xl);
  background: var(--gold-500);
  color: var(--navy-950);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}
.gate__btn:hover { background: var(--gold-300); }
.gate__error {
  display: none;
  color: var(--danger);
  font-size: var(--text-sm);
  margin-top: var(--space-md);
}
.gate__shake { animation: gateShake 0.4s var(--ease-out); }
@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

@media (max-width: 480px) {
  .gate__field { flex-direction: column; }
  .gate__btn { width: 100%; }
}
