/* AREI Geneva — shared styles for the static mock-up pages */

:root {
  --ink: #111827;
  --muted: #5b6474;
  --paper: #ffffff;
  --soft: #f4f6fb;
  --line: #e6e8ef;
  --navy: #0b1f4d;
  --blue: #1d4ed8;
  --gold: #fcd116;
  --red: #ce1126;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 12px 32px -12px rgba(17, 24, 39, .18);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }

h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .6em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }

.kicker {
  display: inline-block;
  margin: 0 0 1.1rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ───────── Top bar ───────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(17, 24, 39, .06);
}

.topbar-inner {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo { width: 48px; height: 48px; flex: none; filter: drop-shadow(0 2px 4px rgba(17, 24, 39, .15)); }
/* One-line wordmark; line-height 1 so the text box is centred on the logo */
.brand-text { display: flex; align-items: baseline; gap: .35rem; font-size: 1.4rem; line-height: 1; }
.brand-mark { font-weight: 800; letter-spacing: -.03em; color: var(--navy); }
.brand-city { font-weight: 500; color: var(--muted); }

.tricolor { display: flex; height: 3px; }
.tricolor span { flex: 1; }
.tricolor span:nth-child(1) { background: var(--navy); }
.tricolor span:nth-child(2) { background: var(--gold); }
.tricolor span:nth-child(3) { background: var(--red); }

.menu { position: relative; }

.menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem 1rem .55rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  user-select: none;
  transition: box-shadow .2s, border-color .2s;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { border-color: #cfd4df; box-shadow: var(--shadow); }
.menu summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.burger { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu[open] .burger path { d: path("M6 6l12 12M18 6L6 18"); }

.current-lang {
  font-size: .72rem;
  font-weight: 700;
  padding: .12rem .45rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 230px;
  padding: .6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 48px -16px rgba(17, 24, 39, .28);
  animation: drop .18s ease-out;
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

.menu-label {
  margin: .3rem .7rem .4rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .7rem;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.menu-panel a:hover { background: var(--soft); }
.menu-panel .code {
  width: 2.1rem;
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  padding: .15rem 0;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
}
.menu-panel a[aria-current="page"] { background: #eef2ff; font-weight: 700; }
.menu-panel a[aria-current="page"] .code { background: var(--navy); color: #fff; }

/* ───────── Buttons ───────── */

.btn {
  display: inline-flex;
  align-items: center;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(252, 209, 22, .8); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* ───────── Front-page hero ───────── */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #07163a 0%, var(--navy) 45%, #1a3a8f 100%);
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.b1 { width: 460px; height: 460px; background: #2f5bff; top: -140px; left: -120px; }
.b2 { width: 380px; height: 380px; background: var(--gold); bottom: -220px; right: 18%; opacity: .28; }
.b3 { width: 300px; height: 300px; background: var(--red); top: 10%; right: -120px; opacity: .35; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero .kicker { color: var(--gold); }
.hero h1 {
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -.035em;
  margin-bottom: 1.4rem;
}
.hero .sub { font-size: 1.12rem; color: rgba(255, 255, 255, .8); max-width: 38em; margin: 0 0 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

.event-teaser {
  display: block;
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
  transform: rotate(2deg);
  transition: transform .3s;
}
.event-teaser:hover { transform: rotate(0) translateY(-4px); }
.event-teaser img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: top; }
.teaser-body { display: grid; gap: .25rem; padding: 1.1rem 1.3rem 1.3rem; }
.teaser-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.teaser-title { font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
.teaser-when { font-size: .9rem; color: rgba(255, 255, 255, .7); }

/* ───────── Sections ───────── */

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section.alt { background: var(--soft); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.card {
  padding: 2rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .25s;
}
.card:hover { transform: translateY(-4px); }
.card p, .tile p { margin: 0; color: var(--muted); }
.num {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.4rem;
  border-radius: 14px;
  background: var(--navy);
  color: var(--gold);
  font-weight: 800;
}

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.4rem; }
.tile {
  position: relative;
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
}
.tile:nth-child(4n+1)::before { background: var(--navy); }
.tile:nth-child(4n+2)::before { background: var(--gold); }
.tile:nth-child(4n+3)::before { background: var(--red); }
.tile:nth-child(4n+4)::before { background: var(--blue); }

.goals {
  list-style: none;
  counter-reset: goal;
  margin: 2.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 3rem;
}
.goals li {
  counter-increment: goal;
  position: relative;
  padding: 1.4rem 0 1.4rem 4.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.goals li::before {
  content: counter(goal, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.1rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--blue);
}
.goals strong { color: var(--ink); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.statement {
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.statement:last-child { background: var(--navy); color: #fff; }
.statement:last-child h2 { color: var(--gold); }
.statement h2 { font-size: 1.7rem; }
.statement p { margin: 0; font-size: 1.08rem; }

.team { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 1.2rem; margin-top: 2.2rem; }
.role {
  display: grid;
  gap: .2rem;
  padding: 1.5rem 1.7rem;
  border-radius: var(--radius);
  background: var(--soft);
}
.role span { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.role strong { font-size: 1.3rem; }

.committee-h { margin-top: 2.6rem; color: var(--muted); font-size: 1rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; }
.chips li { padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: .95rem; }

/* ───────── Event page ───────── */

.event-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #0a0f24;
  padding: 2rem 0 clamp(3.5rem, 7vw, 6rem);
}
.event-hero .backdrop {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  max-width: none;
  object-fit: cover;
  filter: blur(40px) saturate(140%) brightness(.45);
}
.event-hero .wrap { position: relative; }

.back a { color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 600; font-size: .95rem; }
.back a:hover { color: #fff; }

.event-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: 2rem;
}
.poster { margin: 0; }
.poster img { border-radius: var(--radius); box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .7); }
.poster figcaption { margin-top: .7rem; font-size: .82rem; color: rgba(255, 255, 255, .6); text-align: center; }

.notice {
  display: inline-block;
  margin: 0 0 1.4rem;
  padding: .45rem .95rem;
  border-radius: 999px;
  background: rgba(252, 209, 22, .15);
  border: 1px solid rgba(252, 209, 22, .45);
  color: var(--gold);
  font-size: .85rem;
  font-weight: 600;
}
.event-head .kicker { display: block; color: rgba(255, 255, 255, .7); }
.event-head h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
.lead { font-size: 1.18rem; color: rgba(255, 255, 255, .85); margin: 0 0 2rem; max-width: 36em; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin: 0; }
.facts div {
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
}
.facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.facts dd { margin: .2rem 0 0; font-weight: 700; }
.tba { font-style: italic; font-weight: 600; color: var(--gold); }

.event-body p { font-size: 1.1rem; }
.callout {
  margin: 2.2rem 0;
  padding: 1.5rem 1.7rem;
  border-radius: var(--radius);
  background: #fffbea;
  border-left: 5px solid var(--gold);
}

/* ───────── Footer ───────── */

.site-footer { background: #07122e; color: rgba(255, 255, 255, .7); padding: 4rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: .6rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.footer-brand { margin: 0 0 .4rem; font-size: 1.4rem; color: #fff; }
.footer-brand .brand-mark { color: var(--gold); }
.footer-assoc { margin: 0; max-width: 26em; }
.copyright { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

/* ───────── Responsive ───────── */

@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .hero-grid, .event-grid, .two-col, .goals, .footer-grid { grid-template-columns: 1fr; }
  .event-teaser { max-width: 340px; transform: none; }
  .poster { max-width: 340px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .tiles, .team, .facts { grid-template-columns: 1fr; }
  .menu summary > span:not(.current-lang) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Event facts: venue map link + ticket vendor */
.map-link { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.map-link:hover { text-decoration-color: var(--gold); }
.tickets { display: flex; align-items: center; gap: .5rem; }
.tickets img { width: 24px; height: 24px; border-radius: 6px; background: #fff; }
