@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap');

body {
  background-color: white;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300; /* Light */
  color: #024A20;   /* FIX: was ##024A20 */
  font-size: 25px;
}

header {
  --text: #e7F6eF;
  --text-inverse: orange;
  --background: #024A20; /* FIX: added semicolon */

  position: absolute;
  left: 0;
  right: 0;
  z-index: 999;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 2em 3em;
  transition: background 250ms ease-in;

  background: var(--background);
  color: var(--text);

  margin-top: 425px;
}

/* Mobile header spacing (kept your values) */
@media (max-width: 450px) {
  header {
    padding: 20px 15px;
    justify-content: unset;
    background-color:#024A20; /* FIX: was ##024A20 */
    margin-top: 825px;

  }
}

@media (max-width: 1100px) {
  header {
    padding: 20px 15px;
    justify-content: unset;
    background-color: #024A20; /* FIX: was ##024A20 */
    margin-top: 825px;

  }
}

/* Menu icon */
#menu_icon {
  display: none;
  position: relative;
  left: 0px;
}

@media (max-width: 450px) {
  #menu_icon {
    display: block;
    position: relative;
    left: 110px;
  }
}

/* Close button */
#closebtn {
  color: #f3f3f3;
  display: none;
  text-decoration: none;
  font-size: 40px;
}

@media (max-width: 450px) {
  #closebtn {
    position: relative;
    left: 110px;
    top: 5px;
    list-style: none;
  }
}

/* NAV LIST */
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Desktop: push CTA buttons to the right */
.nav__list-item--push {
  margin-left: auto;
}

/* Space ONLY between Email and Wordt klant (15px) */
.nav__list-item--push + .nav__list-item {
  margin-left: 15px;
}

/* Link styling */
.nav__link {
  --spacing: 1em;
  text-decoration: none;
  color: inherit;
  display: inline-block;
  padding: calc(var(--spacing) / 2) var(--spacing);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

/* Underline animation for normal links */
.nav__link:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: var(--spacing);
  right: var(--spacing);
  height: 2px;
  background: currentColor;

  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  transition: transform 150ms ease-in-out;
}

.nav__link:hover::after {
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

/* BUTTON LINKS */
.nav__btn {
  border: 1.5px solid currentColor;
  border-radius: 2em;
  padding: 0.6em 1.4em;
  display: inline-flex;
  align-items: center;
}

/* Disable underline effect on buttons */
.nav__btn::after {
  display: none;
}

.nav__btn--primary {
  background: orange;
  color: white;
  border-color: orange;
}

/* Optional hover */
.nav__btn--primary:hover {
  background: #ff8c00;
}

/* NAV scroll state (used by JS IntersectionObserver) */
.nav-scrolled {
  --text: #e7F6eF;
  --text-inverse: orange;
  --background: none ; /*was #024A20 */

  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.2);
  margin-top: 0;
  position: fixed;
  color: #e7F6eF;
}

/* MOBILE NAV BEHAVIOR
   We do NOT hide nav permanently anymore.
   We hide it by default via "is-closed" class (set by JS on load),
   and show it when "is-open" is applied.
*/
@media (max-width: 1100px) {/*was voorheen 450*/
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav__list-item--push {
    margin-left: 0;
    margin-top: 10px;
  }

  /* Closed by default */
  .sidenav.is-closed {
    display: none;
  }

  /* Opened */
  .sidenav.is-open {
    display: flex;
  }
}

/* Flags (kept) */
.flag {
  height: 20px;
  width: 30px;
  margin: 0px 7px;
}

@media (max-width: 450px) {
  .flag {
    height: 20px;
    width: 30px;
    margin: 0px 7px;
  }
}

/* Intro section */
.home-intro {
  padding: 40px 0;
  background-color: white;
  text-align: center;
  z-index: 2000;
}

.home-intro-image {
  height: 270px;
}

.subtitle {
  color: #024A20;
  margin-top: 20px;
  margin-bottom: 20px;
}

@media (max-width: 450px) {
  .subtitle { font-size: 14px; }
}

@media (max-width: 1200px) {
  .home-intro { padding: 45px 0; }
}

@media (max-width: 600px) {
  .home-intro { padding: 6px 0; }
}

@media (max-width: 600px) {
  header { margin-top: 350px; }
}

@media (max-width: 450px) {
  .home-intro {
    padding: 20px 0;
    font-size: 12px;
  }
}


@media (max-width: 450px) {
  .text-intro { font-size: 13px; }
}

/*deze is toegevoegd om de buttons uit te lijnen*/
@media (max-width: 450px) {

  /* make ALL items take full width so left edge is identical */
  .nav__list-item {
    width: 100%;
  }

  /* make links fill the item */
  .nav__link {
    display: block;
    width: 100%;
  }

  /* keep buttons aligned with text links */
  .nav__btn {
    display: block;
    text-align: left;
  }

}

@media (max-width: 450px) {

  /* cancel the desktop 15px spacing on mobile */
  .nav__list-item--push + .nav__list-item {
    margin-left: 0;
  }

}

.h4 { color: #7cd858; }

.text-intro-h3 {
  color: #024A20;
  margin-top: 150px;
  margin-left: 0px;
  margin-right: 0px;
  padding-left: 35px;
  padding-right: 0px;
}

.main-picture {
  float: left;
  margin-left: 35px;
  margin-right: 35px;
  margin-bottom: 12px;
  width: calc(100% - 70px);
  object-fit: cover;
}

.text-intro {
  color: black;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  margin-left: 0px;
  margin-right: 0px;
  padding-left: 35px;
  padding-right: 35px;
}

@media (max-width: 450px) {
  .text-intro { font-size: 13px; }
}

/*deze is toegevoegd om de buttons uit te lijnen*/
@media (max-width: 450px) {

  /* make ALL items take full width so left edge is identical */
  .nav__list-item {
    width: 100%;
  }}

 @media (max-width: 450px) {
  /* show hamburger on mobile */
  #menu_icon {
    display: block;
    position: relative;
    left: 110px;
  }

/* extra spacing between Email and Wordt klant on mobile */
.nav__btn + .nav__btn {
  margin-top: 15px;
}

  /* menu list layout when it IS open */
  .sidenav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* CLOSED by default on mobile */
  .sidenav.is-closed {
    display: none;
  }

  /* OPEN state */
  .sidenav.is-open {
    display: flex;
  }

  /* disable desktop push on mobile */
  .nav__list-item--push {
    margin-left: 0;
    margin-top: 10px;
  }

  /* IMPORTANT: remove desktop-only 15px push on mobile (this fixed your alignment issue) */
  .nav__list-item--push + .nav__list-item {
    margin-left: 0;
  }

  /* Keep buttons hugging text (NOT full width) */
  .nav__btn {
    display: inline-flex;
    width: auto;
  }
}

/* Footer */
.picture-in-text {
  display: block;
  width: 75%;
  margin: auto;
}

.footer {
  background-color: black;
  color: #318F6D;
  padding: 45px;
  margin: 60px 0 0 0;
  width: 100%;
  box-sizing: border-box;

  clear: both; /* IMPORTANT because .main-picture is floated */
}

.footer-links {
list-style: none;
padding: 0;


}

.footer-tekst {
  color: inherit;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  margin-right: 0px;
  font-size: 14px;
}

.footer-copyright {
  font-size: 16px;
  margin-left: 15px;
}

@media (max-width: 450px) {
    .text-intro-h3 {
        font-size: 16px;
        margin-top: 75px;
    }
}

