/* ==========================================================================
   Component: Logo Mark (v2.1 — static image asset)
   --------------------------------------------------------------------------
   The Logo Mark (ramen-bowl rim + body outline, stacked "RAMEN"/"NOIR"
   wordmark inside the bowl, three steam strokes rising above the rim)
   ships as one finished artwork file,
   images/logo-mark.svg, rendered with a plain <img class="logo ..."> in
   every page's header, footer, and (Home only) the Hero's one-time centered
   reveal — see index.html, css/components/hero-carousel.css and
   js/hero-carousel.js. It is fixed to the default noir-amber palette and
   does not re-theme when a buyer swaps css/themes/noir-*.css (the same
   static-image approach real restaurant logos use). To rebrand, replace
   images/logo-mark.svg (or point data/site-config.js → brand.logoImage at
   a different file) — no CSS or markup edits required.

   This file only sizes the image per placement; it carries no color logic.
   js/nav.js handles showing/hiding the mark via brand.showLogoMark — see
   .logo-lockup--text-only below.
   ========================================================================== */

.logo {
  flex-shrink: 0;
  width: auto;
  display: block;
}

.logo--header {
  height: 52px;
}

.logo--footer {
  height: 72px;
}

.logo--hero {
  height: 120px;
}

@media (max-width: 767px) {
  .logo--header {
    height: 44px;
  }

  /* Scaled down on mobile hero, per Responsive Behavior Notes — still well
     above the 40px legibility floor of the artwork itself. */
  .logo--hero {
    height: 72px;
  }
}

/* ---- Header lockup: mark alone by default ---- */
.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

/* ---- Footer lockup: mark alone by default ---- */
.site-footer__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

/* The mark is self-sufficient (the wordmark is baked into the artwork), so
   the plain-text wordmark beside/below it is hidden by default in the
   header and footer... */
.site-header__logo-text,
.site-footer__logo-text {
  display: none;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-h2);
  text-transform: uppercase;
}

.site-header__logo-text {
  font-size: 20px;
  color: var(--color-text);
}

.site-footer__logo-text {
  font-size: 18px;
  /* The mark, not the wordmark, should read first on the footer —
     wordmark drops to the muted tone. */
  color: var(--color-text-muted);
}

/* ...and only reinstated when js/nav.js applies this class (driven by
   siteConfig.brand.showLogoMark === false), which also hides the mark —
   see js/nav.js renderLogo(). */
.logo-lockup--text-only .site-header__logo-text,
.logo-lockup--text-only .site-footer__logo-text {
  display: inline-block;
}

/* ---- Hero one-time centered reveal lockup: mark alone ---- */
.hero-carousel__reveal {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--duration-600) var(--ease-standard),
    transform var(--duration-600) var(--ease-standard);
}

.hero-carousel__reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.hero-carousel__reveal.is-out {
  opacity: 0;
  transform: translateY(0);
  transition-duration: var(--duration-500);
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel__reveal {
    display: none;
  }
}
