@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --color-bg-dark: #0b0b10;
  --color-bg-darker: #050608;
  --color-card: rgba(255, 255, 255, 0.82);
  --color-muted: #6b7280;
  --color-text: #111827;
  --color-text-light: #f9fafb;
  --color-primary: #dc2626;
  --color-primary-dark: #b91c1c;
  --color-accent: #facc15;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.45);
  --max-width: 1120px;
  --transition-fast: 0.25s ease;
  --photo-filter: brightness(0.75) contrast(1.08) saturate(1.04);
  --photo-filter-soft: blur(1.5px) brightness(0.75) contrast(1.08) saturate(1.04);
}


/* ========== ANIMATIONS ========== */

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fade-in-soft {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.animate-fade-up {
  animation: fade-in-up 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.animate-fade-soft {
  animation: fade-in-soft 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes page-curtain-reveal {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

@keyframes page-logo-reveal {
  0%,
  28% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
  }
}

.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

.page-transition-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000000;
  transform: scaleX(0);
  transform-origin: right center;
  animation: page-curtain-reveal 0.52s cubic-bezier(0.76, 0, 0.24, 1) both;
  transition: transform 0.46s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.page-transition-overlay::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(82px, 8vw, 116px);
  aspect-ratio: 1;
  background: url("../img/logo-autogrilli.png") center / contain no-repeat;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  animation: page-logo-reveal 0.52s ease-out both;
  transition: opacity 0.2s ease 0.17s, transform 0.3s ease 0.14s;
}

body.is-page-leaving .page-transition-overlay::before {
  transform: scaleX(1);
  transform-origin: left center;
  animation: none;
}

body.is-page-leaving .page-transition-overlay::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: none;
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-up,
  .animate-fade-soft {
    animation: none !important;
  }

  .page-transition-overlay {
    display: none;
  }
}
/* RESET */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--color-text);
  background: #020617;
}

body.home-page {
  background-image: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.38),
      rgba(15, 23, 42, 0.76)
    ),
    url("../img/hero-burger.webp");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* ========== 404 PAGE ========== */

.error-page {
  min-height: 100vh;
}

.error-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 7.5rem 1.4rem 3rem;
  color: var(--color-text-light);
}

.error-card {
  width: min(100%, 680px);
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
  background: rgba(10, 15, 28, 0.62);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.error-code {
  margin-bottom: -0.35rem;
  color: rgba(255, 255, 255, 0.08);
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-size: clamp(5.5rem, 18vw, 9rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.error-eyebrow {
  margin: 1.4rem 0 0.5rem;
  color: var(--color-accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.error-card h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.2rem);
}

.error-message {
  max-width: 500px;
  margin: 0.9rem auto 0;
  color: #d1d5db;
  line-height: 1.65;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

@media (max-width: 520px) {
  .error-actions a {
    width: 100%;
    justify-content: center;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
.hero-title,
.brand-name {
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.menu-shell,
.home-page main,
.menu-nav,
.site-footer,
.btn-call {
  transition: opacity 0.24s ease, transform 0.24s ease;
}

body.is-language-changing .menu-shell,
body.is-language-changing.home-page main,
body.is-language-changing .menu-nav,
body.is-language-changing .site-footer,
body.is-language-changing .btn-call {
  opacity: 0;
  transform: translateY(4px);
}

/* ========== HEADER (GLASS, FIX 72PX) ========== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;

  height: 72px;
  display: flex;
  align-items: center;

  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  background: rgba(15, 23, 42, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.4rem;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  color: var(--color-text-light);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  background: #111827;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: #f9fafb;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.main-nav a {
  color: #e5e7eb;
  padding: 0.25rem 0.3rem;
  border-radius: 999px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.main-nav a:hover {
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.language-switcher button {
  min-width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease,
    opacity 0.25s ease, transform 0.25s ease;
}

.language-switcher button:hover {
  background: rgba(250, 204, 21, 0.14);
  color: #facc15;
}

.language-switcher button[aria-pressed="true"] {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.34);
  animation: active-pill-fade-in 0.4s ease-out;
}

.btn-call {
  padding: 0.48rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #f9fafb;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s ease, border-color 0.2s ease,
    opacity 0.24s ease, transform 0.24s ease;
}

.btn-call:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

/* ========== HERO (HOME) ========== */

.hero {
  position: relative;
  min-height: 100vh;
  color: var(--color-text-light);
  padding-top: 72px; /* header height */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero-burger.webp");
  background-size: cover;
  background-position: center;
  filter: var(--photo-filter);
  z-index: -2;
}

.home-page .hero-bg {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at top left,
      rgba(0, 0, 0, 0.3),
      transparent 55%
    ),
    linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.38),
      rgba(15, 23, 42, 0.74)
    );
  z-index: -1;
}

.home-page .hero-overlay {
  display: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.2rem 1.4rem 3.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.hero-tag {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

.hero-title {
  font-size: clamp(2.2rem, 3.4vw, 2.9rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hero-lead {
  font-size: 0.98rem;
  color: #e5e7eb;
  max-width: 30rem;
  margin-bottom: 1.4rem;
}

/* HERO CHIPS – glass pills */

.hero-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;

  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);

  border: 1px solid rgba(255, 255, 255, 0.23);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);

  font-size: 0.84rem;
  color: #e5e7eb;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn-primary {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  color: #f9fafb;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 14px 38px rgba(248, 113, 113, 0.5);
}

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(249, 250, 251, 0.45);
  color: #e5e7eb;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease,
    transform 0.15s ease;
}

.btn-ghost-light:hover {
  background: rgba(249, 250, 251, 0.12);
  border-color: rgba(249, 250, 251, 0.7);
  transform: translateY(-1px);
}

/* HERO CARD – glass */

.hero-card {
  background: rgba(10, 16, 32, 0.38);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);

  border-radius: 20px;
  padding: 1.2rem 1.3rem 1.1rem;

  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);

  color: #f9fafb;
}

.hero-card h2 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #f9fafb;
}

.hero-card p {
  font-size: 0.82rem;
  color: #d1d5db;
  margin-bottom: 0.6rem;
}

.hours-list {
  list-style: none;
  margin: 0 0 0.6rem;
  padding: 0;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0;
}

.hero-card-note {
  font-size: 0.78rem;
  color: #9ca3af;
}

/* ========== HOME SECTION (TERVETULOA) GLASS ========== */

.section {
  position: relative;
  padding: 3rem 1.4rem 3.2rem;
  color: #f9fafb;
  z-index: 0;
  overflow: hidden;
}

.section::before {
  content: none;
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../img/hero-burger.webp");
  background-size: cover;
  background-position: center;
  filter: var(--photo-filter);
  transform: scale(1.02);
}

.section::after {
  content: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      circle at top left,
      rgba(0, 0, 0, 0.3),
      transparent 55%
    ),
    linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.42),
      rgba(15, 23, 42, 0.76)
    );
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
  color: #ffffff;
}

.section-sub {
  font-size: 0.95rem;
  color: #e5e7eb;
  margin-bottom: 1.2rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}

/* info cards – glass */

.info-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);

  border-radius: 22px;
  padding: 1.1rem 1.2rem 1rem;

  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);

  color: #f9fafb;
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  color: #ffffff;
}

.info-card p,
.info-card li {
  font-size: 0.88rem;
  color: #e5e7eb;
}

.info-card ul {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
}

.info-card li + li {
  margin-top: 0.2rem;
}

/* ========== FOOTER ========== */

.site-footer {
  background: #020617;
  color: #f9fafb;
  font-size: 0.8rem;
  padding: 1rem 1.4rem 1.4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ========== MENU PAGE BACKGROUND ========== */

.menu-page {
  min-height: 100vh;
  padding-top: 136px; /* 72 header + ~64 nav */
  position: relative;
  overflow-x: hidden;
}

.menu-bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: blur(1px) brightness(0.92) contrast(1.04) saturate(1.08);
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.65s ease-in-out, transform 1.1s ease-out;
  will-change: opacity, transform;
}

.menu-bg-layer.is-active {
  opacity: 1;
  transform: scale(1);
}

.menu-bg-burgers {
  background-image: url("../img/bg-burgers.webp");
}
.menu-bg-grill {
  background-image: url("../img/bg-grill.webp");
}
.menu-bg-fries {
  background-image: url("../img/bg-fries.webp");
}
.menu-bg-kebab {
  background-image: url("../img/bg-kebab.webp");
}
.menu-bg-salad {
  background-image: url("../img/bg-salad.webp");
}
.menu-bg-drinks {
  background-image: url("../img/bg-drinks.webp");
}

.menu-bg-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(
      circle at top left,
      rgba(0, 0, 0, 0.2),
      transparent 55%
    ),
    linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.26),
      rgba(15, 23, 42, 0.52)
    );
  z-index: -1;
}

/* ========== MENU PAGE CONTENT ========== */

.menu-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.4rem 4rem;
}

.menu-card {
  padding: 0;
  color: #f9fafb;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-bottom: 1.15rem;
  padding: 2rem 2.2rem;
  background: rgba(10, 15, 28, 0.58);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.menu-header-main h1 {
  margin: 0 0 0.25rem;
  font-size: 1.7rem;
  color: #ffffff;
}

.menu-header-main p {
  margin: 0;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.menu-header-side {
  font-size: 0.9rem;
  color: #e5e7eb;
}

.menu-header-side strong {
  color: #ffffff;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin: 0 0 0.8rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #f9fafb;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

.live-status::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #9ca3af;
  box-shadow: 0 0 0 4px rgba(156, 163, 175, 0.12);
}

.live-status.status-open::before {
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.14);
}

.live-status.status-takeaway::before {
  background: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.14);
}

.live-status.status-closed::before {
  background: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.14);
}

/* CATEGORY BAR */

.menu-nav-wrapper {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.35rem 0.5rem;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-nav-wrapper::before,
.menu-nav-wrapper::after {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  z-index: 2;
  width: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.menu-nav-wrapper::before {
  left: max(0.5rem, calc((100% - var(--max-width)) / 2 + 0.5rem));
  border-radius: 999px 0 0 999px;
  background: linear-gradient(to right, rgba(7, 10, 19, 0.86), transparent);
}

.menu-nav-wrapper::after {
  right: max(0.5rem, calc((100% - var(--max-width)) / 2 + 0.5rem));
  border-radius: 0 999px 999px 0;
  background: linear-gradient(to left, rgba(7, 10, 19, 0.86), transparent);
}

.menu-nav-wrapper:has(.menu-nav.can-scroll-left)::before,
.menu-nav-wrapper:has(.menu-nav.can-scroll-right)::after {
  opacity: 1;
}

.menu-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.7rem;
  font-size: 0.88rem;
  padding: 0.6rem 1rem;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);

  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  pointer-events: auto;
}

.menu-nav::-webkit-scrollbar {
  display: none;
}

.menu-nav a {
  flex-shrink: 0;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f9fafb;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0.78;
  transition: opacity 0.35s ease, background-color 0.35s ease,
    border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease,
    transform 0.2s ease;
}

.menu-nav a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.menu-nav a.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.3);
  color: #000000;
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.16);
  font-weight: 600;
  animation: active-pill-fade-in 0.4s ease-out;
}

@keyframes active-pill-fade-in {
  from {
    opacity: 0.35;
    transform: scale(0.94);
  }

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

@media (prefers-reduced-motion: reduce) {
  .menu-nav a,
  .language-switcher button {
    transition: none;
  }

  .language-switcher {
    transition: none;
  }

  .menu-nav-wrapper {
    transition: none;
  }

  .menu-bg-layer {
    transform: none;
    transition: none;
  }

  .menu-nav a.active,
  .language-switcher button[aria-pressed="true"] {
    animation: none;
  }

  .menu-panel-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* MENU SECTIONS */

.menu-section {
  padding: 2.5rem 2.2rem 2.7rem;
  margin-top: 1.15rem;
  background: rgba(10, 15, 28, 0.58);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  min-height: auto;
  scroll-margin-top: 150px;
}

.menu-section:first-of-type {
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 0;
  padding-top: 2.5rem;
}

.menu-panel-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.menu-panel-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.menu-section h2 {
  margin: 0 0 0.6rem;
  font-size: 1.28rem;
  color: #ffffff;
  font-weight: 700;
}

.menu-section-desc {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.menu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0.9rem 1.6rem;
}

.menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  gap: 0.7rem;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: #e5e7eb;
  min-width: 0;
}

.menu-item-name {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-weight: 500;
  color: #f9fafb;
  min-width: 0;
  overflow-wrap: anywhere;
}

.menu-item-name::after {
  content: "";
  flex: 1 1 1.5rem;
  min-width: 0.8rem;
  border-bottom: 1px dotted rgba(229, 231, 235, 0.3);
  transform: translateY(-0.18rem);
}

.menu-item-note {
  font-size: 0.82rem;
  color: #e5e7eb;
}

.menu-item-price {
  font-weight: 600;
  color: #ffffff;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.menu-note {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: #e5e7eb;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 1rem;
  }

  .main-nav {
    display: none;
  }

  .language-switcher {
    position: fixed;
    top: 78px;
    right: 1rem;
    z-index: 120;
    background: rgba(64, 38, 35, 0.74);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: opacity 0.28s ease, transform 0.28s ease;
  }

  body.is-language-switcher-hidden .language-switcher {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
  }

  body.is-language-switcher-hidden .menu-nav-wrapper {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-110%);
  }

  .menu-body .language-switcher {
    top: 136px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    transition: opacity 0.28s ease, transform 0.28s ease;
  }

  .menu-body.is-language-switcher-hidden .language-switcher {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -10px);
  }

  .hero-inner {
    padding-inline: 1rem;
    padding-top: 2.4rem;
  }

  .section {
    padding-inline: 1rem;
  }

  .menu-shell {
    padding-inline: 1rem;
  }

  .menu-card {
    padding: 0;
  }

  .menu-header,
  .menu-section {
    padding-inline: 1.3rem;
  }

  .menu-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }

  .menu-section {
    min-height: auto;
    padding-top: 2.4rem;
    padding-bottom: 2.6rem;
  }

  .menu-nav {
    font-size: 0.82rem;
  }

  .menu-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .language-switcher button {
    min-width: 2.5rem;
    height: 2.5rem;
  }

  .btn-call {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 520px) {
  .menu-page {
    padding-top: 190px;
  }

  .menu-body .language-switcher {
    top: 136px;
  }

  .menu-shell {
    padding-top: 1.4rem;
  }
}


/* ===== PERFECT EDITION MOBILE POLISH ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 2.4rem;
  }
  .hero-card {
    margin-top: 1.4rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .section::before {
    filter: var(--photo-filter);
  }
  .menu-bg-layer {
    filter: blur(1px) brightness(0.88) contrast(1.04) saturate(1.06);
  }
}

/* slightly reduce section min-height on very small devices */
@media (max-width: 640px) {
  .menu-section {
    min-height: auto;
    padding-top: 2.1rem;
    padding-bottom: 2.3rem;
  }
}
