/* Readex Pro, self-hosted (SIL Open Font License) — no requests to third parties */
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/readex-pro-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/readex-pro-arabic-600-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/readex-pro-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/readex-pro-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --forest: #043812;   /* logo background */
  --green: #035f31;    /* links and markers on light ground */
  --mint: #d6ede0;     /* brochure panels */
  --paper: #fafcfa;
  --ink: #142a1d;
  --red: #cb0c2c;      /* flag red, used once: the hero rule */

  --measure: 66ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  font-size: 112.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Readex Pro", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

:lang(ar) body,
body:lang(ar) { line-height: 1.85; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff;
  z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */

.site-header { border-bottom: 1px solid #e3ebe6; background: #fff; }

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
}
.brand img { width: 2.75rem; height: 2.75rem; border-radius: 50%; }
.brand span { max-width: 22ch; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--green); text-decoration: underline; }
.site-nav .lang a { font-weight: 600; color: var(--green); }

/* Hero: the one loud moment */

.hero {
  background: radial-gradient(ellipse at 75% 45%, #125c29 0%, var(--forest) 60%);
  color: #fff;
}
:lang(ar) .hero,
.hero:lang(ar) { background: radial-gradient(ellipse at 25% 45%, #125c29 0%, var(--forest) 60%); }

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
  padding-block: clamp(3rem, 8vw, 6rem);
}

@media (min-width: 52rem) {
  .hero .wrap { grid-template-columns: 1.4fr 1fr; }
}

.motto {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.motto-other {
  display: block;
  margin-top: 0.4em;
  padding-top: 0.35em;
  border-top: 4px solid var(--red);
  width: fit-content;
  font-size: 0.62em;
  color: var(--mint);
  letter-spacing: 0;
}

.hero p {
  max-width: 40ch;
  margin: 1.75rem 0 2rem;
  font-size: 1.1rem;
  color: #e2f1e8;
}

.hero-logo {
  justify-self: center;
  width: clamp(9rem, 38vw, 18rem);
  filter: drop-shadow(0 0 1.25rem rgb(214 237 224 / 0.35));
}

.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--mint);
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: #fff; }
.hero .button:focus-visible { outline-color: #fff; }

/* Sections */

main section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
main section + section { border-top: 1px solid #e3ebe6; }

h1, h2, h3 { font-weight: 600; line-height: 1.25; }
h2 { font-size: 1.75rem; margin: 0 0 1.25rem; }
h3 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }

.prose > * { max-width: var(--measure); }
.prose p { margin: 0 0 1em; }

/* "What we do": markers echo the ring of the emblem */
.rings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rings li {
  position: relative;
  padding-inline-start: 1.75rem;
}
.rings li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.45em;
  width: 0.8em;
  height: 0.8em;
  border: 2px solid var(--green);
  border-radius: 50%;
}

.band { background: var(--mint); }
main section.band { border-top: 0; }

.offices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.5rem 2rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

/* Key/value facts: bank details, contact, register data */
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  margin: 1.5rem 0;
}
.facts dt { font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 0.75rem; }
}

address { font-style: normal; }

.note { font-size: 0.9rem; color: #46594d; }

/* Legal pages */
.legal h1 { font-size: 2.1rem; margin: 0 0 1.5rem; }
.legal h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; }
.legal h3 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }

/* Data still to be filled in before going live. Remove the class when done. */
.todo {
  background: #fff3a8;
  outline: 1px dashed #b38f00;
  padding-inline: 0.2em;
}

/* Footer */

.site-footer {
  background: var(--forest);
  color: #d9eadf;
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding-block: 2.5rem;
}
.site-footer a { color: #fff; }
.site-footer strong { color: #fff; font-weight: 600; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 0.35rem; }
.site-footer :focus-visible { outline-color: #fff; }

/* German-script blocks (legal name, address, IBAN) inside Arabic pages */
html[dir="rtl"] [dir="ltr"] { text-align: right; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
.lede { max-width: var(--measure); }
