/* =========================================================
   ReumaLier — static site stylesheet
   Palette anchored to the logo: brand blue #00A0E4, brand red #D71A21.
   Everything else (neutrals, tints) is derived from those two so the
   whole site reads as one family with the wordmark, not a mismatch.
   Type: Baloo 2 (headings — rounded, friendly, echoes the logo's
   rounded wordmark) / Source Sans 3 (body) / IBM Plex Mono (data)
   Signature: a reaching-hand motif (from the logo) + joint-linework
   for the four condition categories.
   ========================================================= */

:root {
  --brand-blue: #00A0E4;
  --brand-blue-deep: #0B4C6B;   /* derived: dark shade of brand blue, used for nav/footer bg so white text has contrast */
  --brand-red: #D71A21;
  --brand-red-dark: #A81319;

  --sky-tint: #E7F6FD;          /* derived: very light tint of brand blue, section backgrounds */
  --sky-line: #CDEBF7;

  --paper: #FCFEFF;
  --ink: #1B2733;
  --ink-soft: #55636E;

  --font-display: 'Baloo 2', 'Trebuchet MS', sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius: 16px;
  --shadow: 0 8px 24px rgba(11, 76, 107, 0.10);
  --max-width: 1120px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand-blue-deep);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--brand-blue); font-weight: 600; }
a:hover { color: var(--brand-red); }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--brand-blue-deep); color: white;
  padding: 0.75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

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

:focus-visible { outline: 3px solid var(--brand-red); outline-offset: 2px; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--brand-blue-deep);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; background: white; border-radius: 10px; padding: 3px; }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.nav-toggle-bar { width: 24px; height: 2px; background: white; border-radius: 2px; }

.primary-nav ul {
  list-style: none; display: flex; align-items: center;
  gap: 1.5rem; margin: 0; padding: 0; flex-wrap: wrap;
}
.primary-nav a {
  color: rgba(255,255,255,0.92); text-decoration: none;
  font-weight: 700; font-size: 0.94rem;
}
.primary-nav a:hover { color: var(--sky-tint); }
.nav-cta {
  background: var(--brand-red); color: white !important;
  padding: 0.5rem 1.1rem; border-radius: 999px;
}
.nav-cta:hover { background: var(--brand-red-dark) !important; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav { display: none; width: 100%; order: 3; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; padding: 1rem 1.25rem; gap: 1rem; }
  .header-inner { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--sky-tint) 0%, var(--paper) 100%);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--sky-line);
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem; align-items: center;
}
@media (max-width: 780px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-eyebrow {
  font-family: var(--font-mono); text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.8rem; color: var(--brand-blue);
}
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem; border-radius: 999px;
  font-weight: 700; text-decoration: none;
  border: 2px solid transparent; font-size: 0.98rem;
}
.btn-primary { background: var(--brand-red); color: white; }
.btn-primary:hover { background: var(--brand-red-dark); color: white; }
.btn-outline { border-color: var(--brand-blue); color: var(--brand-blue-deep); }
.btn-outline:hover { background: var(--brand-blue); color: white; border-color: var(--brand-blue); }

.hero-art { display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 360px; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section--tint { background: var(--sky-tint); }
.section-head { max-width: 60ch; margin-bottom: 2rem; }
.section-head::after { content: ""; display: table; clear: both; }
.section-head p { color: var(--ink-soft); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.cat-card {
  background: white; border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border-top: 4px solid var(--brand-blue);
}
.cat-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: 0.9rem; display: block; }
.cat-card h3 { margin-bottom: 0.4rem; }
.cat-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.info-card { background: white; border: 1px solid var(--sky-line); border-radius: var(--radius); padding: 1.5rem; }
.info-card h3 { margin-bottom: 0.3rem; }
.info-card address { font-style: normal; color: var(--ink-soft); }
.info-card-logo { max-height: 42px; max-width: 150px; width: auto; height: auto; margin-bottom: 0.9rem; display: block; }

.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .staff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .staff-grid { grid-template-columns: 1fr; } }
.staff-card { background: white; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.staff-photo {
  width: 72px; height: 72px; border-radius: 50%; background: var(--sky-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-blue-deep); font-family: var(--font-display); font-weight: 600;
  font-size: 1.3rem; margin-bottom: 1rem; overflow: hidden;
}
.staff-photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-card .role { color: var(--brand-red); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.5rem; }
.staff-card ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: 0.92rem; }
.staff-card .bio { margin: 0.85rem 0 0; padding-top: 0.85rem; border-top: 1px solid var(--sky-line); color: var(--ink-soft); font-size: 0.88rem; line-height: 1.5; }

.article { max-width: 72ch; margin: 0 auto; padding: 3rem 1.25rem; }
.article-body { font-size: 1.05rem; }
.article-body ul { padding-left: 1.3rem; }

.page-photo {
  max-width: 280px; width: 100%; height: auto;
  border-radius: var(--radius); box-shadow: var(--shadow);
  float: right; margin: 0 0 1.25rem 1.5rem;
}
@media (max-width: 600px) {
  .page-photo { float: none; margin: 0 auto 1.5rem; display: block; }
}

.condition-block { display: grid; grid-template-columns: 160px 1fr; gap: 1.25rem; align-items: start; margin-bottom: 2rem; }
.condition-photo { width: 160px; height: 120px; object-fit: cover; border-radius: 12px; }
.condition-block h2, .condition-block h3, .condition-block p { margin: 0; }
.condition-block h2, .condition-block h3 { margin-bottom: 0.5em; }
.condition-block .dept-logo { height: 40px; width: auto; object-fit: contain; margin-bottom: 0.75rem; display: block; }
.condition-block--reverse { grid-template-columns: 1fr 160px; }
@media (max-width: 600px) {
  .condition-block { grid-template-columns: 1fr; }
  .condition-photo { width: 100%; height: 180px; }
}

.pdf-list {
  list-style: none; margin-bottom: 2rem; display: grid;
  background: white; border: 1px solid var(--sky-line); border-radius: 10px;
  padding: 0.4rem 1.1rem;
}
.pdf-list li { padding: 0.3rem 0; }
.pdf-list li + li { border-top: 1px solid var(--sky-line); }

/* ---------- Review flags (internal — remove after the review with Annemie) ---------- */
.review-flag {
  background: #FFF6DA; border: 2px dashed #C98A00; color: #6B4A00;
  border-radius: 10px; padding: 0.9rem 1.1rem; margin: 0 0 1.75rem;
  font-size: 0.92rem;
}
.review-flag strong {
  color: #A85E00; text-transform: uppercase; font-size: 0.78rem;
  letter-spacing: 0.03em; display: block; margin-bottom: 0.4rem;
  font-family: var(--font-mono);
}
.review-flag ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.review-flag li { margin-bottom: 0.3rem; }
.review-flag a { color: #6B4A00; }
.review-flag p { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: start; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 700; margin-bottom: 0.35rem; font-size: 0.92rem; color: var(--brand-blue-deep); }
.form-field input, .form-field textarea {
  width: 100%; padding: 0.7rem 0.9rem; border: 1.5px solid var(--sky-line);
  border-radius: 10px; font-family: var(--font-body); font-size: 1rem; background: white;
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--brand-blue); outline: none; box-shadow: 0 0 0 3px rgba(0, 160, 228, 0.18);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.flash-success {
  background: var(--sky-tint); border-left: 4px solid var(--brand-blue);
  padding: 0.9rem 1.1rem; border-radius: 8px; margin-bottom: 1.5rem;
}
.flash-error {
  background: #FBE7E8; border-left: 4px solid var(--brand-red);
  padding: 0.9rem 1.1rem; border-radius: 8px; margin-bottom: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-blue-deep); color: rgba(255,255,255,0.85); margin-top: 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding-top: 3rem; padding-bottom: 2rem; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand img { height: 36px; background: white; border-radius: 8px; padding: 3px; }
.footer-tag { color: rgba(255,255,255,0.65); font-size: 0.92rem; margin-top: 0.7rem; }
.footer-heading {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 0.78rem; color: #9FDFF7; margin-bottom: 0.9rem;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-list a { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.footer-list a:hover { color: var(--brand-red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.2rem; padding-bottom: 1.2rem; font-size: 0.82rem; color: rgba(255,255,255,0.55); }
