:root{
  --bg:#070709;
  --text:#f6f2ec;
  --muted: rgba(246,242,236,.72);
  --accent:#f08a1a;
  --accent2:#ffb25a;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x:hidden;
}
a{ color: inherit; text-decoration:none; }

/* ===== HERO / TOP BAR ===== */
.menu-hero{
  position: relative;
  padding-bottom: 12px;
  background:
    radial-gradient(900px 420px at 20% 15%, rgba(240,138,26,.25), transparent 60%),
    radial-gradient(700px 400px at 78% 18%, rgba(255,178,90,.10), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.85)),
    url("../images/header-bg.png");  background-size: cover;
  background-position: center;
}
.hero-overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 500px at 40% 40%, rgba(0,0,0,.05), rgba(0,0,0,.55) 65%),
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.70));
  pointer-events:none;
  z-index:1;
}
.hero-sparkles{
  position:absolute; inset:0;
  pointer-events:none;
  z-index:2;
  background:
    radial-gradient(circle at 10% 25%, rgba(240,138,26,.22), transparent 38%),
    radial-gradient(circle at 35% 55%, rgba(240,138,26,.15), transparent 42%),
    radial-gradient(circle at 68% 30%, rgba(240,138,26,.18), transparent 40%),
    radial-gradient(circle at 85% 72%, rgba(240,138,26,.12), transparent 46%),
    radial-gradient(circle at 25% 80%, rgba(240,138,26,.10), transparent 46%);
  mix-blend-mode: screen;
  opacity: .95;
}

.topbar{
  position: relative;
  z-index: 10;
  background: rgba(0,0,0,.35);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
.topbar-inner{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 10px 0;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  gap: 18px;
}
.topbar-item{ display:flex; align-items:center; gap:10px; white-space: nowrap; }
.topdot{
  width:6px; height:6px; border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(240,138,26,.65);
}
.topicon svg{
  width:16px; height:16px;
  fill: var(--accent);
  filter: drop-shadow(0 0 6px rgba(240,138,26,.6));
}
.toplink{ color: rgba(255,255,255,.80); }
.toplink:hover{ color:#fff; }

/* ===== NAV ===== */
.nav-area{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 18px 0 10px;
  gap: 16px;
}
.brand{ display:flex; align-items:center; gap: 12px; }
.brand-mark{
  width: 44px; height: 44px; border-radius: 12px;
  display:grid; place-items:center;
  font-family: "Great Vibes", cursive;
  font-size: 32px;
  color: var(--accent);
  background: rgba(0,0,0,.30);
  border: 1px solid rgba(240,138,26,.25);
}
.brand-name{
  font-family: Cinzel, serif;
  font-weight: 700;
  letter-spacing: .18em;
  font-size: 14px;
}
.brand-sub{
  font-size: 10px;
  letter-spacing: .22em;
  color: rgba(255,255,255,.65);
  margin-top: 4px;
}

.navlinks{ gap: 26px; }
.navlinks a{
  color: rgba(255,255,255,.80);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 8px 2px;
  position: relative;
}
.navlinks a.active{ color: var(--accent2); }
.navlinks a.active::after{
  content:"";
  position:absolute; left:0; bottom:2px;
  width:100%; height:2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.nav-actions{ display:flex; align-items:center; gap: 12px; }

.btn-reserve{
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ff9a2f, #e56f00);
  color: #1a0f06;
  box-shadow: 0 18px 44px rgba(240,138,26,.25);
}

.nav-toggle{
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:5px;
}
.nav-toggle span{
  display:block;
  width: 18px; height: 2px;
  background: rgba(240,138,26,.95);
  border-radius: 2px;
}

/* Language buttons */
.lang-wrap{
  display:flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.28);
}
.lang-btn{
  border: 1px solid rgba(240,138,26,.18);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.78);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 999px;
  cursor:pointer;
}
.lang-btn.active{
  background: rgba(240,138,26,.18);
  border-color: rgba(240,138,26,.35);
  color: rgba(255,255,255,.92);
}

.header-wave{ height: 34px; overflow:hidden; }
.header-wave svg{ width:100%; height:100%; display:block; }
.wave-fill{ fill: rgba(0,0,0,.38); }
.wave-line{
  fill:none;
  stroke: rgba(240,138,26,.72);
  stroke-width: 2.4;
  filter: drop-shadow(0 0 12px rgba(240,138,26,.45));
}

/* Hero text */
.menu-hero-inner{
  position: relative;
  z-index: 5;
  padding: 26px 0 30px;
  text-align: center;
}
.hero-title{
  font-family: "Great Vibes", cursive;
  font-size: clamp(44px, 6vw, 72px);
  color: rgba(255,255,255,.92);
  text-shadow: 0 24px 70px rgba(0,0,0,.65);
}
.hero-subline{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  color: rgba(255,255,255,.70);
  letter-spacing: .10em;
}
.subline-rule{
  width: 110px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,138,26,.55), transparent);
}
.hero-subtext{ font-size: 13px; }

/* Offcanvas links */
.offlink{
  display:block;
  padding: 12px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
}
.offlink.active{
  border-color: rgba(240,138,26,.35);
  background: rgba(240,138,26,.12);
}

/* ===== MENU BOOK AREA ===== */
.menu-page{
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(240,138,26,.12), transparent 60%),
    linear-gradient(180deg, rgba(9,9,10,.98), rgba(9,9,10,1));
  padding: 28px 0 70px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.section-title{
  font-family: Cinzel, serif;
  letter-spacing: .10em;
  font-size: clamp(26px, 3.6vw, 40px);
}
.section-note{
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.menu-book-bs{
  position: relative;
  border-radius: 22px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  box-shadow: 0 40px 120px rgba(0,0,0,.75);
  overflow: hidden;
}

.book-page{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(900px 480px at 20% 20%, rgba(240,138,26,.10), transparent 60%),
    linear-gradient(180deg, rgba(15,15,15,.82), rgba(7,7,9,.95));
}
.book-page::after{
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
  opacity:.85;
  background:
    radial-gradient(900px 540px at 50% 35%, rgba(255,255,255,.04), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.015) 0px, rgba(255,255,255,.015) 1px, transparent 2px, transparent 6px);
  mix-blend-mode: overlay;
}

.page-inner{
  position: relative;
  z-index: 2;
  height: 560px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px;
}
.page-footer{
  position:absolute; left: 16px; right: 16px; bottom: 14px;
  display:flex; justify-content: space-between; align-items:center;
  z-index: 3;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.60);
}
.page-num{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
}

/* Navigation arrows */
.page-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 66px;
  border-radius: 16px;
  border: 1px solid rgba(240,138,26,.25);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.9);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  z-index: 50;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.page-btn.prev{ left: 10px; }
.page-btn.next{ right: 10px; }
.page-btn:disabled{ opacity:.35; cursor:not-allowed; }

/* Page title */
.page-title{
  font-family: Cinzel, serif;
  letter-spacing: .10em;
  font-size: 22px;
  color: rgba(255,255,255,.92);
  margin-bottom: 6px;
}
.page-rule{
  height: 1px;
  margin: 10px 0 14px;
  background: linear-gradient(90deg, transparent, rgba(240,138,26,.55), transparent);
}

/* ===== MENU CARDS WITH THUMBNAILS ===== */
.mgrid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.mcard{
  display:grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  box-shadow: 0 18px 40px rgba(0,0,0,.40);
}

.mthumb{
  width: 104px;
  height: 92px;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.mthumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  transform: scale(1.02);
  filter: contrast(1.05) saturate(1.05);
}

.mcard-body{ padding: 10px 12px 10px 0; }

.mcard-row{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.mcard-title{
  margin:0;
  font-family: Cinzel, serif;
  font-size: 14.5px;
  letter-spacing:.06em;
  color: rgba(255,255,255,.92);
}
.mcard-price{
  color: var(--accent2);
  letter-spacing:.12em;
  font-weight:600;
  font-size: 12.5px;
  white-space: nowrap;
}
.mcard-desc{
  margin: 6px 0 0;
  color: rgba(255,255,255,.68);
  font-size: 12.5px;
  line-height: 1.45;
}

/* Cover pages */
.cover{ text-align:center; padding-top: 18px; }
.cover-kicker{ font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.70); }
.cover-title{ margin-top: 10px; font-family: Cinzel, serif; letter-spacing: .10em; font-size: 28px; }
.cover-brand{ margin-top: 14px; font-family: Cinzel, serif; font-weight:700; letter-spacing:.22em; font-size: 22px; }
.cover-sub{ margin-top: 10px; color: rgba(255,255,255,.70); letter-spacing: .10em; }
.cover-rule{ width: 220px; height: 1px; margin: 18px auto 16px; background: linear-gradient(90deg, transparent, rgba(240,138,26,.55), transparent); }
.cover-note{ color: rgba(255,255,255,.66); line-height:1.6; font-size: 14px; }
.cover-logo{
  margin: 10px auto 0;
  width: 84px; height: 84px;
  border-radius: 18px;
  display:grid; place-items:center;
  font-family: "Great Vibes", cursive;
  font-size: 56px;
  color: var(--accent);
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(240,138,26,.28);
  box-shadow: 0 0 45px rgba(240,138,26,.14);
}

.book-hint{ color: rgba(255,255,255,.70); font-size: 13px; }

/* ===== CURL OVERLAY (transition stays the same) ===== */
.flip-layer{
  position:absolute;
  z-index: 40;
  display:none;
  pointer-events:none;
}
.flip-layer.show{ display:block; }

.curl-under{
  position:absolute;
  inset:0;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(900px 480px at 20% 20%, rgba(240,138,26,.08), transparent 60%),
    linear-gradient(180deg, rgba(15,15,15,.82), rgba(7,7,9,.95));
}
.curl-under::after{
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
  opacity:.85;
  background:
    radial-gradient(900px 540px at 50% 35%, rgba(255,255,255,.04), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.015) 0px, rgba(255,255,255,.015) 1px, transparent 2px, transparent 6px);
  mix-blend-mode: overlay;
}

.curl-sheet{
  position:absolute;
  inset:0;
  border-radius: 18px;
  transform-style: preserve-3d;
  will-change: transform;
  --p: 0;
  --ry: 0deg;
  --rz: 0deg;
}

.flip-layer[data-dir="next"] .curl-sheet{
  transform-origin: 100% 100%;
  transform: rotateY(var(--ry)) rotateZ(var(--rz));
}
.flip-layer[data-dir="prev"] .curl-sheet{
  transform-origin: 0% 100%;
  transform: rotateY(var(--ry)) rotateZ(var(--rz));
}

.curl-face{
  position:absolute;
  inset:0;
  border-radius: 18px;
  backface-visibility:hidden;
  overflow:hidden;
  border: 1px solid rgba(240,138,26,.18);
  background:
    radial-gradient(900px 480px at 20% 20%, rgba(240,138,26,.10), transparent 60%),
    linear-gradient(180deg, rgba(15,15,15,.82), rgba(7,7,9,.95));
  box-shadow: 0 30px 90px rgba(0,0,0,.75);
}
.curl-face::after{
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
  opacity:.85;
  background:
    radial-gradient(900px 540px at 50% 35%, rgba(255,255,255,.04), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.015) 0px, rgba(255,255,255,.015) 1px, transparent 2px, transparent 6px);
  mix-blend-mode: overlay;
}
.curl-face.back{ transform: rotateY(180deg); }

.curl-content{
  position: relative;
  z-index: 2;
  padding: 16px;
  height: 100%;
  overflow:hidden;
}

.curl-highlight{
  position:absolute;
  inset:-40px;
  border-radius: 40px;
  pointer-events:none;
  opacity: 0;
  mix-blend-mode: screen;
  background:
    radial-gradient(260px 260px at 85% 85%, rgba(255,255,255,.20), transparent 70%),
    radial-gradient(420px 240px at 70% 90%, rgba(240,138,26,.18), transparent 70%);
  filter: blur(1px);
  transform: rotate(-8deg);
}
.curl-shadow{
  position:absolute;
  inset:-60px;
  pointer-events:none;
  opacity: 0;
  background:
    radial-gradient(520px 320px at 80% 85%, rgba(0,0,0,.55), transparent 70%),
    radial-gradient(420px 260px at 65% 90%, rgba(0,0,0,.40), transparent 70%);
  filter: blur(1.2px);
}

/* Mobile tweaks */
@media (max-width: 600px){
  .mcard{ grid-template-columns: 92px 1fr; }
  .mthumb{ width: 92px; height: 86px; }
  .page-inner{ height: 560px; }
}

/* =========================================================
   A4 PAGE SIZE OVERRIDES (ADD AT END OF menu.css)
   Makes the menu pages match A4 proportions and feel larger.
   ========================================================= */

/* A4 ratio = 210 / 297 = 0.7071 */
:root{
  --a4-ratio: 0.7071;          /* width / height */
  --a4-height-desktop: 920px;  /* adjust if you want bigger/smaller */
  --a4-height-tablet: 820px;
  --a4-height-mobile: 680px;
}

/* Book container spacing */
.menu-page .container{
  max-width: 1320px; /* give the spread more room */
}

/* The whole “book” wrapper */
.menu-book-bs{
  position: relative;
  padding: 14px 10px;
}

/* Each page surface should be A4 portrait */
.book-page.page-surface{
  /* Force A4 aspect */
  aspect-ratio: 210 / 297;
  height: var(--a4-height-desktop);
  width: auto;

  /* Make it look like real paper */
  border-radius: 18px;
  overflow: hidden;
}

/* Make both pages align and fill height equally */
.menu-book-bs .row{
  align-items: stretch !important;
}
.menu-book-bs .col-12.col-lg-6{
  display: flex;
}
.menu-book-bs .col-12.col-lg-6 > .book-page{
  flex: 1;
}

/* Keep inner content scrolling if it’s long */
.page-inner{
  height: calc(100% - 46px); /* leave room for footer */
  overflow: auto;
  padding: 18px 18px 12px;
}

/* Slightly larger typography for A4 feel */
.page-title{
  font-size: clamp(18px, 1.2vw, 22px);
  letter-spacing: .18em;
}
.mcard-title{
  font-size: 14px;
}
.mcard-desc{
  font-size: 12.5px;
  line-height: 1.25;
}
.mcard-price{
  font-size: 13px;
}

/* Make the menu cards a bit roomier on bigger pages */
.mgrid{
  gap: 12px;
}
.mcard{
  border-radius: 16px;
}
.mthumb{
  height: 88px; /* bigger thumbnail slot */
}

/* Buttons stay centered vertically relative to A4 */
.page-btn{
  top: 50%;
  transform: translateY(-50%);
}

/* Tablet */
@media (max-width: 991.98px){
  .book-page.page-surface{
    height: var(--a4-height-tablet);
  }
}

/* Mobile: show one A4 page, full width */
@media (max-width: 575.98px){
  .menu-page .container{
    max-width: 100%;
  }

  /* Stack pages but keep A4 ratio */
  .book-page.page-surface{
    height: var(--a4-height-mobile);
    margin: 0 auto;
  }

  /* Hide the left page in the grid and render just right visually? (optional)
     If you want to still show both stacked, remove this block. */
  /* .menu-book-bs .row > .col-12.col-lg-6:first-child{ display:none; } */

  .page-inner{
    padding: 16px 14px 10px;
  }
}

/* ===== Mobile nav toggle (hamburger) ===== */
.nav-actions{
  display:flex;
  align-items:center;
  gap:14px;
}

.nav-toggle{
  width: 46px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(240,138,26,.25);
  background: rgba(0,0,0,.35);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.nav-toggle span{
  display:block;
  height: 2px;
  width: 100%;
  background: rgba(255,255,255,.92);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(240,138,26,.15);
}

/* ===== Offcanvas link styling ===== */
.offlink{
  display:block;
  padding: 12px 6px;
  color: rgba(255,255,255,.92);
  text-decoration:none;
  font-weight: 700;
  letter-spacing: .08em;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.offlink:hover{
  color: #fff;
}

.offlink.active{
  color: #f28c28;
}

@media (max-width: 991.98px){
  /* Single-page "book" on phones */
  .menu-book-bs{ padding: 10px; }
  .book-page{ max-width: 720px; margin-left:auto; margin-right:auto; }
  .page-inner{
    height: min(70vh, 520px);
    padding: 14px;
  }
  .page-btn{
    width: 44px;
    height: 60px;
    font-size: 32px;
    border-radius: 14px;
  }
}

/* ===========================
   MOBILE FIX: FULL WIDTH + MORE CONTENT VISIBLE
   (No redesign, just behavior/layout corrections)
=========================== */

/* Make Bootstrap containers truly fill the phone width */
@media (max-width: 767.98px){
  .container,
  .container-fluid{
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Remove the “half screen” feeling by ensuring the book uses full width */
  .menu-book-bs{
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Make the book page taller on phones so you see more items without scrolling */
@media (max-width: 575.98px){
  .page-inner{
    /* Bigger usable area on phones */
    height: calc(100vh - 320px);
    min-height: 560px;
    padding: 12px;
  }

  /* Make cards smaller so 5+ items fit on one page */
  .mcard{
    grid-template-columns: 84px 1fr;
    gap: 10px;
  }
  .mthumb{
    width: 84px;
    height: 76px;
  }

  /* Slightly smaller text so more content fits */
  .mcard-title{ font-size: 13px; }
  .mcard-desc{ font-size: 12px; line-height: 1.35; }
  .mcard-price{ font-size: 12px; }
}

/* If your page-inner scroll was being blocked by overlays, this guarantees it */
.page-inner{
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ===== iPhone Safari: prevent horizontal page drag artifacts ===== */
html, body {
  width: 100%;
  overflow-x: hidden !important;
}

/* Keep the book away from the iOS edge-swipe zones */
@media (max-width: 575.98px){
  .menu-book-bs{
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}
