/* ===== Custom Properties ===== */
:root {
  --purple-dark: #3d1f56;
  --purple-mid: #6b3fa0;
  --purple-light: #9b59b6;
  --gold: #f0c27a;
  --gold-dim: rgba(240, 194, 122, 0.4);
  --bg-deep: #0f0a18;
  --bg-dark: #1a1025;
  --bg-mid: #221335;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.55);
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
  --nav-height: 64px;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Utility ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-label {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  text-align: center;
  margin-bottom: 16px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--purple-dark);
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: #e0b56a; text-decoration: none; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}
.btn-outline:hover { background: rgba(240, 194, 122, 0.1); }

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--purple-dark);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(107, 63, 160, 0.3);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
}
.nav-logo:hover { text-decoration: none; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); text-decoration: none; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(107, 63, 160, 0.2);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--gold);
}
.footer p, .footer li {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}
.footer ul { list-style: none; }
.footer ul a { color: var(--text-muted); }
.footer ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(107, 63, 160, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: rgba(255, 255, 255, 0.35); }
.footer-social a:hover { color: var(--gold); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-mid) 60%, var(--purple-light) 100%);
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 24px;
  max-width: 700px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero h1 .gold { color: var(--gold); }
.hero p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 28px;
}

/* ===== Page Hero (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-mid) 100%);
  padding: 100px 0 60px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 40px;
  margin-bottom: 12px;
}
.page-hero p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: rgba(107, 63, 160, 0.15);
  border: 1px solid rgba(107, 63, 160, 0.25);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: rgba(240, 194, 122, 0.4); transform: translateY(-2px); }
.card-image {
  aspect-ratio: 16/10;
  background: var(--bg-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}
.card-body { padding: 20px; }
.card-body h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--gold);
}
.card-body p { color: var(--text-muted); font-size: 14px; }

/* ===== Pillar Cards (homepage) ===== */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  background: rgba(107, 63, 160, 0.15);
  border: 1px solid rgba(107, 63, 160, 0.25);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
}
.pillar-icon { font-size: 36px; margin-bottom: 12px; }
.pillar h3 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 20px;
  margin-bottom: 8px;
}
.pillar p { color: var(--text-muted); font-size: 14px; }

/* ===== Event Cards ===== */
.event-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event-card {
  background: rgba(107, 63, 160, 0.15);
  border: 1px solid rgba(107, 63, 160, 0.25);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.3s;
}
.event-card:hover { border-color: rgba(240, 194, 122, 0.4); }
.event-date {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.event-card h3 { font-family: var(--font-heading); font-size: 18px; margin-bottom: 6px; }
.event-card .event-meta { color: var(--text-muted); font-size: 13px; }
.event-card .event-desc { color: var(--text-secondary); font-size: 14px; margin-top: 10px; }

/* ===== Photo Grid ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.photo-grid img, .photo-placeholder {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  width: 100%;
}
.photo-placeholder {
  background: rgba(107, 63, 160, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
}

/* ===== Gallery (full page) ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(107, 63, 160, 0.2);
  transition: border-color 0.3s;
}
.gallery-item:hover { border-color: rgba(240, 194, 122, 0.5); }
.gallery-item img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 6, 18, 0.96);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox-inner {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lightbox img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border: 1px solid rgba(107, 63, 160, 0.25);
}
.lightbox-caption {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--text-secondary);
}
.lightbox-nav { display: flex; align-items: center; gap: 20px; }
.lightbox-btn {
  background: none;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-btn:hover { background: rgba(240, 194, 122, 0.1); border-color: var(--gold); }
.lightbox-counter { color: var(--text-muted); font-size: 13px; letter-spacing: 2px; }
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(240, 194, 122, 0.1); border-color: var(--gold); }

/* ===== Contact Form ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 16px;
}
.contact-info p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
}
.contact-form label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(107, 63, 160, 0.1);
  border: 1px solid rgba(107, 63, 160, 0.3);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold-dim);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ===== Membership Tiers ===== */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tier {
  background: rgba(107, 63, 160, 0.1);
  border: 1px solid rgba(107, 63, 160, 0.25);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.tier:hover { border-color: rgba(240, 194, 122, 0.4); transform: translateY(-2px); }
.tier.featured {
  border-color: var(--gold-dim);
  background: rgba(107, 63, 160, 0.2);
}
.tier h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 8px;
}
.tier .price {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.tier ul {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}
.tier ul li {
  color: var(--text-secondary);
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(107, 63, 160, 0.1);
}
.tier ul li::before {
  content: 2713 ;
  color: var(--gold);
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-mid));
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  margin-bottom: 20px;
}

/* ===== About Page ===== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-photo {
  aspect-ratio: 3/4;
  background: var(--bg-mid);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-text h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  margin-bottom: 16px;
}
.about-text p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--purple-dark);
    padding: 16px 24px;
    gap: 12px;
    border-bottom: 1px solid rgba(107, 63, 160, 0.3);
  }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .pillar-grid,
  .card-grid,
  .event-list,
  .tier-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .page-hero { padding: 80px 0 40px; }
  .page-hero h1 { font-size: 30px; }
}
