/* Eventopia — static site. Visual language carried over from the WordPress/Elementor version:
   black canvas, Saira Condensed uppercase display type, Roboto body, brand red accent. */

:root {
  --black: #000000;
  --ink: #0b0c0c;
  --panel: #191b1d;
  --panel-2: #1e1e1e;
  --line: rgba(255, 255, 255, 0.14);
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --red: #e4031f;
  --red-dark: #b3021a;
  --navy: #001c31;
  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 .4em;
  letter-spacing: 0;
}
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 84px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: clamp(220px, 30vw, 380px); height: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-family: var(--display); font-weight: 600; font-size: 18px;
  text-transform: uppercase; letter-spacing: .5px;
  color: #111; text-decoration: none; position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--red); transition: right .3s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--red); }
.nav .btn { color: var(--white); padding: 12px 22px; }
.nav .btn::after { display: none; }
.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; color: #111;
}
.menu-toggle span { display: block; height: 2px; background: currentColor; margin: 6px 0; transition: transform .3s, opacity .3s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-top: 1px solid rgba(0,0,0,.08);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .menu-open .nav { max-height: 420px; }
  .nav a { padding: 16px var(--gutter); border-bottom: 1px solid rgba(0,0,0,.06); }
  .nav a::after { display: none; }
  .nav .btn { margin: 16px var(--gutter); text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 17px;
  text-transform: uppercase; letter-spacing: 1px; text-decoration: none;
  color: var(--white); background: var(--red); border: 2px solid var(--red);
  padding: 14px 30px; cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn svg { width: 14px; height: 14px; fill: currentColor; }
.btn-ghost { background: transparent; border-color: var(--white); }
.btn-ghost:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 17px;
  letter-spacing: .2px; text-transform: uppercase; text-decoration: none;
  color: var(--white); transition: color .25s, gap .25s;
}
.link-arrow::after { content: "→"; color: var(--red); transition: transform .25s; }
.link-arrow:hover { color: var(--red); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Section titles (Qi "section title" look) ---------- */
.eyebrow {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: 18px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
}
.title-xl { font-size: clamp(44px, 8vw, 110px); font-weight: 800; }
.title-lg { font-size: clamp(38px, 5.4vw, 68px); font-weight: 700; }
.title-md { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; }
.accent { color: var(--red); }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); max-width: 720px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100vh - 84px);
  display: flex; align-items: center; overflow: hidden; background: var(--black);
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  animation: kenburns 14s ease-out infinite alternate; opacity: .55;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.15); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.75)); }
.hero .wrap { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { margin-bottom: .15em; }
.hero .lead { color: var(--white); font-size: clamp(20px, 2.2vw, 30px); font-family: var(--display); font-weight: 400; text-transform: none; max-width: 820px; margin-bottom: 36px; }

.page-hero {
  position: relative; padding: clamp(110px, 16vw, 200px) 0 clamp(70px, 10vw, 120px);
  background-size: cover; background-position: center; overflow: hidden;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.62); }
.page-hero .wrap { position: relative; }
.page-hero .lead { color: var(--white); font-family: var(--display); font-size: clamp(20px, 2.2vw, 30px); }

/* ---------- Generic sections ---------- */
.section { padding: clamp(70px, 10vw, 130px) 0; }
.section-dark { background: var(--panel); }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.split .body { color: var(--muted); font-size: 18px; }
.split .body .link-arrow { margin-top: 10px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; color: var(--white); font-size: 18px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px;
  background: var(--red); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.partners { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; }
.partners li { border-left: 3px solid var(--red); padding: 4px 0 4px 18px; color: var(--muted); }
.partners strong { color: var(--white); font-family: var(--display); font-size: 21px; text-transform: uppercase; letter-spacing: .5px; display: block; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Featured events (full-bleed rows) ---------- */
.feature-intro { padding: clamp(70px, 10vw, 120px) 0 40px; }
.feature {
  position: relative; min-height: 60vh; display: flex; align-items: center;
  background-color: var(--black); background-size: cover; background-position: center;
  overflow: hidden;
}
.feature::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.77); transition: background .4s; }
.feature:hover::before { background: rgba(0,0,0,.6); }
.feature .wrap { position: relative; padding-top: 60px; padding-bottom: 60px; }
.feature .inner { max-width: 640px; }
.feature h2 { font-size: clamp(40px, 6vw, 80px); font-weight: 800; }
.feature p { font-family: var(--display); font-size: clamp(18px, 1.6vw, 22px); color: var(--white); font-weight: 400; margin-bottom: 22px; }
@media (max-width: 860px), (hover: none) { .feature { min-height: 400px; } }

/* ---------- CTA band ---------- */
.cta { background: var(--red); padding: clamp(60px, 8vw, 100px) 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; margin-bottom: .25em; }
.cta p { max-width: 680px; margin: 0; font-size: 18px; }
.cta .btn { background: var(--black); border-color: var(--black); }
.cta .btn:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

/* ---------- About ---------- */
.map-block { position: relative; background: none !important; overflow: hidden; }
.map-block::before {
  content: ""; position: absolute; inset: 0; opacity: .28;
  background: url("/assets/img/world-map.png") no-repeat center right / contain;
}
.map-block .wrap { position: relative; }
.countries { font-family: var(--display); font-size: 20px; letter-spacing: .5px; color: var(--white); text-transform: uppercase; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; margin-top: 40px; }
.member { background: var(--panel-2); display: flex; flex-direction: column; }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(100%); transition: filter .4s; }
.member:hover img { filter: none; }
.member .txt { padding: 24px 24px 28px; }
.member h3 { font-size: 30px; font-weight: 700; margin-bottom: 4px; }
.member .role { font-family: var(--display); color: var(--red); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 15px; margin-bottom: 14px; display: block; }
.member p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }

/* ---------- Events grid ---------- */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2px; background: var(--line); }
.event-card {
  position: relative; background: var(--panel-2); padding: 40px 32px 36px;
  display: flex; flex-direction: column; min-height: 520px; transition: background .35s;
}
.event-card .logo { position: relative; aspect-ratio: 4/3; margin-bottom: 26px; }
.event-card .logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s; }
.event-card .logo .on { opacity: 0; }
.event-card:hover { background: var(--white); color: var(--black); }
.event-card:hover .logo .on { opacity: 1; }
.event-card:hover .logo .off { opacity: 0; }
.event-card h2 { font-size: 30px; font-weight: 700; }
.event-card p { color: inherit; opacity: .8; font-size: 16px; flex: 1; }
.event-card:hover .link-arrow { color: var(--black); }

.badge {
  display: inline-block; align-self: flex-start; margin-bottom: 16px;
  font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--white); background: var(--red); padding: 5px 12px;
}
.event-card--static:hover { background: var(--panel); color: var(--white); }
.event-card--static:hover .link-arrow { color: var(--white); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-family: var(--display); text-transform: uppercase; letter-spacing: 1px; font-size: 15px; color: var(--muted); }
.form input, .form textarea {
  width: 100%; background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,.26); padding: 14px 16px;
  font: inherit; font-size: 16px; border-radius: 0; transition: border-color .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--red); }
.form textarea { min-height: 160px; resize: vertical; }
.form .note { font-size: 14px; color: var(--muted); margin: 0; }
.aside-box { background: var(--panel-2); padding: 36px 32px; align-self: start; }
.aside-box a.mail { font-family: var(--display); font-size: 26px; text-decoration: none; word-break: break-all; }
.aside-box a.mail:hover { color: var(--red); }

/* ---------- Legal ---------- */
.legal { max-width: 860px; }
.legal h1 { font-size: clamp(40px, 6vw, 70px); font-weight: 800; }
.legal h2 { font-size: 26px; font-weight: 700; margin-top: 1.6em; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 18px; letter-spacing: 2px; color: var(--red); font-weight: 600; margin-bottom: 14px; }
.site-footer .foot-logo { width: 110px; margin-bottom: 16px; }
.site-footer p, .site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.foot-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.social { display: flex; gap: 12px; }
.social a {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--red); color: var(--white); transition: background .25s;
}
.social a:hover { background: var(--white); color: var(--black); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.foot-bottom { margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.foot-bottom a { margin-right: 14px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
  html { scroll-behavior: auto; }
}
