/* ===================================================
   Global Events USA — Main Stylesheet
   =================================================== */

:root {
  --navy:      #0d1b2a;
  --navy-mid:  #1a2d42;
  --navy-light:#243b55;
  --gold:      #f4a500;
  --gold-dark: #d4890a;
  --gold-light:#ffd166;
  --white:     #ffffff;
  --light:     #f8f9fa;
  --muted:     #6c757d;
  --text:      #2d3748;
  --border:    #e2e8f0;
  --success:   #22c55e;
  --danger:    #ef4444;
  --shadow:    0 10px 40px rgba(13,27,42,.12);
  --shadow-lg: 0 20px 60px rgba(13,27,42,.2);
  --radius:    12px;
  --radius-lg: 20px;
  --transition: all .3s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* Typography */
h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--navy); }
.playfair { font-family: 'Playfair Display', serif; }

/* Utilities */
.text-gold   { color: var(--gold) !important; }
.bg-navy     { background-color: var(--navy) !important; }
.bg-gold     { background-color: var(--gold) !important; }
.text-navy   { color: var(--navy) !important; }

/* ── Top Bar ── */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  padding: 7px 0;
}
.top-bar a { color: rgba(255,255,255,.75); text-decoration: none; transition: var(--transition); }
.top-bar a:hover { color: var(--gold); }

/* ── Navbar ── */
.main-nav {
  background: rgba(13,27,42,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244,165,0,.15);
  padding: 14px 0;
  transition: var(--transition);
}
.navbar-brand .brand-text { color: var(--white); font-weight: 800; font-size: 1.25rem; letter-spacing: -.3px; }
.nav-link { color: rgba(255,255,255,.8) !important; font-weight: 500; padding: 8px 16px !important; border-radius: 8px; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--gold) !important; background: rgba(244,165,0,.1); }
.navbar-toggler { border-color: rgba(244,165,0,.4); }
.navbar-toggler-icon { filter: invert(1); }

/* Buttons */
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border: none;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: .3px;
}
.btn-gold:hover { background: var(--gold-dark); color: var(--navy); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(244,165,0,.35); }
.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 8px;
  transition: var(--transition);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); font-weight: 700; padding: 12px 28px; border-radius: 8px; border: none; transition: var(--transition); }
.btn-navy:hover { background: var(--navy-mid); color: var(--white); transform: translateY(-1px); }
.btn-lg-gold { padding: 16px 42px; font-size: 1rem; border-radius: 10px; }

/* ── HERO ── */
.hero-section {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 50%, #0d1b2a 100%);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=1600&q=80') center/cover no-repeat;
  opacity: .12;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--white), transparent);
}
.hero-content { position: relative; z-index: 2; padding: 80px 0; }
.hero-badge {
  display: inline-block;
  background: rgba(244,165,0,.15);
  border: 1px solid rgba(244,165,0,.35);
  color: var(--gold);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero-title .accent { color: var(--gold); }
.hero-desc { color: rgba(255,255,255,.8); font-size: 1.15rem; line-height: 1.8; max-width: 540px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 60px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stat-item .stat-number { font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.hero-stat-item .stat-label  { font-size: .82rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }
.hero-image-wrap { position: relative; z-index: 2; }
.hero-event-card {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--white);
}
.hero-event-date-badge {
  background: var(--gold);
  color: var(--navy);
  border-radius: 10px;
  padding: 10px 16px;
  display: inline-block;
  font-weight: 800;
  font-size: .85rem;
  margin-bottom: 16px;
}
.countdown-box { background: rgba(255,255,255,.1); border-radius: 10px; padding: 12px; text-align: center; min-width: 60px; }
.countdown-box .num { font-size: 1.6rem; font-weight: 800; color: var(--gold); line-height: 1; }
.countdown-box .lbl { font-size: .68rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .5px; }

/* ── Section Styles ── */
.section-badge {
  background: rgba(244,165,0,.12);
  color: var(--gold);
  border: 1px solid rgba(244,165,0,.25);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: var(--navy); line-height: 1.25; }
.section-subtitle { color: var(--muted); font-size: 1.05rem; max-width: 580px; margin: 0 auto; line-height: 1.8; }
.section-divider { width: 60px; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 2px; margin: 16px 0; }
.section-divider.mx-auto { margin: 16px auto; }

/* ── Event Cards ── */
.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  height: 100%;
}
.event-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(244,165,0,.3); }
.event-card-img { position: relative; height: 220px; overflow: hidden; }
.event-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.event-card:hover .event-card-img img { transform: scale(1.06); }
.event-card-status {
  position: absolute; top: 16px; left: 16px;
  padding: 5px 14px; border-radius: 50px; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.status-upcoming { background: var(--gold); color: var(--navy); }
.status-past     { background: rgba(0,0,0,.55); color: var(--white); backdrop-filter: blur(4px); }
.event-card-featured { position: absolute; top: 16px; right: 16px; background: var(--navy); color: var(--gold); padding: 4px 10px; border-radius: 50px; font-size: .72rem; font-weight: 700; }
.event-card-body { padding: 24px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.event-meta-item { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.event-meta-item i { color: var(--gold); width: 14px; }
.event-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.4; }
.event-title a { color: inherit; text-decoration: none; }
.event-title a:hover { color: var(--gold); }
.event-desc { color: var(--muted); font-size: .88rem; line-height: 1.65; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.event-card-footer { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: var(--light); border-top: 1px solid var(--border); }
.event-price { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.event-price .cents { font-size: .85rem; vertical-align: super; }
.event-price .per-ticket { font-size: .72rem; color: var(--muted); display: block; font-weight: 400; }
.event-price.free { color: var(--success); }

/* ── Featured Event Banner ── */
.featured-event-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.featured-event-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1591115765373-5207764f72e7?w=1200&q=80') center/cover;
  opacity: .15;
}

/* ── Why Choose Us ── */
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
  height: 100%;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(244,165,0,.25); }
.feature-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, rgba(244,165,0,.12), rgba(244,165,0,.22));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.8rem; color: var(--gold);
  transition: var(--transition);
}
.feature-card:hover .feature-icon { background: var(--gold); color: var(--navy); transform: scale(1.1) rotate(5deg); }
.feature-card h4 { font-size: 1.1rem; margin-bottom: 12px; }
.feature-card p { color: var(--muted); font-size: .9rem; line-height: 1.7; margin: 0; }

/* ── Stats Section ── */
.stats-section {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(244,165,0,.08), transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
}
.stat-box { text-align: center; padding: 20px; }
.stat-box .number { font-size: 3rem; font-weight: 900; color: var(--gold); line-height: 1; font-family: 'Playfair Display', serif; }
.stat-box .label  { color: rgba(255,255,255,.75); font-size: .88rem; text-transform: uppercase; letter-spacing: .8px; margin-top: 8px; }
.stat-box .icon   { font-size: 2.5rem; color: rgba(244,165,0,.3); margin-bottom: 12px; }

/* ── Testimonials ── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  height: 100%;
}
.testimonial-card::before { content: '\201C'; position: absolute; top: 20px; left: 24px; font-size: 5rem; color: rgba(244,165,0,.2); font-family: Georgia; line-height: 1; }
.testimonial-stars { color: var(--gold); font-size: .9rem; margin-bottom: 16px; }
.testimonial-text { color: var(--muted); line-height: 1.8; font-size: .95rem; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.testimonial-name  { font-weight: 700; color: var(--navy); font-size: .9rem; }
.testimonial-role  { color: var(--muted); font-size: .8rem; }

/* ── Newsletter Section ── */
.newsletter-section {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 100%);
  padding: 80px 0;
  position: relative;
}
.subscribe-input { max-width: 220px; border-radius: 8px !important; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: var(--white); }
.subscribe-input::placeholder { color: rgba(255,255,255,.45); }
.subscribe-input:focus { background: rgba(255,255,255,.12); border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244,165,0,.2); color: var(--white); }

/* ── Footer ── */
.main-footer { background: #07111c; padding: 70px 0 0; }
.footer-brand { display: flex; align-items: center; }
.footer-heading { color: var(--white); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .9rem; transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-links a::before { content: '→'; font-size: .7rem; color: var(--gold); opacity: 0; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); padding-left: 8px; }
.footer-links a:hover::before { opacity: 1; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { color: var(--muted); font-size: .9rem; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; }
.footer-contact i { color: var(--gold); width: 16px; margin-top: 2px; flex-shrink: 0; }
.footer-contact a { color: var(--muted); text-decoration: none; transition: var(--transition); }
.footer-contact a:hover { color: var(--gold); }
.social-links a, .social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: .88rem;
}
.social-links a:hover, .social-link:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 24px 0; margin-top: 20px; }

/* ── Event Detail Page ── */
.event-hero {
  background: var(--navy);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.event-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .12;
}
.event-hero-content { position: relative; z-index: 2; }
.event-tags .tag { background: rgba(244,165,0,.12); color: var(--gold); border: 1px solid rgba(244,165,0,.2); padding: 4px 14px; border-radius: 50px; font-size: .78rem; font-weight: 600; }
.event-info-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border); position: sticky; top: 90px; }
.ticket-option { border: 2px solid var(--border); border-radius: var(--radius); padding: 18px; cursor: pointer; transition: var(--transition); }
.ticket-option:hover, .ticket-option.selected { border-color: var(--gold); background: rgba(244,165,0,.04); }
.ticket-option .ticket-name { font-weight: 700; color: var(--navy); }
.ticket-option .ticket-price { font-size: 1.4rem; font-weight: 800; color: var(--gold); }
.ticket-option .ticket-desc { font-size: .82rem; color: var(--muted); }
.agenda-item { border-left: 3px solid var(--gold); padding: 16px 20px; margin-bottom: 16px; background: var(--light); border-radius: 0 var(--radius) var(--radius) 0; }
.agenda-time { font-size: .8rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.speaker-card { background: var(--light); border-radius: var(--radius); padding: 20px; text-align: center; }
.speaker-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); margin: 0 auto 12px; }

/* ── Forms ── */
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: 48px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.form-label { font-weight: 600; color: var(--navy); font-size: .9rem; margin-bottom: 8px; }
.form-control, .form-select {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .95rem;
  transition: var(--transition);
  color: var(--text);
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(244,165,0,.12);
  outline: none;
}
.form-divider { text-align: center; position: relative; margin: 24px 0; color: var(--muted); font-size: .88rem; }
.form-divider::before, .form-divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border); }
.form-divider::before { left: 0; }
.form-divider::after  { right: 0; }

/* ── Dashboard ── */
.dashboard-stat { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border); border-left: 4px solid var(--gold); }
.dashboard-stat .ds-icon { width: 52px; height: 52px; background: rgba(244,165,0,.1); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--gold); }
.dashboard-stat .ds-number { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.dashboard-stat .ds-label  { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.ticket-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); border-top: 4px solid var(--gold); }
.ticket-code { font-family: monospace; background: var(--light); padding: 8px 16px; border-radius: 8px; font-size: 1rem; font-weight: 700; color: var(--navy); letter-spacing: 1px; display: inline-block; }

/* ── Breadcrumb ── */
.page-header { background: linear-gradient(135deg, var(--navy), var(--navy-light)); padding: 50px 0 40px; }
.breadcrumb { margin: 0; background: transparent; padding: 0; }
.breadcrumb-item a { color: rgba(255,255,255,.65); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--gold); }
.breadcrumb-item.active { color: var(--gold); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.35); }

/* ── Misc ── */
.past-events-section { background: var(--light); }
.past-event-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.past-event-card img { width: 100%; height: 240px; object-fit: cover; display: block; transition: transform .5s; }
.past-event-card:hover img { transform: scale(1.06); }
.past-event-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,27,42,.95) 40%, transparent); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
.separator { width: 100%; height: 1px; background: var(--border); margin: 20px 0; }
.alert-gold { background: rgba(244,165,0,.1); border: 1px solid rgba(244,165,0,.25); color: var(--navy); border-radius: 10px; }

/* ── Page sections spacing ── */
section { padding: 80px 0; }
.section-sm { padding: 50px 0; }

/* ── Contact ── */
.contact-info-card { background: var(--navy); border-radius: var(--radius-lg); padding: 36px; color: var(--white); }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-info-icon { width: 48px; height: 48px; background: rgba(244,165,0,.12); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 1.2rem; flex-shrink: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-section { min-height: auto; }
  .hero-content  { padding: 60px 0 40px; }
  .hero-stats { gap: 24px; }
  .hero-stat-item .stat-number { font-size: 1.5rem; }
  .form-card { padding: 28px; }
  .hero-actions .btn { font-size: .88rem; padding: 12px 20px; }
  section { padding: 50px 0; }
}
@media (max-width: 576px) {
  .subscribe-input { max-width: 100%; }
}

/* Loading animation */
.btn-loading { position: relative; pointer-events: none; }
.btn-loading::after { content: ''; display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .6s linear infinite; margin-left: 8px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Smooth fade-in */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
