/*
  Event Page Template
  OdleWorks Web Solutions
  License: See LICENSE.txt
*/

:root {
  --bg: #f7f6f1;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --accent: #10b981;
  --accent-soft: #dcfce7;
  --sun: #facc15;
  --shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

body.modal-open { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  border-radius: 10px;
}

.skip-link:focus { top: 16px; }

.preview-banner {
  background: #111827;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.preview-banner-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.65rem 0;
}

.preview-banner-text {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
}

.preview-banner-text strong {
  color: #fff;
  font-weight: 800;
}

.preview-banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-banner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 0.85rem;
  font-weight: 700;
}

.preview-banner-link-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 241, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--ink);
  border-radius: 50%;
}

.nav-menu { display: flex; align-items: center; gap: 24px; color: var(--muted); font-weight: 700; }
.nav-menu a:hover { color: var(--ink); }

.nav-cta {
  padding: 10px 16px;
  background: var(--ink);
  color: white !important;
  border-radius: 999px;
}

.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span:not(.sr-only) { display: block; width: 26px; height: 2px; margin: 5px; background: var(--ink); }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding: 88px 0 80px;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.18), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.16), transparent 32%),
    linear-gradient(135deg, #f8fafc 0%, #f7f6f1 55%, #eef2ff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -8% -30% auto;
  width: 520px;
  height: 520px;
  border: 80px solid rgba(79, 70, 229, 0.08);
  border-radius: 50%;
}

.hero-grid { position: relative; display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 28px; align-items: stretch; }

.hero-ticket {
  min-height: 560px;
  padding: clamp(28px, 5vw, 64px);
  background: var(--ink);
  color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-ticket::after {
  content: "";
  position: absolute;
  top: 72px;
  bottom: 72px;
  right: 34px;
  width: 2px;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.35) 50%, transparent 0%);
  background-size: 2px 16px;
}

.ticket-topline { display: flex; justify-content: space-between; gap: 16px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.68); }

.eyebrow { color: var(--primary); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 800; margin: 0 0 12px; }
.hero-ticket .eyebrow { color: var(--sun); }

.hero h1 { max-width: 760px; margin: 0; font-size: clamp(3rem, 7vw, 6.5rem); line-height: 0.92; letter-spacing: -0.08em; }
.hero-copy { max-width: 610px; margin: 24px 0 0; color: rgba(255,255,255,0.72); font-size: 1.15rem; }

.hero-actions, .register-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 12px 24px rgba(79, 70, 229, 0.24); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: white; color: var(--ink); border-color: var(--line); }

.hero-panel {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 24px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.status-pill { width: fit-content; padding: 9px 13px; background: var(--accent-soft); color: #047857; border-radius: 999px; font-weight: 800; font-size: 0.85rem; }
.countdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.countdown div { padding: 18px 12px; background: var(--ink); color: white; border-radius: var(--radius-md); text-align: center; }
.countdown strong { display: block; font-size: 2.2rem; line-height: 1; }
.countdown span { color: rgba(255,255,255,0.64); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.event-meta-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.event-meta-card p { margin: 0 0 4px; color: var(--muted); font-weight: 700; }
.event-meta-card strong { display: block; font-size: 1.1rem; }
.event-meta-card span { display: block; color: var(--muted); margin-top: 6px; }

.section { padding: 88px 0; }
.section-alt { background: #eef2ff; }
.section-heading { max-width: 720px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -0.06em; }
.section-heading p { color: var(--muted); }
.split-heading { display: grid; grid-template-columns: 1fr 0.8fr; gap: 32px; align-items: end; max-width: none; }
.center-heading { text-align: center; margin-inline: auto; }

.intro-strip { padding: 26px 0; background: var(--ink); color: white; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-grid div { padding: 16px; border-left: 1px solid rgba(255,255,255,0.18); }
.stat-grid strong { display: block; font-size: 2rem; }
.stat-grid span { color: rgba(255,255,255,0.6); }

.filter-group { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filter-btn { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 10px 15px; color: var(--muted); cursor: pointer; font-weight: 800; }
.filter-btn.is-active { background: var(--primary); color: white; border-color: var(--primary); }
.schedule-list { display: grid; gap: 14px; }
.schedule-item { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 12px 26px rgba(17,24,39,0.04); }
.schedule-item.is-hidden { display: none; }
.schedule-item time { font-weight: 800; color: var(--primary); }
.schedule-item h3 { margin: 8px 0 4px; }
.schedule-item p { margin: 0; color: var(--muted); }
.tag { display: inline-flex; width: fit-content; padding: 5px 9px; background: #eef2ff; color: var(--primary); border-radius: 999px; font-size: 0.75rem; font-weight: 800; }

.speaker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.speaker-card { text-align: left; border: 1px solid rgba(79,70,229,0.12); background: white; border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 16px 36px rgba(17,24,39,0.06); cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease; }
.speaker-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.avatar, .modal-avatar { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ink); color: white; font-weight: 800; margin-bottom: 22px; }
.speaker-role { display: block; color: var(--primary); font-weight: 800; font-size: 0.84rem; margin-bottom: 8px; }
.speaker-card strong { display: block; font-size: 1.4rem; }
.speaker-card small { color: var(--muted); }

.venue-grid, .updates-grid, .faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.check-list { padding: 0; margin: 24px 0 0; list-style: none; display: grid; gap: 10px; }
.check-list li::before { content: "✓"; color: var(--accent); font-weight: 900; margin-right: 8px; }
.map-card { min-height: 360px; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: #dbeafe; border: 1px solid #bfdbfe; box-shadow: var(--shadow); }
.map-pin { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); z-index: 3; padding: 12px 16px; background: var(--ink); color: white; border-radius: 999px; font-weight: 800; }
.map-line { position: absolute; background: rgba(79,70,229,0.22); border-radius: 999px; }
.line-one { width: 150%; height: 18px; top: 26%; left: -20%; transform: rotate(12deg); }
.line-two { width: 120%; height: 16px; top: 62%; left: -10%; transform: rotate(-18deg); }
.line-three { width: 18px; height: 130%; top: -10%; left: 28%; transform: rotate(22deg); }

.sponsor-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.sponsor-grid span { display: grid; place-items: center; min-height: 92px; background: white; border: 1px solid rgba(79,70,229,0.12); border-radius: var(--radius-md); font-weight: 900; color: #475467; }

.update-feed { display: grid; gap: 14px; }
.update-feed article { padding: 22px; background: white; border: 1px solid var(--line); border-radius: var(--radius-md); }
.update-feed span { color: var(--primary); font-weight: 900; }
.update-feed h3 { margin: 6px 0; }
.update-feed p { margin: 0; color: var(--muted); }

.faq-list { display: grid; gap: 12px; }
details { background: white; border: 1px solid rgba(79,70,229,0.12); border-radius: var(--radius-md); padding: 18px 20px; }
summary { cursor: pointer; font-weight: 900; }
details p { color: var(--muted); margin-bottom: 0; }

.register-section { padding-top: 0; }
.register-card { justify-content: space-between; padding: clamp(28px, 5vw, 48px); background: var(--ink); color: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.register-card p:not(.eyebrow) { color: rgba(255,255,255,0.68); }
.register-card .eyebrow { color: var(--sun); }
.register-card h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.06em; line-height: 1; }

.site-footer { padding: 30px 0; background: var(--ink); color: rgba(255,255,255,0.7); }
.footer-grid { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(17,24,39,0.68); backdrop-filter: blur(6px); }
.modal-card { position: relative; width: min(100%, 560px); max-height: calc(100vh - 40px); overflow: auto; padding: 36px; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border: 1px solid var(--line); background: white; border-radius: 50%; cursor: pointer; font-size: 1.5rem; line-height: 1; }
.modal-card h2 { margin: 0 0 12px; }
.modal-card p:not(.eyebrow) { color: var(--muted); }

@media (max-width: 900px) {
  .preview-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .preview-banner-actions {
    width: 100%;
  }

  .nav-toggle { display: block; }
  .nav-menu { position: absolute; inset: 76px 16px auto; display: none; flex-direction: column; align-items: stretch; padding: 18px; background: white; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); }
  .nav-menu.is-open { display: flex; }
  .hero-grid, .split-heading, .venue-grid, .updates-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 48px; }
  .hero-ticket { min-height: 520px; }
  .hero-ticket::after { display: none; }
  .speaker-grid, .sponsor-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero-ticket { min-height: auto; gap: 80px; }
  .ticket-topline { flex-direction: column; }
  .hero h1 { font-size: 3.1rem; }
  .countdown { grid-template-columns: 1fr; }
  .schedule-item { grid-template-columns: 1fr; }
  .speaker-grid, .sponsor-grid, .stat-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
