:root {
  --paper: oklch(0.985 0.004 80);
  --ink: oklch(0.38 0.02 110);
  --muted: oklch(0.52 0.02 100);
  --moss: oklch(0.46 0.04 120);
  --moss-dark: oklch(0.39 0.04 120);
  --sand: oklch(0.93 0.014 55);
  --line: oklch(0.38 0.02 110 / 0.15);
  --font-body: 'Jost', sans-serif;
  --font-heading: 'Jost', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
  --gutter: clamp(20px, 5vw, 48px);
  --section-pad: clamp(64px, 9vw, 112px);
  /* Updated from script.js with the measured sticky header height */
  --header-h: 92px;
  --tap: 44px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--moss);
}

@media (hover: hover) {
  a:hover {
    color: var(--ink);
  }
}

button {
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}

.section-dark :focus-visible {
  outline-color: var(--paper);
}

p {
  text-wrap: pretty;
}

[hidden] {
  display: none !important;
}

/* Layout */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0
    max(var(--gutter), env(safe-area-inset-left));
}

.section-anchor {
  scroll-margin-top: calc(var(--header-h) - 1px);
}

.section {
  padding: var(--section-pad) 0;
}

.section-flush-top {
  padding-top: 0;
  scroll-margin-top: calc(var(--header-h) + 32px);
}

.section-tinted {
  background: var(--sand);
}

.section-dark {
  background: var(--moss);
  color: var(--paper);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stack p,
.intro p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.split-top {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

/* Typography */

.heading {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 300;
}

.heading-xl {
  margin-bottom: 6px;
  font-size: clamp(30px, 4vw + 16px, 60px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.heading-lg {
  font-size: clamp(28px, 3vw + 18px, 46px);
  line-height: 1.12;
}

.heading-md {
  font-size: 30px;
}

.rule {
  display: block;
  width: 32px;
  height: 1px;
  background: currentColor;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
}

.link {
  font-size: 16px;
  font-weight: 400;
  text-underline-offset: 5px;
}

/* Standalone links get a 44px touch area without changing the spacing around them */
.stack > .link {
  align-self: flex-start;
  padding-block: 12px;
  margin-block: -12px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 30px;
  background: var(--moss);
  color: var(--paper);
  font-size: 17px;
  text-decoration: none;
  transition: background 0.2s;
}

.button span {
  font-size: 20px;
}

.button-light {
  background: var(--paper);
  color: var(--ink);
}

@media (hover: hover) {
  .button:hover {
    background: var(--moss-dark);
    color: var(--paper);
  }

  .button-light:hover {
    background: var(--sand);
    color: var(--ink);
  }
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 24px;
  background: var(--sand);
  border: 1px dashed oklch(0.38 0.02 110 / 0.3);
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-align: center;
}

.placeholder-portrait {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 460px;
  justify-self: center;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: oklch(0.985 0.004 80 / 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s;
}

.site-header.is-raised {
  box-shadow: 0 1px 0 oklch(0.38 0.02 110 / 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  min-height: var(--tap);
}

.brand img {
  display: block;
  height: 64px;
  width: auto;
}

@media (max-width: 479px) {
  .brand img {
    height: 52px;
  }
}

/* Landscape phones: keep the sticky header compact */
@media (max-height: 500px) and (orientation: landscape) {
  .header-inner {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .brand img {
    height: 40px;
  }
}

.nav-desktop {
  display: flex;
  gap: 30px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-desktop a {
  position: relative;
  padding-bottom: 5px;
  border-bottom: 1px solid transparent;
  color: var(--ink);
  text-decoration: none;
}

/* Enlarge the touch area (iPad landscape uses this nav) without moving the underline */
.nav-desktop a::after {
  content: '';
  position: absolute;
  inset: -12px -8px -6px;
}

.nav-desktop a.is-active {
  border-bottom-color: var(--ink);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: var(--tap);
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 22px;
}

.menu-icon span {
  height: 1px;
  background: var(--ink);
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px max(var(--gutter), env(safe-area-inset-right)) 28px
    max(var(--gutter), env(safe-area-inset-left));
  border-top: 1px solid oklch(0.38 0.02 110 / 0.12);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-mobile a {
  padding: 14px 0;
  border-bottom: 1px solid oklch(0.38 0.02 110 / 0.1);
  color: var(--ink);
  text-decoration: none;
}

.nav-mobile a:last-child {
  border-bottom: 0;
}

@media (max-width: 899px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (min-width: 900px) {
  .nav-mobile {
    display: none !important;
  }
}

/* iPad landscape and small laptops: fit six items next to the logo */
@media (min-width: 900px) and (max-width: 1199px) {
  .nav-desktop {
    gap: 20px;
    letter-spacing: 0.14em;
  }
}

body.menu-open {
  overflow: hidden;
}

/* Hero */

.hero-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(28px, 5vw, 44px) 24px;
  background: var(--sand);
  text-align: center;
}

.hero-banner .rule {
  width: 56px;
}

.hero-banner h1 {
  margin: 0;
  padding-left: 0.32em;
  font-size: clamp(17px, 3vw, 30px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
  padding-top: clamp(28px, 4vw, 40px);
  padding-bottom: var(--section-pad);
}

.hero-photo {
  width: 100%;
  max-width: 480px;
  justify-self: center;
  aspect-ratio: 534 / 722;
  background-color: var(--sand);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* iPad portrait and large phones: photo and text side by side */
@media (min-width: 600px) and (max-width: 899px) {
  .hero {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 32px;
  }

  .hero-text {
    padding-top: 0;
  }

  .hero-text p {
    font-size: 17px;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 620px;
  padding-top: clamp(0px, 3vw, 36px);
}

.hero-text p {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
}

.signature {
  display: block;
  align-self: flex-start;
  height: 72px;
  width: auto;
  margin-top: 4px;
}

@media (max-width: 479px) {
  .signature {
    height: 60px;
  }
}

/* Begeleiding */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 44px;
  margin-top: 48px;
  /* Inset shadow instead of a border so the active tab's border sits on top of it */
  box-shadow: inset 0 -1px 0 var(--line);
}

.tab {
  display: flex;
  flex-shrink: 0;
  align-items: baseline;
  gap: 12px;
  padding: 0 0 16px;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: 19px;
  font-weight: 300;
  cursor: pointer;
}

.tab[aria-selected='true'] {
  border-bottom-color: var(--ink);
  color: var(--ink);
}

.tab .num {
  font-family: var(--font-serif);
  font-size: 16px;
}

/* Phones: tabs become a horizontally scrolling strip instead of wrapping */
@media (max-width: 599px) {
  .tabs {
    flex-wrap: nowrap;
    gap: 28px;
    margin-top: 36px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    padding-top: 12px;
    font-size: 17px;
    scroll-snap-align: start;
  }

  .tab-panel {
    padding-top: 32px;
  }
}

.tab-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-top: 48px;
}

.dash-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
}

.dash-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.dash-list li::before {
  content: '';
  flex-shrink: 0;
  width: 14px;
  height: 1px;
  background: var(--moss);
  transform: translateY(-4px);
}

/* Werkwijze */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 44px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 22px 24px;
  background: transparent;
  border: 1px solid oklch(0.38 0.02 110 / 0.2);
  color: var(--ink);
  font-size: 18px;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s;
}

.step[aria-pressed='true'] {
  background: var(--moss);
  color: var(--paper);
}

.step .num {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1;
}

/* Phones and small tablets: 2x2 grid so the step text stays right below the buttons */
@media (max-width: 719px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 32px;
  }

  .step {
    gap: 14px;
    padding: 16px 18px;
    font-size: 16px;
  }

  .step .num {
    font-size: 30px;
  }

  .step-panel {
    margin-top: 8px;
  }
}

@media (min-width: 720px) and (max-width: 899px) {
  .step {
    padding: 18px;
    font-size: 16px;
  }
}

.step-panel {
  min-height: 150px;
  margin-top: 12px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--paper);
}

.step-panel p {
  max-width: 720px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 20px 32px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
}

.check {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--moss);
  color: var(--paper);
  font-size: 14px;
}

/* Over mij */

.about {
  gap: 20px;
  max-width: 600px;
}

.cv {
  display: flex;
  flex-direction: column;
  margin: 12px 0 0;
  border-top: 1px solid var(--line);
}

.cv-title {
  margin: 0;
  padding: 20px 0 6px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.cv li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid oklch(0.38 0.02 110 / 0.1);
  font-size: 16px;
}

.cv ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv .year {
  font-family: var(--font-serif);
  font-size: 18px;
}

/* Tarieven */

.prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin-top: 44px;
}

.price {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  background: var(--sand);
}

.price-featured {
  background: var(--moss);
  color: var(--paper);
}

.price-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.price-amount {
  font-family: var(--font-serif);
  font-size: 46px;
  line-height: 1;
}

.price-meta {
  font-size: 15px;
  opacity: 0.85;
}

.price p {
  margin: 8px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.6;
}

.price-featured p {
  border-top-color: oklch(0.985 0.004 80 / 0.25);
}

/* iPad portrait: two cards side by side, the traject card full width below */
@media (min-width: 600px) and (max-width: 899px) {
  .prices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479px) {
  .price {
    padding: 24px;
  }
}

.note {
  max-width: 640px;
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

/* Vragen */

.faq {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid oklch(0.38 0.02 110 / 0.2);
}

.faq-item {
  border-top: 1px solid oklch(0.38 0.02 110 / 0.2);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 22px 0;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 300;
  text-align: left;
  cursor: pointer;
}

.faq-q .plus {
  font-size: 26px;
  line-height: 1;
  transition: transform 0.25s;
}

.faq-q[aria-expanded='true'] .plus {
  transform: rotate(45deg);
}

.faq-a {
  max-width: 560px;
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.7;
}

/* Contact */

.contact {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid oklch(0.985 0.004 80 / 0.35);
  font-size: 19px;
}

.contact-item a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: var(--tap);
  color: var(--paper);
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}

.contact-item .small {
  font-size: 15px;
}

/* Footer */

.site-footer {
  padding: 56px 0 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.footer-logo {
  display: block;
  width: 336px;
  max-width: 100%;
  height: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--ink);
  text-decoration: none;
}

.copyright {
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid oklch(0.38 0.02 110 / 0.12);
  font-size: 13px;
}

/* Back to top */

.to-top {
  position: fixed;
  right: calc(24px + env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--moss);
  color: var(--paper);
  font-size: 18px;
  text-decoration: none;
}

@media (hover: hover) {
  .to-top:hover {
    background: var(--moss-dark);
    color: var(--paper);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* 404 */

.not-found {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter);
}
