/* ============================================================
   Podoloog Lien Dierckx — design system
   North Star: "Het Vakmanschapsdossier" (The Craftsman's Dossier)
   Warm pine + cream, editorial serif + hyperlegible sans.
   ============================================================ */

:root {
  /* ---- Color: The Committed Pine strategy ---- */
  --color-bg:        oklch(95.5% 0.028 90);
  --color-bg-alt:     oklch(89% 0.045 95);
  --color-bg-deep:    oklch(83% 0.055 90);
  --color-surface:    oklch(98% 0.014 90);

  --color-text:        oklch(26% 0.018 145);
  --color-text-muted:  oklch(45% 0.025 145);
  --color-border:      oklch(78% 0.04 95);
  --color-border-soft: oklch(86% 0.03 95);

  --pine-900: oklch(21% 0.045 152);
  --pine-700: oklch(33% 0.075 150);
  --pine-600: oklch(40% 0.085 150);
  --pine-500: oklch(47% 0.09 148);
  --pine-400: oklch(58% 0.08 145);
  --pine-200: oklch(88% 0.035 140);
  --pine-100: oklch(93% 0.022 138);

  --color-on-pine: oklch(97% 0.016 100);

  /* ---- Type ---- */
  --font-display: "Alegreya", "Iowan Old Style", "Georgia", serif;
  --font-body: "Atkinson Hyperlegible", "Seravek", "Segoe UI", sans-serif;

  --fs-label:    0.95rem;
  --fs-body:     clamp(1.125rem, 1.06rem + 0.28vw, 1.25rem);
  --fs-body-lg:  clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --fs-title:    clamp(1.5rem, 1.3rem + 0.85vw, 2rem);
  --fs-headline: clamp(2.1rem, 1.6rem + 2vw, 3.1rem);
  --fs-display:  clamp(2.75rem, 1.9rem + 3.6vw, 5rem);

  --lh-tight: 1.1;
  --lh-snug: 1.35;
  --lh-body: 1.65;

  /* ---- Space ---- */
  --space-2xs: 0.5rem;
  --space-xs:  0.875rem;
  --space-sm:  1.25rem;
  --space-md:  clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
  --space-lg:  clamp(2.75rem, 2rem + 3vw, 5rem);
  --space-xl:  clamp(4rem, 2.6rem + 6vw, 8rem);
  --space-2xl: clamp(5rem, 3rem + 8vw, 11rem);

  --content-max: 68rem;
  --measure: 62ch;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  --radius-sm: 3px;
  --radius-md: 6px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 6rem; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Focus: extra-visible, never suppressed ---- */
:focus-visible {
  outline: 3px solid var(--pine-600);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---- Typography ---- */
h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  color: var(--pine-900);
}

.display {
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 0.98;
}

h2, .headline {
  font-size: var(--fs-headline);
}

h3, .title {
  font-size: var(--fs-title);
  font-weight: 600;
}

p { max-width: var(--measure); }
p + p { margin-top: 1.1em; }

.lede {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-snug);
  color: var(--color-text);
}

.label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--pine-700);
}

.text-muted { color: var(--color-text-muted); }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section {
  padding-block: var(--space-xl);
}

.section--tight { padding-block: var(--space-lg); }

.section--pine {
  background: var(--pine-600);
  color: var(--color-on-pine);
}
.section--pine h2, .section--pine h3, .section--pine .font-display { color: var(--color-on-pine); }
.section--pine .label { color: oklch(90% 0.05 135); }
.section--pine .text-muted { color: oklch(88% 0.03 130); }
.section--pine .btn--ghost { color: var(--color-on-pine); border-color: var(--color-on-pine); }
.section--pine .btn--ghost:hover { background: var(--pine-500); }
.section--pine .trust-strip { border-color: oklch(48% 0.06 150); }
.section--pine .trust-strip__num { color: var(--color-on-pine); }

.section--sand { background: var(--color-bg-alt); }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklch, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border-soft);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-xs);
  gap: var(--space-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pine-900);
  text-decoration: none;
  white-space: nowrap;
}
.brand strong { font-weight: 700; }
.brand__mark { flex-shrink: 0; width: 2.25rem; height: 2.25rem; }

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__list {
  display: flex;
  gap: var(--space-sm);
}

.nav__list a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
  padding-block: 0.3em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s var(--ease-out-quart), color 0.25s var(--ease-out-quart);
}
.nav__list a:hover,
.nav__list a[aria-current="page"] {
  border-color: var(--pine-500);
  color: var(--pine-700);
}

.nav__cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--pine-900);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 55rem) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-soft);
    padding: var(--space-md) clamp(1.25rem, 4vw, 3rem) var(--space-lg);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out-quart), transform 0.3s var(--ease-out-quart);
  }
  .nav[data-open="true"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__list {
    flex-direction: column;
    gap: var(--space-xs);
    font-size: 1.2rem;
  }
  .nav__cta { margin-top: var(--space-sm); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease-out-quart), color 0.25s var(--ease-out-quart), transform 0.25s var(--ease-out-quart), border-color 0.25s var(--ease-out-quart);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--pine-700);
  color: var(--color-on-pine);
}
.btn--primary:hover { background: var(--pine-900); }

.btn--on-pine {
  background: var(--color-on-pine);
  color: var(--pine-800, var(--pine-700));
}
.btn--on-pine:hover { background: var(--color-bg); }

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--pine-700);
}
.btn--ghost:hover { background: var(--pine-100); }

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--space-lg);
  padding-block: var(--space-lg) var(--space-xl);
}

.hero__eyebrow {
  display: block;
  margin-bottom: var(--space-sm);
}

.hero__figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px oklch(30% 0.05 150 / 0.15);
  border-radius: var(--radius-md);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  align-items: center;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  font-size: 1rem;
  color: var(--color-text-muted);
}

@media (max-width: 60rem) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__figure { order: -1; aspect-ratio: 16/10; }
}

/* ---- Trust strip ---- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
  padding-block: var(--space-md);
}
.trust-strip__item {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}
.trust-strip__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--pine-600);
  line-height: 1;
}
@media (max-width: 45rem) {
  .trust-strip { grid-template-columns: 1fr; gap: var(--space-sm); }
}

/* ---- Service rows (not a card grid) ---- */
.service-list {
  display: flex;
  flex-direction: column;
}
.service-row {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-top: 1px solid var(--color-border-soft);
}
.service-list > .service-row:last-child { border-bottom: 1px solid var(--color-border-soft); }

.service-row__num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--pine-400);
  font-weight: 600;
}

.service-row__body h3 { margin-bottom: 0.5rem; }
.service-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: var(--space-xs);
}
.tag {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.3em 0.8em;
  background: var(--pine-100);
  color: var(--pine-700);
  border-radius: 100px;
}

@media (max-width: 40rem) {
  .service-row { grid-template-columns: 1fr; gap: var(--space-xs); }
  .service-row__num { font-size: 1.5rem; }
}

/* ---- Pull quote ---- */
.pull-quote {
  font-family: var(--font-display);
  font-size: var(--fs-headline);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  max-width: 42ch;
  color: var(--pine-900);
}
.pull-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  letter-spacing: 0.02em;
}

/* ---- Two-column editorial block ---- */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-lg);
  align-items: start;
}
.split--reverse { grid-template-columns: 1.15fr 0.85fr; }
@media (max-width: 55rem) {
  .split, .split--reverse { grid-template-columns: 1fr; }
}

/* ---- Definition rows (contact / practical info) ---- */
.info-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.info-list__row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: var(--space-sm);
  padding-block: var(--space-sm);
  border-top: 1px solid var(--color-border-soft);
}
.info-list__row:last-child { border-bottom: 1px solid var(--color-border-soft); }
@media (max-width: 30rem) {
  .info-list__row { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ---- Line illustration ---- */
.line-mark {
  color: var(--pine-500);
  width: 3rem;
  height: 3rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--pine-900);
  color: oklch(88% 0.028 135);
  padding-block: var(--space-lg) var(--space-md);
}
.site-footer a { text-decoration: none; }
.site-footer .brand { color: var(--color-on-pine); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-md);
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
  color: oklch(78% 0.04 138);
  margin-bottom: var(--space-xs);
}
.footer-grid ul { display: flex; flex-direction: column; gap: 0.5em; }
.footer-grid a:hover { color: var(--color-on-pine); }
.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-sm);
  border-top: 1px solid oklch(38% 0.05 145);
  font-size: 0.9rem;
  color: oklch(70% 0.03 135);
}
@media (max-width: 40rem) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* ---- Utilities ---- */
.stack { display: flex; flex-direction: column; gap: var(--space-sm); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  background: var(--pine-900);
  color: var(--color-on-pine);
  padding: 0.75em 1.25em;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top 0.2s var(--ease-out-quart);
}
.skip-link:focus { top: 1rem; }
