/* -------------------------- */
/*      MENUKORT INTRO        */
/* -------------------------- */

.menu-intro {
    background: var(--green);
    position: relative;
    padding-top: 60px;
}



.menu-intro .wave-welcome {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  pointer-events: none;

}

.menu-intro h1 {
    color: var(--yellow-light);
    font-size: 64px;
    margin-bottom: 12px;
    text-align: center;
    margin-top: -30px;

}

.menu-intro p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.4;
    color: white;
    text-align: center;
}

/* -------------------------- */
/*          BUTTONS           */
/* -------------------------- */

.button-group {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.outline-btn {
    border: 2px solid var(--yellow-main);
    color: var(--text-dark);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    background-color: var(--yellow-main);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effects only on desktop */
@media (min-width: 900px) {
  .outline-btn:hover {
    background-color: transparent;
    color: var(--yellow-light);
    border: 2px solid var(--yellow-light);
  }
}
/* -------------------------- */
/*       UGEBASERET RET       */
/* -------------------------- */

.weekly {
    position: relative;
    background: var(--yellow-main);
    padding: 40px 22px;
    color: var(--green);
    margin-top: 80px;
}
.wave2 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    pointer-events: none;
  }

.weekly .wave2 {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(-80%); /* move up by half its height */
}

.weekly .wave3 {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    transform: translateY(80%);
    pointer-events: none;
}

.weekly h2 {
    margin-bottom: 2px;
    text-align: center;
    margin-top: -20px;
}

.availability {
    margin-bottom: 16px;
    text-align: left;
    margin-top: 0;
}

.weekly-img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.weekly h3 {
    margin-bottom: 0px;
    text-align: left;
}

.price {
    margin-bottom: 10px;
    margin-top: 0px;
    color: var(--green-dark);

}

.desc {
    line-height: 1.4;
    margin-top: 20px;
}

@media (min-width: 510px) {
  .weekly-img {
    max-width: 600px;
  }
}

@media (min-width: 900px) {
  .weekly {
    padding: 60px 80px;
    overflow-x: hidden;
  }

  .weekly-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 100%;
  }

  .weekly-text {
    flex: 1;
    order: 1;
    min-width: 0;
  }

  .weekly-img {
    flex: 1;
    order: 2;
    margin-bottom: 0;
    max-width: min(600px, 50%);
    width: 100%;
    height: auto;
  }
}


/* ========================================================= */
/* OVERLAY */
/* ========================================================= */
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    z-index: 20;
  }
  
  #overlay.show {
    opacity: 1;
    pointer-events: all;
  }
  
  /* ========================================================= */
  /* MENU MODAL */
  /* ========================================================= */
  #menuModal {
    position: fixed;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;                     /* Better for 402px screens */
    max-width: 402px;               /* LOCK the design to mobile width */
    max-height: 94vh;
    overflow-y: auto;
    background: transparent;
    border-radius: 16px;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    z-index: 30;
  }

  @media (min-width: 510px) {
    #menuModal {
      max-width: 480px;
    }
  }


  
  #menuModal.show {
    opacity: 1;
    pointer-events: all;
  }
  
  /* Remove extra margin when scrolling inside modal */
  #menuModal::-webkit-scrollbar {
    width: 6px;
  }
  
  /* ========================================================= */
  /* MENU PAGE IMAGES */
  /* ========================================================= */
  .menu-page {
    display: none;
    margin-top: 120px;
    position: relative;
  }
  
  .menu-page img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }

  .menu-close-x {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    cursor: pointer;
    z-index: 100;
    padding: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
  }

  .menu-close-x img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
  }

  .menu-close-x:hover {
    background: rgba(0, 0, 0, 0.8);
  }

  .menu-close-x:hover img {
    filter: brightness(1) saturate(2) ;
  }
  
  /* ========================================================= */
  /* NAVIGATION BUTTONS */
  /* ========================================================= */
  .menu-nav {
    display: flex;
    justify-content: space-between;
    margin: 16px 0;
    gap: 10px;
  }
  
  .menu-nav-btn {
    flex: 1;                         /* Buttons stretch equal */
    background: var(--yellow-main);
    border: 2px solid var(--yellow-main);
    padding: 14px 0;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
  }

  @media (min-width: 900px) {
    .menu-nav-btn:hover {
      background-color: transparent;
      color: var(--yellow-light);
      border: 2px solid var(--yellow-light);
    }
  }
  
  /* ========================================================= */
  /* CLOSE BUTTON */
  /* ========================================================= */
  .close-menu-btn {
    position: fixed;
    top: 3%;
    right: 3%;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .close-menu-btn img {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
  }

  .close-menu-btn:hover img {
    filter: brightness(1) saturate(1) hue-rotate(40deg);
  }
