/* ═══════════════════════════════════════════════════════════
   Nexus Academia — Global Stylesheet
   Fonts: Fraunces (serif headings) + Space Grotesk (body)
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────── */
:root {
  --bg-deep: #0a1c1d;
  --bg-mid: #123033;
  --ink: #f7f2e9;
  --muted: #c3d0ca;
  --accent: #e0a84a;
  --accent-soft: #6fd2b1;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 60px rgba(6, 14, 16, 0.35);
  --radius: 18px;
  --radius-sm: 10px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 900px at 12% 12%, #1c3b3e 0%, transparent 60%),
    radial-gradient(900px 700px at 90% 10%, #274437 0%, transparent 55%),
    linear-gradient(140deg, var(--bg-deep) 0%, var(--bg-mid) 60%, #0b1516 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: "Fraunces", "Times New Roman", serif; }

/* ── Background Shapes ──────────────────────────────────── */
.bg-shapes {
  position: fixed; inset: 0; overflow: hidden;
  pointer-events: none; z-index: 0;
}
.orb {
  position: absolute; border-radius: 999px;
  filter: blur(0px); opacity: 0.6;
  animation: float 14s ease-in-out infinite;
}
.orb--one {
  width: 320px; height: 320px;
  background: radial-gradient(circle at 30% 30%, rgba(224,168,74,0.5), transparent 60%);
  top: -60px; left: -40px;
}
.orb--two {
  width: 260px; height: 260px;
  background: radial-gradient(circle at 30% 30%, rgba(111,210,177,0.5), transparent 60%);
  top: 220px; right: -90px; animation-delay: -4s;
}
.orb--three {
  width: 220px; height: 220px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 65%);
  bottom: -80px; left: 55%; animation-delay: -8s;
}

/* ── Layout ──────────────────────────────────────────────── */
.page { position: relative; z-index: 1; }
.container { width: min(1120px, 90vw); margin: 0 auto; }

/* ── Navigation ─────────────────────────────────────────── */
.site-header { padding: 28px 0 20px; }
.nav {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.logo {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.4rem; letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-links {
  display: flex; align-items: center; gap: 18px;
  font-size: 0.95rem; color: var(--muted);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent); }

/* Mobile hamburger */
.nav-toggle { display: none; background: none; border: none; color: var(--ink); cursor: pointer; font-size: 1.5rem; padding: 4px; }

/* ── Buttons ────────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600;
  letter-spacing: 0.01em; font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer; font-family: inherit;
}
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.button.primary { background: var(--accent); color: #1a1408; }
.button.ghost { border-color: rgba(255,255,255,0.35); color: var(--ink); background: transparent; }
.button.small { padding: 10px 16px; font-size: 0.9rem; }

/* ── Eyebrow ────────────────────────────────────────────── */
.eyebrow {
  text-transform: uppercase; font-size: 0.8rem;
  letter-spacing: 0.2em; color: var(--accent-soft); font-weight: 600;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px; align-items: center;
}
h1 {
  font-size: clamp(2.4rem, 3vw + 1.2rem, 3.8rem);
  margin: 16px 0; line-height: 1.05;
}
.lede { color: var(--muted); font-size: 1.1rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* ── Page Header (inner pages) ──────────────────────────── */
.page-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 48px;
}
.page-header h1 { margin: 12px 0 16px; font-size: clamp(2rem, 2.5vw + 1rem, 3rem); }
.page-header .lede { max-width: 720px; }

/* ── Metrics ────────────────────────────────────────────── */
.hero-metrics {
  margin-top: 28px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
}
.metric {
  padding: 18px; background: var(--surface);
  border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.15);
}
.metric span { display: block; }
.metric .label { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }

/* ── Hero Card ──────────────────────────────────────────── */
.hero-card {
  background: var(--surface-strong); padding: 24px;
  border-radius: 22px; border: 1px solid rgba(255,255,255,0.2);
  box-shadow: var(--shadow);
}
.hero-card h3 { margin: 0 0 8px; font-size: 1.4rem; }
.hero-card p { margin: 0; color: var(--muted); line-height: 1.6; }

/* ── Sections ───────────────────────────────────────────── */
section { padding: 64px 0; }
.section-title { font-size: 2rem; margin-bottom: 12px; }
.section-subtitle { color: var(--muted); max-width: 640px; line-height: 1.7; }

/* ── Grid ───────────────────────────────────────────────── */
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px; margin-top: 32px;
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  padding: 24px; background: var(--surface);
  border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 12px; }
.card p { margin: 0; color: var(--muted); line-height: 1.6; }

/* ── Tag ────────────────────────────────────────────────── */
.tag {
  display: inline-flex; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2); font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}

/* ── Split Layout ───────────────────────────────────────── */
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px; align-items: center;
}

/* ── Highlight Block ────────────────────────────────────── */
.highlight {
  padding: 28px; border-radius: 22px;
  background: linear-gradient(130deg, rgba(224,168,74,0.16), rgba(111,210,177,0.12));
  border: 1px solid rgba(255,255,255,0.18); box-shadow: var(--shadow);
}
.highlight h3 { margin-top: 0; }

/* ── Content Prose ──────────────────────────────────────── */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 16px; color: var(--accent); }
.prose h3 { font-size: 1.25rem; margin: 32px 0 12px; }
.prose p { color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.prose ul, .prose ol {
  color: var(--muted); line-height: 1.8; margin: 0 0 16px 20px;
  padding-left: 0;
}
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(224,168,74,0.3); }
.prose a:hover { border-bottom-color: var(--accent); }
.prose strong { color: var(--ink); }
.prose table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
}
.prose th, .prose td {
  text-align: left; padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--muted); font-size: 0.95rem;
}
.prose th { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* ── Conference Cards ───────────────────────────────────── */
.conf-card {
  padding: 28px; background: var(--surface);
  border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow); transition: transform 0.2s ease;
}
.conf-card:hover { transform: translateY(-3px); }
.conf-card .conf-date {
  font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent-soft); margin-bottom: 8px;
}
.conf-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.conf-card p { color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.conf-card .conf-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: var(--muted);
}
.conf-card .conf-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* ── Committee Grid ─────────────────────────────────────── */
.committee-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 24px;
}
.committee-member {
  padding: 20px; background: var(--surface);
  border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.1);
}
.committee-member h4 { font-size: 1.05rem; margin: 0 0 4px; }
.committee-member .role { font-size: 0.85rem; color: var(--accent); margin-bottom: 6px; }
.committee-member .affiliation { font-size: 0.88rem; color: var(--muted); }

/* ── Timeline / Dates ───────────────────────────────────── */
.dates-list { list-style: none; padding: 0; margin: 24px 0; }
.dates-list li {
  display: flex; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--muted); font-size: 0.95rem;
}
.dates-list .date-label {
  min-width: 180px; font-weight: 600; color: var(--ink);
}

/* ── Partner Logos ───────────────────────────────────────── */
.partner-grid {
  display: flex; flex-wrap: wrap; gap: 32px;
  align-items: center; margin-top: 24px;
}
.partner-item {
  padding: 20px 28px; background: var(--surface);
  border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.12);
  text-align: center; min-width: 160px;
}
.partner-item .partner-name { font-weight: 600; margin-top: 8px; }
.partner-item .partner-type { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

/* ── Trust Badges ───────────────────────────────────────── */
.trust-bar {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: center; padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin: 32px 0;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--muted);
}
.trust-item svg { width: 20px; height: 20px; color: var(--accent-soft); flex-shrink: 0; }

/* ── Legal / Policy ─────────────────────────────────────── */
.legal-nav {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px;
}
.legal-nav a {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.88rem; color: var(--muted);
  transition: all 0.2s;
}
.legal-nav a:hover, .legal-nav a.active {
  color: var(--accent); border-color: var(--accent);
}

/* ── Contact Form ───────────────────────────────────────── */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; margin-bottom: 6px;
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
}
.form-control {
  display: block; width: 100%; padding: 12px 16px;
  background: var(--surface); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm); color: var(--ink);
  font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224,168,74,0.15);
}
select.form-control { cursor: pointer; }
select.form-control option {
  background: #1a2e2f;
  color: #e8e4dc;
  padding: 8px;
}
textarea.form-control { resize: vertical; min-height: 120px; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; margin-bottom: 32px;
}
.footer-col h4 {
  font-size: 0.95rem; margin-bottom: 14px; color: var(--ink);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 16px; color: rgba(255,255,255,0.5); font-size: 0.85rem;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,0.5); }
.footer-legal a:hover { color: var(--ink); }

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  padding: 48px; border-radius: 22px; text-align: center;
  background: linear-gradient(130deg, rgba(224,168,74,0.18), rgba(111,210,177,0.14));
  border: 1px solid rgba(255,255,255,0.15);
}
.cta-banner h2 { font-size: 1.8rem; margin-bottom: 12px; }
.cta-banner p { color: var(--muted); max-width: 560px; margin: 0 auto 24px; line-height: 1.7; }

/* ── Animations ─────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(12px);
  animation: fadeUp 0.9s ease forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-12px); }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; }
  .nav-links {
    display: none; flex-direction: column; width: 100%;
    gap: 4px; padding-top: 12px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .site-header { padding-bottom: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-header { padding: 32px 0 20px; margin-bottom: 32px; }
  .committee-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 32px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .orb { animation: none !important; }
}
