/* ═══════════════════════════════════════
   PEG EVENTS — Official Website
   Minimal Luxury Design
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ── TOKENS ─────────────────────────── */
:root {
  --bg:       #0a0a0a;
  --white:    #ffffff;
  --gold:     #C9A84C;
  --gold-dim: rgba(201,168,76,0.15);
  --gold-mid: rgba(201,168,76,0.4);
  --muted:    rgba(255,255,255,0.38);
  --subtle:   rgba(255,255,255,0.05);
  --border:   rgba(255,255,255,0.06);

  --ff-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --ff-body:    'Inter', system-ui, sans-serif;

  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1200px;
  --gutter:    clamp(24px, 5vw, 72px);
}

/* ── RESET ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ── NAVIGATION ─────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  height: 76px;
  transition: background 0.5s var(--ease), height 0.4s;
}
#nav.scrolled {
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  height: 60px;
}
.nav-logo {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--white);
  transition: color 0.3s;
}
.nav-logo:hover { color: var(--gold); }
.nav-links {
  display: flex; align-items: center; gap: 40px;
}
.nav-links a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  padding: 9px 22px;
  border: 1px solid var(--gold-mid);
  color: var(--gold) !important;
  border-radius: 1px;
  transition: background 0.3s !important;
}
.nav-cta:hover { background: var(--gold-dim) !important; }
.hamburger {
  display: none;
  flex-direction: column; gap: 6px;
  padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 1px;
  background: var(--white);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.hamburger.open span:first-child { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:last-child  { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 800;
  background: var(--bg);
  flex-direction: column;
  align-items: center; justify-content: center; gap: 48px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--ff-display);
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ── HERO ───────────────────────────── */
#hero {
  position: relative;
  height: 100dvh; min-height: 640px;
  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% 60%, #1a1200 0%, var(--bg) 70%);
}
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.6;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  bottom: -20%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-body {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 0;
}
.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 1s 0.4s var(--ease) forwards;
}
.hero-wordmark {
  font-family: var(--ff-display);
  font-size: clamp(110px, 22vw, 280px);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 0.85;
  color: var(--white);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1.2s 0.6s var(--ease) forwards;
  /* subtle gold inner glow */
  text-shadow: 0 0 120px rgba(201,168,76,0.08);
}
.hero-tagline {
  font-family: var(--ff-display);
  font-size: clamp(18px, 2.8vw, 30px);
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 1s 0.9s var(--ease) forwards;
  letter-spacing: 0.02em;
}
.hero-tagline em { font-style: italic; color: var(--gold); font-weight: 300; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--white);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold-mid);
  transition: color 0.3s, border-color 0.3s, gap 0.3s;
  opacity: 0;
  animation: fadeUp 1s 1.1s var(--ease) forwards;
}
.hero-cta:hover { color: var(--gold); border-color: var(--gold); gap: 16px; }
.hero-scroll-indicator {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  opacity: 0; animation: fadeIn 1s 2s forwards;
}
.scroll-line {
  width: 1px; height: 64px;
  background: linear-gradient(to bottom, var(--gold-mid), transparent);
  animation: scrollPulse 2.4s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ── TICKER ─────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  background: rgba(255,255,255,0.01);
}
.ticker-track {
  display: flex; gap: 32px;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}
.ticker-track span {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.ticker-dot { color: var(--gold) !important; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SHARED ─────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px;
}
.label::before {
  content: '';
  display: block; width: 32px; height: 1px;
  background: var(--gold);
}
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ── EVENTS ─────────────────────────── */
#events {
  padding: clamp(80px,10vw,140px) 0;
}
.section-head {
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head h2 {
  font-family: var(--ff-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
}
.section-head h2 em { font-style: italic; color: var(--gold); }

.events-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
}
.event-row {
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.3s;
  position: relative;
}
.event-row::before {
  content: '';
  position: absolute; left: -var(--gutter); right: -var(--gutter); top: 0; bottom: 0;
  background: var(--gold-dim);
  opacity: 0;
  transition: opacity 0.3s;
}
.event-row:hover::before { opacity: 1; }
.event-row.featured { border-color: rgba(201,168,76,0.2); }
.event-row.featured .event-info h3 { color: var(--gold); }

.event-index {
  font-family: var(--ff-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 300;
  position: relative; z-index: 1;
}
.event-info {
  position: relative; z-index: 1;
}
.event-info h3 {
  font-family: var(--ff-display);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.1;
  transition: color 0.3s;
  margin-bottom: 4px;
}
.event-row:hover .event-info h3 { color: var(--gold); }
.event-info p {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.event-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  position: relative; z-index: 1;
}
.event-date {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}
.event-tag {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 1px;
}
.event-tag.upcoming {
  color: var(--gold);
  border-color: var(--gold-mid);
}
.event-action {
  position: relative; z-index: 1;
}
.event-action span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s, gap 0.3s;
  white-space: nowrap;
}
.event-row:hover .event-action span { color: var(--gold); gap: 14px; }

/* ── ABOUT ──────────────────────────── */
#about {
  padding: clamp(80px,10vw,140px) 0;
  border-top: 1px solid var(--border);
}
.about-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}
.about-visual {
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f0d00, #1a1500 40%, #0a0a0a);
  border: 1px solid rgba(201,168,76,0.1);
  position: relative; overflow: hidden;
}
.about-visual::before {
  content: '';
  position: absolute;
  inset: -100%;
  background: conic-gradient(from 0deg, transparent 60%, rgba(201,168,76,0.04) 80%, transparent 100%);
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.about-mark {
  font-family: var(--ff-display);
  font-size: clamp(80px, 14vw, 160px);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(201,168,76,0.12);
  position: relative; z-index: 1;
  user-select: none;
}
.about-text h2 {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.about-text h2 em { font-style: italic; color: var(--gold); }
.about-text > p {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 48px;
}
.about-stats {
  display: flex; gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: var(--ff-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── CONTACT ────────────────────────── */
#contact {
  padding: clamp(80px,10vw,140px) 0;
  border-top: 1px solid var(--border);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: start;
}
.contact-text h2 {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.contact-text h2 em { font-style: italic; color: var(--gold); }
.contact-text > p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 40px;
}
.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
  letter-spacing: 0.05em;
}
.contact-link:hover { color: var(--gold); }
.contact-link svg { color: var(--gold); flex-shrink: 0; }

/* Form */
.contact-form {
  display: flex; flex-direction: column; gap: 14px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 1px;
  padding: 14px 18px;
  font-size: 14px;
  font-family: var(--ff-body);
  font-weight: 300;
  color: var(--white);
  outline: none;
  transition: border-color 0.3s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold-mid); }
.form-group select { color: rgba(255,255,255,0.5); }
.form-group select option { background: #111; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit {
  padding: 16px;
  background: var(--gold);
  color: #000;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 1px;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.form-submit:hover { opacity: 0.88; transform: translateY(-1px); }
.form-success {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.08em;
  display: none;
  text-align: center;
}
.form-success.show { display: block; }

/* ── FOOTER ─────────────────────────── */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--white);
}
.footer-copy {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.2);
}
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s;
}
.footer-socials a:hover { border-color: var(--gold-mid); color: var(--gold); }

/* ── ANIMATIONS ─────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ── SCROLLBAR ──────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); border-radius: 2px; }
::selection { background: rgba(201,168,76,0.25); }

/* ── RESPONSIVE ─────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { aspect-ratio: 16/9; max-height: 280px; }
  .contact-inner { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 40px 1fr auto; }
  .event-action { display: none; }
}

@media (max-width: 600px) {
  .event-row { grid-template-columns: 1fr auto; gap: 16px; }
  .event-index { display: none; }
  .about-stats { gap: 24px; }
}
