:root {
  --bg-1: linear-gradient(135deg, #f0f7ff 0%, #e6fff8 100%);
  --accent: #0ea5a4;
  --accent-2: #1fa2ff;
  --muted: #6b7280;
  --text: #0f172a;
  --card-bg: rgb(255 255 255 / 60%);
  --radius: 12px;
  --container: 1100px;
  --header-h: 64px;

  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .4s ease, color .2s ease;
}

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

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgb(255 255 255 / 90%), rgb(255 255 255 / 70%));
  z-index: 9999;
  transition: opacity .6s ease, visibility .6s ease
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden
}

.spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 6px solid rgb(0 0 0 / 6%);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1100;

  /* hoog genoeg zodat het boven andere elementen staat */
  background: rgb(255 255 255 / 85%);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgb(15 23 42 / 4%);
}

/* header inner hoogte forceren zodat content netjes centreert */
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.brand {
  font-weight: 800;
  color: var(--text);
  text-decoration: none
}

.main-nav {
  display: flex;
  gap: 1rem
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  padding: 0.35rem 0.6rem;
  border-radius: 8px
}

.main-nav a:hover {
  background: rgb(15 23 42 / 5%)
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.45rem
}

/* reserveer ruimte zodat content niet onder de fixed header verschijnt */
body {
  padding-top: var(--header-h);
}

/* Hero */
.section-large {
  padding: 4rem 0
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 2rem
}

.hero-text {
  flex: 1
}

.hero h1 {
  font-size: clamp(1.6rem, 3.8vw, 2.8rem);
  margin: 0 0 .6rem
}

.hero h1 span {
  color: var(--accent-2)
}

.lead {
  color: var(--muted);
  margin-bottom: 1rem
}

.cta-row {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap
}

.btn {
  display: inline-block;
  padding: .6rem 1.1rem;
  border-radius: 9px;
  background: var(--accent-2);
  color: #fff;
  text-decoration: none;
  font-weight: 600
}

.btn:hover {
  transform: translateY(-2px)
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgb(15 23 42 / 8%);
  color: var(--text)
}

.hero-art {
  width: 320px;
  flex: 0 0 320px
}

/* Sections */
.section {
  padding: 2.6rem 0
}

.alt {
  background: linear-gradient(180deg, rgb(255 255 255 / 60%), rgb(255 255 255 / 40%));
  border-top: 1px solid rgb(15 23 42 / 3%);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem
}

.card {
  background: var(--card-bg);
  padding: 1.1rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgb(12 16 24 / 4%)
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.2rem;
  align-items: start
}

.contact-card {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: .6rem
}

.contact-card input,
.contact-card textarea {
  padding: .6rem;
  border-radius: 8px;
  border: 1px solid rgb(10 10 10 / 6%);
  background: transparent
}

/* Footer */
.site-footer {
  padding: 1.2rem 0;
  color: var(--muted);
  text-align: center
}

/* Error pages simple layout */
.simple-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: var(--bg-1)
}

.error-page {
  padding: 2rem
}

.error-inner {
  text-align: center;
  background: rgb(255 255 255 / 70%);
  padding: 2rem;
  border-radius: 12px
}

.error-inner h1 {
  font-size: 4rem;
  margin: 0
}

.error-links {
  margin-top: 1rem
}

.hero-image {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgb(0 0 0 / 15%);
}

#email-target {
  display: none;
  margin-top: 0.8rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent);
  padding: 0.8rem 1rem;
  border: 1px solid rgb(15 23 42 / 8%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 70%);
  box-shadow: 0 4px 12px rgb(0 0 0 / 6%);
  animation: fade-in 0.4s ease;
}

#email-target a {
  color: var(--accent-2);
  text-decoration: none;
}

#email-target a:hover {
  text-decoration: underline;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}


/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease
}

.reveal.in-view {
  opacity: 1;
  transform: none
}

/* When page loaded add subtle fade for elements */
body.loaded .hero,
body.loaded .card {
  transition: opacity .6s ease, transform .6s ease
}

/* Responsive */
@media (width <=900px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    align-items: center;
  }

  .hero-art {
    flex: none;
    margin: 0 auto;
    width: 220px;
  }

  .hero-image {
    width: 100%;
    height: auto;
  }

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

  .grid {
    grid-template-columns: 1fr
  }

  .contact-inner {
    grid-template-columns: 1fr
  }

  .main-nav {
    position: fixed;
    right: 12px;
    top: 64px;
    flex-direction: column;
    background: rgb(255 255 255 / 98%);
    padding: 0.8rem;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgb(12 16 24 / 6%);
    display: none
  }

  .main-nav.open {
    display: flex
  }

  .menu-toggle {
    display: block
  }

  #email-target {
    align-items: center;
  }
}