:root {
  --primary: #1f4b5c;
  --primary-light: #2f6f86;
  --accent: #f4b400;
  --bg: #f7f7f7;
  --text: #222;
  --text-light: #555;
  --max-width: 1100px;
  --radius: 8px;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  height: 40px;
  width: auto;
}

.brand-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
}

nav a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.15rem;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #f0f6f8);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1.5rem;
}

.hero-content h1 {
  font-size: 2.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.hero-content h2 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-light);
  margin-top: 0;
}

.hero-content p {
  margin-top: 1rem;
  max-width: 34rem;
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-light);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid #d0d0d0;
}

.btn-secondary:hover {
  background: #f3f3f3;
}

.hero-photo-wrapper {
  display: flex;
  justify-content: center;
}

.hero-photo {
  width: 260px;
  max-width: 100%;
  border-radius: 999px;
  overflow: hidden;
  border: 4px solid #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Cards op homepage */

.section {
  margin-top: 2.5rem;
}

.section h3 {
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.card h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.card p {
  margin: 0;
}

/* Contentpagina's */

.page-header {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.page-header h1 {
  margin: 0;
  color: var(--primary);
}

.page-header p {
  margin-top: 0.5rem;
  color: var(--text-light);
}

.content-block {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.content-block h2 {
  margin-top: 0;
  color: var(--primary);
}

.content-block ul {
  padding-left: 1.2rem;
}

.content-block li {
  margin-bottom: 0.5rem;
}

/* Opvoedcursussen foto + tekst */

.media {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Over mij */

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.profile-photo {
  width: 100%;
  max-width: 260px;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Contactformulier */

form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.form-row {
  display: grid;
  gap: 0.5rem;
}

label {
  font-weight: 500;
  font-size: 0.95rem;
}

input,
textarea {
  padding: 0.6rem 0.7rem;
  border-radius: 6px;
  border: 1px solid #cccccc;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */

footer {
  margin-top: 3rem;
  border-top: 1px solid #e0e0e0;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Facebook link */

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

/* Responsive */

@media (max-width: 800px) {
  .hero,
  .media,
  .profile {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-photo-wrapper {
    order: -1;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
