/* ==========================================================================
   Verzijden Clinics — global base
   Import order matters: tokens first, then this, then page/section CSS.
   ========================================================================== */

@import "./tokens.css";

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

html {
  scroll-behavior: smooth;
  /* The header is fixed; anchor targets must clear it. */
  scroll-padding-top: var(--header-h-scrolled);
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--size-body-l);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular); /* never bold the display face */
  line-height: var(--leading-display);
  color: var(--text-primary);
  margin: 0;
  text-wrap: pretty;
}

p {
  margin: 0;
  text-wrap: pretty;
}

img {
  display: block;
  max-width: 100%;
  border-radius: var(--radius-none); /* images are square, never circles */
}

/* Links inherit the brand instead of browser blue. A link dropped into any
   page by an editor already looks right. */
a {
  color: var(--text-link);
  text-decoration: none;
  border-bottom: 1px solid var(--border-default);
  transition: color var(--duration-hover) var(--ease-out),
    border-color var(--duration-hover) var(--ease-out);
}

a:hover {
  color: var(--text-link-hover);
  border-bottom-color: var(--text-link-hover);
}

/* Structural links (nav, cards, footer columns) opt out of the underline. */
a.vc-plain,
a.vc-plain:hover {
  border-bottom-color: transparent;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

::selection {
  background: var(--sand-300);
  color: var(--text-primary);
}

/* Numbers in a column always line up. */
.vc-tabular {
  font-variant-numeric: tabular-nums;
}

.vc-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Keyframes -----------------------------------------------------------
   Two only: the hero entrance drift and the hero Ken Burns. Everything else
   is a transition. */

@keyframes vcRise {
  from {
    opacity: 0;
    transform: translateY(var(--entrance-rise));
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes vcKenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.04);
  }
}

/* --- Reduced motion ------------------------------------------------------
   Honour the OS setting: no drift, no zoom, no reveal. Content is never
   hidden behind an animation that will not run — see Reveal.tsx, which
   bails out before it sets opacity: 0. */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
