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

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

/* Override theme appear-animation to show content immediately */
.appear-animation:not(.hero-fade-in) {
  opacity: 1 !important;
}

:root {
  --navy:       #1a2744;
  --navy-dark:  #111c35;
  --navy-mid:   #243156;
  --gold:       #c9a84c;
  --gold-light: #e2c97e;
  --cream:      #f8f5ef;
  --off-white:  #f2ede3;
  --text-dark:  #1a1a2e;
  --text-mid:   #4a4a6a;
  --text-light: #8888aa;
  --white:      #ffffff;
  --border:     #e0d8c8;
  --radius:     6px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

/* ── HERO TYPING ANIMATION ── */
.hero-typing {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5.5vw, 68px); 
  line-height: 1.12; 
  font-weight: 700;
  color: var(--white); 
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.typing-text {
  display: inline-block;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.typing-text.animate {
  animation: typing 2.0s steps(45, end) forwards;
}

.hero-typing.typing-complete .typing-text {
  display: inline;
  width: auto;
  overflow: visible;
  white-space: normal;
  animation: none !important;
}

@keyframes typing {
  0% { width: 0; }
  100% { width: 100%; }
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--gold-light);
  animation: blink-cursor 0.75s step-end infinite;
  margin-left: 4px;
  vertical-align: middle;
}

.hero-typing.typing-complete .typing-cursor {
  animation: none;
  background: transparent;
}

@keyframes blink-cursor {
  0%, 49% { background: var(--gold-light); }
  50%, 100% { background: transparent; }
}

@keyframes fadeInUpShorter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-fade-in {
  opacity: 0;
  margin-top: 0;
  transition: none;
}

.hero-fade-in.fade-in-visible {
  animation: fadeInUpShorter 0.6s ease-out forwards;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--gold); color: var(--navy-dark);
  font-family: 'Lato', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: .8px; text-transform: uppercase;
  border: none; border-radius: var(--radius); cursor: pointer;
  padding: 10px 22px;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.mobile-cta { display: none; }
.btn-gold {
  background: var(--gold); color: var(--navy-dark);
  font-family: 'Lato', sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: .8px; text-transform: uppercase;
  border: none; border-radius: var(--radius); cursor: pointer;
  padding: 16px 36px; text-decoration: none; display: inline-block;
  transition: background .3s cubic-bezier(.34,.1,.64,.1), transform .3s cubic-bezier(.34,.1,.64,.1), box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255,255,255,.2);
  transition: left .4s cubic-bezier(.34,.1,.64,.1);
  pointer-events: none;
}
.btn-gold:hover::before { left: 100%; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(201,168,76,.5); }
.btn-outline {
  background: transparent; color: var(--white);
  font-family: 'Lato', sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: .8px; text-transform: uppercase;
  border: 2px solid rgba(255,255,255,.5); border-radius: var(--radius);
  padding: 14px 34px; text-decoration: none; display: inline-block;
  transition: border-color .3s ease, background .3s ease, color .3s ease, transform .3s cubic-bezier(.34,.1,.64,.1);
}
.btn-outline:hover { 
  border-color: var(--gold-light); 
  background: rgba(255,255,255,.1);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* ── HERO ── */
.hero-section {
  position: relative; min-height: 650px;
  background:
    linear-gradient(160deg, rgba(17,28,53,.88) 0%, rgba(26,39,68,.78) 100%),
    url('https://images.unsplash.com/photo-1579532537598-459ecdaf39cc?w=1800&q=80') center/cover no-repeat;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  overflow: visible;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(17,28,53,.6) 0%, transparent 80%);
  pointer-events: none;
}
.hero-section .container {
  position: relative; z-index: 1; display: flex; align-items: center; width: 100%;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-light); border-left: 3px solid var(--gold); padding-left: 12px; margin-bottom: 20px;
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5.5vw, 68px); line-height: 1.12; font-weight: 700;
  color: var(--white); margin-bottom: 24px;
}
.hero-headline em { color: var(--gold-light); font-style: italic; }
.hero-body {
  font-size: 17px; line-height: 1.75; color: rgba(255,255,255,.82);
  max-width: 560px; margin-bottom: 28px; font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badge {
  position: absolute; bottom: -20px; right: 60px; z-index: 50;
  width: 110px; height: 110px; border-radius: 50%;
  border: 2px solid var(--gold); background: rgba(17,28,53,.85);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center;
  transition: transform .3s cubic-bezier(.34,.1,.64,.1), box-shadow .3s ease, border-color .3s ease;
  animation: badgePulse 2.5s ease-in-out infinite;
}
.hero-badge:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 40px rgba(201,168,76,.3);
  border-color: var(--gold-light);
  animation: none;
}
.hero-badge-top { font-size: 10px; color: var(--gold-light); letter-spacing: 1px; text-transform: uppercase; }
.hero-badge-mid { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--white); font-weight: 700; transition: color .3s ease; }
.hero-badge:hover .hero-badge-mid { color: var(--gold-light); }
.hero-badge-btm { font-size: 9px; color: rgba(255,255,255,.6); letter-spacing: .5px; }

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(201,168,76,.15);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(201,168,76,.3);
  }
}

/* ── SECTIONS ── */
.section { padding: 96px 0; }
.section-light { background: var(--cream); }
.section-dark  { background: var(--navy-dark); }
.section-form  { background: var(--off-white); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--navy); margin-bottom: 12px;
}
.section-eyebrow-gold { color: var(--gold-light); }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3.5vw, 44px); font-weight: 700;
  color: var(--navy-dark); margin-bottom: 16px; line-height: 1.2;
}
.section-title-light { color: var(--white); }
.section-subtitle { max-width: 520px; margin: 16px auto 0; font-size: 16px; color: var(--text-mid); line-height: 1.7; }
.title-rule { width: 52px; height: 3px; background: var(--gold); margin: 0 auto; border-radius: 2px; }

/* ── EVENT DETAILS ── */
.details-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.detail-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px 24px; text-align: center;
  border: 1px solid var(--border); box-shadow: 0 2px 12px rgba(26,39,68,.08);
  transition: transform .3s cubic-bezier(.34,.1,.64,.1), box-shadow .3s ease, border-color .3s ease;
}
.detail-card:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 12px 48px rgba(26,39,68,.18);
  border-color: var(--gold);
}
.detail-icon { 
  font-size: 28px; 
  margin-bottom: 12px;
  display: inline-block;
  transition: transform .3s ease;
}
.detail-card:hover .detail-icon {
  transform: scale(1.15) rotate(5deg);
}
.detail-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.detail-value { font-size: 15px; color: var(--text-dark); line-height: 1.6; white-space: pre-line; }

/* ── TOPICS ── */
.topics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.topic-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 36px 28px;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.34,.1,.64,.1);
  position: relative;
  overflow: hidden;
}
.topic-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.1), transparent);
  transition: left .5s ease;
}
.topic-card:hover {
  background: rgba(255,255,255,.08); 
  border-color: rgba(201,168,76,.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(201,168,76,.15);
}
.topic-card:hover::before {
  left: 100%;
}
.topic-number { 
  font-family: 'Playfair Display', serif; 
  font-size: 48px; 
  font-weight: 700; 
  color: rgba(201,168,76,.25); 
  line-height: 1; 
  margin-bottom: 12px;
  transition: color .3s ease, transform .3s ease;
}
.topic-card:hover .topic-number {
  color: rgba(201,168,76,.5);
  transform: scale(1.1);
}
.topic-title { 
  font-family: 'Playfair Display', serif; 
  font-size: 20px; 
  font-weight: 600; 
  color: var(--white); 
  margin-bottom: 14px; 
  line-height: 1.3;
  transition: color .3s ease;
}
.topic-card:hover .topic-title {
  color: var(--gold-light);
}
.topic-body { 
  font-size: 15px; 
  color: rgba(255,255,255,.65); 
  line-height: 1.75; 
  font-weight: 300;
  transition: color .3s ease;
}
.topic-card:hover .topic-body {
  color: rgba(255,255,255,.8);
}

/* ── FORM CTA ── */
.form-cta-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 16px 56px rgba(26,39,68,.18);
  padding: 56px 48px; text-align: center;
  transition: transform .3s cubic-bezier(.34,.1,.64,.1), box-shadow .3s ease, border-color .3s ease;
}
.form-cta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 72px rgba(26,39,68,.25);
  border-color: var(--gold);
}
.form-cta-icon { 
  font-size: 40px; 
  margin-bottom: 20px;
  display: inline-block;
  transition: transform .3s cubic-bezier(.34,.1,.64,.1);
}
.form-cta-card:hover .form-cta-icon {
  transform: scale(1.15) rotate(-10deg);
}
.form-cta-title {
  font-family: 'Playfair Display', serif; 
  font-size: 28px; 
  font-weight: 700;
  color: var(--navy-dark); 
  margin-bottom: 16px;
  transition: color .3s ease;
}
.form-cta-card:hover .form-cta-title {
  color: var(--gold);
}
.form-cta-body {
  font-size: 16px; 
  color: var(--text-mid); 
  line-height: 1.75;
  max-width: 480px; 
  margin: 0 auto 32px;
}
.form-cta-note { 
  margin-top: 18px; 
  font-size: 13px; 
  color: var(--text-light);
  transition: color .3s ease;
}
.form-cta-card:hover .form-cta-note {
  color: var(--text-mid);
}

/* ── FOOTER ── */
.site-footer { background: var(--navy-dark); padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-tagline { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.6; max-width: 260px; font-weight: 300; }
.footer-links-heading { font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-link { display: block; font-size: 14px; color: rgba(255,255,255,.6); text-decoration: none; margin-bottom: 8px; transition: color .2s; }
.footer-link:hover { color: var(--gold-light); }
.footer-contact-line { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 6px; line-height: 1.6; font-weight: 300; }
.footer-divider { height: 1px; background: rgba(255,255,255,.1); margin-bottom: 28px; }
.footer-disclaimer { font-size: 12px; color: rgba(255,255,255,.35); line-height: 1.7; max-width: 900px; font-weight: 300; margin-bottom: 12px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.35); font-weight: 300; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .details-grid  { grid-template-columns: repeat(2, 1fr); }
  .topics-grid   { grid-template-columns: 1fr; }
  .footer-top    { grid-template-columns: 1fr 1fr; }
  .footer-brand  { grid-column: 1 / -1; }
  .hero-badge    { display: none; }
  .nav-links .nav-link { display: none; }
}
@media (max-width: 640px) {
  .details-grid   { grid-template-columns: 1fr; }
  .footer-top     { grid-template-columns: 1fr; }
  .hero-content   { padding: 0 24px; }
  .section        { padding: 64px 0; }
  .nav-links .btn-primary { display: none; }
  .mobile-cta     { display: block; margin-left: auto; }
}
