/* ===========================
   MENU PAGE — britishbro 1:1 + brand colors
   =========================== */

.menu-page {
  background-color: #ffffff;
  min-height: 100vh;
}

/* ===========================
   MENU NAVBAR (simple: logo + burger)
   =========================== */
.menu-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #015d5a;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  box-sizing: border-box;
}

.menu-navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-navbar__brand-name {
  font-family: 'Comfortaa', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

.menu-navbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 36px;
}

.menu-navbar__logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.menu-navbar__burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-navbar__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile dropdown */
.menu-navbar__mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #015d5a;
  padding: 20px 40px;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 99;
}

.menu-navbar__mobile.open {
  display: flex;
}

.menu-navbar__mobile a {
  font-family: 'Comfortaa', sans-serif;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
}

.menu-navbar__mobile a:hover {
  color: #fcc601;
}

.menu-main {
  padding-top: 0;
}

/* ===========================
   STICKY TABS BAR
   =========================== */
.menu-tabs-wrap {
  position: sticky;
  top: 64px;
  z-index: 50;
  background-color: #ffffff;
  padding: 20px 40px 16px;
  border-bottom: 1px solid rgba(1,93,90,0.15);
}

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.menu-tab {
  font-family: 'Comfortaa', sans-serif;
  font-size: 14px;
  color: #015d5a;
  background-color: rgba(1,93,90,0.08);
  border: 1px solid rgba(1,93,90,0.25);
  border-radius: 30px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.menu-tab:hover {
  background-color: rgba(1,93,90,0.18);
}

.menu-tab--active {
  background-color: #015d5a;
  border-color: #015d5a;
  color: #ffffff;
  font-weight: 700;
}

/* ===========================
   CONTENT AREA
   =========================== */
.menu-content {
  padding-top: 40px;
  padding-bottom: 100px;
}

/* ===========================
   CATEGORY SECTION
   =========================== */
.menu-category {
  margin-bottom: 64px;
  scroll-margin-top: 145px;
}

.menu-category__title {
  font-family: 'Comfortaa', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #015d5a;
  margin: 0 0 24px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===========================
   DISHES GRID — 4 cols like britishbro
   =========================== */
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 0;
}

/* ===========================
   DISH CARD
   =========================== */
.dish-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: default;
}

.dish-card__img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #015d5a;
  border-radius: 12px;
}

.dish-card__img-placeholder {
  width: 100%;
  height: 100%;
  background-color: #015d5a;
}

.dish-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.dish-card__body {
  padding: 14px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.dish-card__name {
  font-family: 'Comfortaa', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #015d5a;
  line-height: 1.4;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.dish-card__desc {
  font-family: 'Comfortaa', sans-serif;
  font-size: 11px;
  color: rgba(1,93,90,0.6);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.dish-card__price {
  font-family: 'Comfortaa', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #FCC601;
}

.dish-card {
  cursor: pointer;
}

.menu-disclaimer {
  font-family: 'Comfortaa', sans-serif;
  font-size: 11px;
  color: rgba(1,93,90,0.4);
  text-align: center;
  padding: 12px 0 32px;
}

/* ===========================
   MODAL OVERLAY
   =========================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.modal-overlay--open {
  display: flex;
}

/* ===========================
   MODAL BOX
   =========================== */
.modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(1,93,90,0.1);
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #015d5a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}

.modal__close:hover {
  background: rgba(1,93,90,0.2);
}

.modal__img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #015d5a;
  flex-shrink: 0;
}

.modal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal__content {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.modal__name {
  font-family: 'Comfortaa', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #015d5a;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal__desc {
  font-family: 'Comfortaa', sans-serif;
  font-size: 13px;
  color: rgba(1,93,90,0.6);
  line-height: 1.6;
  margin: 0 0 24px 0;
}

/* ===========================
   MODAL SECTION
   =========================== */
.modal__section {
  margin-bottom: 18px;
}

.modal__section-title {
  font-family: 'Comfortaa', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #015d5a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px 0;
}

.modal__section-hint {
  font-weight: 400;
  text-transform: none;
  color: rgba(1,93,90,0.55);
  font-size: 11px;
}

/* ===========================
   SIZE OPTIONS
   =========================== */
.modal__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal__option {
  flex: 1 1 auto;
  min-width: 100px;
  border: 2px solid rgba(1,93,90,0.2);
  border-radius: 12px;
  background: #fff;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.2s, background 0.2s;
}

.modal__option:hover {
  border-color: #015d5a;
}

.modal__option--active {
  border-color: #015d5a;
  background: rgba(1,93,90,0.07);
}

.modal__option-label {
  font-family: 'Comfortaa', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #015d5a;
}

.modal__option-weight {
  font-family: 'Comfortaa', sans-serif;
  font-size: 11px;
  color: rgba(1,93,90,0.55);
}

.modal__option-price {
  font-family: 'Comfortaa', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #FCC601;
  margin-top: 2px;
}

/* ===========================
   EXTRAS
   =========================== */
.modal__extras {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal__extra {
  border: 2px solid rgba(1,93,90,0.2);
  border-radius: 30px;
  background: #fff;
  padding: 7px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.modal__extra:hover {
  border-color: #015d5a;
}

.modal__extra--active {
  border-color: #015d5a;
  background: rgba(1,93,90,0.08);
}

.modal__extra-name {
  font-family: 'Comfortaa', sans-serif;
  font-size: 13px;
  color: #015d5a;
}

.modal__extra-price {
  font-family: 'Comfortaa', sans-serif;
  font-size: 12px;
  color: #FCC601;
  font-weight: 700;
}

/* ===========================
   MODAL FOOTER
   =========================== */
.modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(1,93,90,0.12);
  gap: 16px;
}

.modal__total {
  font-family: 'Comfortaa', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #015d5a;
}

.modal__btn {
  background-color: #015d5a;
  color: #fff;
  font-family: 'Comfortaa', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 14px 28px;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.modal__btn:hover {
  background-color: #FCC601;
  color: #015d5a;
}

/* ===========================
   MODAL RESPONSIVE
   =========================== */
@media (max-width: 480px) {
  .modal__content {
    padding: 16px;
  }
  .modal__name {
    font-size: 17px;
  }
  .modal__footer {
    flex-direction: column;
    align-items: stretch;
  }
  .modal__btn {
    text-align: center;
  }
}

/* ===========================
   BACK BUTTON
   =========================== */
.navbar__yellow-btn--back {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===========================
   RESPONSIVE — TABLET ≤ 1100px
   =========================== */
@media (max-width: 1100px) {
  .menu-navbar {
    padding: 0 32px;
  }

  .dishes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .menu-tabs-wrap {
    padding: 14px 32px 12px;
  }

  .menu-content {
    padding-top: 32px;
    padding-bottom: 80px;
  }
}

/* ===========================
   RESPONSIVE — MOBILE ≤ 768px
   =========================== */
@media (max-width: 768px) {
  .menu-navbar {
    padding: 0 20px;
    height: 56px;
  }

  .menu-navbar__brand-name {
    font-size: 16px;
  }

  .menu-navbar__logo img {
    height: 30px;
  }

  /* Burger open animation */
  .menu-navbar__burger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-navbar__burger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .menu-navbar__burger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .menu-navbar__mobile {
    top: 56px;
    padding: 16px 20px 20px;
    gap: 14px;
  }

  /* Sticky tabs — horizontal scroll */
  .menu-tabs-wrap {
    top: 56px;
    padding: 10px 20px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .menu-tabs-wrap::-webkit-scrollbar { display: none; }

  .menu-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    width: max-content;
    min-width: 100%;
  }

  .menu-tab {
    font-size: 13px;
    padding: 8px 16px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Dishes grid — 2 cols */
  .dishes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .dish-card__img-wrap {
    border-radius: 10px;
  }

  .dish-card__img-wrap img {
    border-radius: 10px;
  }

  .dish-card__name { font-size: 11px; }
  .dish-card__price { font-size: 13px; }

  .menu-content {
    padding-top: 20px;
    padding-bottom: 60px;
  }

  .menu-category {
    margin-bottom: 44px;
    scroll-margin-top: 110px;
  }

  .menu-category__title {
    font-size: 22px;
    margin-bottom: 16px;
  }

  /* Modal — full-screen bottom sheet */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal {
    max-width: 100%;
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    animation: modalSlideUp 0.3s ease;
  }

  @keyframes modalSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  .modal__img-wrap {
    aspect-ratio: 4 / 3;
    border-radius: 20px 20px 0 0;
  }

  .modal__name { font-size: 17px; }
  .modal__desc { font-size: 12px; margin-bottom: 18px; }

  .modal__content { padding: 18px 20px 24px; }

  .modal__footer {
    flex-direction: row;
    align-items: center;
  }

  .modal__total { font-size: 20px; }

  .modal__btn {
    padding: 12px 20px;
    font-size: 13px;
  }

  .menu-disclaimer {
    padding: 8px 20px 24px;
  }
}

/* ===========================
   RESPONSIVE — SMALL ≤ 480px
   =========================== */
@media (max-width: 480px) {
  .menu-navbar {
    padding: 0 16px;
  }

  .menu-navbar__mobile {
    padding: 14px 16px 18px;
  }

  .menu-tabs-wrap {
    padding: 8px 16px;
  }

  .menu-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dishes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .dish-card__body { padding: 10px 0 0; }

  .modal__content { padding: 14px 16px 20px; }
}
