:root {
  --ivory: #FAF8F3; --navy: #1B2A4A; --gold: #C9A227;
  --un-blue: #5B92E5; --ink: #22293A; --muted: #6b7280;
  --serif: "Montserrat", system-ui, sans-serif; --sans: "Poppins", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
body { background: var(--ivory); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section-title { font-size: 2rem; margin-bottom: 0.5rem; }
.section-title::after { content: ""; display: block; width: 64px; height: 3px; background: var(--gold); margin-top: 0.75rem; }

/* Navbar */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 243, 0.95); backdrop-filter: blur(6px); border-bottom: 1px solid #e8e4da; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-weight: 600;
  font-size: 1.15rem; letter-spacing: -0.01em; color: var(--navy); text-decoration: none; }
.nav-logo b { font-weight: 900; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; padding: 0; }
.nav-links a { text-decoration: none; font-size: 0.95rem; }
.nav-links a[aria-current="page"] { color: var(--gold); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.nav-toggle i { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 1px; }

/* Buttons */
.btn { display: inline-block; padding: 0.65rem 1.4rem; border-radius: 4px; text-decoration: none; font-weight: 600; border: 1px solid var(--navy); color: var(--navy); background: transparent; cursor: pointer; font-family: var(--sans); font-size: 1rem; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { filter: brightness(1.05); }

/* Hero */
.hero { background: var(--navy); color: #fff; text-align: center; padding: 6rem 1.25rem; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.5rem); }
.hero p { color: #cfd6e4; margin: 1rem 0 2rem; font-size: 1.15rem; }
.hero .countdown { font-family: var(--serif); color: var(--gold); font-size: 1.3rem; margin-bottom: 2rem; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.card { background: #fff; border: 1px solid #e8e4da; border-radius: 8px; padding: 1.5rem; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(27, 42, 74, 0.08); }
.card h3 { font-size: 1.25rem; }
.card .abbr { color: var(--un-blue); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; }
.card p { color: var(--muted); font-size: 0.92rem; margin-top: 0.5rem; }

.person-card { text-align: center; }
.person-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 0.75rem; }
.person-card .role { color: var(--gold); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.person-card.tba img { filter: grayscale(1); opacity: 0.4; }

.badge { display: inline-block; background: var(--gold); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; letter-spacing: 0.05em; }

/* Accordion (FAQ) */
.accordion details { background: #fff; border: 1px solid #e8e4da; border-radius: 8px; margin-bottom: 0.75rem; padding: 1rem 1.25rem; }
.accordion summary { font-weight: 600; cursor: pointer; color: var(--navy); }
.accordion details p { margin-top: 0.75rem; color: var(--muted); }

/* Forms */
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.9rem; }
.form-field input, .form-field textarea { width: 100%; padding: 0.6rem 0.8rem; border: 1px solid #d6d1c4; border-radius: 4px; font: inherit; background: #fff; }

/* Footer */
.footer { background: var(--navy); color: #cfd6e4; padding: 3rem 0 2rem; margin-top: 4rem; }
.footer a { color: #cfd6e4; }
.footer .cols { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; }
.footer .fine { margin-top: 2rem; font-size: 0.8rem; color: #8b96ad; }

/* Archive theming */
.archive img { filter: grayscale(0.7) sepia(0.15); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--ivory); flex-direction: column; padding: 1rem 1.25rem; border-bottom: 1px solid #e8e4da; }
  .nav-links.open { display: flex; }
}

/* ===== Hero globe (homepage) ===== */
.hero-globe { position: relative; min-height: 100svh; background:
  linear-gradient(180deg, rgba(10,15,30,0.78) 0%, rgba(9,13,26,0.5) 45%, rgba(7,11,22,0.92) 100%),
  url("/assets/img/hero-timisoara.jpg") center 38% / cover no-repeat #070b16;
  color: #fff; display: flex; align-items: center; overflow: hidden; }
.hero-globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0.65; }
.hero-stage { position: relative; z-index: 2; padding-top: 3rem; padding-bottom: 3rem; }
.hero-eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem; }
.hero-title { font-size: clamp(2.5rem, 7.2vw, 6rem); line-height: 1.02; text-transform: uppercase;
  letter-spacing: -0.01em; font-weight: 900; color: #fff; margin: 0 0 1.5rem; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; transform: translateY(110%);
  animation: line-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.24s; }
.hero-title .gold { color: var(--gold); }
@keyframes line-up { to { transform: translateY(0); } }
.hero-sub { color: #aeb9d4; font-size: 1.15rem; max-width: 34ch; margin-bottom: 2rem;
  opacity: 0; animation: fade-in 0.8s ease 0.55s forwards; }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap;
  opacity: 0; animation: fade-in 0.8s ease 0.75s forwards; }
.btn-ghost { border-color: rgba(255,255,255,0.45); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
@keyframes fade-in { to { opacity: 1; } }
.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,0.4); border-radius: 14px; z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: translateY(0); opacity: 1; } 55% { transform: translateY(14px); opacity: 0.15; } }

/* Navbar over dark hero */
.nav--overlay { background: transparent; border-bottom-color: transparent; }
.nav--overlay .nav-links a { color: #fff; }
.nav--overlay .nav-links a[aria-current="page"] { color: var(--gold); }
.nav--overlay .nav-logo { color: #fff; }
.nav--overlay .nav-logo img { filter: brightness(0) invert(1); }
.nav--overlay .nav-toggle i { background: #fff; }
.nav--overlay.nav--solid { background: rgba(250, 248, 243, 0.95); border-bottom-color: #e8e4da; }
.nav--overlay.nav--solid .nav-links a { color: var(--ink); }
.nav--overlay.nav--solid .nav-links a[aria-current="page"] { color: var(--gold); }
.nav--overlay.nav--solid .nav-logo { color: var(--navy); }
.nav--overlay.nav--solid .nav-logo img { filter: none; }
.nav--overlay.nav--solid .nav-toggle i { background: var(--navy); }
.nav-logo img { display: block; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--serif);
  font-weight: 600; font-size: 1.1rem; color: #fff; margin-bottom: 0.5rem; }
.footer-brand b { font-weight: 900; }
.footer-brand img { filter: brightness(0) invert(1); opacity: 0.9; }
@media (max-width: 720px) {
  .nav--overlay .nav-links { background: #0c1224; }
  .nav--overlay.nav--solid .nav-links { background: var(--ivory); }
  .hero-globe canvas { opacity: 0.5; }
  .hero-title { font-size: clamp(2.2rem, 11vw, 3.6rem); }
}

/* Scroll reveals + card polish */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }
.card { position: relative; }
.card:hover { border-color: var(--gold); }
.card .abbr { position: relative; }
@media (prefers-reduced-motion: reduce) {
  .hero-title .line > span { animation: none; transform: none; }
  .hero-sub, .hero-ctas { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

/* Hero fixes: nav floats over hero; type breathing room */
.has-hero-globe .nav { position: fixed; top: 0; left: 0; right: 0; }
.hero-title { line-height: 1.04; }
