
/* layout2.css */

/* voorkom H1UserAgentFontSizeInSection warning */
:where(h1) {
  margin-block: 0.67em;
  font-size: 2em;   /* kies wat bij jouw design past */
}


/* 1. Basis-reset en typografie */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #1f2933;
  background-color: #f7fafc;
}

/* 2. Container helpers */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

section {
  margin-bottom: 2.5rem;
}

/* 3. Navbar + menu */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: #0b1120; /* donkerblauw/zwart */
  color: #f9fafb;
}

/* Logo */
.navbar .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.navbar .logo h1 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #e5e7eb;
  font-size: 0.95rem;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links li a:hover,
.nav-links li a:focus {
  color: #f9fafb;
  background: rgba(148, 163, 184, 0.25);
}

/* CTA-style link in menu (optioneel) */
.nav-links li a.cta-link {
  background: #10b981;
  color: #0b1120;
  font-weight: 600;
}

.nav-links li a.cta-link:hover {
  background: #059669;
}

/* Hamburger */
.hamburger {
  display: none; /* desktop: verborgen */
  width: 2rem;
  height: 2rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #e5e7eb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Icon button (font-awesome) in nav als extra menu-icon */
button.icon {
  display: none; /* we gebruiken primair .hamburger */
  border: none;
  background: transparent;
  color: #e5e7eb;
  cursor: pointer;
}

/* 4. Hero-header */

header {
  position: relative;
  text-align: center;
  color: #f9fafb;
}

.hero {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  filter: brightness(0.55);  /* beeld donkerder = tekst leesbaarder */
}

header h2 {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.5rem 1rem;
  background: rgba(15, 23, 42, 0.55); /* lichtere overlay */
  border-radius: 999px;
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 600;
}

/* 5. Content-styling */

h2 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.75rem;
  color: #111827;
}

p {
  margin: 0.5rem 0 0.75rem;
  max-width: 70ch;
}

ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
}

ul li {
  margin-bottom: 0.25rem;
}

/* Features / plugin-lijst */
.feature {
  border-radius: 0.75rem;
  margin-top: 1rem;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.15);
}

/* 6. Buttons / CTA */

a.cta,
a.cta:visited {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  background: #2563eb;
  color: #f9fafb;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.1s ease,
    box-shadow 0.1s ease;
}

a.cta:hover,
a.cta:focus {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

/* 7. Footer */

footer {
  background: #0b1120;
  color: #9ca3af;
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
}

footer a {
  color: #e5e7eb;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* 8. Responsiveness */

@media (max-width: 900px) {
  main {
    padding-inline: 1rem;
  }

  header h2 {
    font-size: 1.1rem;
    bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex; /* mobiel: tonen */
  }

  /* Nav-links standaard verbergen op mobiel */
  .nav-links {
    position: absolute;
    top: 3.5rem;
    right: 1.5rem;
    background: #0b1120;
    border-radius: 0.5rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    min-width: 200px;
    display: none;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    width: 100%;
  }

  .nav-links.responsive {
    display: flex;
  }
}
