/* Join2Move: statische pagina in HealthTrain-huisstijl.
   Lettertype Figtree (SIL Open Font License 1.1, zie fonts/OFL-figtree.txt) als open vervanger van Greycliff. */

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --deep-blue: #28326e;
  --logo-blue: #1e2869;
  --blue: #32a0fa;
  --mint: #5ad2b4;
  --orange: #ff9e3c;
  --purple: #a582ff;
  --tint: #f4fbff;
  --white: #ffffff;
  --muted: #4a5285;
  --j2m-teal: #058379; /* kleur van het oude Join2Move-merk */
  --j2m-text: #363636; /* tekstkleur van de oude Join2Move-site */
  --radius: 14px;
  --max: 68rem;
}

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

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

body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--deep-blue);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a {
  color: var(--deep-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--deep-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--deep-blue);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.skip:focus {
  left: 1rem;
}

/* Kop */
.site-header {
  border-bottom: 1px solid #e3e8f4;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--deep-blue);
}

.brand img {
  width: 36px;
  height: 35px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
}

.brand-sub {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.2rem;
}

.header-link {
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
}

/* Hero */
.hero {
  background: var(--tint);
  padding: 3rem 0;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-img {
  justify-self: center;
  width: 180px;
}

.lead {
  font-size: 1.25rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid var(--deep-blue);
}

.btn-primary {
  background: var(--deep-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--logo-blue);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--deep-blue);
}

.btn-secondary:hover {
  background: var(--tint);
}

/* Secties */
.section {
  padding: 3rem 0;
}

.section + .section {
  border-top: 1px solid #e3e8f4;
}

.narrow {
  max-width: 44rem;
}

.tips {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.tips li {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 0.5rem;
  border-left: 6px solid var(--mint);
}

.tips li:nth-child(3n + 2) {
  border-left-color: var(--orange);
}

.tips li:nth-child(3n + 3) {
  border-left-color: var(--purple);
}

.tips h3 {
  margin-bottom: 0.4rem;
}

.note {
  margin-top: 2rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 2px solid var(--blue);
}

.note p:last-child {
  margin-bottom: 0;
}

/* Overgang: links het oude Join2Move-merk in de oude stijl, rechts HealthTrain */
.transition-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: stretch;
}

.era {
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.era p {
  margin: 0;
}

.era-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.era-old {
  background: var(--white);
  border: 2px solid var(--j2m-teal);
  color: var(--j2m-text);
}

.era-old .era-label {
  color: var(--j2m-teal);
}

.era-logo-old {
  width: 210px;
}

.era-new {
  background: var(--deep-blue);
  color: var(--white);
}

.era-new .era-label {
  color: var(--mint);
}

.era-logo-new {
  align-self: flex-start;
  background: var(--white);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  line-height: 0;
}

.era-logo-new img {
  width: 200px;
  height: 38px;
}

.era-arrow {
  justify-self: center;
  align-self: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--deep-blue);
  display: grid;
  place-items: center;
  transform: rotate(90deg);
}

/* Tijdlijn van de oorsprong, in de oude Join2Move-kleur; "Nu" in HealthTrain-blauw */
.timeline {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  max-width: 44rem;
  display: grid;
  gap: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  position: relative;
  padding: 0 0 1.25rem 1.5rem;
  border-left: 2px solid var(--j2m-teal);
}

.timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--j2m-teal);
}

.timeline p {
  margin: 0;
  min-width: 0;
}

.timeline-year {
  font-weight: 700;
  color: var(--j2m-teal);
  font-variant-numeric: tabular-nums;
}

.timeline-now::before {
  background: var(--deep-blue);
}

.timeline-now .timeline-year {
  color: var(--deep-blue);
}

/* Voet */
.site-footer {
  background: var(--deep-blue);
  color: var(--white);
  padding: 2.5rem 0;
  font-size: 1rem;
}

.site-footer a {
  color: var(--white);
}

.site-footer :focus-visible {
  outline-color: var(--orange);
}

.site-footer .wrap {
  display: grid;
  gap: 1.5rem;
}

.footer-logo {
  justify-self: start;
  display: inline-block;
  background: var(--white);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  line-height: 0;
}

.footer-logo img {
  width: 170px;
  height: 32px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer p {
  margin: 0;
  grid-column: 1 / -1;
}

@media (min-width: 48rem) {
  .hero {
    padding: 4.5rem 0;
  }

  .hero .wrap {
    grid-template-columns: 1fr auto;
    gap: 3rem;
  }

  .hero-img {
    width: 240px;
  }

  .tips {
    grid-template-columns: repeat(2, 1fr);
  }

  .transition-grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
  }

  .era-arrow {
    transform: none;
  }

  .timeline li {
    grid-template-columns: 4.5rem 1fr;
    gap: 1rem;
  }

  .site-footer .wrap {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .footer-links {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
