/* ============================================================
   LE CINQUE LUNE — Design System
   Warm moonlit Tuscan taverna: deep navy, warm gold, honey stone
   ============================================================ */

:root {
  --navy: #1c2942;
  --navy-deep: #0e1626;
  --navy-soft: #2c3d5a;
  --gold: #bb9457;
  --gold-light: #dcc08a;
  --gold-deep: #8a6a34;
  --cream: #faf5ea;
  --cream-deep: #f1e6ce;
  --stone: #e7dcc3;
  --terracotta: #b1522f;
  --ink: #2b241c;
  --ink-soft: #5c5142;
  --ink-faint: #8a8071;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.font-display { font-family: 'Fraunces', serif; }

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

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

::selection { background: var(--gold); color: var(--cream); }

/* ---------- Layout helpers ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .wrap { padding: 0 56px; } }

/* ---------- Texture ---------- */
.grain { position: relative; }
.grain::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.stars {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 60% 15%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 80% 55%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 35% 70%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 90% 20%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 10% 85%, rgba(255,255,255,0.4), transparent);
  background-repeat: no-repeat;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 234, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 41, 66, 0.1);
}
.site-header .nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 60px; width: auto; }
.footer-logo { filter: brightness(0) invert(1) brightness(0.92) sepia(0.08); }

.nav-links { display: none; align-items: center; gap: 36px; }
@media (min-width: 860px) { .nav-links { display: flex; } }
.nav-link {
  font-size: 12px; letter-spacing: 0.16em; font-weight: 600; text-transform: uppercase;
  color: var(--ink-soft); position: relative; padding-bottom: 4px;
  transition: color 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--navy); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.65,0,0.35,1);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }

.nav-right { display: flex; align-items: center; gap: 14px; }

/* Language dropdown */
.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid rgba(28,41,66,0.25); background: transparent;
  padding: 9px 14px; font-size: 12px; letter-spacing: 0.1em; font-weight: 600;
  color: var(--navy); cursor: pointer; border-radius: 2px;
  transition: border-color 0.3s, background 0.3s;
  font-family: 'Manrope', sans-serif;
}
.lang-btn:hover { border-color: var(--navy); background: rgba(28,41,66,0.04); }
.lang-btn svg { width: 10px; height: 10px; transition: transform 0.3s; }
.lang-btn.open svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--cream); border: 1px solid rgba(28,41,66,0.15);
  box-shadow: 0 20px 40px -15px rgba(14,22,38,0.25);
  min-width: 150px; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
  z-index: 200;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 12px 16px; background: none; border: none;
  font-size: 13px; color: var(--ink); cursor: pointer; text-align: left;
  font-family: 'Manrope', sans-serif;
  transition: background 0.2s;
}
.lang-option:hover { background: rgba(187,148,87,0.12); }
.lang-option.active { color: var(--gold-deep); font-weight: 700; }
.lang-option small { color: var(--ink-faint); font-size: 11px; letter-spacing: 0.05em; }

/* ---------- Moon divider ---------- */
.moon-divider { display: flex; align-items: center; justify-content: center; gap: 14px; }
.moon-divider .m { display: block; }
.moon-divider.gold .m circle, .moon-divider.gold .m path { fill: var(--gold); }
.moon-divider.cream .m circle, .moon-divider.cream .m path { fill: var(--cream); opacity: 0.85; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px; font-size: 12px; letter-spacing: 0.14em; font-weight: 700;
  text-transform: uppercase; cursor: pointer; border: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
  font-family: 'Manrope', sans-serif;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(187,148,87,0.5); }
.btn-outline-cream { border-color: rgba(250,245,234,0.5); color: var(--cream); }
.btn-outline-cream:hover { background: rgba(250,245,234,0.12); border-color: var(--cream); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 92vh; min-height: 620px; width: 100%; overflow: hidden;
}
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,22,38,0.55) 0%, rgba(14,22,38,0.25) 40%, rgba(14,22,38,0.7) 100%);
}
.hero-content {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 20px;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.reveal { animation: fadeUp 1.1s cubic-bezier(0.22,1,0.36,1) both; }
.d1 { animation-delay: 0.1s; } .d2 { animation-delay: 0.3s; } .d3 { animation-delay: 0.5s; } .d4 { animation-delay: 0.7s; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
@media (min-width: 768px) { .section { padding: 140px 0; } }
.section-navy { background: var(--navy-deep); color: var(--cream); position: relative; }

.eyebrow { font-size: 12px; letter-spacing: 0.22em; font-weight: 700; color: var(--gold-deep); margin-bottom: 18px; }
.section-navy .eyebrow { color: var(--gold-light); }

.heading-xl { font-family: 'Fraunces', serif; font-size: 42px; line-height: 1.12; font-weight: 500; }
@media (min-width: 768px) { .heading-xl { font-size: 58px; } }
.heading-lg { font-family: 'Fraunces', serif; font-size: 32px; line-height: 1.2; font-weight: 500; }
@media (min-width: 768px) { .heading-lg { font-size: 42px; } }

.body-text { font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.section-navy .body-text { color: rgba(250,245,234,0.75); }

/* ---------- Story tags ---------- */
.story-tag {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(28,41,66,0.25); padding: 8px 18px;
  font-size: 12px; letter-spacing: 0.1em; font-weight: 600; color: var(--navy);
}

/* ---------- Gallery ---------- */
.hover-zoom { overflow: hidden; }
.hover-zoom img { transition: transform 1.3s cubic-bezier(0.22,1,0.36,1); }
.hover-zoom:hover img { transform: scale(1.06); }

/* ---------- Menu page: category chips ---------- */
.cat-nav-scroll {
  position: sticky; top: 75px; z-index: 50;
  background: rgba(250,245,234,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(28,41,66,0.1);
  overflow-x: auto; white-space: nowrap;
  padding: 20px 0 16px;
  scrollbar-width: none;
}
.cat-nav-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  display: inline-block; padding: 9px 18px; margin-right: 10px;
  border: 1px solid rgba(28,41,66,0.2); font-size: 12px; letter-spacing: 0.06em;
  font-weight: 600; color: var(--ink-soft); border-radius: 999px;
  transition: all 0.3s; cursor: pointer;
}
.cat-chip:hover { border-color: var(--gold); color: var(--navy); }
.cat-chip.active { background: var(--navy); border-color: var(--navy); color: var(--cream); }

/* ---------- Menu items ---------- */
.menu-category { padding: 64px 0; border-bottom: 1px solid rgba(28,41,66,0.08); scroll-margin-top: 150px; }
.menu-category:last-child { border-bottom: none; }
.menu-cat-header { display: flex; align-items: baseline; gap: 18px; margin-bottom: 40px; }
.menu-cat-number { font-family: 'Fraunces', serif; font-style: italic; font-size: 15px; color: var(--gold-deep); }
.menu-cat-title { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 500; }
@media (min-width: 768px) { .menu-cat-title { font-size: 36px; } }

.menu-items-grid { display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 900px) { .menu-items-grid { grid-template-columns: 1fr 1fr; column-gap: 56px; } }

.menu-item-row { padding: 16px 0; border-bottom: 1px dotted rgba(28,41,66,0.18); }
.menu-item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.menu-item-name { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 500; color: var(--ink); }
.menu-item-price { font-family: 'Fraunces', serif; font-style: italic; font-size: 16px; color: var(--gold-deep); white-space: nowrap; flex-shrink: 0; }
.menu-item-desc { font-size: 13.5px; color: var(--ink-faint); margin-top: 4px; line-height: 1.5; font-style: italic; }

.menu-item-has-img { display: flex; gap: 16px; align-items: center; }
.menu-item-img { width: 72px; height: 72px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.menu-item-has-img .menu-item-text { flex: 1; min-width: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--cream); position: relative; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 48px; padding: 72px 0 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-label { font-size: 12px; letter-spacing: 0.18em; font-weight: 700; color: var(--gold-light); margin-bottom: 18px; }
.footer-link { display: block; font-size: 14px; color: rgba(250,245,234,0.7); margin-bottom: 12px; transition: color 0.3s; }
.footer-link:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(250,245,234,0.1); padding: 22px 0; }
.footer-bottom-inner { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 768px) { .footer-bottom-inner { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
[data-i18n], [data-i18n-html] { transition: opacity 0.15s; }
