/* ============================================
   CCV Modellen Tool — Prototype Stylesheet
   Gebaseerd op hetccv.nl/tool-oaov/ design
   ============================================ */

/* --- Font --- */
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
  font-style: normal;
}

/* --- CSS Custom Properties --- */
:root {
  --blue-100: #e2f2fa;
  --blue-300: #c4e5f4;
  --blue-500: #008fcc;
  --blue-800: #07074c;
  --red-500: #c60f0f;
  --red-700: #9a0000;
  --grey-100: #e4e9e9;
  --grey-300: #aab2b5;
  --grey-500: #4a585b;
  --white: #ffffff;
  --success: #1bb934;

  --font-family: 'Satoshi', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow: 0 0px 1.3px #07074c0d, 0 0px 10px #07074c1a;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  font-size: clamp(1.0625rem, 0.953rem + 0.469vw, 1.275rem);
  line-height: 1.6;
  color: var(--grey-500);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-500); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red-700); }
a:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }

h1, h2, h3, h4 { color: var(--blue-800); line-height: 1.2; font-weight: 900; text-wrap: balance; }
h1 { font-size: clamp(2.44rem, 1.95rem + 2.1vw, 3.4rem); }
h2 { font-size: clamp(1.49rem, 1.38rem + 0.47vw, 1.7rem); }
h3 { font-size: clamp(1.06rem, 0.95rem + 0.47vw, 1.275rem); }
h4 { font-size: clamp(0.96rem, 0.9rem + 0.24vw, 1.06rem); }
p + p { margin-top: 1rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --- Wrapper (matches CCV) --- */
.wrapper {
  margin-inline: auto;
  width: min(100% - 3rem, 68.75rem);
}

.wrapper--narrow {
  width: min(100% - 3rem, 48rem);
}

/* --- Header --- */
.header {
  padding: 1.25rem 0;
  background: var(--white);
}

.header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img {
  height: 1.5rem;
}

.header__nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.header__nav a {
  color: var(--grey-500);
  font-weight: 700;
  font-size: clamp(0.85rem, 0.79rem + 0.24vw, 0.96rem);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--blue-800);
  border-bottom-color: var(--blue-500);
}

/* --- Badge --- */
.badge {
  display: inline-block;
  background: var(--blue-300);
  padding: 0.25rem 1rem;
  border-radius: 1.5rem;
  font-size: clamp(0.85rem, 0.79rem + 0.24vw, 0.96rem);
  color: var(--blue-800);
  font-weight: 400;
  margin-bottom: 1.75rem;
}

/* --- Hero (OAOV style: 2-column) --- */
.hero {
  padding-top: clamp(1.5rem, 1rem + 2vw, 3rem);
}

.hero__inner {
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.hero__left h1 {
  margin-bottom: 4rem;
}

.hero__right p {
  color: var(--grey-500);
  line-height: 1.7;
}

/* Decorative stripes (CCV motif) */
.hero__artifact {
  display: none;
  width: 100%;
  color: var(--blue-500);
  pointer-events: none;
}

.hero__artifact svg {
  width: 100%;
}

/* --- Tiles (link-expertise style) --- */
.tiles {
  padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0 clamp(3rem, 2rem + 3vw, 5rem);
}

.tiles h2 {
  margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem);
}

.tiles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr));
  gap: 0.75rem;
}

.tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  height: 5rem;
  padding: 0.25rem 1.25rem;
  border: 2px solid var(--blue-800);
  border-radius: 0.375rem;
  text-decoration: none;
  transition: border-color 0.2s;
}

.tile:hover {
  border-color: var(--blue-500);
}

.tile span {
  color: var(--blue-800);
  font-weight: 900;
  font-size: clamp(1.06rem, 0.95rem + 0.47vw, 1.275rem);
  line-height: 1.25;
}

.tile__icon {
  flex-shrink: 0;
  color: var(--red-500);
  transition: color 0.2s;
}

.tile:hover .tile__icon {
  color: var(--red-700);
}

.tile__icon svg {
  width: 1rem;
}

/* --- Buttons --- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-family);
  font-size: clamp(0.96rem, 0.9rem + 0.24vw, 1.06rem);
  font-weight: 700;
  border-radius: 0.375rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1.4;
}

.button:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }

.button--primary {
  background: var(--blue-500);
  color: var(--white);
  border-color: var(--blue-500);
}
.button--primary:hover { background: #007ab3; border-color: #007ab3; color: var(--white); }

.button--secondary {
  background: transparent;
  color: var(--blue-800);
  border-color: var(--blue-800);
}
.button--secondary:hover { border-color: var(--blue-500); color: var(--blue-500); }

.button--lg {
  padding: 1rem 2rem;
  font-size: clamp(1.06rem, 0.95rem + 0.47vw, 1.275rem);
}

.button:disabled,
.button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.button__icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

/* --- Section --- */
.section {
  padding: clamp(3rem, 2rem + 3vw, 5rem) 0;
}

.section--blue {
  background: var(--blue-100);
}

.section__header {
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem);
}

.section__header p {
  margin-top: 0.75rem;
  color: var(--grey-500);
}

/* --- Features --- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1rem, 0.5rem + 2vw, 2rem);
}

.feature {
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: 0.375rem;
}

.feature__icon {
  width: 3rem;
  height: 3rem;
  background: var(--blue-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--blue-500);
}

.feature__icon svg { width: 1.25rem; height: 1.25rem; }
.feature h4 { margin-bottom: 0.5rem; }
.feature p { font-size: clamp(0.85rem, 0.79rem + 0.24vw, 0.96rem); }

/* --- Cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: 0.375rem;
  padding: 2rem;
  transition: all 0.2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.card:hover { border-color: var(--blue-300); box-shadow: var(--shadow); }

.card__icon {
  width: 3rem;
  height: 3rem;
  background: var(--blue-100);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--blue-500);
}

.card__icon svg { width: 1.5rem; height: 1.5rem; }
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--grey-500); flex-grow: 1; margin-bottom: 1.25rem; }

.card__link {
  color: var(--red-500);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.card__link svg { width: 1rem; height: 1rem; transition: transform 0.2s; }
.card:hover .card__link svg { transform: translateX(4px); }

/* --- Wizard / Progress --- */
.wizard {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

.progress-bar {
  background: var(--blue-100);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--blue-300);
}

.progress-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-step__number {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: clamp(0.85rem, 0.79rem + 0.24vw, 0.96rem);
  border: 2px solid var(--grey-300);
  color: var(--grey-300);
  background: var(--white);
  transition: all 0.3s;
}

.progress-step--active .progress-step__number {
  border-color: var(--blue-500);
  background: var(--blue-500);
  color: var(--white);
}

.progress-step--completed .progress-step__number {
  border-color: var(--success);
  background: var(--success);
  color: var(--white);
}

.progress-step__label {
  font-size: clamp(0.85rem, 0.79rem + 0.24vw, 0.96rem);
  color: var(--grey-300);
  font-weight: 700;
  display: none;
}

.progress-step--active .progress-step__label { color: var(--blue-800); display: inline; }
.progress-step--completed .progress-step__label { color: var(--grey-500); }

.progress-step__connector {
  width: 2.5rem;
  height: 2px;
  background: var(--grey-300);
  transition: background 0.3s;
}

/* --- Question --- */
.question {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.question__inner {
  width: 100%;
  max-width: 44rem;
}

.question__category {
  display: inline-block;
  background: var(--blue-300);
  color: var(--blue-800);
  font-size: clamp(0.85rem, 0.79rem + 0.24vw, 0.96rem);
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 1.5rem;
  margin-bottom: 1rem;
}

.question h2 { margin-bottom: 2rem; }

/* --- Radio Options --- */
.options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.option { position: relative; }
.option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }

.option__label {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--grey-100);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.5;
}

.option__label:hover { border-color: var(--blue-300); background: var(--blue-100); }
.option input[type="radio"]:checked + .option__label { border-color: var(--blue-500); background: var(--blue-100); }
.option input[type="radio"]:focus-visible + .option__label { outline: 2px solid var(--blue-500); outline-offset: 2px; }

.option__radio {
  width: 1.375rem;
  height: 1.375rem;
  min-width: 1.375rem;
  border-radius: 50%;
  border: 2px solid var(--grey-300);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all 0.2s;
}

.option__radio::after {
  content: '';
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--blue-500);
  transform: scale(0);
  transition: transform 0.2s;
}

.option input[type="radio"]:checked + .option__label .option__radio { border-color: var(--blue-500); }
.option input[type="radio"]:checked + .option__label .option__radio::after { transform: scale(1); }

/* --- Wizard Nav --- */
.wizard__nav {
  padding: 1.5rem 0;
  border-top: 1px solid var(--grey-100);
  background: var(--white);
}

.wizard__nav .wrapper { display: flex; justify-content: space-between; align-items: center; }

.step-indicator {
  font-size: clamp(0.85rem, 0.79rem + 0.24vw, 0.96rem);
  color: var(--grey-300);
  font-weight: 700;
}

/* --- Summary --- */
.summary { max-width: 44rem; margin: 0 auto; padding: 3rem 1.5rem; }
.summary h2 { margin-bottom: 2rem; }

.summary__item { padding: 1.25rem 0; border-bottom: 1px solid var(--grey-100); }
.summary__item:last-child { border-bottom: none; }

.summary__label {
  font-size: clamp(0.85rem, 0.79rem + 0.24vw, 0.96rem);
  color: var(--grey-300);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.summary__value { color: var(--blue-800); font-weight: 700; }

.summary__edit {
  font-size: clamp(0.85rem, 0.79rem + 0.24vw, 0.96rem);
  color: var(--blue-500);
  cursor: pointer;
  margin-top: 0.5rem;
  display: inline-block;
}

.summary__actions { margin-top: 2rem; display: flex; gap: 1rem; }

/* --- Results --- */
.results { padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0; }

.results__header { text-align: center; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.results__header h1 { margin-bottom: 1rem; }
.results__header p { color: var(--grey-500); }

.results__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }

.results__chart {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: 0.375rem;
  padding: 2rem;
  position: sticky;
  top: 6rem;
}

.results__chart h3 { margin-bottom: 1.5rem; text-align: center; }

.results__advice { display: flex; flex-direction: column; gap: 1.5rem; }

.advice-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: 0.375rem;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.advice-card:hover { border-color: var(--blue-300); }

.advice-card__header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }

.advice-card__number {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--blue-100);
  color: var(--blue-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: clamp(0.85rem, 0.79rem + 0.24vw, 0.96rem);
  flex-shrink: 0;
}

.advice-card__score {
  margin-left: auto;
  background: var(--blue-100);
  color: var(--blue-500);
  padding: 0.25rem 0.75rem;
  border-radius: 1.5rem;
  font-weight: 700;
  font-size: clamp(0.85rem, 0.79rem + 0.24vw, 0.96rem);
}

.advice-card h4 { margin-bottom: 0.75rem; }
.advice-card p { font-size: clamp(0.85rem, 0.79rem + 0.24vw, 0.96rem); line-height: 1.7; }

.results__actions { text-align: center; padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) 0; display: flex; justify-content: center; gap: 1rem; }

/* --- Answers Summary --- */
.answers-summary {
  background: var(--blue-100);
  border-radius: 0.375rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.answers-summary h3 { margin-bottom: 1rem; }

.answers-summary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.answers-summary__item { font-size: clamp(0.85rem, 0.79rem + 0.24vw, 0.96rem); }
.answers-summary__label { color: var(--grey-300); font-weight: 700; display: block; margin-bottom: 0.25rem; }
.answers-summary__value { color: var(--blue-800); }

/* --- Footer --- */
.footer {
  background: var(--blue-500);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: clamp(2rem, 1.5rem + 2vw, 3rem) 0;
  position: relative;
  z-index: 2;
}

.footer__brand { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__brand img { height: 1.5rem; }
.footer__brand span { font-size: clamp(0.85rem, 0.79rem + 0.24vw, 0.96rem); }

.footer__right {
  text-align: right;
  font-size: clamp(0.85rem, 0.79rem + 0.24vw, 0.96rem);
  opacity: 0.8;
}

/* Decorative stripes in footer */
.footer__artifact {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  opacity: 0.1;
  z-index: 1;
  transform: translateX(40%);
}

/* --- Responsive --- */
@media (min-width: 768px) {
  .header__logo img { height: 2.25rem; }

  .hero__grid {
    grid-template-columns: 5fr 7fr;
    gap: 2rem;
    align-items: start;
  }

  .hero__artifact { display: block; }

  .tiles__grid { gap: 1.5rem; }
}

@media (min-width: 1024px) {
  .tiles__grid {
    grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .results__grid { grid-template-columns: 1fr; }
  .results__chart { position: static; }
  .header__nav { display: none; }
  .progress-step__label { display: none !important; }
  .progress-step__connector { width: 1.25rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}
