/* -------------------------------------
   TYPOGRAPHY — Manrope (body) + Marcellus (headings/nav)
   Local font files in /fonts. Loaded after responsive.css.
----------------------------------------*/
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-700.ttf') format('truetype');
}
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/marcellus-400.ttf') format('truetype');
}

body, button, input, select, textarea,
.navbar-nav > li > a, .sub-menu a,
.chef-sub-title li, .featured-book-content .time,
.contact-info p, .ui-widget, .ui-widget-content {
  font-family: 'Manrope', sans-serif;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6, .chef-title li {
  font-family: 'Marcellus', serif;
  font-weight: 400;
}
.eyebrow, .sub-title, .subtitle, .tagline-content > p {
  font-family: 'Manrope', sans-serif;
}
.featured-book-content > h4, .chef-title li.price {
  font-family: 'Manrope', sans-serif;
}

/* Navigation typography */
#primary-menu .navbar-nav > li > a,
#primary-menu .sub-menu a {
  font-family: 'Marcellus', serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Equal menu columns reserve the center for the logo. */
@media (min-width: 769px) {
  #nav-menu > .container {
    width: 100%;
    max-width: 1480px;
    padding-left: clamp(20px, 4vw, 64px);
    padding-right: clamp(20px, 4vw, 64px);
  }
  #primary-menu.navbar-collapse {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
    align-items: center;
    margin: 0;
    padding: 0;
  }
  #primary-menu::before, #primary-menu::after {
    display: none;
  }
  #primary-menu #leftmenu, #primary-menu #rightmenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(8px, 1.2vw, 20px);
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
  }
  #primary-menu #leftmenu { grid-column: 1; }
  #primary-menu #rightmenu { grid-column: 3; }
  #primary-menu .navbar-nav > li {
    display: block;
    float: none;
    flex: 0 0 auto;
  }
  #primary-menu .navbar-nav > li > a {
    font-size: clamp(10px, 1.15vw, 18px);
    letter-spacing: 0.045em;
    white-space: nowrap;
    padding: 48px 0;
  }
  .on #primary-menu .navbar-nav > li > a { padding: 25px 0; }
  #nav-menu #logo {
    left: 50%;
    right: auto;
    margin: 0;
    transform: translateX(-50%);
  }
}
@media (max-width: 768px) {
  #nav-menu #logo {
    left: auto;
    right: auto;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Stage 2: supporting line beneath the Home and Restaurant hero titles (from reference typography.css). */
.slider .tagline-content p.hero-description,
.parallax .parallax-content p.hero-description {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #fff;
  max-width: 640px;
  margin: 0 auto 24px;
  padding: 0 16px;
}

/* Stage 3: food-menu card grid (from reference typography.css lines 138-169).
   Flex instead of grid so 1–2 cards (and an incomplete last row) are centered. */
.menu-photo-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px 28px; padding: 0 15px 50px; }
.menu-photo-card { min-width: 0; flex: 0 0 calc((100% - 56px) / 3); }
.menu-photo-card .chef-title h3 { font-size: 20px; line-height: 1.35; margin: 0 0 10px; }
.menu-photo-card .chef-title h4 { font-family: 'Manrope', sans-serif; font-size: 14px; line-height: 1.5; }
.menu-photo-card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 20px; border-radius: 4px; }
.menu-photo-card .chef-title ul { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0; margin: 0 0 10px; }
.menu-photo-card .chef-title li { float: none; margin: 0; font-size: 20px; line-height: 1.35; }
.menu-photo-card .chef-title li:first-child { flex: 1; }
.menu-photo-card .chef-title li.weight { flex: none; font-family: 'Manrope', sans-serif; font-size: 12px; }
.menu-photo-card .chef-title li.weight:empty { display: none; }
.menu-photo-card .chef-title p { margin: 0; line-height: 1.65; }
.menu-photo-card .chef-title .menu-price {
  margin: 16px 0 0;
  color: #0e4870;
  font-family: 'Marcellus', serif;
  font-size: 24px;
  line-height: 1.2;
}
@media (max-width: 991px) { .menu-photo-card { flex-basis: calc((100% - 28px) / 2); } }
@media (max-width: 600px) {
  .menu-photo-grid { gap: 28px 14px; }
  .menu-photo-card { flex-basis: calc((100% - 14px) / 2); }
  .menu-photo-card .chef-title h3 { font-size: 18px; overflow-wrap: anywhere; }
  .menu-photo-card .chef-title li { font-size: 18px; overflow-wrap: anywhere; }
  .menu-photo-card .chef-title h4,
  .menu-photo-card .chef-title p { font-size: 13px; overflow-wrap: anywhere; }
  .menu-photo-card .chef-title .menu-price { font-size: 20px; }
}

/* Stage 3: Shabu Shabu category-list sub headings sit inside a .row → give them the same 15px gutter as the cards. */
.menu-sub-category { padding: 0 15px; }

/* Stage 3: "All prices are in…" note sits directly inside a .row → same 15px gutter so it is not flush on mobile. */
.menu-additional-info { padding: 0 15px; }

/* Stage 3: placeholder for menu items without a photo (theme logo on ivory). */
.menu-photo-card__placeholder {
  aspect-ratio: 1 / 1;
  margin-bottom: 20px;
  border-radius: 4px;
  background: #faf9f5 url(../images/logo.png) center / 30% auto no-repeat;
  border: 1px solid rgba(14, 72, 112, .08);
}

/* Image inserted via Add Media in a menu section description (e.g. Set Menu "Includes").
   Always matches the reference: centered above the text, max 360px, whatever size/alignment was picked. */
.menu-section-description img {
  display: block;
  float: none;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 24px auto 28px;
  border-radius: 4px;
}
.menu-section-description .wp-caption {
  width: auto !important;
  max-width: 360px;
  float: none;
  margin: 0 auto;
}
.menu-section-description .wp-caption img { margin-bottom: 8px; }

/* Mobile navbar (≤768): fixed at the top and shrinks on scroll (from reference local-fixes.css, approved in DESIGN.md).
   The `.on` class is already toggled on scroll by js/scripts.js. Desktop (≥769) is not affected. */
@media (max-width: 768px) {
  header { height: 147px; transition: none; }
  #nav-menu.navbar-default {
    --nav-duration: 240ms;
    --nav-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: fixed !important;
    top: 0;
    left: 0;
    height: 147px;
    transition: height var(--nav-duration) var(--nav-ease);
  }
  #nav-menu.navbar-default.on { height: 72px; }
  #nav-menu > .container { position: relative; height: 100%; }
  #nav-menu.navbar-default #logo, #nav-menu.on #logo {
    position: absolute;
    top: 0;
    left: 50%;
    right: auto;
    margin: 0 0 0 -55px;
    width: 110px;
    height: 147px;
    transform-origin: top center;
    transform: translateY(0) scale(1);
    clip-path: inset(0);
    transition: transform var(--nav-duration) var(--nav-ease),
                clip-path var(--nav-duration) var(--nav-ease);
  }
  #nav-menu.on #logo {
    transform: translateY(4px) scale(0.590909);
    clip-path: inset(0 0 37px 0);
  }
  #mobile-menu-trigger {
    top: 8px;
    margin: 0;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  #nav-menu #mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    max-height: calc(100dvh - 147px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  #nav-menu.on #mobile-menu { max-height: calc(100dvh - 72px); }
  html { scroll-padding-top: 84px; }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  #nav-menu.navbar-default, #nav-menu.navbar-default #logo { transition: none; }
}
