/* ============================================================
   welkom in belgië — wayfinding prototype
   Palette: petrol-green + marigold "you are here" + coral alert
   ============================================================ */

:root {
  --ink:        #12261f;
  --ink-soft:   #3d5049;
  --petrol:     #0e5f57;
  --petrol-deep:#083f39;
  --marigold:   #f0a81e;
  --marigold-deep:#c9860a;
  --coral:      #d8452b;
  --coral-deep: #a5301c;
  --paper:      #faf7f1;
  --surface:    #ffffff;
  --sage:       #eaf1ec;
  --sage-line:  #d3e2d7;
  --line:       #e3ddd2;

  --shadow-sm: 0 1px 2px rgba(18,38,31,.06), 0 2px 8px rgba(18,38,31,.05);
  --shadow-md: 0 8px 28px rgba(18,38,31,.10);
  --radius: 16px;
  --radius-sm: 10px;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-fallback: "Noto Sans", "Noto Naskh Arabic", "Noto Sans Ethiopic", "Noto Sans Tibetan";
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body), var(--font-fallback);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Script-specific fonts */
[lang="ar"], [lang="ps"] { font-family: "Noto Naskh Arabic", var(--font-body); }
[lang="ti"] { font-family: "Noto Sans Ethiopic", var(--font-body); }
[lang="bo"] { font-family: "Noto Sans Tibetan", var(--font-body); line-height: 2; }
[lang="uk"] { font-family: "Noto Sans", var(--font-body); }

img { max-width: 100%; }
a { color: var(--petrol); }

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

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 10px 10px;
  z-index: 100; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,241,.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 64px; padding-block: .5rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-pin {
  width: 20px; height: 26px; flex: none; position: relative;
  background: var(--petrol);
  border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
  clip-path: polygon(50% 100%, 0 42%, 0 0, 100% 0, 100% 42%);
}
.brand-pin::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 8px; height: 8px; top: 6px; border-radius: 50%; background: var(--marigold);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; }
.brand-domain { font-size: .72rem; color: var(--ink-soft); letter-spacing: .01em; }

.topbar-actions { display: flex; align-items: center; gap: .75rem; }
.lang-switch { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.lang-label { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
#lang {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-weight: 600; font-size: .92rem;
  padding: .4rem 2rem .4rem .75rem;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--sage-line); border-radius: 999px; cursor: pointer;
}
#lang:focus-visible { outline: 3px solid var(--marigold); outline-offset: 1px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: .8rem 1.4rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--petrol); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--petrol-deep); }
.btn-ghost { background: transparent; color: var(--petrol-deep); border-color: var(--sage-line); }
.btn-ghost:hover { background: var(--sage); }
.btn-emergency {
  background: var(--coral); color: #fff; padding: .5rem .95rem; font-size: .92rem;
  flex-direction: row; box-shadow: var(--shadow-sm);
}
.btn-emergency:hover { background: var(--coral-deep); }
.btn-emergency-num {
  background: rgba(255,255,255,.22); border-radius: 6px; padding: .05rem .4rem;
  font-variant-numeric: tabular-nums;
}
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 90% -10%, rgba(240,168,30,.18), transparent 55%),
    radial-gradient(90% 70% at -5% 110%, rgba(14,95,87,.10), transparent 60%),
    var(--paper);
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero::before {
  /* faint route line motif */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(14,95,87,.05) 38px 40px);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  opacity: .6;
}
.hero-inner { position: relative; max-width: 780px; }
.kicker {
  display: inline-block; margin: 0 0 1rem; font-family: var(--font-display); font-weight: 700;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--petrol);
  background: var(--sage); padding: .35rem .8rem; border-radius: 999px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(2.1rem, 6vw, 3.7rem); line-height: 1.03; margin: 0 0 1rem;
}
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--ink-soft); max-width: 60ch; margin: 0 0 1.8rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }

.welcome-strip {
  list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; padding: 0;
  margin: 2.6rem 0 0; font-family: var(--font-display); font-weight: 600; color: var(--petrol-deep);
  opacity: .8; font-size: 1.05rem;
}
.welcome-strip li { position: relative; }
.welcome-strip li + li::before {
  content: "•"; position: absolute; left: -.85rem; color: var(--marigold-deep);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--sage); border-block: 1px solid var(--sage-line); }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.eyebrow {
  margin: 0 0 .5rem; font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--marigold-deep);
  display: flex; align-items: center; gap: .55rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--marigold); border-radius: 2px; }
.eyebrow-light { color: var(--marigold); }
.section-title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.025em;
  font-size: clamp(1.7rem, 4.5vw, 2.7rem); line-height: 1.05; margin: 0 0 .7rem;
}
.section-lead { font-size: 1.1rem; color: var(--ink-soft); margin: 0; }

/* ---------- Route (first steps) — the signature ---------- */
.route { list-style: none; margin: 0; padding: 0; position: relative; }
.route::before {
  content: ""; position: absolute; inset-inline-start: 21px; top: 12px; bottom: 40px;
  width: 4px; background: linear-gradient(var(--petrol), var(--sage-line));
  border-radius: 2px;
}
.stop {
  position: relative; padding-inline-start: 66px; padding-block: 0 2rem;
  opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease;
}
.stop.in { opacity: 1; transform: none; }
.stop:last-child { padding-bottom: 0; }
.stop-dot {
  position: absolute; inset-inline-start: 8px; top: 4px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface); border: 4px solid var(--petrol);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800;
  color: var(--petrol-deep); font-size: .95rem; z-index: 2;
}
.stop:first-child .stop-dot { border-color: var(--marigold); box-shadow: 0 0 0 6px rgba(240,168,30,.18); }
.stop-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm);
}
.stop-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em;
  margin: 0 0 .35rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem;
}
.stop-who {
  font-family: var(--font-body); font-weight: 600; font-size: .72rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--petrol); background: var(--sage);
  padding: .15rem .55rem; border-radius: 6px;
}
.stop-card p { margin: 0; color: var(--ink-soft); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-bottom: 1.5rem; }
.filter-group { display: flex; flex-direction: column; gap: .5rem; }
.filter-label {
  font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: inherit; font-weight: 600; font-size: .9rem;
  padding: .4rem .9rem; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--ink-soft);
  border: 1.5px solid var(--sage-line); transition: all .15s;
}
.chip:hover { border-color: var(--petrol); color: var(--petrol-deep); }
.chip[aria-pressed="true"] { background: var(--petrol); color: #fff; border-color: var(--petrol); }

.results-count { font-size: .9rem; color: var(--ink-soft); margin: 0 0 1.2rem; font-weight: 600; }

/* ---------- Org grid ---------- */
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.org-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.25rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .6rem;
}
.org-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.org-name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; margin: 0; letter-spacing: -.01em; }
.org-region {
  flex: none; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--petrol-deep); background: var(--sage); padding: .2rem .5rem; border-radius: 6px; white-space: nowrap;
}
.org-desc { margin: 0; color: var(--ink-soft); font-size: .95rem; flex: 1; }
.org-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.org-tag { font-size: .72rem; font-weight: 600; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); padding: .1rem .5rem; border-radius: 6px; }
.org-link {
  font-family: var(--font-display); font-weight: 700; font-size: .92rem; text-decoration: none;
  color: var(--petrol-deep); display: inline-flex; align-items: center; gap: .3rem; margin-top: .1rem;
}
.org-link:hover { text-decoration: underline; }
.org-link::after { content: "→"; transition: transform .15s; }
.org-link:hover::after { transform: translateX(3px); }
[dir="rtl"] .org-link::after { content: "←"; }

.map-note {
  margin-top: 1.8rem; padding: 1rem 1.2rem; background: var(--surface);
  border: 1px dashed var(--sage-line); border-radius: var(--radius-sm);
  color: var(--ink-soft); font-size: .95rem;
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: .7rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%; text-align: start; font: inherit; font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; color: var(--ink); background: none; border: 0; cursor: pointer;
  padding: 1.05rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-q:hover { color: var(--petrol-deep); }
.faq-icon { flex: none; width: 22px; height: 22px; position: relative; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--marigold-deep); border-radius: 2px; inset: 0; margin: auto;
}
.faq-icon::before { width: 14px; height: 3px; }
.faq-icon::after { width: 3px; height: 14px; transition: transform .2s; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }
.faq-a { padding: 0 1.2rem 1.2rem; color: var(--ink-soft); }
.faq-a p { margin: 0; }

/* details reset */
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

/* ---------- Emergency ---------- */
.section-emergency { background: var(--ink); color: #fff; }
.section-emergency .section-title { color: #fff; }
.emg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.emg-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 1.2rem 1.3rem;
}
.emg-num {
  font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -.02em;
  color: var(--marigold); font-variant-numeric: tabular-nums; line-height: 1;
}
.emg-card h3 { margin: .5rem 0 .2rem; font-family: var(--font-display); font-size: 1.05rem; }
.emg-card p { margin: 0; color: rgba(255,255,255,.72); font-size: .92rem; }

/* ---------- Footer ---------- */
.footer { background: var(--petrol-deep); color: rgba(255,255,255,.85); padding-block: 3rem 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; }
.footer-brand { display: flex; gap: .8rem; align-items: flex-start; }
.footer-brand .brand-pin { background: var(--marigold); }
.footer-brand .brand-pin::after { background: var(--petrol-deep); }
.footer-brand .brand-name { color: #fff; font-family: var(--font-display); font-weight: 800; margin: 0; }
.footer-tag { margin: .2rem 0 0; font-size: .9rem; color: rgba(255,255,255,.7); }
.footer-cols { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem; }
.footer-col h3 { font-family: var(--font-display); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--marigold); margin: 0 0 .8rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.footer-col a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-col a:hover { text-decoration: underline; }
.footer-note { margin: 0; font-size: .88rem; color: rgba(255,255,255,.68); line-height: 1.55; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .82rem; color: rgba(255,255,255,.6);
}
.lang-note { font-style: italic; }

/* ---------- RTL ---------- */
[dir="rtl"] .lang-switch { align-items: flex-start; }
[dir="rtl"] .eyebrow::before { }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .wrap, .wrap-narrow { width: calc(100% - 2rem); }
  .lang-label { display: none; }
  .brand-domain { display: none; }
  body { font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-cols { grid-template-columns: 1fr; }
  .topbar-actions { gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .stop { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
