/* Paper + gold-leaf menu theme, derived from the printed café menu */

/* Home page "Special Menu" — gold leaf accents only, plain section background */

.menu.section {
  position: relative;
  overflow: hidden;
}

/* One leaf each side, both sitting on the vertical centre line of the section. */
.menu.section::before,
.menu.section::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  aspect-ratio: 420 / 1081;
  background: url("../img/menu/leaf-gold-big.webp") center/contain no-repeat;
  opacity: .85;
  pointer-events: none;
  z-index: 0;
}

.menu.section::before {
  right: 0;
}

.menu.section::after {
  left: 0;
  transform: translateY(-50%) scaleX(-1);
}

.menu.section > .container {
  position: relative;
  z-index: 1;
}

/* Keep the whole "Special Menu" block on one centre line: heading, intro copy
   and the CTA below the list. */
.menu.section .section_header.centered {
  text-align: center;
  align-items: center;
}

.menu.section .section_header-text {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.menu-showcase_cta {
  margin-top: 40px;
  text-align: center;
}

/* .btn is a block-level flex box, so text-align alone does not centre it. */
.menu-showcase_cta .btn {
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 991.98px) {
  /* Less side margin here, so keep the flower whole but smaller and fainter -
     it reads as a watermark behind the list rather than a collision. */
  .menu.section::before,
  .menu.section::after {
    width: 95px;
    opacity: .5;
  }

  .menu.section::before {
    right: 0;
  }

  .menu.section::after {
    left: 0;
  }
}

@media screen and (max-width: 575.98px) {
  /* not enough side margin on phones to keep the leaves clear of the text */
  .menu.section::before,
  .menu.section::after {
    display: none;
  }
}

/* Full-menu page (menu.html) — flat cream background, gold leaf accents only */

.full-menu {
  position: relative;
  background: #fbf8f1;
  overflow: hidden;
}

/* On wide screens the centered content leaves generous empty margins either
   side — frame the menu with the full leaf artwork there, two sprigs down the
   left margin and two down the right, instead of the small clipped corner
   accent used on the card itself. Both sprigs in a column are the same size,
   one under the other with a gap between them.

   The container is 1170px wide and centred, so 50% - 725px puts a 130px sprig
   in the margin with a 10px gap to the content. Below 1400px that margin is
   too narrow to hold one, and the card keeps its corner accents. */
@media screen and (min-width: 1399.98px) {
  .full-menu::before,
  .full-menu::after,
  .full-menu > .container::before,
  .full-menu > .container::after {
    content: "";
    position: absolute;
    width: 130px;
    aspect-ratio: 420 / 1081;
    background: url("../img/menu/leaf-gold-big.webp") center/contain no-repeat;
    opacity: .85;
    pointer-events: none;
  }

  /* Upper pair starts where the category photo ends — the photo sits at
     628..945 down the page and the section starts at 130, so 815 puts the top
     of the sprig level with the bottom of the image. The artwork has its stem
     on the right, so the left-hand sprig is mirrored to keep both stems
     against the outside edge. */
  .full-menu::before,
  .full-menu::after {
    top: 815px;
    z-index: 0;
  }

  .full-menu::before {
    left: calc(50% - 725px);
    transform: scaleX(-1);
  }

  .full-menu::after {
    right: calc(50% - 725px);
  }

  /* Lower pair, same sprig at the same size directly beneath the first.
     Anchored to the container, which starts 130px into the section, so the
     top is 685 (the pair above) + 335 (its height at 130px wide) + 45 of gap. */
  .full-menu > .container {
    position: relative;
    z-index: 1;
  }

  .full-menu > .container::before,
  .full-menu > .container::after {
    top: 1065px;
    /* Behind the container's own text, which is not positioned. */
    z-index: -1;
  }

  .full-menu > .container::before {
    left: -140px;
    transform: scaleX(-1);
  }

  .full-menu > .container::after {
    right: -140px;
  }

  .menu-showcase::before,
  .menu-showcase::after {
    display: none;
  }
}

/* Past ~1700px there is margin to spare, so the sprigs grow with it — and the
   gap between the two follows the taller artwork down. */
@media screen and (min-width: 1700px) {
  .full-menu::before,
  .full-menu::after,
  .full-menu > .container::before,
  .full-menu > .container::after {
    width: 175px;
  }

  .full-menu::before {
    left: calc(50% - 770px);
  }

  .full-menu::after {
    right: calc(50% - 770px);
  }

  /* 685 + 450 (its height at 175px wide) + 45 of gap. */
  .full-menu > .container::before,
  .full-menu > .container::after {
    top: 1180px;
  }

  .full-menu > .container::before {
    left: -185px;
  }

  .full-menu > .container::after {
    right: -185px;
  }
}

.full-menu .section_header-text {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.menu-showcase {
  position: relative;
  padding: 60px 50px;
  overflow: hidden;
}

.menu-showcase::before,
.menu-showcase::after {
  content: "";
  position: absolute;
  width: 130px;
  aspect-ratio: 420 / 1081;
  background: url("../img/menu/leaf-gold-big.webp") center/contain no-repeat;
  opacity: .85;
  pointer-events: none;
  z-index: 0;
}

.menu-showcase::before {
  top: -30px;
  right: -30px;
}

.menu-showcase::after {
  bottom: -30px;
  left: -30px;
  transform: scaleX(-1);
}

.menu-showcase > * {
  position: relative;
  z-index: 1;
}

.full-menu_count {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #af8125;
}

.full-menu_tabs {
  gap: 10px 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed rgba(175, 129, 37, .4);
}

.full-menu_tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid rgba(175, 129, 37, .5);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #2f3e2e;
  cursor: pointer;
  transition: .2s ease-in-out;
}

.full-menu_tabs .nav-link span {
  font-size: 11px;
  font-weight: 700;
  color: #af8125;
}

.full-menu_tabs .nav-link:hover,
.full-menu_tabs .nav-link[aria-selected=true] {
  background: #2f3e2e;
  border-color: #2f3e2e;
  color: #fff;
}

.full-menu_tabs .nav-link:hover span,
.full-menu_tabs .nav-link[aria-selected=true] span {
  color: #d9b25c;
}

.full-menu_tabcontent {
  max-width: 760px;
  margin: 0 auto;
}

.full-menu_note {
  text-align: center;
  color: #8a8a8a;
  font-size: 14px;
  margin-top: 40px;
}

/* Each category opens on a photo of one of its own dishes, framed with the
   same gold hairline the printed menu uses. */
.menu-category_media {
  margin: 0 0 26px;
  aspect-ratio: 12 / 5;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid rgba(175, 129, 37, .45);
  box-shadow: 0 12px 28px rgba(47, 62, 46, .13);
}

.menu-category_media picture {
  display: block;
  height: 100%;
}

.menu-category_media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 575.98px) {
  .menu-category_media {
    aspect-ratio: 3 / 2;
    margin-bottom: 20px;
  }
}

.menu-category_title {
  text-align: center;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.menu-category_subtitle {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #8a8a8a;
  margin-top: -6px;
  margin-bottom: 20px;
}

.menu-item {
  margin-top: 22px;
}

.menu-item_head {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.menu-item_name {
  flex: 0 1 auto;
  min-width: 0;
  font-weight: 700;
  color: #2f3e2e;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: 16px;
}

.menu-item_dots {
  flex: 1 1 auto;
  border-bottom: 1px dotted #af8125;
  height: 0;
  margin-bottom: 5px;
  min-width: 12px;
}

.menu-item_price {
  flex: 0 0 auto;
  font-weight: 600;
  color: #af8125;
  font-size: 15px;
  white-space: nowrap;
}

.menu-item_desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: #5c5c5c;
}

.menu-variants {
  margin-top: 10px;
  padding-left: 14px;
}

.menu-variant {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.menu-variant_name {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 13px;
  color: #5c5c5c;
}

.menu-variant_dots {
  flex: 1 1 auto;
  border-bottom: 1px dotted rgba(175, 129, 37, .5);
  height: 0;
  margin-bottom: 4px;
  min-width: 12px;
}

.menu-variant_price {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: #af8125;
  white-space: nowrap;
}

@media screen and (max-width: 767.98px) {
  .full-menu .menu-showcase {
    padding: 30px 20px;
  }

  .full-menu .menu-showcase::before,
  .full-menu .menu-showcase::after {
    width: 90px;
  }

  .full-menu .menu-showcase::before {
    top: -30px;
    right: -70px;
  }

  .full-menu .menu-showcase::after {
    bottom: -30px;
    left: -70px;
  }
}

@media screen and (max-width: 575.98px) {
  .menu-item_name,
  .menu-item_price {
    font-size: 14px;
  }

  .full-menu_tabs {
    gap: 8px 6px;
  }

  .full-menu_tabs .nav-link {
    padding: 7px 12px;
    font-size: 12px;
  }

  /* not enough side margin on phones to keep the leaves clear of the text */
  .full-menu .menu-showcase::before,
  .full-menu .menu-showcase::after {
    display: none;
  }
}
