/* =========== Basis reset =========== */

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

/* =========== Pagina-opmaak =========== */

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6fb;
  color: #222;
}

/* Centrale “kaart” in het midden van de pagina */
.page {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem 2.5rem;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 35, 95, 0.08);
}

/* =========== Header =========== */

.header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e2e6f0;
  padding-bottom: 1.5rem;
}

.header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.header p {
  font-size: 0.95rem;
  color: #667085;
}

.logo {
  height: 60px;
  width: auto;
}

/* =========== Secties =========== */

section {
  margin-bottom: 2.5rem;
}

section:last-of-type {
  margin-bottom: 0;
}

section h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #1d2854;
}

/* =========== Grid met tegels =========== */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.2rem;
}

/* Individuele tegel */
.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.9rem 0.75rem;
  background: #f8fafc;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

/* Afbeelding in de tegel */
.app-card img {
  display: block;
  max-width: 150px;
  max-height: 150px;
  margin-bottom: 0.6rem;
}

/* Tekst onder het icoon */
.app-card span {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Hover-effect */
.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #d0d7f5;
  box-shadow: 0 6px 14px rgba(15, 35, 95, 0.12);
  outline: none;
}

/* Keyboard focus */
.app-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(80, 112, 255, 0.4);
}

/* =========== Footer =========== */

.footer {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid #e2e6f0;
  text-align: center;
  font-size: 0.85rem;
  color: #8b94b0;
}

/* =========== Responsief =========== */

@media (max-width: 600px) {
  .page {
    margin: 1rem;
    padding: 1.2rem 1rem;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    height: 48px;
  }
}
