/* ==========================================================================
   NXT-Interim — style.css
   Palette: white base, deep navy #1B2E5E, warm amber #F59E0B
   Type: Plus Jakarta Sans (Google Fonts, loaded per page)
   Mobile-first. No frameworks.
   ========================================================================== */

:root {
  --navy: #1B2E5E;
  --navy-deep: #131F40;
  --navy-light: #2F4E97;
  --amber: #F59E0B;
  --amber-tint: #FEF6E7;
  --ink: #1B2E5E;
  --body: #46536F;
  --muted: #7A85A0;
  --line: #E5E9F2;
  --bg: #FFFFFF;
  --bg-tint: #F7F9FC;
  --green: #16A34A;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px -12px rgba(27, 46, 94, 0.16);

  --container: 1140px;
  --gutter: 1.25rem;

  --space-section: clamp(4.5rem, 10vw, 8rem);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
}

ul {
  padding: 0;
  list-style: none;
}

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
  max-width: 38em;
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

/* Signature: amber marker-highlight, a nod to the classroom */
.mark {
  position: relative;
  z-index: 0; /* own stacking context so ::after (z-index -1) stays inside it */
  white-space: nowrap;
}

.mark::after {
  content: "";
  position: absolute;
  inset: 0.55em -0.12em -0.05em -0.12em;
  background: var(--amber);
  opacity: 0.32;
  border-radius: 3px;
  transform: skewX(-6deg) scaleX(0);
  transform-origin: left center;
  animation: mark-swipe 0.7s 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: -1;
}

@keyframes mark-swipe {
  to { transform: skewX(-6deg) scaleX(1); }
}

/* Chevron motif from the "NXT" name — forward, next step */
.chevrons {
  color: var(--amber);
  font-weight: 800;
  letter-spacing: -0.1em;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 760px;
}

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

.section--tint {
  background: var(--bg-tint);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head p {
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--navy);
  color: #fff;
}

.btn--primary:hover {
  background: var(--navy-light);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--navy);
}

.btn--ghost:hover {
  border-color: var(--navy);
}

.btn .chevrons {
  transition: transform 0.2s;
}

.btn:hover .chevrons {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.logo .chevrons {
  margin-left: 0.1em;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 1rem var(--gutter) 1.5rem;
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.6rem 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}

.site-nav a:not(.btn):hover {
  background: var(--bg-tint);
}

.site-nav a[aria-current="page"] {
  color: var(--amber);
}

.site-nav a.btn {
  margin-top: 0.75rem;
  padding: 0.85rem 1.6rem;
}

.site-nav a.btn--primary:hover {
  background: var(--navy-light);
}

@media (min-width: 800px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    padding: 0;
    box-shadow: none;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .site-nav a {
    padding: 0.5rem 0.75rem;
  }

  .site-nav a.btn {
    margin: 0 0 0 0.75rem;
    padding: 0.6rem 1.2rem;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(5rem, 12vw, 9rem);
  overflow: hidden;
}

/* Faint timetable grid — the raster of a lesrooster */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.45;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 70% 20%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 90% 80% at 70% 20%, #000 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 820px;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero .lead {
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 3.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.hero__meta li::before {
  content: "\00BB\2002";
  color: var(--amber);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 640px) and (max-width: 959px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.95rem;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--amber-tint);
  color: var(--amber);
  margin-bottom: 1.25rem;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__link {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.card__link .chevrons {
  transition: transform 0.2s;
  display: inline-block;
}

.card__link:hover .chevrons {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Consultant cards
   ----------------------------------------------------------------------------
   TODO(phase-2/sanity): this grid becomes CMS-driven. Each .consultant-card
   maps to a Sanity `consultant` document and links to /consultants/[slug].
   -------------------------------------------------------------------------- */

.consultant-card {
  text-align: left;
}

.consultant-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

/* Foto-variant van de avatar: dezelfde ronde vorm, maar met een echte foto. */
img.consultant-card__avatar {
  object-fit: cover;
  object-position: center;
  box-shadow: 0 6px 18px rgba(27, 46, 94, 0.15);
}

/* Grotere ronde profielfoto bovenaan een consultant-profielpagina. */
.profile-photo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 10px 28px rgba(27, 46, 94, 0.18);
  margin-bottom: 1.5rem;
}

.consultant-card__role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--body);
  margin-bottom: 1rem;
}

.availability::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.availability--soon::before {
  background: var(--amber);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.tags li {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

/* --------------------------------------------------------------------------
   Approach / numbered steps (real sequence: how an assignment runs)
   -------------------------------------------------------------------------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.steps li {
  counter-increment: step;
  border-top: 3px solid var(--line);
  padding-top: 1.5rem;
  position: relative;
}

.steps li::before {
  content: "Stap " counter(step);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.6rem;
}

.steps h3 {
  margin-bottom: 0.5rem;
}

.steps p {
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Split section (text + aside)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: start;
  }
}

.split h2 {
  margin-bottom: 1.25rem;
}

.split p + p {
  margin-top: 1rem;
}

.checklist li {
  display: flex;
  gap: 0.75rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink);
}

.checklist li::before {
  content: "\00BB";
  color: var(--amber);
  font-weight: 800;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "\00BB\00BB";
  position: absolute;
  right: -0.1em;
  bottom: -0.35em;
  font-size: 14rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  letter-spacing: -0.1em;
  pointer-events: none;
}

@media (min-width: 800px) {
  .cta-band {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 32em;
}

.cta-band .btn--primary {
  background: var(--amber);
  color: var(--navy-deep);
}

.cta-band .btn--primary:hover {
  background: #FDB640;
}

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */

.post-card {
  display: flex;
  flex-direction: column;
}

.post-card__meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.post-card__meta .cat {
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.post-card p {
  flex-grow: 1;
}

/* Article page */

.article-header {
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem);
}

.article-header h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-block: 1rem 1.25rem;
}

.article-meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.article-body {
  padding-bottom: var(--space-section);
}

.article-body > * + * {
  margin-top: 1.35rem;
}

.article-body h2 {
  font-size: 1.5rem;
  margin-top: 2.75rem;
}

.article-body ul {
  list-style: none;
  padding-left: 0.25rem;
}

.article-body ul li {
  padding-left: 1.4em;
  position: relative;
}

.article-body ul li::before {
  content: "\00BB";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 800;
}

.article-body ul li + li {
  margin-top: 0.5rem;
}

.article-body blockquote {
  border-left: 3px solid var(--amber);
  padding-left: 1.5rem;
  margin-top: 2.75rem;
  margin-bottom: 2.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Opdrachtgevers (logo wall)
   -------------------------------------------------------------------------- */

.logo-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.logo-wall li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  min-height: 110px;
  flex: 1 1 calc(50% - 1rem);
}

@media (min-width: 640px) {
  .logo-wall li {
    flex-basis: 200px;
    max-width: 260px;
  }
}

.logo-wall img {
  max-height: 48px;
  max-width: 160px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.25s, opacity 0.25s;
}

.logo-wall li:hover img {
  filter: none;
  opacity: 1;
}

/* Fallback tile when no logo file is available */
.logo-wall .logo-text {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 5rem;
  }
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info dl {
  margin-top: 2rem;
}

.contact-info dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.5rem;
}

.contact-info dd {
  margin: 0.25rem 0 0;
  font-weight: 600;
  color: var(--ink);
}

.form {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.form input,
.form textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.2s;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 46, 94, 0.12);
}

.form textarea {
  min-height: 9rem;
  resize: vertical;
}

.form .btn {
  justify-self: start;
}

/* Honeypot: uit beeld, maar bereikbaar voor bots. */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Statusmelding onder het formulier. */
.form-status {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}

.form-status--ok {
  color: #1a7f4b;
}

.form-status--error {
  color: #c0392b;
}

/* --------------------------------------------------------------------------
   Page intro (subpages)
   -------------------------------------------------------------------------- */

.page-intro {
  padding-block: clamp(4rem, 9vw, 7rem) 0;
}

.page-intro h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  margin-bottom: 1.25rem;
  max-width: 15em;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  margin-top: var(--space-section);
  font-size: 0.9rem;
}

.site-footer .logo {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 800px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer a:hover {
  color: var(--amber);
}

.site-footer li + li {
  margin-top: 0.5rem;
}

.site-footer__tagline {
  margin-top: 1rem;
  max-width: 28em;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   Scroll reveal (js/main.js adds .in via IntersectionObserver)
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .mark::after {
    animation: none;
    transform: skewX(-6deg) scaleX(1);
  }

  .btn,
  .card {
    transition: none;
  }
}
