/* ============================================
   J. Castermans – Shared Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

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

:root {
  --blauw:        #192950;
  --blauw-licht:  #004aad;
  --accent:       #4169e1;
  --accent-licht: #dce7fb;
  --wit:          #ffffff;
  --grijs-licht:  #f4f6fb;
  --grijs:        #e2e8f0;
  --tekst:        #192950;
  --tekst-zacht:  #545454;
  --radius:       12px;
  --shadow:       0 4px 24px rgba(25,41,80,0.12);
  --nav-h:        90px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--tekst);
  background: var(--wit);
  line-height: 1.7;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(25,41,80,0.97);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  border-bottom: 1px solid rgba(65,105,225,0.2);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  color: var(--wit);
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--wit) !important;
  padding: 0.48rem 1.15rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: #304fc0 !important; transform: translateY(-1px) !important; }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  margin: -8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--wit);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.actief span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.actief span:nth-child(2) { opacity: 0; }
.nav-toggle.actief span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* LAYOUT */
section { padding: 90px 5%; }
.container { max-width: 1180px; margin: 0 auto; }
.pt-nav { padding-top: calc(var(--nav-h) + 70px); }

/* TYPOGRAPHY HELPERS */
.sectie-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.sectie-titel {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  color: var(--blauw);
  line-height: 1.22;
  margin-bottom: 1.1rem;
}

.sectie-tekst {
  color: var(--tekst-zacht);
  font-size: 1rem;
  font-weight: 300;
  max-width: 580px;
}

/* BUTTONS */
.btn-primair {
  background: var(--accent);
  color: var(--wit);
  padding: 0.88rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 4px 14px rgba(65,105,225,0.35);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-primair:hover {
  background: #304fc0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(65,105,225,0.45);
}

.btn-secundair {
  border: 1.5px solid var(--grijs);
  color: var(--blauw);
  padding: 0.88rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-secundair:hover { border-color: var(--accent); background: var(--grijs-licht); }

.btn-wit {
  border: 2px solid rgba(255,255,255,0.55);
  color: var(--wit);
  padding: 0.88rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-wit:hover { border-color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.12); }

/* CARDS */
.kaart {
  background: var(--wit);
  border: 1px solid var(--grijs);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.kaart:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

/* FORM */
.form-groep { display: flex; flex-direction: column; gap: 0.35rem; }
.form-groep label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--tekst-zacht);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.form-groep input,
.form-groep select,
.form-groep textarea {
  padding: 0.78rem 1rem;
  border: 1.5px solid var(--grijs);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--tekst);
  background: var(--wit);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-groep input:focus,
.form-groep select:focus,
.form-groep textarea:focus { border-color: var(--accent); }
.form-groep textarea { resize: vertical; min-height: 130px; }
.form-rij { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* FOOTER */
footer {
  background: var(--blauw);
  color: rgba(255,255,255,0.65);
  padding: 4rem 5% 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1180px;
  margin: 0 auto 3rem;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--wit);
  margin-bottom: 0.75rem;
  display: block;
}
.footer-logo span { color: var(--accent); }
.footer-omschrijving {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}
.footer-contact-item a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--accent); }
.footer-kolom h4 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.footer-kolom ul { list-style: none; }
.footer-kolom ul li { margin-bottom: 0.55rem; }
.footer-kolom ul a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-kolom ul a:hover { color: var(--accent); }
.footer-balk {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  font-size: 0.82rem;
}
.footer-balk a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-balk a:hover { color: var(--accent); }
.footer-balk-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.zichtbaar { opacity: 1; transform: translateY(0); }

/* RESPONSIVE – tablet */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--blauw);
    padding: 1rem 5% 1.5rem;
    gap: 0;
    border-top: 1px solid rgba(65,105,225,0.2);
    box-shadow: 0 8px 32px rgba(25,41,80,0.3);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.9);
  }
  .nav-links.open li:last-child a {
    border-bottom: none;
    margin-top: 0.5rem;
    background: var(--accent);
    text-align: center;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    font-weight: 600;
  }
  .form-rij { grid-template-columns: 1fr; }
}

/* RESPONSIVE – mobiel */
@media (max-width: 600px) {
  section { padding: 60px 4%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-balk { flex-direction: column; align-items: flex-start; }
  .btn-primair, .btn-secundair, .btn-wit {
    width: 100%;
    justify-content: center;
  }
}

/* LOGO AFBEELDING */
.nav-logo-img {
  height: 65px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-logo-img {
  height: 68px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 0.75rem;
}
.footer-logo-img:hover { opacity: 1; }
