/* ── CEG Public Site — Global Styles ── */
:root {
  --gold: #C9A84C;
  --gold-light: #E8CB7A;
  --dark: #0a0a0a;
  --dark2: #111111;
  --dark3: #1a1a1a;
  --dark4: #222222;
  --text: #e8e8e8;
  --muted: rgba(255,255,255,0.45);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', Arial, sans-serif;
  --radius: 6px;
  --max: 1140px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }

a { color: var(--gold); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

/* ── Layout ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; }
.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 1.5rem;
}
.section-title span { color: var(--gold); }
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.8;
}

/* ── Navbar ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  transition: background var(--transition);
}
.nav-logo { display: flex; align-items: center; gap: 0.7rem; }
.nav-logo img { height: 56px; }
.nav-links { display: flex; gap: 2.2rem; align-items: center; }
.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); opacity: 1; }
.nav-cta {
  background: var(--gold);
  color: #0a0a0a !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--gold-light); opacity: 1 !important; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-gold { background: var(--gold); color: #0a0a0a; }
.btn-gold:hover { background: var(--gold-light); opacity: 1; }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.5);
}
.btn-outline:hover { border-color: var(--gold); background: rgba(201,168,76,0.06); opacity: 1; }

/* ── Gold rule ── */
.rule { width: 48px; height: 2px; background: var(--gold); margin-bottom: 2rem; }

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.38);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,10,0.85) 40%, rgba(10,10,10,0.1) 100%),
              linear-gradient(to top, rgba(10,10,10,0.7) 0%, transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 5rem;
}
.hero-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: #fff;
  max-width: 700px;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Stat bar ── */
.stat-bar {
  background: var(--dark2);
  border-top: 1px solid rgba(201,168,76,0.12);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  padding: 2.5rem 0;
}
.stat-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Cards ── */
.card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover {
  border-color: rgba(201,168,76,0.25);
  transform: translateY(-3px);
}
.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  transition: filter var(--transition);
}
.card:hover .card-img { filter: brightness(1); }
.card-body { padding: 1.8rem; }
.card-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
  display: block;
}
.card-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.7rem;
}
.card-text { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

/* ── Event card ── */
.event-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: border-color var(--transition);
}
.event-card:hover { border-color: rgba(201,168,76,0.3); }
.event-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  filter: brightness(0.8);
}
.event-body { padding: 2.5rem 2rem; display: flex; flex-direction: column; justify-content: center; }
.event-date {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.event-title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.event-meta { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.event-meta-item svg { color: var(--gold); flex-shrink: 0; }
.event-badge {
  display: inline-block;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

/* ── About split ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.split-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.split-img {
  width: 100%;
  display: block;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: brightness(0.85);
}
.split-img-accent {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(10,10,10,0.7), transparent);
}

/* ── Values grid ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.value-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: border-color var(--transition);
}
.value-card:hover { border-color: rgba(201,168,76,0.25); }
.value-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.value-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.6rem;
}
.value-text { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

/* ── Team / Ambassador ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.team-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: border-color var(--transition);
}
.team-card:hover { border-color: rgba(201,168,76,0.25); }
.team-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; display: block; filter: brightness(0.85); }
.team-body { padding: 1.5rem; }
.team-name { font-family: var(--font-head); font-size: 1.2rem; color: #fff; margin-bottom: 0.3rem; }
.team-role { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; flex-direction: column; gap: 0.3rem; }
.contact-item-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-item-val { font-size: 1rem; color: var(--text); }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.form-input, .form-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: #fff;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-input:focus, .form-textarea:focus { border-color: rgba(201,168,76,0.5); }
.form-textarea { resize: vertical; min-height: 140px; }

/* ── CTA Banner ── */
.cta-banner {
  background: var(--dark2);
  border-top: 1px solid rgba(201,168,76,0.12);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  padding: 5rem 0;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: #fff; margin-bottom: 1rem; }
.cta-banner p { font-size: 1rem; color: var(--muted); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ── Footer ── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 4rem 0 2rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 2rem;
}
.footer-logo { margin-bottom: 1rem; }
.footer-logo img { height: 48px; opacity: 0.85; }
.footer-about { font-size: 0.88rem; color: var(--muted); line-height: 1.8; max-width: 280px; }
.footer-col-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.88rem; color: var(--muted); transition: color var(--transition); }
.footer-links a:hover { color: #fff; opacity: 1; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}
.footer-bottom a { color: rgba(255,255,255,0.25); }
.footer-bottom a:hover { color: var(--gold); opacity: 1; }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
  background: var(--dark2);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.15);
}
.page-hero-content { position: relative; z-index: 2; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .stat-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .split-img-wrap { order: -1; }
  .split-img { aspect-ratio: 16/7; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .event-card { grid-template-columns: 1fr; }
  .event-img { min-height: 220px; aspect-ratio: 16/9; height: auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown */
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0d0d0d;
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 1.5rem 2rem 2rem;
  gap: 1.4rem;
}
.nav-links.mobile-open a {
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.8) !important;
}
.nav-links.mobile-open .nav-cta {
  color: #0a0a0a !important;
  width: 100%;
  text-align: center;
  justify-content: center;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  nav { position: fixed; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 4rem 0; }
  .stat-bar-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}

/* ── Video Hero ── */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.48) grayscale(0.15);
  z-index: 0;
}
.hero-video ~ .hero-overlay { z-index: 1; }
.hero-video ~ .hero-overlay ~ .hero-content { z-index: 2; }
/* Hide static bg when video loads */
.hero-video + .hero-bg { display: none; }

/* ── Scroll Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ── Animated Stat Counters ── */
.stat-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding: 3rem;
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.14);
  border-radius: var(--radius);
}
.stat-counter-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.stat-counter-item:last-child { border-right: none; }
.stat-counter-num {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-counter-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Countdown Timer ── */
.countdown-wrap {
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  margin-bottom: 3rem;
  text-align: center;
}
.countdown-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: block;
}
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}
.countdown-num {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.countdown-unit {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}
.countdown-sep {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  color: rgba(201,168,76,0.35);
  line-height: 1;
  align-self: flex-start;
  padding-top: 0;
}
.countdown-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 1.4rem;
}

@media (max-width: 600px) {
  .stat-counters { grid-template-columns: 1fr; }
  .stat-counter-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .stat-counter-item:last-child { border-bottom: none; }
  .countdown-grid { gap: 1rem; }
  .countdown-block { min-width: 60px; }
}
