html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  line-height: 1.6;
  background: #222;
  color: #fff;
  overflow-x: hidden;
}

section {
  scroll-margin-top: 4rem;
  padding: 3rem 1rem;
  max-width: 900px;
  margin: auto;
}

h2 {
  color: #76b5c5;
  border-bottom: 2px solid #76b5c5;
  display: inline-block;
  text-align: center;
  width: 100%;
}

/* NAVIGATIE */
.main-nav {
  background: #111;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-logo-img {
  height: 40px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 1rem;
  margin: 0 auto;
}

.main-menu {
  margin-left: auto;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
}

.main-menu li {
  margin: 0.5rem;
}

.main-menu li a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: inline-block;
}

.main-menu li a:hover {
  background: #333;
  border-radius: 5px;
}

/* HEADER */
header {
  background: url('https://frituur-tastoe.be/_include/img/frituur/full/image-02-full.jpg') center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo {
  max-width: 80%;
  height: auto;
}

/* INHOUD */
.openingsuren, .contact {
  background: #333;
  padding: 2rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.center-text {
  text-align: center;
}

.omgeving-fotos,
.foto-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.omgeving-fotos img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  max-height: 250px;
  cursor: pointer;
}

.foto-rij {
  display: flex;
  gap: 1rem;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* FORMULIER */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
textarea {
  padding: 0.75rem;
  border-radius: 5px;
  border: none;
  width: 100%;
}

button[type="submit"] {
  background: #76b5c5;
  color: white;
  padding: 0.75rem;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

button[type="submit"]:hover {
  background: #5aa2b2;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-button {
  text-align: center;
  margin-top: 1rem;
}

.contact-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  text-align: left;
}

.contact-col {
  flex: 1 1 300px;
}

/* FOOTER & BUTTON */
footer {
  text-align: center;
  padding: 2rem;
  background: #111;
  color: white;
}

a {
  color: #76b5c5;
  text-decoration: none;
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #76b5c5;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  display: none;
  z-index: 999;
}

/* COOKIE */
.cookie-banner {
  transition: opacity 0.5s ease;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #000;
  color: white;
  padding: 1rem;
  text-align: center;
  z-index: 1001;
}

.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
}

body:not(.cookie-blocked) * {
  pointer-events: auto !important;
  opacity: 1 !important;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .main-nav {
    flex-direction: column;
    align-items: center;
  }

  .menu-toggle {
    display: block;
  }

  .main-menu {
    display: none;
    flex-direction: column;
    background: #111;
    width: 100%;
    align-items: center;
  }

  .main-menu.active {
    display: flex;
  }

  .main-menu li {
    margin: 0.5rem 0;
  }

  .nav-logo {
    display: none;
  }
}

@media (max-width: 400px) {
  .nav-logo {
    display: none;
  }
}
