/* YorrData — Modern Light Theme with Dark Green */

/* ── Lokaal gehoste Inter font (AVG-compliant, geen Google verbinding) ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-v20-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-v20-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-v20-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/inter-v20-latin-800.woff2') format('woff2');
}

:root {
  --green-900: #0f3d2e;
  --green-800: #145239;
  --green-700: #1a6b4a;
  --green-600: #1f7d55;
  --green-500: #27996a;
  --green-400: #3db87f;
  --green-100: #e6f5ed;
  --green-50: #f0faf5;

  --gray-900: #1a1a1a;
  --gray-700: #404040;
  --gray-500: #737373;
  --gray-300: #d4d4d4;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --gray-50: #fafafa;

  --white: #ffffff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1120px;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --transition: 0.25s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-500); }

h1, h2, h3, h4 {
  color: var(--green-900);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.75rem; letter-spacing: -0.03em; }
h2 { font-size: 2rem; letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; }

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }

/* ─── Header / Nav ─── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.logo span { color: var(--green-600); }

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-600);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links a:hover,
.nav-links a.active { color: var(--green-800); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gray-700); margin: 5px 0; transition: var(--transition); }

/* ─── Hero ─── */
.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(170deg, var(--green-50) 0%, var(--white) 60%);
}

.hero-content { max-width: 720px; }

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

.hero p {
  font-size: 1.2rem;
  color: var(--gray-500);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--green-700);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-800); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: transparent;
  color: var(--green-700);
  border: 1.5px solid var(--green-700);
}
.btn-secondary:hover { background: var(--green-50); }

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── Sections ─── */
section { padding: 5rem 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-header p {
  margin-top: 1rem;
  color: var(--gray-500);
  font-size: 1.1rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-600);
  margin-bottom: 0.75rem;
}

.bg-light { background: var(--gray-50); }
.bg-green-light { background: var(--green-50); }

/* ─── Cards ─── */
.card-grid {
  display: grid;
  gap: 1.5rem;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--green-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--green-700);
  font-size: 1.4rem;
}

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

.card p { color: var(--gray-500); font-size: 0.95rem; }

/* ─── Feature list ─── */
.feature-list { list-style: none; }

.feature-list li {
  padding: 0.6rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--gray-700);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
}

/* ─── Situations (Home) ─── */
.situations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.situation-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 4px solid var(--green-600);
}

.situation-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--green-800);
}

.situation-card p { font-size: 0.95rem; color: var(--gray-500); }

/* ─── Diensten detail ─── */
.dienst-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.dienst-block:last-child { border-bottom: none; }

.dienst-block.reverse { direction: rtl; }
.dienst-block.reverse > * { direction: ltr; }

.dienst-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--green-100);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.dienst-content h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.dienst-content p { margin-bottom: 1rem; }

.dienst-visual {
  background: var(--green-50);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  font-size: 4rem;
}

/* ─── Klanten logo grid ─── */
.klanten-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.klant-logo {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  min-height: 100px;
}

.klant-logo:hover {
  border-color: var(--green-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.klant-logo img {
  width: 100%;
  max-width: 170px;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition);
}

.klant-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ─── Contact form ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(26,107,74,0.1);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.contact-info-card {
  background: var(--green-50);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.contact-info-card h3 { margin-bottom: 1.5rem; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--green-100);
}

.contact-detail:last-child { border-bottom: none; }

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  flex-shrink: 0;
}

/* ─── Hero with illustration ─── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
}

/* ─── Dienst visual with illustrations ─── */
.dienst-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.dienst-visual.has-img {
  padding: 1rem;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

/* ─── Section image banner ─── */
.section-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2rem;
  box-shadow: var(--shadow-md);
}

.section-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* ─── Footer ─── */
footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

footer .logo { color: var(--white); }
footer .logo span { color: var(--green-400); }

footer a { color: rgba(255,255,255,0.7); }
footer a:hover { color: var(--white); }

.footer-links { display: flex; gap: 2rem; list-style: none; font-size: 0.9rem; }

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-legal-info {
  display: flex;
  gap: 2rem;
}

.footer-legal-info span {
  white-space: nowrap;
}

/* ─── CTA Banner ─── */
.cta-banner {
  background: var(--green-900);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; font-size: 1.1rem; }

.cta-banner .btn-primary {
  background: var(--white);
  color: var(--green-900);
}
.cta-banner .btn-primary:hover { background: var(--green-50); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  section { padding: 3.5rem 0; }
  .hero { padding: 4rem 0 3rem; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem 2rem;
    gap: 1rem;
    box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: block; }

  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
  .klanten-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .situations { grid-template-columns: 1fr; }
  .dienst-block, .dienst-block.reverse { grid-template-columns: 1fr; direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }

  .hero-split { grid-template-columns: 1fr; }
  .hero-image { display: none; }

  .footer-main { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-legal { flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer-legal-info { justify-content: center; flex-wrap: wrap; gap: 1rem; }

  .scan-question h2 { font-size: 1.4rem; }
  .scan-option { padding: 1rem; }
  .scan-result-header { flex-direction: column; text-align: center; }
  .scan-score-ring { margin: 0 auto; }
}

/* ─── Kennisbank categorie filters ─── */
.kb-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.kb-filter {
  padding: 0.45rem 1rem;
  border-radius: 20px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-500);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.kb-filter:hover {
  border-color: var(--green-400);
  color: var(--green-700);
}

.kb-filter.active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}

.kb-card {
  transition: all 0.3s ease;
}

/* ─── Power BI Volwassenheidsscan ─── */
.scan-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.scan-progress {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.scan-progress-bar {
  height: 100%;
  background: var(--green-600);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.scan-progress-text {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.scan-question {
  display: none;
}

.scan-question.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.scan-question h2 {
  margin-bottom: 0.5rem;
}

.scan-subtitle {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.scan-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scan-option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: all var(--transition);
}

.scan-option:hover {
  border-color: var(--green-400);
  background: var(--green-50);
}

.scan-option.selected {
  border-color: var(--green-600);
  background: var(--green-50);
  box-shadow: 0 0 0 3px rgba(26,107,74,0.1);
}

.scan-option-score {
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gray-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.scan-option.selected .scan-option-score {
  background: var(--green-600);
  color: var(--white);
}

.scan-option-text {
  display: block;
  flex: 1;
  text-align: left;
}

.scan-option strong {
  display: block;
  color: var(--green-900);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.scan-option-text > span {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.4;
}

.scan-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.scan-nav .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ─── Scan Results ─── */
.scan-result-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.scan-score-ring {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.scan-score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: var(--gray-200);
  stroke-width: 8;
}

.ring-fill {
  fill: none;
  stroke: var(--green-600);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease, stroke 0.3s ease;
}

.scan-score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.scan-score-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-900);
  line-height: 1;
}

.scan-score-label {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.scan-result-intro h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.scan-result-intro p {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.6;
}

.scan-result-intro a {
  color: var(--green-600);
  font-weight: 500;
}

/* Breakdown */
.scan-breakdown {
  margin-bottom: 2.5rem;
}

.scan-breakdown-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.scan-breakdown-item:last-child {
  border-bottom: none;
}

.scan-breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.scan-breakdown-header strong {
  color: var(--green-900);
  font-size: 0.95rem;
}

.scan-level-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.scan-bar-track {
  height: 6px;
  background: var(--gray-100);
  border-radius: 3px;
  overflow: hidden;
}

.scan-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* Email opt-in */
.scan-optin {
  background: var(--white);
  border: 1.5px solid var(--green-400);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.scan-optin-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  margin: 0 auto 1rem;
}

.scan-optin h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.scan-optin p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.scan-optin input:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(26,107,74,0.1);
}

/* CTA */
.scan-result-cta {
  background: var(--green-50);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.scan-result-cta h3 {
  margin-bottom: 0.5rem;
}

.scan-result-cta p {
  color: var(--gray-500);
  font-size: 0.95rem;
}

.scan-result-cta .btn {
  display: inline-flex;
}
