/* ===================== Modern styles on top of Tailwind ===================== */

html {
  scroll-padding-top: 6rem;
}

body {
  background:
    radial-gradient(60rem 40rem at 110% -10%, rgba(156, 0, 1, 0.04), transparent 60%),
    radial-gradient(50rem 40rem at -10% 20%, rgba(156, 0, 1, 0.03), transparent 60%),
    #ffffff;
}

/* ---------------- Navbar ---------------- */
.nav-link {
  position: relative;
  padding: 0.5rem 0.9rem;
  border-radius: 9999px;
  color: #4b5563;
  font-size: 0.95rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover {
  color: #9C0001;
  background: #fdecec;
}

.nav-link-mobile {
  padding: 0.7rem 0.9rem;
  border-radius: 0.75rem;
  color: #374151;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link-mobile:hover {
  color: #9C0001;
  background: #fdecec;
}

/* Glass nav shell — transparent over hero, solid on scroll */
#nav-shell {
  background: transparent;
}
#site-header.scrolled #nav-shell {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
/* When over the dark hero (not scrolled), make text light */
#site-header:not(.scrolled) .nav-link { color: rgba(255, 255, 255, 0.8); }
#site-header:not(.scrolled) .nav-link:hover { color: #ffffff; background: rgba(255, 255, 255, 0.12); }
#site-header:not(.scrolled) #nav-shell .leading-tight { color: #ffffff; }
#site-header:not(.scrolled) #nav-shell .text-gray-500 { color: rgba(255, 255, 255, 0.6); }
#site-header:not(.scrolled) #menu-btn { color: #ffffff; }

/* ---------------- Hero ---------------- */
.hero-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.mesh-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
  opacity: 0.55;
  animation: float 14s ease-in-out infinite;
}
.mesh-blob-1 {
  width: 32rem; height: 32rem;
  top: -8rem; right: -6rem;
  background: radial-gradient(circle, #9C0001, transparent 70%);
}
.mesh-blob-2 {
  width: 28rem; height: 28rem;
  bottom: -10rem; left: -8rem;
  background: radial-gradient(circle, #d44a4a, transparent 70%);
  animation-delay: -4s;
}
.mesh-blob-3 {
  width: 24rem; height: 24rem;
  top: 30%; left: 40%;
  background: radial-gradient(circle, #640001, transparent 70%);
  animation-delay: -8s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3rem, -2rem) scale(1.08); }
  66% { transform: translate(-2rem, 2rem) scale(0.96); }
}

.hero-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
}

/* Glass card (countdown) */
.glass-card {
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
}

/* Countdown */
.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.countdown-number {
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------------- Section eyebrow ---------------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: #fdecec;
  color: #9C0001;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.section-eyebrow::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  border-radius: 2px;
  background: #9C0001;
}
.section-eyebrow-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f3a3a3;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---------------- Stats band ---------------- */
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid #f1f1f3;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(156, 0, 1, 0.25);
}
.stat-num {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #9C0001, #d44a4a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #6b7280;
}

/* ---------------- Info pills (dark) ---------------- */
.info-pill-dark {
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
}

/* QR placeholder */
.qr-placeholder {
  width: 10rem;
  height: 10rem;
  padding: 0.6rem;
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.5);
}

/* ---------------- Objective cards ---------------- */
.objective-card {
  position: relative;
  border-radius: 1.5rem;
  background: #ffffff;
  border: 1px solid #f1f1f3;
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.15);
  padding: 2rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.objective-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #9C0001, #d44a4a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.objective-card:hover {
  transform: translateY(-6px);
  border-color: #f3a3a3;
  box-shadow: 0 28px 50px -24px rgba(156, 0, 1, 0.3);
}
.objective-card:hover::before { transform: scaleX(1); }
.objective-index {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  color: #f7e3e3;
}
.objective-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #fdecec, #fad0d0);
  color: #9C0001;
}

/* ---------------- Timeline / Accordion ---------------- */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 1.95rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
  background: linear-gradient(to bottom, #fad0d0, #f1f1f3);
  z-index: 0;
}
@media (max-width: 640px) {
  .timeline::before { display: none; }
}

.accordion-item {
  position: relative;
  z-index: 1;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid #f1f1f3;
  box-shadow: 0 6px 20px -14px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.accordion-item:hover {
  border-color: #f3a3a3;
  box-shadow: 0 16px 36px -22px rgba(156, 0, 1, 0.25);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

/* Status badges (past / next) */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  margin-top: 0.45rem;
  padding: 0.18rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-past {
  background: #f1f1f3;
  color: #9ca3af;
}
.badge-next {
  background: #fdecec;
  color: #9C0001;
}
.badge-next::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: #9C0001;
  animation: badge-pulse 1.6s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.4; }
}

/* Past sessions: dimmed & de-emphasized */
.accordion-item.is-past {
  opacity: 0.62;
  filter: saturate(0.7);
}
.accordion-item.is-past:hover {
  opacity: 0.92;
  filter: none;
}
.accordion-item.is-past .session-badge {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
  box-shadow: none;
}

/* Next (incoming) session: highlighted */
.accordion-item.is-next {
  border-color: #9C0001;
  box-shadow: 0 0 0 1px #9C0001, 0 22px 44px -22px rgba(156, 0, 1, 0.4);
}
.session-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 1rem;
  background: linear-gradient(135deg, #9C0001, #640001);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 8px 18px -8px rgba(156, 0, 1, 0.6);
  ring: 4px solid #ffffff;
}
.accordion-head {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.session-title {
  font-weight: 700;
  color: #1a1417;
  letter-spacing: -0.01em;
}
.session-subtitle {
  font-size: 0.9rem;
  font-weight: 400;
  color: #6b7280;
}
.session-meta {
  font-size: 0.85rem;
  color: #9ca3af;
}
.accordion-icon {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  color: #9C0001;
  transition: transform 0.3s ease;
}
.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}
.accordion-trigger[aria-expanded="true"] {
  background: linear-gradient(180deg, #fdecec55, transparent);
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-panel-inner {
  padding: 0.25rem 1.5rem 1.6rem 5.6rem;
}
@media (max-width: 640px) {
  .accordion-panel-inner { padding-left: 1.5rem; }
}

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.agenda-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.9rem;
  color: #4b5563;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed #f1f1f3;
}
.agenda-list li:last-child { border-bottom: none; padding-bottom: 0; }
.agenda-list li span:first-child {
  flex-shrink: 0;
  width: 7.5rem;
  font-weight: 700;
  color: #9C0001;
  font-variant-numeric: tabular-nums;
}
.speaker {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #4b5563;
}
.speaker span { font-weight: 700; color: #1a1417; }
.resource-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  background: #fdecec;
  color: #9C0001;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}
.resource-link::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #9C0001;
}
.resource-link:hover {
  background: #9C0001;
  color: #ffffff;
  transform: translateY(-2px);
}
.resource-link:hover::before { background: #ffffff; }

/* ---------------- Contact ---------------- */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #fdecec, #fad0d0);
  color: #9C0001;
}
.map-embed {
  min-height: 18rem;
  height: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid #f3a3a3;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  border: 0;
  display: block;
}
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 18rem;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 50% 40%, #fdecec, #f9fafb);
  border: 1px dashed #f3a3a3;
  text-align: center;
  padding: 2rem;
}

/* ---------------- Scroll reveal ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .mesh-blob { animation: none; }
}
