:root {
  --font-heading: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --color-navy: #0d2b52;
  --color-navy-dark: #081a35;
  --color-navy-soft: #1c3f6e;
  --color-gold: #f4c430;
  --color-gold-dark: #d9a70f;

  --color-bg: #ffffff;
  --color-bg-soft: #f5f7fa;
  --color-text: #16233d;
  --color-text-muted: #667085;
  --color-text-on-navy: #ffffff;
  --color-text-on-navy-muted: #c3cee0;
  --color-border: #e6e8ec;

  --whatsapp: #25d366;

  --page-max-width: 720px;
  --header-height: 68px;

  --radius-pill: 999px;
  --radius-medium: 16px;

  --shadow-sm: 0 2px 8px rgba(13, 43, 82, 0.08);
  --shadow-md: 0 8px 24px rgba(13, 43, 82, 0.14);

  --transition: 200ms ease;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Base */

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.5;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

img {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--color-navy);
  color: #fff;
  transform: translateY(-160%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-container {
  width: 100%;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: 20px;
}

.icon {
  color: currentColor;
  flex-shrink: 0;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  transition: background-color var(--transition);
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.icon-button--whatsapp {
  background: var(--whatsapp);
}

.icon-button--whatsapp:hover {
  background: #1fb959;
}

/* Header */

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: var(--header-height);
  background: var(--color-navy);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 56px;
  width: 56px;
  object-fit: contain;
}

/* Drawer */

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(8, 26, 53, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  z-index: 50;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(82vw, 320px);
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  box-shadow: var(--shadow-md);
  transform: translateX(-100%);
  transition: transform var(--transition);
}

.mobile-drawer[hidden] {
  display: flex;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding-inline: 20px;
  background: var(--color-navy);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
}

.drawer-header .icon-button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.drawer-list {
  padding: 8px 12px;
  overflow-y: auto;
}

.drawer-list-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--color-navy);
  text-align: left;
}

.drawer-list-button .icon {
  color: var(--color-gold-dark);
}

.drawer-list-button:hover,
.drawer-list-button.is-active {
  background: var(--color-bg-soft);
}

.drawer-contact {
  margin-top: auto;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 10px;
}

.drawer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy-soft);
}

.drawer-contact .icon {
  color: var(--color-gold-dark);
}

/* Hero */

.hero {
  position: relative;
  min-height: clamp(280px, 46vw, 420px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-navy);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(244, 196, 48, 0.18), transparent 45%),
    linear-gradient(160deg, var(--color-navy-soft), var(--color-navy-dark));
}

.hero-fallback[hidden] {
  display: none;
}

.hero-fallback-logo {
  width: clamp(140px, 32vw, 200px);
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(8, 20, 40, 0.88) 0%,
    rgba(8, 20, 40, 0.35) 55%,
    rgba(8, 20, 40, 0.05) 100%
  );
}

.hero-copy {
  position: relative;
  padding-block: 24px 22px;
  color: var(--color-text-on-navy);
  transition: opacity 160ms ease;
}

.hero-copy h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.hero-copy p {
  margin-top: 6px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-copy::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--color-gold);
}

/* Category tabs */

.tabs-bar {
  position: sticky;
  top: var(--header-height);
  z-index: 20;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.category-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding-block: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-button {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding-inline: 14px;
  border: 1.5px solid var(--color-navy);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition:
    background-color var(--transition),
    color var(--transition);
}

.tab-button:hover {
  background: var(--color-bg-soft);
}

.tab-button.is-active {
  background: var(--color-navy);
  color: #fff;
}

.tab-button.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 55%;
  height: 3px;
  border-radius: 2px;
  background: var(--color-gold);
  transform: translateX(-50%);
}

/* Search */

.search-field {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding-inline: 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.search-field .icon {
  color: var(--color-text-muted);
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
}

.search-field input::placeholder {
  color: var(--color-text-muted);
}

/* Menu */

.menu-status {
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.menu-groups {
  display: grid;
  gap: 30px;
  padding-block: 20px 40px;
  transition: opacity 160ms ease;
}

.menu-groups.is-fading,
.hero-copy.is-fading {
  opacity: 0;
}

.menu-group__header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-group__header .icon {
  color: var(--color-gold-dark);
  flex-shrink: 0;
}

.menu-group__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-navy);
  white-space: nowrap;
}

.menu-group__line {
  flex: 1;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--color-gold), rgba(244, 196, 48, 0));
}

.menu-group__desc {
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: 0.86rem;
}

.menu-list {
  margin-top: 12px;
}

.menu-item {
  padding-block: 14px;
  border-bottom: 1px solid var(--color-border);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.menu-item__name-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.menu-item__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-navy);
}

.menu-item__badge {
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--color-gold);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.menu-item__price {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-navy);
  white-space: nowrap;
}

.menu-item__desc {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.menu-item__variants {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border);
}

.menu-item__variant-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

.menu-item__variant-row span:first-child {
  color: var(--color-text-muted);
}

.menu-item__variant-row span:last-child {
  font-weight: 700;
  color: var(--color-navy);
}

.empty-state {
  padding: 36px 20px;
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-medium);
  text-align: center;
  color: var(--color-text-muted);
}

.search-result-tag {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-soft);
  color: var(--color-navy-soft);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Restaurant info */

.restaurant-info {
  margin-block: 8px 32px;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-bg-soft);
}

.restaurant-info h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-navy);
}

.restaurant-note {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.restaurant-map-link {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy-soft);
}

.restaurant-map-link .icon {
  color: var(--color-gold-dark);
}

.restaurant-map-link:hover {
  color: var(--color-navy);
}

/* Footer */

.site-footer {
  border-top: 3px solid var(--color-gold);
  background: var(--color-navy-dark);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-block: 18px;
}

.footer-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding-inline: 4px;
  text-align: center;
}

.footer-item + .footer-item {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-item .icon {
  color: var(--color-gold);
  flex-shrink: 0;
}

.footer-item-copy {
  display: grid;
  justify-items: center;
  min-width: 0;
  color: var(--color-text-on-navy);
  line-height: 1.3;
}

.footer-item-copy span:first-child {
  font-size: 0.68rem;
  color: var(--color-text-on-navy-muted);
}

.footer-item-copy span:last-child {
  font-weight: 700;
  font-size: 0.78rem;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Floating WhatsApp button */

.fab-whatsapp {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 25;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), background-color var(--transition);
}

.fab-whatsapp:hover {
  background: #1fb959;
  transform: scale(1.06);
}

.fab-whatsapp[hidden] {
  display: none;
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 60;
  padding: 16px;
  border-radius: 12px;
  background: var(--color-navy);
  color: #fff;
  text-align: center;
}

/* Responsive */

@media (min-width: 900px) {
  :root {
    --page-max-width: 780px;
  }

  .hero-copy {
    padding-block: 32px 30px;
  }
}
