/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d0a08;
  --bg2:       #130f0b;
  --bg3:       #1a1410;
  --primary:   #8b1a24;
  --primary-h: #a82030;
  --gold:      #c9a84c;
  --gold-h:    #e0be6a;
  --gold-dim:  #8a6f2e;
  --text:      #f0ebe3;
  --text-muted:#a89880;
  --border:    rgba(201,168,76,0.15);
  --radius:    12px;
  --header-h:  72px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── Typography ───────────────────────────────────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-label.light { color: var(--gold-h); }

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.section-title.light { color: #fff; }

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.75;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-gold {
  background: var(--gold);
  color: #1a1000;
}
.btn-gold:hover {
  background: var(--gold-h);
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--gold-dim); color: var(--gold); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(240,235,227,0.3);
}
.btn-outline:hover { border-color: var(--text); }

.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 8px; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(13,10,8,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { height: 44px; width: auto; }
.brand-fallback {
  display: none;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav-link {
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

.header-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(139,26,36,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(201,168,76,0.06) 0%, transparent 60%),
    var(--bg);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 40px) 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 780px;
}

.hero-logo {
  width: min(380px, 72vw);
  height: auto;
  filter: drop-shadow(0 0 60px rgba(201,168,76,0.2));
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 560px;
}

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

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%       { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

/* ── About / pillars ──────────────────────────────────────────────────────── */
.about {
  padding: 100px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  margin-top: 56px;
}

.pillar { display: flex; flex-direction: column; gap: 12px; }

.pillar-icon { width: 52px; height: 52px; color: var(--gold); }
.pillar-icon svg { width: 100%; height: 100%; }

.pillar h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text);
}
.pillar p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

/* ── Features ─────────────────────────────────────────────────────────────── */
.features { padding: 100px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }

.feature-card--accent {
  background: linear-gradient(135deg, rgba(139,26,36,0.22) 0%, var(--bg2) 100%);
  border-color: rgba(139,26,36,0.4);
}
.feature-card--accent:hover { border-color: var(--primary-h); }

.feature-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text);
}
.feature-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }

/* ── Community / stats ────────────────────────────────────────────────────── */
.community {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}
.community-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(139,26,36,0.22) 0%, rgba(201,168,76,0.06) 100%),
    var(--bg3);
  border-top: 1px solid rgba(139,26,36,0.3);
  border-bottom: 1px solid rgba(139,26,36,0.3);
}
.community .container { position: relative; z-index: 1; }
.community .section-title { margin: 0 auto 56px; }

.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 52px;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(240,235,227,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(201,168,76,0.2);
}

/* ── Events preview ───────────────────────────────────────────────────────── */
.events-preview {
  padding: 100px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.event-types {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 56px;
  justify-content: center;
}

.event-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  flex: 1 1 160px;
  max-width: 200px;
  transition: border-color 0.2s, transform 0.2s;
}
.event-type:hover {
  border-color: var(--c, var(--gold-dim));
  transform: translateY(-3px);
}

.event-type-icon { width: 48px; height: 48px; color: var(--c, var(--gold)); }
.event-type-icon svg { width: 100%; height: 100%; }

.event-type span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

/* ── CTA section ──────────────────────────────────────────────────────────── */
.cta-section {
  padding: 120px 0;
  text-align: center;
}

.cta-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-logo {
  width: min(260px, 55vw);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(201,168,76,0.15));
  margin-bottom: 12px;
}

.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.cta-section p { font-size: 1.05rem; color: var(--text-muted); }

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo { height: 36px; width: auto; }
.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--gold);
}

.footer-copy { font-size: 0.82rem; color: var(--text-muted); }

.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.82rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    gap: 4px;
  }
  .nav.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(13,10,8,0.97);
    backdrop-filter: blur(12px);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-link { padding: 10px 0; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .header-ctas { display: none; }
  .header-inner { position: relative; }

  .stat { padding: 0 24px; }
  .stat-divider { height: 40px; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }

  .about, .features, .community, .events-preview, .cta-section { padding: 72px 0; }
}

@media (max-width: 480px) {
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }
  .stats { flex-direction: column; gap: 32px; }
  .stat-divider { display: none; }
  .event-type { max-width: none; flex: 1 1 140px; padding: 24px 16px; }
}
