/* ================================
   1. RESET & BASIS
================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;              /* basis typografie */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

/* ================================
   2. TYPOGRAFIE
================================ */

h1, h2, h3, h4 {
  line-height: 1.3;
  margin: 0 0 1rem;
}

p {
  margin: 0 0 1rem;
}

/* ================================
   3. LAYOUT CONTAINERS
================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Flex & Grid helpers */
.flex {
  display: flex;
  gap: 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

/* ================================
   4. NAVIGATIE (mobile-first)
================================ */

nav {
  background: #f5f5f5;
  padding: 1rem;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;   /* mobiel */
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
}

/* ================================
   5. RESPONSIVE IMAGES
================================ */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================================
   6. COMPONENTEN
================================ */

.card {
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 8px;
  background: #fff;
}

/* ================================
   7. BREAKPOINTS
================================ */

/* Tablet */
@media (min-width: 600px) {
  nav ul {
    flex-direction: row;       /* horizontaal menu */
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Kleine laptop */
@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop */
@media (min-width: 1200px) {
  html {
    font-size: 17px;           /* subtiele typografie-upgrade */
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
