/* ============================
RESET
============================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* ============================
BASIS
============================ */

body {
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  color: #2b2b2b;
  background-color: #fdfaf5;
  position: relative;
  overflow-x: hidden;
}

/* CONTENT LAAG BOVEN DECOR */
header,
main,
footer {
  position: relative;
  z-index: 2;
}

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

ul {
  list-style: none;
}

/* ============================
NAV
============================ */

header nav ul {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  align-items: center;
  padding: 0.5rem;
  background-color: #badff9;
}

header a {
  color: black;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;

  position: relative;
  padding-bottom: 4px;
}

/* underline basis */
header a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #0077cc;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

/* SLIDE EFFECT */
header a:hover::after {
  transform: scaleX(1);
}

/* ============================
HAMBURGER
============================ */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: black;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* MOBILE MENU */
@media (max-width: 1000px) {
  .hamburger {
    display: flex;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
  }

  header {
    position: relative;
  }

  header nav ul {
    flex-direction: column;
    align-items: flex-start;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: 0.3s ease;
  }

  header nav ul.open {
    max-height: 400px;
    padding: 3rem 1rem 1rem;
  }
}

/* hamburger animatie */
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================
MAIN
============================ */

main {
  padding: 1rem;
}

section {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* ============================
TYPO
============================ */

h1 {
  font-size: 2rem;
  color: #2b6cb0;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.3rem;
  color: #2b6cb0;
  margin-bottom: 0.75rem;
}

h3 {
  margin-top: 1rem;
  color: #444;
}

p,
address {
  margin-bottom: 0.75rem;
}

address {
  font-style: normal;
}

/* ============================
SECTIONS
============================ */

#openingsuren {
  background: #dff5ff;
  text-align: center;
}

#openingsuren p {
  font-size: 1.8rem;
  font-weight: bold;
  color: #2b6cb0;
}

#over-ons {
  background: #fff8dc;
}

#opening {
  background: #ffe9d6;
  text-align: center;
}

#opening h2 {
  color: #e67e22;
}

#veelgestelde-vragen h2 {
  font-size: 1.1rem;
  margin-top: 1rem;
}

#contact {
  background: #e8f8f5;
}
#contact p a {
  background-color: #2b6cb0;
  text-decoration: none;
  color: #e8f8f5;
  font-weight: bold;
  font-size: small;
  padding: 0.5rem;
  border-top-right-radius: 1rem;
  border-bottom-left-radius: 1rem;
  box-shadow:
    0 8px 12px rgba(0, 0, 0, 0.5) /* dieptelaag */,
    0 0 0 2px rgba(255, 255, 255, 0.05) inset; /* subtiele rand */

  transition:
    transform 0.2s ease,
    background-color 0.5s ease;
}
#contact p a:hover {
  background-color: darkblue;
  transform: translateY(-3px) scale(1.06);
}
#contact h3 {
  margin-bottom: 0.5rem;
}
/* ============================
MAP
============================ */

.map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

/* ============================
FOOTER
============================ */

footer {
  background: #2b6cb0;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* ======================= 
TERUG NAAR BOVEN BUTTON 
========================== */
#backToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;

  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background-color: #badff9;
  color: #2b6cb0;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);

  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s,
    background-color 0.3s ease,
    transform 0.3s ease;
}

#backToTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#backToTopBtn:hover {
  background-color: #2b6cb0;
  transform: scale(1.1);
  color: #badff9;
}

/* ============================
TABLET
============================ */

@media (min-width: 742px) {
  main {
    max-width: 900px;
    margin: auto;
    padding: 2rem;
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 1.6rem;
  }
}

/* ============================
DECORATIEVE SVG ZIJKANTEN
============================ */

@media (min-width: 1200px) {
  body::before,
  body::after {
    content: "";
    position: fixed;
    top: 0;
    width: 250px;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    background-repeat: no-repeat;
  }

  /* LINKS */
  body::before {
    left: 0;

    background-image:
      url(images/baby-svgrepo-com.svg), url(images/heart-svgrepo-com.svg),
      url(images/rainbow-svgrepo-com.svg), url(images/star-svgrepo-com.svg),
      url(images/sun-svgrepo-com.svg), url(images/teddy-bear-svgrepo-com.svg),
      url(images/baby-svgrepo-com.svg), url(images/heart-svgrepo-com.svg),
      url(images/rainbow-svgrepo-com.svg), url(images/star-svgrepo-com.svg),
      url(images/sun-svgrepo-com.svg), url(images/teddy-bear-svgrepo-com.svg);

    background-size:
      70px, 60px, 90px, 85px, 65px, 70px, 70px, 60px, 90px, 85px, 65px, 70px;

    background-position:
      50px 40px,
      80px 150px,
      30px 220px,
      60px 350px,
      20px 480px,
      70px 550px,
      50px 680px,
      80px 790px,
      30px 860px,
      60px 990px,
      20px 1120px,
      70px 1190px;
  }

  /* RECHTS */
  body::after {
    right: 0;
    background-image:
      url(images/baby-svgrepo-com.svg), url(images/heart-svgrepo-com.svg),
      url(images/rainbow-svgrepo-com.svg), url(images/star-svgrepo-com.svg),
      url(images/sun-svgrepo-com.svg), url(images/teddy-bear-svgrepo-com.svg),
      url(images/baby-svgrepo-com.svg), url(images/heart-svgrepo-com.svg),
      url(images/rainbow-svgrepo-com.svg), url(images/star-svgrepo-com.svg),
      url(images/sun-svgrepo-com.svg), url(images/teddy-bear-svgrepo-com.svg);

    background-size:
      70px, 75px, 90px, 60px, 65px, 80px, 70px, 75px, 90px, 60px, 65px, 80px;

    background-position:
      120px 550px,
      80px 450px,
      110px 320px,
      70px 250px,
      120px 150px,
      60px 40px,
      120px 1150px,
      80px 1050px,
      110px 920px,
      70px 850px,
      120px 750px,
      60px 640px;
  }
}
