/* ==========================================================================
   Menu page — category tabs and the drink cards inside each panel.
   menu-tabs.js shows one panel at a time; the rest carry the hidden attribute.
   ========================================================================== */

/* Page heading ------------------------------------------------------------ */

.menu {
  padding: clamp(76px, 10vw, 140px) 6vw;
  background: #f8f5ed;
}

.menu-heading {
  max-width: 740px;
  margin-bottom: 72px;
}

.menu-heading > p:last-child {
  margin: 0;
  color: #586c59;
  font-size: 1.2rem;
  line-height: 1.7;
}

/* Category tabs ----------------------------------------------------------- */
/* The row scrolls sideways rather than wrapping, so the tabs stay on one line. */

.menu-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0 0 38px;
  padding: 4px 2px 14px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #8fa88d transparent;
}

.menu-tab {
  flex: 0 0 auto;
  padding: 11px 18px;
  border: 1px solid #9eb29b;
  border-radius: 999px;
  background: #fffdf7;
  color: var(--green);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease,
    transform 180ms ease;
}

.menu-tab:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

.menu-tab:focus-visible {
  outline: 3px solid var(--focus-on-light);
  outline-offset: 3px;
}

.menu-tab.is-active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

/* Category panels --------------------------------------------------------- */

/* Only one panel is visible at a time, so every panel sits the same distance
   below the tab row. */
.menu-category {
  margin-top: 0;
}

.menu-category[hidden] {
  display: none;
}

.menu-category h2 {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #cbd5c6;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Drink cards ------------------------------------------------------------- */

.menu-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid #dce3d7;
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: 0 10px 30px rgba(24, 59, 28, 0.05);
}

.menu-photo {
  display: block;
  width: 112px;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
  object-position: center;
  border-right: 1px solid #dce3d7;
}

/* The right padding reserves room for the absolutely positioned price. */
.item-copy {
  position: relative;
  padding: 18px 68px 16px 18px;
}

.item-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.2;
}

.item-copy strong {
  position: absolute;
  top: 18px;
  right: 16px;
  color: #996417;
}

.item-copy p {
  margin: 8px 0 0;
  color: #6b786b;
  font-size: 0.82rem;
  line-height: 1.4;
}

/* Signature drinks get a warmer card to set them apart. */
.signature-category .menu-item {
  border-color: #d2c39c;
  background: #fffaf0;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 760px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
}

/* On the narrowest screens the price drops below the drink name, so the card
   no longer needs to reserve space for it on the right. */
@media (max-width: 480px) {
  .menu {
    padding-inline: 20px;
  }

  .menu-heading {
    margin-bottom: 50px;
  }

  .item-copy {
    padding: 20px 18px;
  }

  .item-copy h3 {
    font-size: 1.12rem;
  }

  .item-copy strong {
    position: static;
    display: block;
    margin-top: 6px;
  }
}
