/*
 * Harthulp visuele laag
 * Scope: uitsluitend Harthulp-portalen. Niet importeren in bestaande FIDIRO-sites.
 * De basis blijft bruikbaar zonder externe fonts, trackers of beeld-CDN's.
 */
:root {
  --hh-deep: #0f2d3d;
  --hh-deep-2: #173f52;
  --hh-slate: #415a6b;
  --hh-cloud: #e6ebef;
  --hh-offwhite: #f8f8f6;
  --hh-coral: #e76f51;
  --hh-coral-strong: #c94f36;
  --hh-ink: #152c38;
  --hh-white: #ffffff;
  --ink: var(--hh-ink);
  --muted: #5d6d77;
  --paper: var(--hh-offwhite);
  --surface: var(--hh-white);
  --line: #d9e1e5;
  --green: var(--hh-deep);
  --green-2: var(--hh-slate);
  --mint: #edf2f4;
  --lime: var(--hh-coral);
  --amber: #f6e7c6;
  --red: #a93232;
  --shadow: 0 18px 48px rgba(15, 45, 61, .12);
  font-family: Inter, Aptos, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  background: var(--hh-offwhite);
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 100% 0, rgba(230, 235, 239, .72), transparent 28rem),
    var(--hh-offwhite);
}

h1, h2, h3, h4,
.login-intro h1,
.login-panel h2,
.view-header h1,
.page-head h1,
.section-title h2,
.anatomy-hero h1,
.score-ring,
.score,
.metric,
.hero-metric-row strong,
.cms-metrics strong,
.portal-link-hero .portal-stat strong,
.progress-grid strong {
  font-family: Inter, Aptos, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

.brand-lockup {
  gap: .85rem;
  min-width: 0;
  letter-spacing: 0;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  color: currentColor;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 820;
  letter-spacing: -.055em;
  line-height: 1;
  white-space: nowrap;
}

.brand-wordmark b {
  color: var(--hh-coral);
  font-size: 1.18em;
  font-weight: 900;
  line-height: .6;
}

.brand-wordmark .brand-domain {
  font-weight: 380;
  letter-spacing: -.045em;
}

.brand-context {
  padding-left: .8rem;
  border-left: 1px solid currentColor;
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .2em !important;
  opacity: .58 !important;
}

.eyebrow {
  color: var(--hh-slate);
  font-size: .7rem;
  font-weight: 820;
  letter-spacing: .22em;
  line-height: 1.4;
}

.button {
  min-height: 44px;
  border-radius: .35rem;
  padding: .72rem 1.05rem;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: white;
  background: var(--hh-coral-strong);
}

.button.primary:hover {
  background: #ad3f2a;
}

.button.secondary {
  color: var(--hh-deep);
  background: var(--hh-cloud);
}

.button.secondary:hover {
  background: #d8e0e5;
}

input, select, textarea {
  min-height: 44px;
  border-color: #b8c5cc;
  border-radius: .35rem;
}

input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  border-color: var(--hh-coral-strong);
  outline: 3px solid rgba(231, 111, 81, .28);
  outline-offset: 2px;
}

.panel,
.card,
.module-card,
.reference-card,
.calculator-card,
.question-card,
.exam-choice-grid > article,
.exam-list > article,
.cms-section {
  border-radius: .55rem;
  box-shadow: 0 8px 28px rgba(15, 45, 61, .045);
}

/* Aanmelden */
.login-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(22rem, .75fr);
  background: var(--hh-deep);
}

.login-intro {
  isolation: isolate;
  min-height: 100vh;
  padding: clamp(2rem, 7vw, 7rem);
  background:
    linear-gradient(90deg, rgba(15, 45, 61, .98) 0%, rgba(15, 45, 61, .82) 58%, rgba(15, 45, 61, .42) 100%),
    url("/harthulp-clinical-lines.svg") center / cover no-repeat,
    var(--hh-deep);
}

.login-intro::after {
  inset: auto -12rem -16rem auto;
  z-index: -1;
  width: 36rem;
  height: 36rem;
  border-color: rgba(231, 111, 81, .28);
  box-shadow: 0 0 0 6rem rgba(231, 111, 81, .025), 0 0 0 12rem rgba(230, 235, 239, .018);
}

.login-intro .brand-wordmark {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.login-intro > .eyebrow {
  margin-top: clamp(3rem, 10vh, 8rem);
  color: #dce5ea;
}

.login-intro h1 {
  max-width: 14ch;
  margin: 1.15rem 0;
  font-size: clamp(2.8rem, 5.9vw, 6rem);
  font-weight: 520;
  line-height: .98;
  letter-spacing: -.055em;
}

.login-intro > p:not(.eyebrow) {
  max-width: 39rem;
  color: #dce5ea;
}

.safety-note {
  border-left-color: var(--hh-coral);
  color: #dce5ea;
}

.login-panel {
  border: 0;
  border-radius: .55rem;
  background: rgba(255, 255, 255, .98);
}

.login-panel h2 {
  margin: .4rem 0 1.8rem;
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 560;
  letter-spacing: -.04em;
}

/* Portaalframe */
.topbar {
  min-height: 4.6rem;
  color: var(--hh-deep);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 5px 20px rgba(15, 45, 61, .05);
}

.topbar .ghost {
  color: var(--hh-deep);
  border-color: #c8d2d8;
}

.identity {
  color: var(--hh-slate);
}

.status-pill {
  color: var(--hh-deep);
  background: var(--hh-cloud);
}

.sidebar {
  padding: 1.4rem .75rem;
  background: #f1f4f5;
}

.nav-item {
  position: relative;
  border-radius: .35rem;
  color: #3f5563;
}

.nav-item:hover {
  color: var(--hh-deep);
  background: white;
}

.nav-item.active {
  color: var(--hh-deep);
  background: white;
  box-shadow: 0 5px 18px rgba(15, 45, 61, .07);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  inset: .62rem auto .62rem 0;
  width: 3px;
  border-radius: 3px;
  background: var(--hh-coral);
}

main {
  max-width: 108rem;
  width: 100%;
  margin-inline: auto;
}

.clinical-banner {
  border: 1px solid #e8d49d;
  border-radius: .35rem;
}

.view-header h1,
.page-head h1 {
  font-weight: 560;
  line-height: 1.02;
}

.tag,
.status-chip {
  border-radius: .25rem;
}

/* Startpagina */
.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(20rem, .88fr);
  min-height: 31rem;
  margin: 1.3rem 0 1rem;
  overflow: hidden;
  border-radius: .65rem;
  color: white;
  background: var(--hh-deep);
  box-shadow: 0 20px 54px rgba(15, 45, 61, .18);
}

.home-hero-copy {
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.home-hero .eyebrow {
  color: #d7e1e7;
}

.home-hero h1 {
  max-width: 12ch;
  margin: .85rem 0 1.1rem;
  font-size: clamp(2.65rem, 5vw, 5.25rem);
  font-weight: 500;
  line-height: .97;
  letter-spacing: -.055em;
}

.home-hero h1 span {
  color: #dce5ea;
}

.home-hero-lead {
  max-width: 39rem;
  margin: 0;
  color: #d7e1e7;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.65;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.5rem;
}

.home-hero .hero-secondary {
  color: white;
  border: 1px solid rgba(255, 255, 255, .5);
  background: transparent;
}

.home-hero .hero-secondary:hover {
  border-color: white;
  background: rgba(255, 255, 255, .1);
}

.home-promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  margin: clamp(2rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}

.home-promises li {
  padding-left: .8rem;
  border-left: 1px solid rgba(255, 255, 255, .28);
}

.home-promises strong,
.home-promises span {
  display: block;
}

.home-promises strong {
  margin-bottom: .22rem;
  font-size: .82rem;
}

.home-promises span {
  color: #c5d2d9;
  font-size: .72rem;
  line-height: 1.45;
}

.home-hero-visual {
  position: relative;
  min-width: 0;
  background:
    linear-gradient(90deg, var(--hh-deep) 0%, rgba(15, 45, 61, .24) 45%, rgba(15, 45, 61, .12) 100%),
    url("/harthulp-clinical-lines.svg") 58% center / cover no-repeat;
}

.home-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 45, 61, .58));
}

.home-hero-visual > span {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1;
  color: rgba(255, 255, 255, .82);
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .2em;
  line-height: 1.6;
  text-align: right;
}

.hero-metric-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0 2.3rem;
}

.hero-metric-row > *,
.cms-metrics > * {
  border-radius: .4rem;
}

.hero-metric-row strong,
.cms-metrics strong {
  color: var(--hh-deep);
  font-weight: 610;
}

.route-intro {
  max-width: 48rem;
  margin: 0 0 1rem;
}

.route-intro h2 {
  margin: .35rem 0 .3rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 560;
  letter-spacing: -.035em;
}

.route-intro p:last-child {
  margin: 0;
  color: var(--muted);
}

.launch-card {
  min-height: 13.4rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto 1fr auto;
  column-gap: .65rem;
  border-radius: .5rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.launch-card:hover {
  border-color: #afbec6;
  box-shadow: 0 16px 38px rgba(15, 45, 61, .11);
}

.launch-icon {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid #f0b3a4;
  border-radius: .35rem;
  color: var(--hh-coral-strong);
  background: #fff7f4;
  font-size: 1.15rem;
  font-weight: 720;
}

.launch-index {
  grid-column: 3;
  grid-row: 1;
  width: auto;
  height: auto;
  border-radius: 0;
  color: #7b8a93;
  background: transparent;
  font-size: .66rem;
  letter-spacing: .12em;
}

.launch-card > strong {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 1.25rem 0 .45rem;
  color: var(--hh-deep);
  font-size: 1.28rem;
  font-weight: 680;
  letter-spacing: -.02em;
}

.launch-card > strong + span {
  grid-column: 1 / -1;
  grid-row: 3;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}

.launch-arrow {
  grid-column: 3;
  grid-row: 4;
  align-self: end;
  color: var(--hh-coral-strong) !important;
  font-size: 1.15rem !important;
}

.integrity-panel {
  margin-top: 1rem;
  border-left-color: var(--hh-coral);
}

/* Inhoudelijke subroutes */
.section-title h2 {
  font-weight: 580;
}

.module-card > summary:hover,
.option-list label:hover,
.small-button:hover {
  background: #f1f5f7;
}

.module-summary,
.calc-result,
.result-box,
.randomization-explainer {
  background: #edf2f4;
}

.result,
.calc-result,
.result-box {
  border-left-color: var(--hh-coral);
}

.step-number,
.dot {
  background: var(--hh-deep);
}

.route-card {
  border-top-color: var(--hh-slate);
  border-radius: .45rem;
}

.search-bar,
.exam-header {
  border-radius: .4rem;
  background: rgba(248, 248, 246, .95);
}

.ortho-timeline > * {
  border-top-color: var(--hh-slate);
}

.ortho-timeline > *::before {
  background: var(--hh-coral);
  box-shadow: 0 0 0 1px var(--hh-coral);
}

.shuffle-visual span {
  background: var(--hh-deep);
}

.shuffle-visual span:nth-child(2) {
  background: var(--hh-slate);
}

.shuffle-visual span:nth-child(3) {
  color: var(--hh-deep);
  background: var(--hh-cloud);
}

.anatomy-hero {
  border-radius: .65rem;
  background:
    linear-gradient(90deg, rgba(15, 45, 61, .98), rgba(15, 45, 61, .75)),
    url("/harthulp-clinical-lines.svg") center / cover no-repeat,
    var(--hh-deep);
}

.anatomy-hero h1 {
  font-weight: 520;
}

.anatomy-hero p {
  color: #d7e1e7;
}

.external-button {
  border-radius: .35rem;
  color: white;
  background: var(--hh-coral-strong);
}

.orbit::after {
  background: var(--hh-coral);
}

.score-ring {
  border-top-color: var(--hh-coral);
  font-weight: 620;
}

.mobile-dock button.active {
  color: var(--hh-deep);
  background: var(--hh-cloud);
}

.toast {
  border-radius: .35rem;
  background: var(--hh-deep);
}

@media (max-width: 1050px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(15rem, .8fr);
  }
}

@media (max-width: 960px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-intro {
    min-height: 48vh;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding-inline: max(.75rem, env(safe-area-inset-left));
  }

  .sidebar {
    background: #f4f6f7;
    box-shadow: -18px 0 48px rgba(15, 45, 61, .18);
  }

  body.nav-open::after {
    background: rgba(15, 45, 61, .52);
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-hero-copy {
    padding: 2.25rem 1.35rem 1.8rem;
  }

  .home-hero-visual {
    min-height: 14rem;
    background-position: center 42%;
  }

  .home-promises {
    margin-top: 2rem;
  }

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

  .mobile-dock {
    border-top-color: #ced8dd;
    box-shadow: 0 -10px 28px rgba(15, 45, 61, .09);
  }
}

@media (max-width: 520px) {
  .login-intro {
    padding: 2rem 1.25rem 2.4rem;
  }

  .login-intro > .eyebrow {
    margin-top: 3rem;
  }

  .login-intro h1 {
    font-size: clamp(2.45rem, 12vw, 3.4rem);
  }

  .brand-wordmark {
    font-size: 1.35rem;
  }

  .home-hero {
    margin-inline: -.25rem;
  }

  .home-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.3rem);
  }

  .home-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-hero-actions .button {
    width: 100%;
  }

  .home-promises {
    grid-template-columns: 1fr;
    gap: .65rem;
  }

  .home-promises li {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: .45rem;
  }

  .home-hero-visual {
    min-height: 12rem;
  }

  .hero-metric-row,
  .launch-grid {
    grid-template-columns: 1fr;
  }

  .launch-card {
    min-height: 11.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
