/* ==========================================================================
   TwenTrack — stylesheet
   Palette and typography carried over from the original site.
   ========================================================================== */

:root {
  /* Brand */
  --orange:        #f6a34d;
  --orange-light:  #ffab5e;
  --orange-dark:   #ff9635;
  --ink:           #22323d;
  --teal:          #007991;
  --navy:          #2e4a66;
  --grey:          #ecf0f2;
  --white:         #ffffff;

  --body-text:     #5b6a74;
  --muted-on-dark: rgb(255 255 255 / 0.81);

  /* Type */
  --font-heading: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1140px;
  --gutter: 24px;
  --header-h: 96px;

  --shadow: 0 18px 50px rgb(34 50 61 / 0.12);
  --radius: 8px;
}

/* --------------------------------------------------------------- Reset -- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--body-text);
  background: var(--white);
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  /* Dutch compounds get long — let them break rather than overflow. */
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.375rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h4 { font-size: clamp(1.25rem, 2.4vw, 1.667rem); }
h5 { font-size: 1.333rem; }
h6 { font-size: 1rem; }

p { margin: 0 0 1.25em; overflow-wrap: break-word; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }

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

/* ----------------------------------------------------------- Utilities -- */

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
}
.skip-link:focus { left: 8px; top: 8px; color: var(--white); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 .75rem;
}

/* Orange parallelogram rule — the divider used throughout the original site */
.rule {
  width: 80px;
  height: 6px;
  margin: 0 0 20px;
  background: repeating-linear-gradient(112deg,
              var(--orange) 0 10px, transparent 10px 20px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 15px 30px;
  border: 0;
  border-radius: 100px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .9333rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease;
}
.btn:hover,
.btn:focus-visible { background: var(--orange-dark); color: var(--white); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  padding: 0;
  border-radius: 0;
}
.btn--ghost:hover,
.btn--ghost:focus-visible { background: transparent; color: var(--orange); transform: none; }

.btn--outline {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.5);
}
.btn--outline:hover,
.btn--outline:focus-visible { background: var(--white); color: var(--ink); box-shadow: none; }

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .3s ease, box-shadow .3s ease, position .3s ease;
}

.site-header.is-stuck {
  position: fixed;
  background: var(--ink);
  box-shadow: 0 4px 24px rgb(34 50 61 / 0.28);
  animation: slide-down .3s ease;
}

@keyframes slide-down { from { transform: translateY(-100%); } to { transform: none; } }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo img { width: 190px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  color: var(--white);
  cursor: pointer;
}

.site-nav { display: flex; align-items: center; gap: 36px; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.btn) {
  color: var(--white);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.site-nav a:not(.btn):hover,
.site-nav a:not(.btn)[aria-current="page"] { color: var(--orange); border-bottom-color: var(--orange); }

@media (max-width: 900px) {
  :root { --header-h: 80px; }

  .nav-toggle { display: block; }
  .nav-toggle svg + svg { display: none; }
  .nav-toggle[aria-expanded="true"] svg { display: none; }
  .nav-toggle[aria-expanded="true"] svg + svg { display: block; }

  .site-nav {
    position: absolute;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--ink);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: flex; }

  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid rgb(255 255 255 / 0.1); }
  .site-nav a:not(.btn) { display: block; padding: 16px 0; border-bottom: 0; }
  .site-nav .btn { margin-top: 22px; justify-content: center; }
}

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

.hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + 96px) 0 120px;
  border-bottom-right-radius: 150px;
  overflow: hidden;
  background: linear-gradient(290deg, var(--teal) 50%, var(--navy) 100%);
  color: var(--white);
}

/* Speed lines lifted from the logo mark, as a soft background texture */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(112deg,
              rgb(255 255 255 / 0.05) 0 2px, transparent 2px 34px);
  pointer-events: none;
}

.hero__inner { max-width: 640px; }

.hero h1 { color: var(--white); margin-bottom: 1.5rem; }

.hero p { font-size: 1.1875rem; color: var(--white); margin-bottom: 2rem; }

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  color: var(--grey);
  letter-spacing: 1px;
}
.hero .eyebrow svg { color: var(--orange); flex: none; }

.hero--compact {
  padding: calc(var(--header-h) + 72px) 0 88px;
  border-bottom-right-radius: 110px;
}
.hero--compact h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }

@media (max-width: 767px) {
  .hero { padding: calc(var(--header-h) + 56px) 0 64px; border-bottom-right-radius: 75px; }
  .hero p { font-size: 1rem; }
}

/* ------------------------------------------------------------ Sections -- */

.section { padding: 100px 0; }
.section--tight { padding: 72px 0; }
.section--grey { background: var(--grey); }

.section--dark {
  position: relative;
  isolation: isolate;
  color: var(--white);
  background: linear-gradient(45deg, var(--teal) 0%, var(--navy) 85%);
}
.section--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(112deg,
              rgb(255 255 255 / 0.04) 0 2px, transparent 2px 34px);
  pointer-events: none;
}
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5, .section--dark h6 { color: var(--white); }
.section--dark p { color: var(--muted-on-dark); }

.section--flush-bottom { padding-bottom: 0; }

.actions { margin-top: 2rem; }

@media (max-width: 767px) {
  .section { padding: 60px 0; }
  .section--tight { padding: 48px 0; }
}

/* --------------------------------------------------- "Waarom wij?" grid -- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}

.feature-list { display: grid; gap: 34px; }

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  flex: none;
}

.feature h3 { font-size: 1.25rem; margin-bottom: .35em; }
.feature p { font-size: .9375rem; line-height: 1.7; }

@media (max-width: 480px) {
  .feature { grid-template-columns: 1fr; gap: 12px; }
}

/* ------------------------------------------------------ Service blocks -- */

.section-intro { max-width: 680px; margin-bottom: 48px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 767px) {
  .service-grid { grid-template-columns: 1fr; }
  .section-intro { margin-bottom: 36px; }
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 10px 30px rgb(34 50 61 / 0.06);
}
.service-card .feature__icon { width: 60px; height: 60px; margin-bottom: 22px; }
.service-card h3 { font-size: 1.375rem; }
.service-card p { font-size: .9375rem; line-height: 1.75; }

/* -------------------------------------------------------- Pillar cards -- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  padding-bottom: 80px;
}

@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; gap: 40px; padding-bottom: 56px; }
}

.pillar h3 { font-size: 1.667rem; }

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

.pillar li {
  position: relative;
  padding-left: 22px;
  margin-bottom: .6em;
  color: var(--muted-on-dark);
}
.pillar li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 2px;
  background: var(--orange);
}

/* ------------------------------------------------------------- CTA card -- */

.cta-card {
  background: var(--white);
  padding: 40px;
  max-width: 560px;
  box-shadow: var(--shadow);
}
.cta-card h2 { font-size: 1.667rem; color: var(--teal); }
.cta-card p { color: var(--body-text); }
.cta-card .eyebrow { color: var(--orange); }

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

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  /* Keep the cards a readable width instead of stretching them edge to edge. */
  max-width: 760px;
}

.contact-card {
  background: var(--white);
  border: 1px solid rgb(34 50 61 / 0.08);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.contact-card .feature__icon { margin-bottom: 18px; }
.contact-card h3 { font-size: 1.125rem; margin-bottom: .4em; }
.contact-card a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-card a:hover { color: var(--orange-dark); }

.detail-list { margin: 0; }
.detail-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid rgb(34 50 61 / 0.08);
}
.detail-list div:last-child { border-bottom: 0; }
.detail-list dt { font-weight: 600; color: var(--ink); min-width: 160px; margin: 0; }
.detail-list dd { margin: 0; }

/* --------------------------------------------------------------- Prose -- */

.prose { max-width: 760px; }
.prose h2 { font-size: 1.75rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.25em; }
.prose li { margin-bottom: .5em; }

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

.site-footer {
  background: var(--ink);
  color: rgb(255 255 255 / 0.72);
  padding: 64px 0 32px;
  font-size: .9375rem;
}

.site-footer a { color: rgb(255 255 255 / 0.72); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

@media (max-width: 767px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

.footer-top img { width: 200px; margin-bottom: 20px; }

.site-footer h2 {
  font-size: .875rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.1em;
}

.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: .6em; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: .875rem;
}
.footer-bottom p { margin: 0; }
