/* Header (refined) */
.hero{
  /* refined header sizing for mobile: slightly reduced height to free up body space */
  height:46vh;
  min-height:260px;
  /* increased top padding so header content sits slightly lower on the viewport */
  padding:28px 18px 16px;
  display:flex;
  flex-direction:column;
  gap:14px;
  justify-content:flex-start;
  backdrop-filter: blur(var(--glass-blur));
  z-index:40; /* ensure header sits above main panel */
}
.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap; /* allow wrapping so header controls stay accessible on narrow screens */
}

/* group the toggle, nav list and CTA so they layout consistently and have proper touch spacing */
.nav-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:nowrap;            /* keep toggle and CTAs aligned on one row */
  justify-content:flex-end;    /* ensure action buttons sit to the right of the header */
  min-width:0;
}

/* ensure the menu toggle and CTA remain distinct and large enough for touch */
.nav-toggle{background:transparent;border:0;font-size:20px;padding:10px;display:inline-flex;align-items:center;border-radius:10px}
.nav-cta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-direction:row;
}
/* make CTA buttons consistent and touch friendly */
.nav-cta .btn{
  min-width:92px;
  padding:10px 12px;
  font-weight:800;
  border-radius:10px;
}
/* on very small screens compress CTAs but keep tappable size */
@media(max-width:420px){
  .nav-cta .btn{min-width:74px;padding:10px 10px;font-size:14px}
}
.brand{display:flex;align-items:center;gap:12px}
.brand-text{display:flex;flex-direction:column;line-height:1}
/* Make the site header very bold and prominent */
.brand-title{
  font-weight:900;
  font-size:24px;
  color:#ffffff; /* changed to pure white for high contrast */
  letter-spacing:-0.4px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.06);
}

/* make logo and brand more prominent and touch-friendly on mobile */
.logo-img{
  height:56px;
  width:auto;
  display:block;
  object-fit:contain;
  vertical-align:middle;
  border-radius:8px;
  box-shadow:var(--soft-shadow);
  background:linear-gradient(180deg,rgba(255,255,255,0.6),rgba(255,255,255,0.4));
  padding:6px;
  /* small offset so logo appears slightly lower within the header */
  margin-top:6px;
}
.brand-sub{
  font-weight:800;
  font-size:13px;
  color:var(--accent);
  margin-top:2px;
  text-transform:none;
}

.logo img, .logo-img{
  height:44px;
  width:auto;
  display:block;
  object-fit:contain;
  vertical-align:middle;
  border-radius:8px;
  box-shadow:var(--soft-shadow);
  background:linear-gradient(180deg,rgba(255,255,255,0.6),rgba(255,255,255,0.4));
  padding:6px;
}
.nav-toggle{background:transparent;border:0;font-size:20px;padding:8px;display:inline-flex;align-items:center}
.nav-list{position:absolute;top:70px;right:12px;background:var(--card);box-shadow:var(--shadow);border-radius:12px;padding:8px;display:none;flex-direction:column;gap:6px;min-width:160px}
/* explicit "open" state for the mobile/dropdown menu controlled by JS */
.nav-list.open{display:flex}
.nav-list button{
  background:transparent;
  border:0;
  padding:10px 12px;
  border-radius:10px;
  text-align:center;           /* center text for balanced header layout */
  width:100%;
  font-size:14px;
  color:#ffffff;               /* ensure button text is white */
  font-weight:700;             /* bolder for clarity on dark background */
}
.nav-list button:hover{
  background:rgba(255,255,255,0.04); /* subtle light hover on dark theme */
}

.nav-cta{display:flex;align-items:center}
.order-inline{background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#fff;border:0;padding:10px 14px;border-radius:10px;font-weight:600;box-shadow:0 8px 22px rgba(201,110,74,0.15)}

.hero-content{display:flex;gap:16px;align-items:center;justify-content:space-between;width:100%}
.hero-copy{flex:1;min-width:0}
.hero-copy h1{margin:6px 0;font-size:30px;letter-spacing:-0.2px}
.hero-copy p{margin:8px 0;color:var(--muted);font-size:15px}
.hero-visual{width:160px;height:110px;border-radius:12px;background:linear-gradient(135deg,#fff4ee,#ffe7d6);box-shadow:var(--soft-shadow)}

/* Watermark: layered decorative background images (low opacity, non-interactive) */
.hero{
  position:relative;
}







/* ensure main content stacks above watermarks */
.hero > * { position:relative; z-index:1; }
/* keep panel lower than header so header remains visible */
.panel{ position:relative; z-index:10; }

.hero-cta{display:flex;gap:8px;margin-top:12px}

/* Menu - simplified, integrated layout (no boxed cards) */
/* Increased weights, sizes and spacing to make menu bolder and more prominent */
.menu-grid{
  /* responsive grid for clearer, less compressed layout */
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap:18px;
  align-items:start;
  max-width:1180px;
  margin:0 auto;
  padding-top:0;
  width:100%;
  padding-bottom:8px;
  /* remove horizontal scrolling for improved accessibility; allow internal scrolling in panel */
  overflow-x:visible;
}
.menu-category{
  padding:14px;
  border-radius:12px;
  background:linear-gradient(180deg,#fffaf7,#fff4f0);
  box-shadow:0 8px 24px rgba(16,16,16,0.04);
  transition:transform .12s ease, box-shadow .12s ease;
  position:relative;
  overflow:visible;
  border:1px solid rgba(16,16,16,0.04);
  /* card sizing for grid */
  min-width:260px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.menu-category:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 30px rgba(16,16,16,0.04);
}
.menu-category h3{margin:6px 0 10px 0;font-size:20px;letter-spacing:-0.4px;color:#081018;font-weight:900}
.menu-category .category-meta{font-size:13px;color:var(--muted);margin-top:4px}

/* Dish list styling */
.dish-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.dish-row{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px;
  border-radius:12px;
  background:transparent;
  border:0;
  font-size:16.5px;
  color:#0b0b0b;
  gap:18px;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  /* larger hit area for touch */
  min-height:64px;
}
.dish-row:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 48px rgba(16,16,16,0.06);
  border-color:rgba(16,16,16,0.08);
}

/* Dish info */
.dish-info{min-width:0;flex:1;overflow:hidden}
.dish-name{font-weight:900;font-size:16.5px;color:#071018;line-height:1.1;white-space:normal;overflow-wrap:break-word}
.dish-desc{font-size:14px;color:var(--muted);margin-top:6px;line-height:1.25;max-width:100%}

/* Price pill and actions */
.dish-actions{display:flex;gap:14px;align-items:center}
.dish-price{
  font-weight:900;
  color:#fff;
  background:linear-gradient(90deg,var(--accent),#c75e36);
  padding:10px 16px;
  border-radius:999px;
  box-shadow:0 14px 32px rgba(201,110,74,0.14);
  min-width:110px;
  text-align:center;
  font-size:15px;
  letter-spacing:0.2px;
}
/* Make price stand out on small screens too */
@media(max-width:699px){
  .dish-price{min-width:96px;padding:10px 12px;font-size:15px}
}

.dish-badge{
  font-size:12px;
  padding:6px 8px;
  border-radius:8px;
  background:rgba(0,0,0,0.04);
  color:var(--muted);
  margin-left:6px;
}

/* Buttons: improved spacing, accessibility and mobile touch targets */
.btn.small{padding:10px 12px;border-radius:10px;font-size:14px;min-width:64px}
.btn.primary.small{padding:10px 12px;border-radius:10px;min-width:72px}
.btn.ghost.small{background:transparent;border:1px solid rgba(0,0,0,0.06)}

/* compact note style used inside categories */
.menu-category > div{font-size:13px;color:var(--muted)}

/* Gallery */
.gallery{display:flex;gap:12px;justify-content:space-between}
.img-box{flex:1;height:120px;border-radius:10px;background-size:cover;background-position:center;box-shadow:0 6px 18px rgba(0,0,0,0.06)}

/* Reservation form */
.reservation-form{display:flex;flex-direction:column;gap:8px}
.reservation-form input{padding:12px;border-radius:10px;border:1px solid rgba(0,0,0,0.06);font-size:14px}

/* Generic button baseline */
.btn{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.06);
  background:transparent;
  min-height:44px;          /* ensure touch target */
  min-width:64px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  -webkit-tap-highlight-color: rgba(0,0,0,0.06);
}
.btn.primary{background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#fff;border:0}
.btn.ghost{background:transparent;border:1px solid rgba(0,0,0,0.06)}

/* Hero CTA grouping — allow wrap and center on small screens */
.hero-cta{
  display:flex;
  gap:8px;
  margin-top:12px;
  flex-wrap:wrap;
  align-items:center;
}

/* Make individual action buttons visually balanced on small widths */
.hero-cta .btn{min-width:120px;padding:12px 14px;font-weight:700}

/* Floating Order Now button (subtle, accessible) */
/* keep large on desktop but ensure it doesn't overlap other controls on mobile */
.order-btn{
  position:fixed;
  right:20px;
  bottom:28px;
  z-index:60;
  padding:12px 16px;
  border-radius:999px;
  border:0;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  color:#fff;
  font-weight:700;
  box-shadow:0 14px 38px rgba(201,110,74,0.14);
  min-width:140px;
  text-align:center;
  font-size:15px;
  transition:transform .18s ease, box-shadow .18s ease;
}
.order-btn:active{transform:translateY(2px) scale(.995)}



/* Cart floating button sits above the menu FAB on desktop; ensure distinct spacing */
.order-btn.cart-btn{bottom:92px;right:20px}

/* Make the FAB slightly larger and spaced on small screens */
@media(max-width:699px){
  /* keep FAB on the left on mobile for consistent separation */

  .order-btn{right:14px;bottom:68px;min-width:140px}
  .order-btn.cart-btn{bottom:128px;right:14px} /* cart sits between menu and order on mobile */

  /* ensure nav list buttons are large enough for touch (bottom sheet) */
  .nav-list button{min-height:48px;padding:12px 14px;font-size:16px}

  /* Make hero CTA buttons full width on very small screens for easier tapping */
  .hero-cta .btn{flex:1;min-width:0;align-self:stretch}
}

/* Slightly smaller on very small screens */
@media(max-width:360px){
  .order-btn{padding:12px 14px;font-size:15px;min-width:120px}
}

/* Responsive tweaks */
@media(min-width:700px){
  .panel{height:calc(100vh - 220px - 56px)}
  .gallery .img-box{height:160px}
  /* Use two wider columns on larger screens for a spacious feel */
  /* on wider screens keep horizontal single-row but increase spacing */
  .menu-grid{display:flex;flex-direction:row;gap:26px;padding:6px 0;overflow-x:auto;padding-bottom:8px}
  .nav-list{display:flex;position:static;background:transparent;box-shadow:none;padding:0;flex-direction:row;gap:8px}
  .nav-list button{
    padding:6px 10px;
    color:#ffffff;           /* keep white on desktop layout too */
    font-weight:700;
    text-align:center;
  }
  .nav-toggle{display:none}
}

/* Mobile-specific adjustments */
@media(max-width:699px){
  /* Taller hero on mobile so header content is prominent and easier to tap */
  .hero{height:50vh;min-height:320px;padding:16px}
  .brand-title{font-size:22px}
  .logo img, .logo-img{height:64px}
  /* Make nav-list a bottom sheet for easier thumb reach */
  .nav-list{
    display:none;
    position:fixed;
    left:8px;
    right:8px;
    bottom:12px;
    background:var(--card);
    box-shadow:var(--shadow);
    border-radius:12px;
    padding:12px;
    flex-direction:column;
    gap:8px;
    z-index:80;
  }
  .nav-list button{padding:12px;border-radius:10px}
  .nav-toggle{display:inline-flex}
  /* Hide decorative visual to save space */
  .hero-visual{display:none}
  /* Ensure buttons and controls are more touch-friendly */
  .btn{min-height:48px;min-width:56px;padding:14px 16px}
  .btn.small{min-width:72px}
  .order-btn{right:14px;bottom:96px;min-width:140px}
  /* Make menu categories single column and use full-width items */
  .menu-grid{grid-template-columns:1fr;gap:16px}
  .gallery{flex-direction:column}
  .gallery .img-box{height:140px}
  /* Ensure the panel fills the remaining space and scrolls if needed (matches larger hero) */
  .panel{height:calc(100vh - 50vh - 56px);padding:12px}
}

/* Ensure menu area text is strongly visible: force black text for menu grid and its descendants */
.menu-grid, 
.menu-grid * {
  color: #000 !important;
}

/* About modal styles and effects */
#aboutModal {
  position:fixed;
  left:0;
  top:0;
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.46);
  z-index:200;
  animation: fadeIn .22s ease-out;
}
#aboutModal .sheet{
  width:92%;
  max-width:680px;
  border-radius:14px;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)), var(--card);
  box-shadow:0 30px 80px rgba(7,7,7,0.6);
  padding:18px;
  display:flex;
  gap:12px;
  flex-direction:column;
  transform-origin:center;
  animation: popIn .28s cubic-bezier(.16,.9,.32,1);
  border:1px solid rgba(255,255,255,0.03);
}
#aboutModal .header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
#aboutModal .title{
  font-size:18px;
  font-weight:900;
  color:#fff;
}
#aboutModal .content{
  display:flex;
  gap:12px;
  align-items:flex-start;
  color:var(--muted);
  line-height:1.45;
}
#aboutModal .avatar{
  width:92px;
  height:92px;
  border-radius:12px;
  background:linear-gradient(135deg, rgba(255,111,46,0.14), rgba(255,155,87,0.06));
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#fff;
  font-size:28px;
  box-shadow:0 10px 30px rgba(201,110,74,0.06);
  flex-shrink:0;
}
#aboutModal .meta{font-size:14px;color:var(--muted)}
#aboutModal .actions{display:flex;gap:10px;justify-content:flex-end;margin-top:6px}
#aboutModal .speak-indicator{
  height:8px;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  border-radius:999px;
  transition:width .18s linear;
  width:0%;
  box-shadow:0 8px 20px rgba(255,111,46,0.08);
}
#aboutModal .speak-active .speak-indicator{width:100%}

/* small responsive tweak */
@media(max-width:520px){
  #aboutModal .content{flex-direction:column;align-items:flex-start}
  #aboutModal .avatar{width:76px;height:76px;font-size:22px}
}

/* animations */
@keyframes popIn{
  0%{ transform: translateY(10px) scale(.98); opacity:0 }
  60%{ transform: translateY(-6px) scale(1.02); opacity:1 }
  100%{ transform: translateY(0) scale(1) }
}
@keyframes fadeIn{
  from{ opacity:0 } to { opacity:1 }
}

/* Generic animation utilities */
.fade-in { animation: fadeIn .36s ease-out both; }
.fade-out { animation: fadeOut .28s ease-in both; }
.slide-in-right { animation: slideInRight .36s cubic-bezier(.2,.9,.25,1) both; }
.slide-out-left { animation: slideOutLeft .28s ease-in both; }
.emerge { animation: emergeUp .42s cubic-bezier(.16,.9,.32,1) both; transform-origin:center; }

/* small subtle pulse for emphasis */
.pulse {
  animation: pulseAnim 900ms ease-out both;
}

@keyframes fadeOut { from{opacity:1} to{opacity:0} }
@keyframes slideInRight { from{transform:translateX(14px);opacity:0} to{transform:none;opacity:1} }
@keyframes slideOutLeft { from{transform:none;opacity:1} to{transform:translateX(-12px);opacity:0} }
@keyframes emergeUp { 0%{transform:translateY(10px) scale(.98); opacity:0} 60%{transform:translateY(-6px) scale(1.02);opacity:1} 100%{transform:none;opacity:1} }
@keyframes pulseAnim { 0%{transform:scale(1)} 40%{transform:scale(1.06)} 100%{transform:scale(1)} }

/* counting number style */
.count-anim { transition: transform .18s ease; display:inline-block; font-weight:900; }

/* helper for menu item entrance staggering */
.menu-category.emerge { animation-delay: 0ms; }
.menu-category.emerge:nth-child(2){ animation-delay:28ms }
.menu-category.emerge:nth-child(3){ animation-delay:56ms }
.menu-category.emerge:nth-child(4){ animation-delay:84ms }
.menu-category.emerge:nth-child(5){ animation-delay:112ms }

/* keep menu-grid text rule */