@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --navy:       #0A2540;
  --navy-mid:   #153B5C;
  --navy-light: #1E4F7A;
  --gold:       #C4964A;
  --gold-light: #E8D5A3;
  --bg:         #D8E6EF;
  --items-bg:   #F8FAFC;
  --white:      #FFFFFF;
  --text:       #0A2540;
  --muted:      #6B8FA8;
  --border:     #D0DFE9;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── Hero wrapper ──────────────────────────────────────── */
.hero-wrap {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

/* Hero: show upper portion of navagos back.png — NAVAGOS visible, beach clipped */
.menu-hero {
  overflow: hidden;
  aspect-ratio: 864 / 460;
}
.menu-hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* Gradient overlay: transparent centre, dark at bottom → merges into nav */
.hero-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,37,64,.22) 0%,
    rgba(10,37,64,.0)  25%,
    rgba(10,37,64,.0)  55%,
    rgba(10,37,64,.65) 82%,
    rgba(10,37,64,.92) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* ── Language switch — custom dropdown ─────────────────── */
.lang-switch {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

.lang-selected {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px 6px 8px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.lang-flag { width: 1.2em; height: .9em; border-radius: 2px; flex-shrink: 0; }

.lang-code {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
}

.lang-chevron {
  flex-shrink: 0;
  transition: transform .22s ease;
}
.lang-switch.open .lang-chevron { transform: rotate(180deg); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100px;
  background: rgba(8,28,52,.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.lang-switch.open .lang-dropdown { display: block; }

.lang-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255,255,255,.65);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s;
}
.lang-opt:hover { background: rgba(196,150,74,.2); color: #fff; }
.lang-opt.active { background: rgba(196,150,74,.28); color: #fff; }
.lang-opt .fi { width: 1.3em; height: .95em; border-radius: 2px; flex-shrink: 0; }

/* ── Category Nav ──────────────────────────────────────── */
.cat-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  padding: 11px 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-bottom: 1px solid rgba(196,150,74,.2);
  /* No gap from hero — gradient above already merged */
}
.cat-nav::-webkit-scrollbar { display: none; }

.cat-nav-inner {
  display: flex;
  gap: 7px;
  width: max-content;
}

.cat-tab {
  padding: 7px 16px;
  border-radius: 50px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
  color: rgba(255,255,255,.48);
  border: 1.5px solid rgba(255,255,255,.14);
  white-space: nowrap;
  transition: all .2s;
}
.cat-tab:hover  { color: rgba(255,255,255,.82); border-color: rgba(255,255,255,.32); }
.cat-tab.active { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ── Main wrapper ──────────────────────────────────────── */
.menu-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 14px 70px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* ── Accordion section ─────────────────────────────────── */
.cat-section {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(10,37,64,.13), 0 1px 4px rgba(10,37,64,.08);
}

/* ── Accordion card ────────────────────────────────────── */
.cat-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px;
  background: linear-gradient(125deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-left: 3px solid var(--gold);
  color: var(--white);
  text-align: left;
  transition: filter .2s;
}
.cat-card:hover             { filter: brightness(1.1); }
.cat-section.open .cat-card { filter: brightness(1.08); }

.cat-card-left { display: flex; align-items: center; gap: 11px; }

.cat-card-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: .98rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: .01em;
}

.cat-wave { opacity: .2; flex-shrink: 0; }

.cat-card-right { display: flex; align-items: center; flex-shrink: 0; }

.cat-arrow {
  transition: transform .28s ease;
  opacity: .55;
  flex-shrink: 0;
}
.cat-section.open .cat-arrow { transform: rotate(180deg); opacity: .9; }

/* ── Items panel ───────────────────────────────────────── */
.cat-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s ease;
  background: var(--items-bg);
}
.cat-section.open .cat-items { max-height: 3000px; }

.cat-items-inner {
  border-top: 2px solid var(--gold);
  padding: 2px 0 8px;
}

/* ── Menu item ─────────────────────────────────────────── */
.item {
  padding: 11px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.item:last-child { border-bottom: none; }
.item:hover { background: rgba(196,150,74,.06); }

.item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.item-name {
  font-size: .83rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text);
  line-height: 1.4;
}
.item-price {
  font-size: .84rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}
.item-desc {
  margin-top: 3px;
  font-size: .69rem;
  color: var(--muted);
  letter-spacing: .025em;
  line-height: 1.5;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 22px 20px 44px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
  background: var(--items-bg);
}
.footer-gold {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 8px;
  opacity: .55;
}
.footer-note { margin-top: 6px; font-size: .67rem; color: #b0c4d4; }
