/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --color-navy:        #223c4e;
  --color-teal:        #536c7c;
  --color-white:       #ffffff;

  --font-heading: 'Alice', Georgia, serif;
  --font-body:    'Work Sans', system-ui, sans-serif;

  --max-width: 1200px;
  --section-padding: 5rem 2rem;
  --border-radius: 8px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-navy);
  background: var(--color-white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--color-teal); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }

p + p { margin-top: 1rem; }
ul, ol { padding-left: 1.5rem; }
li + li { margin-top: 0.4rem; }

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

.section { padding: var(--section-padding); }
.section--pb-sm { padding-bottom: 1.5rem; }
.section--pt-sm { padding-top: 1.5rem; }
.section--navy { background: var(--color-navy); color: var(--color-white); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: var(--color-white); }
.section--teal { background: var(--color-teal); color: var(--color-white); }
.section--teal h1, .section--teal h2, .section--teal h3, .section--teal h4 { color: var(--color-white); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}
.btn--primary {
  background: #E4E7B6;
  color: #192340;
  border-color: #E4E7B6;
}
.btn--primary:hover { background: #f0f2d0; border-color: #f0f2d0; }

.btn--secondary {
  background: #536C7C;
  color: #E4E7B6;
  border-color: #E4E7B6;
}
.btn--secondary:hover { background: #3d5261; }

.btn--dark {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn--dark:hover { background: var(--color-navy); }

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  background: var(--color-navy);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 80px;
}

.logo { height: 50px; width: auto; }
.logo-link { flex-shrink: 0; }

header nav {
  display: flex;
  align-items: center;
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

header nav li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

header nav a {
  text-decoration: none;
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
header nav a:hover,
header nav a[aria-current="page"] {
  border-bottom-color: var(--color-teal);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.2s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  header nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--color-navy);
    padding: 1.5rem 2rem 2rem;
  }
  header nav.open { display: block; }
  header nav ul { flex-direction: column; gap: 1rem; }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  background: var(--color-navy);
  background-image: url('/assets/images/hero_image.png');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 7rem 2rem;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 40, 0.65);
}
.hero-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  color: var(--color-white);
}
.hero h1 { color: var(--color-white); margin-bottom: 1.5rem; }
.hero p  { font-size: 1.15rem; margin-bottom: 2rem; color: hsl(64, 52%, 90%); }

/* =============================================
   GRID CARDS
   ============================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: center;
}

.card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.card--dark {
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.15);
}
.card--dark h3 { color: var(--color-white); }
.card h3 { margin-bottom: 0.75rem; }

/* =============================================
   STEPS
   ============================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  counter-reset: steps;
}
.step { counter-increment: steps; color: inherit; }
.step::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--color-teal);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.5rem; }

/* =============================================
   TRAINING CARDS (Aanbod)
   ============================================= */
.training-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  color: var(--color-white);
}
.training-card__price {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-white);
  margin: 1.5rem 0 0.5rem;
}
.training-card h3, .training-card h4 { color: var(--color-white); margin-bottom: 0.75rem; }
.training-card .btn { margin-top: 1.5rem; align-self: flex-start; }
.training-card ul, .training-card ol { margin-bottom: 1rem; }
.training-card .tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-details {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}
@media (max-width: 600px) { .contact-details { flex-direction: column; } }

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-form { max-width: 640px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-group label { font-weight: 500; font-size: 0.9rem; }
.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-teal);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-white);
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-navy);
}
.form-group textarea { min-height: 160px; resize: vertical; }

@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* =============================================
   REASONS LIST (homepage Why section)
   ============================================= */
.reasons-list { display: flex; flex-direction: column; gap: 2rem; max-width: 780px; }
.reason h3 { margin-bottom: 0.4rem; }

/* =============================================
   ABOUT HOME (homepage About section)
   ============================================= */
.about-home-grid {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-home-photo img { width: 100%; max-width: 220px; }

@media (max-width: 900px) {
  .about-home-grid { grid-template-columns: 1fr 1fr; }
  .about-home-photo { grid-column: 1 / -1; }
  .about-home-photo img { max-width: 300px; }
}
@media (max-width: 600px) {
  .about-home-grid { grid-template-columns: 1fr; }
}

/* =============================================
   PROFILE / ABOUT (over-mij page)
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 4rem;
  align-items: start;
}
.about-photo { border-radius: var(--border-radius); }
.certifications { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin-top: 2rem; }
.certifications img { height: 80px; width: auto; }

@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }

/* =============================================
   PROJECTS
   ============================================= */
.project-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.project-images figure { text-align: center; }
.project-images figcaption {
  font-size: 0.85rem;
  color: var(--color-teal);
  margin-top: 0.5rem;
}
.project-images img { border-radius: var(--border-radius); border: 1px solid hsl(204, 20%, 88%); }

@media (max-width: 600px) { .project-images { grid-template-columns: 1fr; } }

/* =============================================
   LEGAL PAGES
   ============================================= */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.legal-content h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; }
.legal-content h3 { margin-top: 1.75rem; margin-bottom: 0.5rem; }
.legal-content p, .legal-content ul, .legal-content ol { margin-bottom: 1rem; }

/* =============================================
   SECTION TITLES
   ============================================= */
.section-title { margin-bottom: 3rem; }
.section-title h2 { margin-bottom: 0.75rem; }
.section-title p { max-width: 680px; font-size: 1.05rem; color: inherit; opacity: 0.85; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { height: 48px; width: auto; margin-bottom: 1rem; }
.footer-nav ul, .footer-legal ul { list-style: none; padding: 0; }
.footer-nav li + li, .footer-legal li + li { margin-top: 0.5rem; }
.footer-nav a, .footer-legal a, .footer-contact a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer-nav a:hover, .footer-legal a:hover, .footer-contact a:hover { opacity: 1; }
.footer-contact p { font-size: 0.9rem; margin-bottom: 0.4rem; }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social img { height: 24px; width: auto; }
.footer-btw { font-size: 0.8rem; opacity: 0.55; margin-top: 1rem; }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* =============================================
   SKIP LINK
   ============================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-white);
  color: var(--color-navy);
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  font-weight: 600;
  z-index: 999;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* =============================================
   UTILITIES
   ============================================= */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
