:root {
  --page: #f2f1e6;
  --ink: #151817;
  --muted: #58615d;
  --line: rgba(21, 24, 23, 0.16);
  --brand: #006b54;
  --olive: #807550;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(11, 26, 22, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Optima, Candara, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

.brand-masthead {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding: 34px 20px 0;
}

.brand-masthead img {
  width: 174px;
  height: auto;
  display: block;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: 112px 72px 56px;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-settle 900ms ease-out forwards;
  z-index: -2;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: -1;
}

.hero__content {
  width: min(330px, 100%);
  color: var(--white);
  animation: rise-in 760ms ease-out 160ms both;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.44);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 500;
}

.hero__text {
  max-width: 18rem;
  margin: 8px 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
}

.hero__action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.hero__action:hover,
.hero__action:focus-visible {
  background: var(--white);
  color: var(--ink);
  transform: translateY(-2px);
}

.menu-section {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 92px;
}

.section-heading {
  display: block;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: 4.4rem;
  line-height: 1;
  font-weight: 500;
}

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

.menu-card {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  animation: card-in 560ms ease-out forwards;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.menu-card:hover,
.menu-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 28px 76px rgba(11, 26, 22, 0.2);
}

.menu-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.menu-card:hover .menu-card__image,
.menu-card:focus-visible .menu-card__image {
  transform: scale(1.045);
}

.menu-card__fallback {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(0, 107, 84, 0.95), rgba(21, 24, 23, 0.94)),
    url("RixosPera-QrMenu-2.png") center / cover;
  text-align: center;
}

.menu-card__fallback span {
  max-width: 12rem;
  font-size: 2.5rem;
  line-height: 1.05;
}

.menu-card__label {
  display: none;
}

.menu-card__status {
  display: none;
}

.menu-card--disabled {
  cursor: default;
  filter: grayscale(0.12);
}

.menu-card--disabled::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(21, 24, 23, 0.2);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 72px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer p {
  margin: 0;
}

.footer a {
  text-decoration: none;
  font-weight: 700;
}

@keyframes hero-settle {
  from {
    opacity: 0.86;
    transform: scale(1.01);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes card-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding: 104px 42px 48px;
  }

  .hero h1 {
    font-size: 1rem;
  }

  .section-heading h2 {
    font-size: 3.6rem;
  }

  .menu-grid {
    gap: 18px;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    padding: 92px 20px 34px;
  }

  .hero__image {
    object-fit: cover;
    object-position: center;
  }

  .hero__content {
    width: min(260px, 100%);
    margin: 0 auto;
    color: var(--white);
    text-align: center;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.44);
  }

  .hero__action {
    background: var(--page);
    border-color: var(--page);
    color: var(--ink);
  }

  .hero__action:hover,
  .hero__action:focus-visible {
    background: var(--white);
    border-color: var(--white);
    color: var(--ink);
  }

  .brand-masthead {
    padding: 24px 20px 0;
  }

  .brand-masthead img {
    width: 138px;
  }

  .hero__text {
    font-size: 0.75rem;
  }

  .hero__shade {
    background: transparent;
  }

  .menu-section {
    width: min(100% - 20px, 1320px);
    padding: 52px 0 62px;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    margin-top: 10px;
    font-size: 2.45rem;
  }

  .menu-grid {
    gap: 10px;
  }

  .menu-card__label {
    min-height: 50px;
    padding: 10px 8px;
    font-size: 0.68rem;
    letter-spacing: 0;
  }

  .menu-card__fallback span {
    font-size: 1.35rem;
  }

  .footer {
    display: block;
    padding: 24px 18px;
  }

  .footer a {
    display: inline-block;
    margin-top: 8px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
