/* src/sass/menu.sass */
/* Color tokens shared by all pages */
:root {
  /* Home tokens */
  --mint-green: #99e2d0;
  --light-blue: #eafBff;
  --sky: #89c8fa;
  --soft-blue: #c5e2f8;
  --pale-blue: #d5f0f8;
  --purple: #9356DC;
  --pink: #FF79DA;
  --dark-gray: #353535;
  --text-gray: #666;
  /* Menu tokens (kept for completeness) */
  --mint: #99e2d0;
  --footer: #353535;
}

/* Base reset + shared page wrapper */
html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", sans-serif;
  color: #111;
}

.page {
  width: 100%;
  max-width: 375px;
  margin: 0 auto;
}

/* Menu page background */
body {
  background: #f6f6f6;
}

/* ===== Header (back button + centered logo) ===== */
.header {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.back-btn {
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
}

.back-icon {
  width: 30px;
  height: 30px;
  display: block;
}

.logo-img {
  height: 32px;
  display: block;
}

/* ===== Restaurant Photo ===== */
.restaurant-photo {
  width: 100%;
  height: 275px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.restaurant-photo img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
}

/* ===== Menu Sheet (curved) ===== */
.menu-sheet {
  width: 100%;
  position: relative;
  z-index: 2;
  margin-top: -40px;
  background: #f6f6f6;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -2px 0 rgba(0, 0, 0, 0.03), 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 45px 13px 0;
  box-sizing: border-box;
}

/* ===== Name + Heart ===== */
.restaurant-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 341px;
  height: 27px;
}

.restaurant-name h1 {
  font-family: "Shrikhand", cursive;
  font-size: 28px;
  font-weight: 400;
  line-height: 100%;
  padding-left: 4px;
  margin: 0;
}

/* Heart */
.heart {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  width: 22px;
  height: 22px;
  padding: 0;
}

.heart__icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  z-index: 1;
}

.heart__icon--filled {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.8s ease;
}

.heart:hover .heart__icon--filled {
  opacity: 1;
}

/* ===== Sections ===== */
.menu {
  padding-top: 40px;
}

.menu-heading {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 300;
  text-transform: uppercase;
  color: #2d2d2d;
  width: -moz-max-content;
  width: max-content;
  position: relative;
}

.menu-heading::after {
  content: "";
  display: block;
  height: 4px;
  width: 40px;
  margin-top: 5px;
  background: var(--mint);
}

/* ===== Dish cards ===== */
.dish {
  width: 349px;
  height: 69px;
  margin: 0 auto 12px;
  background: #fff;
  border-radius: 15px;
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* text truncation */
.dish__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.dish__name,
.dish__desc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dish__name {
  margin: 0 0 5px;
  font-weight: 500;
  font-size: 18px;
  line-height: 100%;
  color: #111;
}

.dish__desc {
  margin: 0;
  font-weight: 300;
  font-size: 15px;
  line-height: 100%;
  color: #666;
}

.dish__price {
  padding-top: 24px;
  margin-left: 12px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  color: #111;
}

/* Entrance animation */
.dish {
  opacity: 0;
  transform: translateY(8px);
  animation: dish-in 0.5s ease forwards;
}

/* Keyframes: fade & rise */
@keyframes dish-in {
  to {
    opacity: 1;
    transform: none;
    /* back to normal position */
  }
}

/* --- Stagger animation timing ---
 nth-child() delays each dish slightly
 so they appear one after another instead of all at once */
/* Starters = 2nd <section> */
.menu:nth-of-type(2) .dish:nth-of-type(1) {
  animation-delay: .05s;
}

.menu:nth-of-type(2) .dish:nth-of-type(2) {
  animation-delay: .15s;
}

.menu:nth-of-type(2) .dish:nth-of-type(3) {
  animation-delay: .25s;
}

.menu:nth-of-type(2) .dish:nth-of-type(4) {
  animation-delay: .35s;
}

/* Stagger timings — Mains (3rd .menu) */
.menu:nth-of-type(3) .dish:nth-of-type(1) {
  animation-delay: .45s;
}

.menu:nth-of-type(3) .dish:nth-of-type(2) {
  animation-delay: .55s;
}

.menu:nth-of-type(3) .dish:nth-of-type(3) {
  animation-delay: .65s;
}

/* Stagger timings — Desserts (4th .menu) */
.menu:nth-of-type(4) .dish:nth-of-type(1) {
  animation-delay: .85s;
}

.menu:nth-of-type(4) .dish:nth-of-type(2) {
  animation-delay: .95s;
}

.menu:nth-of-type(4) .dish:nth-of-type(3) {
  animation-delay: 1.05s;
}

/* ===== Order Button ===== */
.order-row {
  display: flex;
  justify-content: center;
  padding-bottom: 40px;
  padding-top: 28px;
}

.btn {
  width: 186px;
  height: 50px;
  padding: 16px 73px 15px;
  border: 0;
  border-radius: 999px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: filter 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, var(--pink), var(--purple));
  box-shadow: 0 8px 18px rgba(147, 86, 220, 0.25), 0 2px 4px rgba(0, 0, 0, 0.12);
}

.btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 26px rgba(147, 86, 220, 0.33), 0 4px 8px rgba(0, 0, 0, 0.14);
}

/* ===== Desktop (menu page) ===== */
@media (min-width: 1024px) {
  .page {
    max-width: 1440px;
  }

  .header {
    height: 96px;
  }

  .logo-img {
    height: 40px;
  }

  .restaurant-photo {
    height: 360px;
  }

  .menu-sheet {
    max-width: 1055px;
    margin: -40px auto 0;
    border-radius: 38px 38px 0 0;
    padding: 48px 48px 0;
    background: #f6f6f6;
  }

  .restaurant-name {
    width: 100%;
    height: auto;
    justify-content: center;
    position: relative;
  }

  .restaurant-name h1 {
    font-size: 28px;
    font-weight: 400;
    padding-left: 0;
  }

  .restaurant-name .heart {
    position: absolute;
    right: 0;
    padding-right: 300px;
  }

  .menu {
    padding-top: 40px;
  }

  .menu-heading {
    font-size: 16px;
    letter-spacing: 0.5px;
    margin: 0 0 0 162px;
    position: relative;
  }

  .dish {
    width: 635px;
    height: 69px;
    margin: 12px auto 0;
    padding: 15px;
    position: relative;
    overflow: hidden;
  }

  .dish__name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
  }

  .dish__desc {
    font-size: 15px;
    font-weight: 300;
  }

  .dish__price {
    padding-top: 22px;
    font-size: 15px;
    font-weight: 700;
    position: relative;
    transition: transform 0.35s ease;
  }

  .dish__check {
    position: absolute;
    top: 0;
    right: 0;
    width: 59px;
    height: 69px;
    background: var(--mint);
    border-radius: 0 15px 15px 0;
    display: grid;
    place-items: center;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    pointer-events: none;
  }

  .dish:hover .dish__check {
    transform: translateX(0);
  }

  .dish:hover .dish__price {
    transform: translateX(-60px);
  }
}

/* ===== Footer (mobile) ===== */
.footer {
  width: 100%;
  max-width: 375px;
  max-height: 186px;
  background: var(--dark-gray);
  color: #fff;
  padding: 22px 25px;
  box-sizing: border-box;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__brand {
  font-family: "Shrikhand", cursive;
  font-size: 18px;
  font-weight: 400;
  margin: 0;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.footer__links a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__icon {
  width: 15px;
  height: 15px;
  display: block;
}

/* ===== Footer desktop ===== */
@media (min-width: 1024px) {
  .footer {
    max-width: 100%;
    padding: 45px 25px;
  }

  .footer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 30px;
  }

  .footer__links {
    display: flex;
    gap: 32px;
    margin-left: 500px;
    padding: 0;
    list-style: none;
  }

  .footer__brand {
    margin: 0;
    font-family: "Shrikhand", cursive;
    font-size: 18px;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
  }
}

/*# sourceMappingURL=menu.css.map */