/* =========
   Basis
   ========= */

:root {
  --bg: #f7f7f7;
  --fg: #151515;
  --muted: #777777;
  --accent: #d32626;
  --card-bg: #ffffff;
  --border-soft: #e1e1e1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =========
   Links
   ========= */

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========
   Bovenrand
   ========= */

.page-border {
  width: 100%;
  height: 4px;
  background: var(--accent);
}

/* =========
   Taal-switch rechtsboven
   ========= */

.lang-switch {
  position: fixed;
  top: 10px;
  right: 24px;
  font-size: 12px;
  color: var(--muted);
  z-index: 20;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
}

.lang-switch a.active {
  color: var(--fg);
  font-weight: 500;
}

.lang-switch span {
  margin: 0 4px;
}

/* =========
   Containers
   ========= */

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========
   Header & hero
   ========= */

.site-header {
  padding: 48px 0 32px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 32px;
}

/* klein rood blokje linksboven + micro-animatie */
.logo-mark {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--accent);
  transform-origin: center;
  animation: logoPulse 2.1s ease-out 0.7s 1;
}

.header-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.small-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.small-label.muted {
  color: var(--muted);
}

.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
  max-width: 640px;
}

.hero-sub {
  margin: 0;
  max-width: 640px;
  font-size: 16px;
  color: var(--muted);
}

/* =========
   Secties
   ========= */

main {
  padding-bottom: 72px;
}

.section {
  padding: 36px 0;
}

/* basis + fade-in startstate */
.section-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;

  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.section-label.visible {
  opacity: 1;
  transform: translateY(0);
}

.text-block h2 {
  font-size: 24px;
  margin: 0 0 16px;
  line-height: 1.3;
}

.text-block h3 {
  font-size: 18px;
  margin: 28px 0 8px;
}

.text-block p {
  margin: 0 0 18px;
  font-size: 15px;
}

.text-block em {
  font-style: italic;
  color: var(--muted);
}

.text-block ul {
  padding-left: 18px;
  margin: 0 0 18px;
}

.text-block li {
  margin-bottom: 6px;
}

/* =========
   Grid "Wat ik doe" / "What I do"
   ========= */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* basis + fade-in startstate voor cards */
.card {
  background: var(--card-bg);
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  padding: 24px 22px 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);

  max-width: 320px;
  margin-left: auto;
  margin-right: auto;

  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card h2 {
  font-size: 18px;
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  font-size: 14px;
}

/* =========
   Contact
   ========= */

.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0;
  font-size: 15px;
}

.contact-label {
  min-width: 72px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* =========
   Responsief
   ========= */

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .lang-switch {
    position: static;
    padding: 10px 24px 0;
  }
}

/* =========
   Animaties
   ========= */

@keyframes logoPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(211, 38, 38, 0);
  }
  40% {
    transform: scale(1.18);
    box-shadow: 0 0 14px rgba(211, 38, 38, 0.35);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(211, 38, 38, 0);
  }
}
