/* ==========================================
   VAGABAND — Dark Elegance
   Warm Charcoal + Gold + Cream
   SAXXY-inspired full restructure
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,500;1,600&display=swap');

:root {
  --gold-600: #c8963e;
  --gold-500: #d4a84b;
  --gold-400: #e0c070;
  --gold-300: #ebd498;
  --gold-200: #f0e0b0;
  --charcoal-900: #0d0a06;
  --charcoal-800: #1a1a1a;
  --charcoal-700: #2a2a2a;
  --charcoal-600: #3a3a3a;
  --charcoal-100: #e0dcd6;
  --cream: #f5f0eb;
  --cream-light: #faf7f4;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #7a7068;
  --border: #d8d2ca;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --max-w: 1100px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold-600); color: var(--white); }

a { color: var(--gold-600); text-decoration: none; transition: all 0.25s; }
a:hover { color: var(--gold-500); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== DECORATIVE TOP BAR ===== */
.top-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400), var(--gold-600));
}

/* ===== PAGE LOADER ===== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0d0a06;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.page-loader .loader-inner {
  pointer-events: auto;
}
.page-loader.loader-done {
  opacity: 0;
  transform: scale(1.05);
}
.loader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.loader-3d {
  perspective: 2000px;
  margin-bottom: 56px;
  animation: loader3D 3s ease-in-out infinite;
  transform-style: preserve-3d;
}
.loader-logo {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  border-radius: 24px;
  animation: loaderFloat 3s ease-in-out infinite;
  box-shadow: 0 0 400px rgba(200,150,62,0.5);
}
@keyframes loader3D {
  0%, 100% { transform: rotateY(0deg); }
  25% { transform: rotateY(4deg); }
  50% { transform: rotateY(0deg); }
  75% { transform: rotateY(-4deg); }
}
@keyframes loaderFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}
.loader-progress-wrap {
  width: 600px;
  max-width: 80vw;
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin: 0 auto 28px;
  overflow: hidden;
}
.loader-text {
  font-size: 0.7rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  animation: loaderPulse 1.4s ease-in-out infinite;
}
.loader-3d {
  perspective: 600px;
  margin-bottom: 28px;
  animation: loader3D 2s ease-in-out infinite;
  transform-style: preserve-3d;
}
.loader-logo {
  width: 140px;
  height: auto;
  border-radius: 6px;
  animation: loaderFloat 2s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(200,150,62,0.15);
}
@keyframes loader3D {
  0%, 100% { transform: rotateY(0deg); }
  25% { transform: rotateY(12deg); }
  50% { transform: rotateY(0deg); }
  75% { transform: rotateY(-12deg); }
}
@keyframes loaderFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.loader-progress-wrap {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin: 0 auto 14px;
  overflow: hidden;
}
.loader-progress {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  border-radius: 2px;
  transition: width 0.05s linear;
}
.loader-text {
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  animation: loaderPulse 1.4s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: rgba(13,10,6,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--charcoal-600);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--gold-600);
  text-transform: uppercase;
  transition: color 0.2s;
}

.logo:hover { color: var(--gold-400); }

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

nav ul li a {
  padding: 8px 18px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.25s;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--gold-600);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--gold-400);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  transform: scaleX(1);
}

.lang {
  display: flex;
  gap: 3px;
  padding-left: 14px;
  border-left: 1px solid var(--charcoal-600);
}

.lang a {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.lang a.active {
  background: var(--gold-600);
  color: var(--white);
  border-color: var(--gold-600);
}

.lang a:not(.active):hover {
  border-color: var(--charcoal-600);
  color: rgba(255,255,255,0.8);
}

#navToggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gold-400);
  position: relative;
  z-index: 10001;
}

/* ===== HERO ===== */
.hero {
  padding: 140px 24px 100px;
  text-align: center;
  background: var(--charcoal-800);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 40%, rgba(200,150,62,0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 60%, rgba(200,150,62,0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,0.03) 0%, transparent 40%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero .eyebrow {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--charcoal-800);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding: 8px 24px;
  background: var(--gold-600);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.05;
}

.hero .sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--gold-400);
  letter-spacing: 10px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero .tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-300);
  margin-bottom: 28px;
}

.hero p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.9;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-social {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
}

.hero-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--charcoal-600);
  color: rgba(255,255,255,0.4);
  font-size: 0.95rem;
  transition: all 0.3s;
}

.hero-social a:hover {
  background: var(--gold-600);
  color: var(--white);
  border-color: var(--gold-600);
  transform: translateY(-3px);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-primary {
  background: var(--gold-600);
  color: var(--charcoal-900);
}

.btn-primary:hover {
  background: var(--gold-500);
  color: var(--charcoal-900);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(200,150,62,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
  border-color: var(--gold-600);
  color: var(--gold-400);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--gold-600);
  border: 2px solid var(--gold-600);
  padding: 10px 28px;
  font-size: 0.7rem;
}

.btn-outline:hover {
  background: var(--gold-600);
  color: var(--charcoal-900);
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section {
  padding: 90px 24px;
}

.section-dark {
  background: var(--charcoal-800);
  color: rgba(255,255,255,0.7);
}

.section-dark .section-header h2 { color: var(--white); }

.section-dark .section-header .tag {
  background: var(--gold-600);
  color: var(--charcoal-900);
}

.section-dark .section-header p { color: rgba(255,255,255,0.5); }

.section-cream {
  background: var(--cream);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .tag {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 6px 20px;
  background: var(--gold-600);
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--charcoal-800);
  letter-spacing: -0.5px;
}

/* ===== MEMBERS GRID ===== */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px;
  perspective: 1200px;
}

.member-card {
  background: var(--white);
  position: relative;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

.member-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 0;
  background: var(--gold-600);
  z-index: 2;
  transition: height 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.member-card::after {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(200,150,62,0.06), transparent 70%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.member-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-1deg);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.35),
    0 8px 20px rgba(0,0,0,0.2);
}

.member-card:hover::before { height: 100%; }

.member-card:hover::after { opacity: 1; }

.member-photo {
  width: 100%;
  height: 360px;
  overflow: hidden;
  background: var(--charcoal-700);
  position: relative;
  z-index: 1;
}

.member-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,10,6,0.6) 0%, transparent 50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s;
}

.member-card:hover .member-photo::after { opacity: 1; }

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.member-card:hover .member-photo img {
  transform: scale(1.08);
}

.member-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--gold-600);
  background: var(--charcoal-700);
}

.member-info {
  padding: 24px 24px 28px;
  position: relative;
  z-index: 1;
}

.member-info h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal-800);
  margin-bottom: 2px;
}

.member-role {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 10px;
}

.member-role::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px;
  height: 2px;
  background: var(--gold-600);
  transition: width 0.35s;
}

.member-card:hover .member-role::after { width: 48px; }

.member-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 6px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 10px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== ABOUT SPLIT ===== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 2;
}

.about-text p { margin-bottom: 18px; }

.about-text h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--charcoal-800);
  margin-bottom: 16px;
}

.about-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-600);
  padding: 24px 0 24px 24px;
  border-left: 3px solid var(--gold-600);
  margin-top: 24px;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 32px 20px;
  text-align: center;
  transition: all 0.35s;
}

.stat-card:hover {
  border-color: var(--gold-400);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(200,150,62,0.08);
}

.stat-card .icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  display: block;
}

.stat-card .num {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-600);
}

.stat-card .lbl {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 6px;
}

/* ===== EVENTS ===== */
.events-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 32px;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  width: 340px;
}

.event-card:hover {
  border-color: var(--gold-400);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(200,150,62,0.08);
}

.event-card .date-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--gold-600);
  color: var(--white);
  padding: 10px 18px;
  margin-bottom: 18px;
  align-self: flex-start;
  line-height: 1.2;
}

.event-card .date-badge .day {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
}

.event-card .date-badge .month {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
}

.event-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--charcoal-800);
}

.event-card p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 5px;
}

.event-card p i {
  width: 18px;
  color: var(--gold-600);
}

.event-card .event-actions {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== GALLERY ===== */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.gallery-filters button {
  padding: 10px 26px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s;
}

.gallery-filters button.active,
.gallery-filters button:hover {
  background: var(--gold-600);
  color: var(--white);
  border-color: var(--gold-600);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--border);
  cursor: pointer;
}

.gallery-item .photo-link {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  padding: 24px 20px;
  background: linear-gradient(to top, rgba(13,10,6,0.92) 0%, rgba(13,10,6,0.3) 40%, transparent 60%);
  color: var(--white);
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item:hover .overlay { opacity: 1; }

.gallery-item .overlay h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.gallery-item.video { cursor: pointer; }

.gallery-item.video .video-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--charcoal-800);
}

.gallery-item.video .video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item.video .video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(200,150,62,0.15);
  border: 2px solid var(--gold-600);
  color: var(--gold-600);
  font-size: 1.3rem;
  transition: all 0.3s;
  padding-left: 4px;
  z-index: 2;
  text-decoration: none;
}

.gallery-item.video:hover .video-play-btn {
  background: var(--gold-600);
  color: var(--charcoal-900);
  transform: translate(-50%, -50%) scale(1.12);
}

/* ===== PHOTO MODAL ===== */
.photo-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.photo-modal.open { display: flex; }

.photo-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
  line-height: 1;
}

.photo-modal-close:hover { color: var(--white); }

.photo-modal-content {
  max-width: 960px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-modal-content img {
  max-width: 100%;
  max-height: 85vh;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ===== VIDEO MODAL ===== */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.video-modal.open { display: flex; }

.video-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
  line-height: 1;
}

.video-modal-close:hover { color: var(--white); }

.video-modal-content {
  max-width: 960px;
  width: 100%;
  max-height: 80vh;
}

.video-modal-content video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
  outline: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.gallery-link {
  text-align: center;
  margin-top: 36px;
}

/* ===== QUOTE SECTION ===== */
.quote-section {
  padding: 100px 24px;
  text-align: center;
  background: var(--charcoal-800);
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '\201C';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: 22rem;
  font-weight: 700;
  color: rgba(200,150,62,0.04);
  line-height: 1;
  pointer-events: none;
}

.quote-section blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: rgba(255,255,255,0.8);
  max-width: 750px;
  margin: 0 auto 20px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.quote-section cite {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-500);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 24px;
  text-align: center;
  background: var(--charcoal-800);
  border-top: 1px solid var(--charcoal-600);
}

.cta-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.cta-section p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .social-big {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .social-big a {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--charcoal-600);
  color: rgba(255,255,255,0.5);
  font-size: 1.3rem;
  transition: all 0.3s;
}

.cta-section .social-big a:hover {
  background: var(--gold-600);
  color: var(--charcoal-900);
  border-color: var(--gold-600);
  transform: translateY(-4px);
}

/* ===== CONTACT ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 920px;
  margin: 0 auto;
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }

.contact-form input,
.contact-form textarea {
  padding: 16px 20px;
  border: 2px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: all 0.25s;
  background: var(--white);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold-600);
  box-shadow: 0 0 0 4px rgba(200,150,62,0.1);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-info { display: flex; flex-direction: column; gap: 14px; justify-content: center; }

.contact-info .item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  transition: all 0.25s;
}

.contact-info .item:hover {
  border-color: var(--gold-400);
  transform: translateX(4px);
}

.contact-info .item i {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-600);
  color: var(--white);
  font-size: 0.95rem;
}

.contact-info .item strong {
  display: block;
  font-size: 0.82rem;
  color: var(--charcoal-800);
  margin-bottom: 2px;
}

.contact-info .item span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== PAGE HEADER ===== */
.page-hd {
  padding: 110px 24px 50px;
  text-align: center;
  background: var(--charcoal-800);
  position: relative;
}

.page-hd::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400), var(--gold-600));
}

.page-hd h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
}

.page-hd .crumb {
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

.page-hd .crumb a { color: var(--gold-400); }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ===== EMPTY STATE ===== */
.empty { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 0.88rem; }

/* ===== ALERTS ===== */
.alert {
  padding: 16px 22px;
  font-size: 0.82rem;
  border: 1px solid;
  margin-bottom: 24px;
}

.alert-success {
  background: #f5f0e8;
  border-color: var(--gold-300);
  color: var(--gold-600);
}

.alert-error {
  background: #faf0ee;
  border-color: #e0c0b8;
  color: #8a3a2a;
}

/* ===== FOOTER ===== */
footer {
  background: var(--charcoal-900);
  color: rgba(255,255,255,0.5);
  padding: 70px 24px 32px;
  text-align: center;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400), var(--gold-600));
}

footer .brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--gold-500);
  margin-bottom: 4px;
}

footer .tagline {
  color: rgba(255,255,255,0.35);
  font-size: 0.85rem;
  font-style: italic;
}

footer .social {
  margin: 22px 0;
  display: flex;
  gap: 12px;
  justify-content: center;
}

footer .social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--charcoal-700);
  color: rgba(255,255,255,0.35);
  font-size: 1rem;
  transition: all 0.3s;
}

footer .social a:hover {
  background: var(--gold-600);
  color: var(--charcoal-900);
  border-color: var(--gold-600);
  transform: translateY(-3px);
}

footer .info {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}

footer .info i {
  margin-right: 7px;
  color: var(--gold-600);
}

footer .copy {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--charcoal-700);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
}

/* ==========================================
   ADMIN PANEL
   ========================================== */
.admin-body { background: var(--cream); }

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-header {
  background: var(--charcoal-800);
  border-bottom: none;
  position: static;
  backdrop-filter: none;
}

.admin-header .navbar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.admin-header .logo { color: var(--gold-600); font-size: 1.05rem; }

.admin-header .nav-menu { display: flex; align-items: center; gap: 2px; }

#adminNavToggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--gold-400);
  padding: 4px 8px;
}

.admin-header .nav-menu li a {
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
  transition: color 0.2s, background 0.2s;
}

.admin-header .nav-menu li a:hover,
.admin-header .nav-menu li a.active {
  color: var(--gold-400);
  background: rgba(255,255,255,0.06);
}

.admin-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 24px 50px;
}

.admin-form {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px;
  max-width: 600px;
  margin: 0 auto;
}

.admin-form h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--charcoal-800);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: all 0.25s;
  background: var(--white);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold-600);
  box-shadow: 0 0 0 4px rgba(200,150,62,0.1);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.admin-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}

.admin-stat-card:hover {
  border-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,150,62,0.08);
}

.admin-stat-card .stat-number {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: 4px;
}

.admin-stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 40px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.admin-table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.admin-table-wrapper::-webkit-scrollbar-track {
  background: var(--cream);
}

.admin-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--gold-400);
  border-radius: 4px;
}

.admin-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--gold-600);
}

.admin-table th,
.admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: var(--cream);
  font-weight: 600;
  color: var(--charcoal-800);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.admin-table tr:hover {
  background: var(--cream-light);
}

.admin-table .btn {
  padding: 6px 14px;
  font-size: 0.7rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-split,
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  #navToggle { display: block; }

  header .container { height: auto; min-height: 60px; padding: 10px 16px; gap: 8px; }

  .logo { font-size: 1.1rem; letter-spacing: 3px; flex-shrink: 0; }

  .lang {
    margin-left: 0; padding-left: 0;
    border-left: none;
    padding-top: 10px;
    border-top: 1px solid var(--charcoal-600);
    margin-top: 8px;
    justify-content: center;
    width: 100%;
  }

  .events-grid { flex-direction: column; align-items: center; }
  .event-card { width: 100%; max-width: 420px; text-align: center; }
  .event-card .event-actions { justify-content: center; }

  .hero { padding: 90px 16px 60px; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .hero .sub { font-size: 0.75rem; letter-spacing: 6px; }
  .hero .tagline { font-size: 1rem; }
  .hero p { font-size: 0.85rem; }
  .hero-actions { flex-direction: column; align-items: center; gap: 10px; }

  .section { padding: 60px 16px; }
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: 1.5rem; }

  .stats-grid { gap: 12px; }
  .stat-card { padding: 20px 12px; }

  .members-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
  .member-photo { height: 260px; }

  .gallery-filters { gap: 4px; }
  .gallery-filters button { padding: 8px 16px; font-size: 0.65rem; }

  .page-hd { padding: 80px 16px 36px; }
  .page-hd h1 { font-size: 1.6rem; }

  .contact-info .item { padding: 14px; }

  .photo-modal, .video-modal, .event-media-modal { padding: 16px; }
  .photo-modal-content img { max-height: 70vh; }
  .video-modal-content video { max-height: 60vh; }
  .event-media-content img { max-height: 60vh; }
  .event-media-content video { max-height: 55vh; }
  .event-media-modal .modal-nav { width: 32px; height: 32px; font-size: 0.8rem; }
  .event-media-modal .modal-nav.prev { left: 4px; }
  .event-media-modal .modal-nav.next { right: 4px; }

  .cta-section { padding: 60px 16px; }
  .quote-section { padding: 70px 16px; }
  .quote-section blockquote { font-size: 1.1rem; }

  footer { padding: 50px 16px 24px; }
  footer .brand { font-size: 1.2rem; letter-spacing: 4px; }
  footer .info { gap: 10px; flex-direction: column; }

  .admin-header .navbar { padding: 0 8px; height: auto; min-height: 44px; }
  #adminNavToggle { display: block; }
  .admin-header .nav-menu {
    display: none;
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 10, 6, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 24px 20px;
    border-bottom: none;
    z-index: 9999;
    overflow-y: auto;
    gap: 4px;
  }
  .admin-header .nav-menu.open { display: flex; }
  .admin-header .nav-menu li { width: 100%; }
  .admin-header .nav-menu li a {
    display: block;
    padding: 14px 16px;
    width: 100%;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid var(--charcoal-700);
    transition: all 0.2s;
  }
  .admin-header .nav-menu li a:hover,
  .admin-header .nav-menu li a.active {
    background: var(--charcoal-700);
    color: var(--gold-400);
    padding-left: 24px;
  }
  .admin-container { padding: 20px 12px; }
  .admin-form { padding: 20px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .admin-stat-card { padding: 14px 8px; }
  .admin-stat-card .stat-number { font-size: 1.2rem; }
  .admin-stat-card .stat-label { font-size: 0.65rem; }
  .admin-table { font-size: 0.72rem; min-width: 100%; width: max-content; border: none; }
  .admin-table th, .admin-table td { padding: 8px 10px; white-space: nowrap; }
  .admin-container form[style*="grid-template-columns:1fr 1fr"],
  .admin-container div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .section { padding: 50px 12px; }
  .hero { padding: 70px 12px 50px; }
  .hero h1 { font-size: 2.2rem; }
  .hero .sub { font-size: 0.7rem; letter-spacing: 4px; }
  .hero .tagline { font-size: 0.9rem; }
  .btn { padding: 12px 24px; font-size: 0.7rem; }
  .members-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ===== MOBILE MENU FIX ===== */
body.menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 10, 6, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 24px 20px;
    border-bottom: none;
    z-index: 9999;
    overflow-y: auto;
    gap: 4px;
  }

  #navMenu.open {
    display: flex;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block;
    padding: 14px 16px;
    width: 100%;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid var(--charcoal-700);
    transition: all 0.2s;
  }

  nav ul li a:hover,
  nav ul li a.active {
    background: var(--charcoal-700);
    color: var(--gold-400);
    padding-left: 24px;
  }

  nav ul li a::after {
    display: none;
  }

  .lang {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: 16px;
    border-top: 1px solid var(--charcoal-600);
    margin-top: 16px;
    justify-content: center;
    width: 100%;
    gap: 8px;
  }

  .lang a {
    padding: 8px 16px;
    font-size: 0.7rem;
  }

  .hero { padding: 70px 12px 50px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .stats-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: 1fr; }
  .member-photo { height: 180px; }
  .member-photo img { object-position: top center; }

  .event-card { padding: 20px; }
  .event-card .date-badge { padding: 8px 14px; }
  .event-card .date-badge .day { font-size: 1.3rem; }

  footer .info { flex-direction: column; gap: 8px; }

  .photo-modal, .video-modal, .event-media-modal { padding: 8px; }
  .photo-modal-close, .video-modal-close, .event-media-close { top: 10px; right: 14px; font-size: 1.8rem; }
  .event-media-modal .modal-nav { width: 28px; height: 28px; font-size: 0.7rem; }
  .event-media-modal .modal-nav.prev { left: 2px; }
  .event-media-modal .modal-nav.next { right: 2px; }

  .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .admin-stat-card { padding: 10px 6px; }
  .admin-stat-card .stat-number { font-size: 1rem; }
  .admin-stat-card .stat-label { font-size: 0.6rem; }
  .admin-header .navbar { height: auto; padding: 0 4px; min-height: 40px; }
  .admin-header .nav-menu li a { padding: 10px 12px; font-size: 0.7rem; }
  .admin-container form[style*="grid-template-columns:1fr 1fr"],
  .admin-container div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  .login-container { padding: 28px 20px 24px; text-align: center; }
  .login-container h1 { font-size: 1.3rem; }

  .page-hd { padding: 60px 12px 28px; }
  .page-hd h1 { font-size: 1.3rem; }

  .contact-form input,
  .contact-form textarea { padding: 12px 14px; font-size: 0.82rem; }

  .loader-logo { max-width: 85vw; }
  .loader-progress-wrap { max-width: 70vw; }
}

/* ===== EVENT MEDIA MODAL ===== */
.event-media-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.event-media-modal.open { display: flex; }

.event-media-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
  line-height: 1;
}
.event-media-close:hover { color: var(--white); }

.event-media-content {
  max-width: 960px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-media-content img {
  max-width: 100%;
  max-height: 85vh;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.event-media-content video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
  outline: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.event-media-modal .modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-size: 1.2rem;
}
.event-media-modal .modal-nav:hover {
  background: var(--gold-600);
  color: var(--charcoal-900);
  border-color: var(--gold-600);
}
.event-media-modal .modal-nav.prev { left: 20px; }
.event-media-modal .modal-nav.next { right: 20px; }

.event-media-modal .modal-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  letter-spacing: 1px;
  z-index: 2;
  font-family: var(--font-sans);
}

@media (max-width: 768px) {
  .event-media-modal { padding: 20px; }
  .event-media-modal .modal-nav { width: 36px; height: 36px; font-size: 0.9rem; }
  .event-media-modal .modal-nav.prev { left: 8px; }
  .event-media-modal .modal-nav.next { right: 8px; }
}
