/* Aza Zorggroep — rustig, diep teal en warm gebroken wit. Eigen lettertype (Newsreader, OFL) en eigen beelden,
   geen externe bronnen. Animaties alleen als de bezoeker beweging toestaat. */

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-italic-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --ink: #1C2A28;
  --muted: #55625E;
  --teal: #1E524D;
  --teal-deep: #133B37;
  --teal-hover: #163E3A;
  --on-teal: #FFFFFF;
  --mint: #9FD3C7;
  --tint-a: #E2EAE4;
  --tint-b: #EEE7DA;
  --line: #E3DFD5;
  --shadow: 0 1px 2px rgba(28, 42, 40, .05), 0 24px 48px -24px rgba(28, 42, 40, .28);

  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 14px;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 4.5vw, 56px);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101C1B;
    --surface: #172826;
    --ink: #E6ECE8;
    --muted: #A3B4AE;
    --teal: #8CCABF;
    --teal-deep: #0B2422;
    --teal-hover: #A6D8CF;
    --on-teal: #0E1A19;
    --mint: #8CCABF;
    --tint-a: #17302C;
    --tint-b: #1A2623;
    --line: #26393A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 24px 48px -24px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(56rem 40rem at 96% -10%, var(--tint-a), transparent 70%),
    radial-gradient(44rem 32rem at -12% 40%, var(--tint-b), transparent 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 999px; background: var(--teal); color: var(--on-teal); text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Kop ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-row { display: flex; align-items: center; gap: 28px; min-height: 76px; }

.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.wordmark-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--teal); color: var(--on-teal);
  font: 700 .72rem/1 var(--sans); letter-spacing: .08em;
}
.wordmark-text { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -.01em; }
.wordmark-text strong { color: var(--teal); font-weight: 600; }

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 1rem;
  transition: color .25s, background-color .25s;
}
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--teal) 9%, transparent); }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 24px;
  border-radius: 999px; background: var(--teal); color: var(--on-teal);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  box-shadow: 0 12px 28px -14px color-mix(in srgb, var(--teal) 70%, transparent);
  transition: background-color .25s, transform .4s var(--ease);
}
.btn:hover { background: var(--teal-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: .95rem; box-shadow: none; }
.icon { flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1.5px no-repeat;
  transition: background-size .5s var(--ease);
}
.link-arrow:hover { background-size: 100% 1.5px; }

/* ---------- Openingsbeeld ---------- */
.hero {
  display: grid; gap: clamp(40px, 6vw, 80px); align-items: center;
  padding-block: clamp(48px, 9vw, 120px) clamp(64px, 10vw, 140px);
}
@media (min-width: 960px) { .hero { grid-template-columns: 1fr 1.05fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 7px 14px; border-radius: 999px; background: color-mix(in srgb, var(--teal) 10%, transparent);
  color: var(--teal); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(3rem, 1.6rem + 5.4vw, 6.2rem); line-height: .98; }
h1 em, h2 em { font-style: italic; color: var(--teal); font-weight: 350; }
.lead { margin: 26px 0 0; max-width: 33rem; font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 38px; }

.hero-media { position: relative; margin: 0; }
.hero-media picture { display: block; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); }
.hero-media img { width: 100%; aspect-ratio: 1.125; object-fit: cover; }
.glass {
  position: absolute; left: clamp(-28px, -2vw, -12px); bottom: 28px;
  display: grid; gap: 8px; padding: 16px 20px; border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid color-mix(in srgb, var(--surface) 60%, transparent);
  box-shadow: var(--shadow);
}
.glass-label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.glass-values { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--serif); font-size: 1.15rem; }
.glass-values span + span::before { content: "·"; margin-right: 14px; color: var(--teal); }
@media (max-width: 959px) { .glass { left: 14px; right: 14px; bottom: 14px; } }

/* ---------- Statement ---------- */
.statement { padding-block: clamp(56px, 9vw, 120px); border-top: 1px solid var(--line); }
.kicker { margin: 0 0 22px; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.statement-text { max-width: 22ch; font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4.4rem); line-height: 1.06; }

/* ---------- Waarden ---------- */
.values {
  display: grid; gap: 28px; align-items: start;
  padding-block: clamp(24px, 4vw, 48px) clamp(72px, 10vw, 140px);
}
@media (min-width: 960px) {
  .values { grid-template-columns: .9fr 1.2fr .9fr; gap: clamp(28px, 4vw, 56px); }
  .values-photo-b { margin-top: 140px; }
  .values-photo-a { margin-top: 40px; }
}
.values-photo { margin: 0; }
.values-photo picture { display: block; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.values-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 1.4s var(--ease); }
.values-photo:hover img { transform: scale(1.04); }

.values-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.value {
  position: relative; padding: 26px 28px 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.value:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--teal) 30%, var(--line)); }
.value-no { font: 600 .8rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--teal); letter-spacing: .06em; }
.value h3 { margin-top: 12px; font-size: 2rem; }
.value p { margin: 8px 0 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(72px, 10vw, 140px); }
.contact-card {
  position: relative; overflow: hidden;
  display: grid; gap: 32px; align-items: end;
  padding: clamp(32px, 6vw, 72px); border-radius: var(--radius-xl);
  background: radial-gradient(40rem 26rem at 100% 0%, color-mix(in srgb, var(--mint) 22%, transparent), transparent 70%), var(--teal-deep);
  color: #F2F7F5;
}
@media (min-width: 960px) { .contact-card { grid-template-columns: 1.2fr 1fr; } }
.contact-card h2 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.8rem); line-height: 1.04; }
.contact-card h2 em { color: var(--mint); }
.kicker-on-dark { color: var(--mint); }
.contact-lead { margin: 18px 0 0; max-width: 28rem; color: #C9DAD5; }
.contact-actions { display: grid; gap: 14px; justify-items: start; }
@media (min-width: 960px) { .contact-actions { justify-items: end; } }
.mail-big {
  font-family: var(--serif); font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem); text-decoration: none; color: #fff;
  background: linear-gradient(var(--mint), var(--mint)) 0 100% / 100% 2px no-repeat; padding-bottom: 4px;
  transition: color .25s;
  overflow-wrap: anywhere;
}
.mail-big:hover { color: var(--mint); }
.copy {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #E6F0ED;
  font: 600 .95rem var(--sans); cursor: pointer; transition: background-color .25s, border-color .25s;
}
.copy:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); }

/* ---------- Voet ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 28px; color: var(--muted); font-size: .95rem; }
.footer-row p { margin: 0; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--teal); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; margin: 0;
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600;
  transform: translate(-50%, 140%); opacity: 0; transition: transform .5s var(--ease), opacity .3s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Telefoon ---------- */
@media (max-width: 720px) {
  .nav { display: none; }
  .header-row { justify-content: space-between; }
  .wordmark-text { font-size: 1.15rem; }
}

/* ---------- Beweging: zonder JavaScript. Bovenaan komt de inhoud op bij het laden; verderop met
   scroll-gestuurde CSS-animaties (animation-timeline: view()). Browsers zonder ondersteuning tonen alles direct. ---------- */
@keyframes lift { from { transform: translateY(36px); } to { transform: none; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .reveal { animation: rise 1.1s var(--ease) both; }
  .hero .reveal:nth-child(2) { animation-delay: .08s; }
  .hero .reveal:nth-child(3) { animation-delay: .16s; }
  .hero .reveal:nth-child(4) { animation-delay: .24s; }
  .hero .hero-media.reveal { animation-delay: .2s; animation-duration: 1.4s; }

  @supports (animation-timeline: view()) {
    main > section:not(.hero) .reveal {
      animation: lift linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 28%;
    }
    .values-photo img {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover;
    }
    @keyframes drift { from { transform: scale(1.12) translateY(-4%); } to { transform: scale(1.12) translateY(4%); } }
    .values-photo:hover img { transform: none; }
  }
}
