/* ==========================================================================
   BRASA Zürich: BRASA palette (gobrasa.org) with a quiet, editorial layout.
   Swiss red only on the brand tag and the flag.
   ========================================================================== */

:root {
  --green-900: #044115;
  --green-800: #03571a;
  --green-700: #1d6d0a;
  --green-500: #67b527;
  --navy: #1a2b77;
  --blue: #0055fe;
  --yellow: #fbda41;
  --cream: #fffdf7;
  --grey: #f4f4f4;
  --ink: #252726;
  --ink-soft: #55595a;
  --line: #dfe2de;
  --swiss-red: #da291c;

  /* gobrasa.org hero: #03571a under a dark top-down overlay, as rendered */
  --gradient-brasa: linear-gradient(180deg, #123f0d 0%, #1a6710 45%, #1d6a0f 100%);
  --font-sans: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 6px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

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

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p, dl, dd { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--navy); padding: 10px 16px;
  border-radius: var(--radius); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: var(--radius);
  font-weight: 900; font-size: 15px; line-height: 1; text-decoration: none;
  text-transform: uppercase; letter-spacing: .03em;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #fff; }
.btn-outline-light { color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--green-900); }
.btn-outline { color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--green-900); color: #fff; }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-crest { width: auto; height: 44px; }
.brand-word { font-weight: 900; font-size: 24px; }
.brand-tag {
  background: var(--swiss-red); color: #fff;
  font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 3px;
}

.main-nav { display: flex; gap: 28px; }
.main-nav a { text-decoration: none; font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .82); }
.main-nav a:hover { color: #fff; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }

.lang-switch { display: flex; gap: 2px; }
.lang-switch button {
  font: 700 13px var(--font-sans);
  color: rgba(255, 255, 255, .65); background: transparent; border: 0;
  padding: 6px 6px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; margin: 0 auto;
  transition: transform .2s ease, opacity .2s ease; position: relative;
}
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -7px; }
.menu-bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--gradient-brasa); color: #fff; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
  padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px);
}
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero h1 {
  font-weight: 900; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(40px, 5vw, 68px); line-height: 1;
}
.hero-lead { font-size: clamp(18px, 1.6vw, 21px); color: rgba(255, 255, 255, .9); max-width: 32em; }
.hero-note { font-size: 16px; color: rgba(255, 255, 255, .85); }

.hero-art { margin: 0; border: 8px solid var(--blue); border-radius: 24px; overflow: hidden; }
.hero-art svg { width: 100%; height: auto; }
.hero-art .sun { transform-origin: 0 0; animation: spin 60s linear infinite; } /* origin = star centre via the wrapping <g> */
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-cream { background: var(--cream); }
.section-grey { background: var(--grey); }
.section-yellow { background: var(--yellow); }
.section-mint { background: #eef5e6; }

.display {
  font-weight: 900; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(30px, 3.6vw, 46px); color: var(--green-800);
}
.lead { margin-top: 16px; font-size: 19px; color: var(--ink-soft); max-width: 38em; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about-copy { display: grid; gap: 16px; justify-items: start; }
.about-copy p { font-size: 18px; color: var(--ink-soft); max-width: 34em; }
.about-copy .display { margin-bottom: 8px; }
.subhead { margin-top: 24px; font-size: 22px; font-weight: 900; text-transform: uppercase; color: var(--green-800); }


/* Map */
.map-legend { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; font-weight: 700; color: var(--navy); }
.map-legend li { display: flex; align-items: center; gap: 8px; }
.dot { width: 14px; height: 14px; border-radius: 50%; }
.dot-eth { background: var(--yellow); box-shadow: inset 0 0 0 2px var(--navy); }
.dot-uzh { background: var(--blue); }
.map { margin: 0; border: 6px solid var(--blue); border-radius: 20px; overflow: hidden; position: relative; background: #f3f1e4; }
.map svg { width: 100%; height: auto; }
.map figcaption { position: absolute; right: 0; bottom: 0; padding: 2px 8px; font-size: 11px; color: var(--ink-soft); background: rgba(243, 241, 228, .85); }
.map .water-label { fill: #1a2b77; font: italic 700 22px var(--font-sans); opacity: .55; }
.map .pin circle { stroke: #fff; stroke-width: 4; }
.map .pin-eth circle { fill: var(--yellow); stroke: var(--navy); }
.map .pin-uzh circle { fill: var(--blue); }
.map .pin-hb circle { fill: var(--navy); }
.map .pin-label { fill: var(--navy); font: 900 22px var(--font-sans); paint-order: stroke; stroke: #fff; stroke-width: 7px; stroke-linejoin: round; }
.map .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; stroke: none !important; opacity: .5; }
@keyframes pulse { to { transform: scale(2.6); opacity: 0; } }

/* Events */
.next-event {
  margin-top: 40px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center;
  padding: 40px; background: #fff; border-radius: 20px; box-shadow: 0 1px 3px rgba(4, 65, 21, .08);
}
.next-event-copy { display: grid; gap: 12px; justify-items: start; }
.next-event-date { font-size: 15px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--green-700); }
.next-event h3 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 900; line-height: 1.05; color: var(--navy); }
.next-event-place { font-weight: 700; color: var(--navy); }
.next-event-copy p:last-child { margin-top: 8px; font-size: 18px; color: var(--ink-soft); max-width: 30em; }
.next-event-map { order: -1; background: #cfe0ff; } /* map left, alternating with hero and about */
.next-event-map figcaption { background: rgba(207, 224, 255, .85); }
.route { fill: none; stroke: var(--navy); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1 14; animation: route 1.4s linear infinite; }
@keyframes route { to { stroke-dashoffset: -15; } }

.invite { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.invite p { font-size: 18px; }

/* Guide */
.guide { margin-top: 48px; border-top: 2px solid var(--ink); }
.guide-row { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.guide dt { font-weight: 900; font-size: 20px; color: var(--green-800); }
.guide dd { color: var(--ink-soft); }
.guide dd a { color: var(--blue); font-weight: 700; white-space: nowrap; }

/* Join */
.join-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.join-col {
  display: grid; grid-template-rows: auto 1fr auto; gap: 14px; justify-items: start;
  padding: 32px; border-radius: var(--radius); background: var(--grey);
}
.join-col h3 { font-size: 26px; font-weight: 900; text-transform: uppercase; color: var(--navy); }
.join-col p { color: var(--ink-soft); }
.section-yellow .join-col:not(.join-col-featured) { background: #fff; }
.join-col-featured { background: var(--green-800); }
.join-col-featured h3 { color: #fff; }
.join-col-featured p { color: rgba(255, 255, 255, .88); }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 900; font-size: 19px; color: var(--navy);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 400; color: var(--navy); transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding-bottom: 22px; color: var(--ink-soft); max-width: 40em; }

/* Partner band */
.partner-band { background: var(--green-800); color: #fff; }
.partner-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.partner-band h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; text-transform: uppercase; }
.partner-band p { margin-top: 8px; color: rgba(255, 255, 255, .8); }

/* Footer */
.site-footer { background: var(--green-900); color: #fff; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand-crest { height: 64px; }
.footer-brand p { margin-top: 16px; color: rgba(255, 255, 255, .78); max-width: 24em; font-size: 15px; }
.site-footer h3 { font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer nav a, .site-footer div > a:not(.brand) { display: block; text-decoration: none; color: rgba(255, 255, 255, .78); font-size: 15px; padding: 4px 0; }
.site-footer a:not(.brand):hover { color: #fff; }
.footer-bottom { padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 13px; color: rgba(255, 255, 255, .7); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
    background: var(--green-900); display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 560px; }
  .about-grid, .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .next-event { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
  .next-event-map { order: 0; }
  .join-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-inner { gap: 12px; }
  .brand-word { font-size: 20px; }
  .header-inner .brand-crest { height: 36px; }
  .header-actions { gap: 4px; }
  .guide-row { grid-template-columns: 1fr; gap: 6px; }
  .partner-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
