/* Home hero ("Adem"): a slowly breathing ring from the logo holds the wachttijden.
   Loaded by index.html only; scoped to body.hc-home and .hc-hero. */
.hc-home {
  --hc-ink: #16204a;
  --hc-body: #4b5068;
  --hc-muted: #5f6378;
  --hc-accent: #5a2dcf;
  --hc-accent-hover: #4a22b3;
  --hc-ground: #f7f6fb;
  --hc-line: rgba(22, 32, 74, 0.12);
}

/* Calm header on the home page: one solid button, sentence case, no glow. */
.hc-home .header .btn-primary {
  background: var(--hc-accent);
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}
.hc-home .header .btn-primary::before { display: none; }
.hc-home .header .btn-primary:hover { background: var(--hc-accent-hover); transform: none; box-shadow: none; }
.hc-home .header.sticky { animation: none; background: rgba(247, 246, 251, 0.92); }

.hc-hero {
  --hc-d: min(66svh, 40vw, 620px);
  --hc-cx: 73vw;
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 96px 0 56px;
  background: var(--hc-ground);
}

body.cookie-banner-open .hc-hero { padding-bottom: var(--cookie-banner-space, 200px); }

.hc-wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.hc-copy { position: relative; z-index: 2; max-width: min(540px, 44vw); }

.hc-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2.6rem, 4.6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--hc-ink);
  margin: 0 0 1.5rem;
}
.hc-title-soft { display: block; font-weight: 300; color: var(--hc-accent); }

.hc-text {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--hc-body);
  margin: 0 0 2rem;
}

.hc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; }

.hc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 2rem;
  border-radius: 999px;
  background: var(--hc-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.125rem;
  transition: background-color 0.2s ease;
}
.hc-btn:hover, .hc-btn:focus-visible { background: var(--hc-accent-hover); color: #fff; }

.hc-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--hc-ink);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.0625rem;
  text-decoration: underline;
  text-decoration-color: rgba(22, 32, 74, 0.3);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.hc-link:hover { color: var(--hc-accent); text-decoration-color: currentColor; }

.hc-note { margin: 1.25rem 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--hc-muted); }

.hc-facts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--hc-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--hc-ink);
}
.hc-facts li { display: flex; align-items: center; gap: 0.5rem; }
.hc-facts li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hc-accent);
  opacity: 0.55;
}

/* The ring and the wachttijden it holds share one centre. */
.hc-wait {
  position: absolute;
  z-index: 1;
  left: var(--hc-cx);
  top: calc(50% + 20px);
  transform: translate(-50%, -50%);
  width: calc(var(--hc-d) * 0.7);
  text-align: center;
}

.hc-ring {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: var(--hc-d);
  height: var(--hc-d);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hc-ring svg { display: block; width: 100%; height: 100%; overflow: visible; }

.hc-ring-breath {
  transform-box: fill-box;
  transform-origin: center;
  animation: hc-breathe 12s ease-in-out infinite;
}
.hc-ring-halo { fill: #ece7fb; opacity: 0.55; }
.hc-ring-line {
  fill: none;
  stroke: #7e47fc;
  stroke-opacity: 0.4;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: hc-draw 1.2s cubic-bezier(0.33, 0, 0.2, 1) 0.15s forwards;
}
.hc-ring-line--outer { stroke: #1034a6; stroke-opacity: 0.18; stroke-width: 1; animation-delay: 0.3s; }

@keyframes hc-breathe {
  0%, 100% { transform: scale(0.975); }
  50% { transform: scale(1.02); }
}
@keyframes hc-draw { to { stroke-dashoffset: 0; } }

.hc-paused .hc-ring-breath { animation-play-state: paused; }

.hc-wait-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  color: var(--hc-accent);
  margin: 0 0 1rem;
}

.hc-wait-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}
.hc-wait-item { padding: 0 0.75rem; }
.hc-wait-item + .hc-wait-item { border-left: 1px solid var(--hc-line); }
.hc-wait-item:only-child { grid-column: 1 / -1; }
.hc-wait-item dt {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--hc-muted);
  margin-bottom: 0.25rem;
}
.hc-wait-item dd { margin: 0; color: var(--hc-ink); font-family: var(--font-heading); line-height: 1.1; }
.hc-num {
  display: block;
  font-weight: 300;
  font-size: clamp(3rem, 4.4vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hc-unit { display: block; font-weight: 400; font-size: 1.125rem; margin-top: 0.25rem; }

.hc-wait-fallback {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  line-height: 1.35;
  color: var(--hc-ink);
  margin: 0 auto;
  max-width: 18ch;
}

.hc-wait-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin-top: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--hc-accent);
}
.hc-wait-link:hover { color: var(--hc-accent-hover); }
.hc-wait-link i { font-size: 0.85em; transition: transform 0.2s ease; }
.hc-wait-link:hover i { transform: translateX(3px); }

/* Entry: copy settles in once. */
.hc-copy > * { animation: hc-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hc-copy > :nth-child(2) { animation-delay: 0.08s; }
.hc-copy > :nth-child(3) { animation-delay: 0.16s; }
.hc-copy > :nth-child(n + 4) { animation-delay: 0.24s; }
.hc-wait > :not(.hc-ring) { animation: hc-fade 1s ease 0.35s both; }
@keyframes hc-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes hc-fade { from { opacity: 0; } }

/* Tablet and phone: one column. The ring becomes a full-bleed band right
   under the intro so the wachttijden are on the first screen. */
@media (max-width: 991.98px) {
  .hc-hero { display: block; min-height: 0; padding: 92px 0 48px; }
  .hc-wrap { display: flex; flex-direction: column; }
  .hc-copy { display: contents; }
  .hc-title { order: 1; }
  .hc-text { order: 2; margin-bottom: 0; max-width: 40rem; }
  .hc-wait { order: 3; }
  .hc-actions { order: 4; }
  .hc-note { order: 5; }
  .hc-facts { order: 6; }

  .hc-wait {
    --hc-d: min(80vw, 400px);
    position: relative;
    left: auto; top: auto; transform: none;
    width: 100%;
    max-width: calc(var(--hc-d) * 0.78);
    margin: 0.5rem auto;
    min-height: calc(var(--hc-d) * 0.96);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
  }
  .hc-ring { width: var(--hc-d); height: var(--hc-d); }
  /* The Aanmelden button sits directly under the ring here; one is enough. */
  .hc-wait-link { display: none; }
}

@media (max-width: 575.98px) {
  .hc-wrap { padding: 0 20px; }
  .hc-title { font-size: 2.5rem; margin-bottom: 1rem; }
  .hc-text { font-size: 1.0625rem; line-height: 1.6; }
  .hc-wait { --hc-d: min(82vw, 340px); }
  .hc-num { font-size: 3rem; }
  .hc-unit { font-size: 1rem; }
  .hc-actions { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .hc-btn { width: 100%; }
  .hc-link { justify-content: center; }
  .hc-note { text-align: center; }
  .hc-facts { flex-direction: column; gap: 0.5rem; }
}

/* Landscape phone: there is no room for a ring beside two lines of text. */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 991.98px) {
  .hc-wait { --hc-d: 300px; min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .hc-ring-breath, .hc-copy > *, .hc-wait > :not(.hc-ring) { animation: none !important; }
  .hc-ring-line { animation: none !important; stroke-dashoffset: 0; }
}
