:root {
  color-scheme: light;
}

body {
  font-family: Manrope, sans-serif;
}

input, textarea, select {
  box-sizing: border-box;
  max-width: 100%;
}

.site-logo {
  display: block;
  height: 3rem;
  width: auto;
  object-fit: contain;
}

.site-logo--light {
  filter: brightness(0) invert(1);
}

.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: #1f4d3a;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger-light span {
  background: #f6f1e7;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
}

@media (min-width: 768px) {
  .nav-mobile-toggle,
  #mobile-menu {
    display: none !important;
  }
}

.gallery-card {
  border-radius: 1.75rem;
  box-shadow: 0 20px 50px rgba(16, 32, 25, 0.08);
}

.homepage-photo {
  border-radius: 2rem;
  box-shadow: 0 24px 64px rgba(18, 36, 27, 0.12);
}

.nav-link-active {
  position: relative;
}

.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #1f4d3a;
}

.nav-link-active--light::after {
  background: #ffffff;
}

.menu-section-header {
  margin-bottom: 1.5rem;
}

.menu-section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 0.96;
  color: #17382b;
}

.menu-list {
  border-top: 1px solid rgba(31, 77, 58, 0.12);
}

.menu-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(31, 77, 58, 0.12);
}

.menu-item__image {
  width: 110px;
  height: 110px;
  border-radius: 1.1rem;
  object-fit: cover;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(20, 57, 40, 0.08);
}

.menu-item__image--contain {
  object-fit: contain;
  padding: 0.5rem;
}

.menu-item__body {
  min-width: 0;
}

.menu-item__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.menu-item__title {
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  line-height: 1.2;
  color: #23372f;
}

.menu-item__price {
  flex-shrink: 0;
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  line-height: 1.1;
  color: #5d6a62;
}

.menu-item__desc {
  margin-top: 0.5rem;
  max-width: 52rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #486056;
}

@media (max-width: 640px) {
  .menu-item {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 1rem;
  }

  .menu-item__image {
    width: 84px;
    height: 84px;
    border-radius: 0.9rem;
  }

  .menu-item__head {
    flex-direction: column;
    gap: 0.35rem;
  }
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 999px;
  background: #25d366;
  text-decoration: none;
  box-shadow: 0 18px 46px rgba(20, 57, 40, 0.26);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.whatsapp-btn:hover {
  transform: translateY(-3px);
  background: #1ebe5b;
  box-shadow: 0 24px 56px rgba(20, 57, 40, 0.32);
}

.whatsapp-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: #ffffff;
}

.whatsapp-btn__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 640px) {
  .whatsapp-btn {
    width: 4rem;
    height: 4rem;
  }
}

/* ─── Page transition ─────────────────────────────────────── */

@keyframes page-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#page-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f6f1e7;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#page-overlay img {
  width: 160px;
  height: auto;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.2s ease 0.1s, transform 0.2s ease 0.1s;
}

#page-overlay.is-leaving img {
  opacity: 1;
  transform: scale(1);
}

#page-overlay.is-leaving {
  opacity: 1;
  pointer-events: all;
}

body {
  animation: page-in 0.35s ease both;
}

.page-leaving {
  animation: none !important;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

/* ─── Scroll reveal ───────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal][data-reveal-delay="5"] { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  #page-overlay { transition: none; }
}
