/* =========================================================================
   ROMAN'S CAFE — Menu page styles (Bluebonnet lunch)
   Layered on top of styles.css. Replicates the old WordPress menu look:
   serif headings in alternating green/orange, dotted leader lines, tilted
   overlapping food photos, a warm torn-paper band, coffee-ring watermarks.
   ========================================================================= */

:root {
  --menu-green: #6f7d3f;   /* readable olive/sage for headings (large text, >=3:1 on cream) */
  --leader: rgba(42, 42, 42, 0.32);
}

/* Shorter hero than the homepage */
.hero--menu { min-height: min(46vh, 400px); }

/* Centered "served hours" line under the hero (e.g. dinner menu) */
.menu-hours {
  text-align: center;
  margin-top: var(--space-xl);
}

/* Centered inline note / dot-separated list (e.g. "More Sides",
   "Combinations and samplers available") — reuses the items column width */
.menu-inline {
  max-width: 620px;
  margin: var(--space-md) auto 0;
  text-align: center;
  font-style: italic;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------------
   SECTIONS
   ------------------------------------------------------------------------- */
.menu-section {
  position: relative;
  padding-block: var(--space-2xl);
}
.menu-section__inner { position: relative; }

/* Offset deep-link jumps (e.g. /#catering) so the heading clears the fixed header */
.menu-section--catering { scroll-margin-top: 90px; }

/* Salads sits on a warm paper band with torn edges top and bottom */
.menu-section--band { background: var(--bg-warm); }
.torn--band-top { top: 0; transform: translateY(-99%); }
.torn--band-bottom { bottom: -1px; }

/* -------------------------------------------------------------------------
   SECTION HEADINGS — Marcellus, centered, uppercase, alternating color
   ------------------------------------------------------------------------- */
.menu-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-lg);
}
.menu-heading__title {
  font-family: var(--font-serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.12;
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.5rem);
}
.menu-heading__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 0.75rem auto 0;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.9;
}
.menu-heading__title--green { color: var(--menu-green); }
.menu-heading__title--orange { color: var(--accent); }

/* Optional sub-line: small, uppercase, orange (AA-safe ink) */
.menu-heading__sub {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  color: var(--accent-ink);
}
/* Optional note line: small, bold, dark, in parentheses */
.menu-heading__note {
  margin-top: 0.4rem;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.9rem;
}

/* -------------------------------------------------------------------------
   ITEMS — centered column, name + dotted leader, description below
   ------------------------------------------------------------------------- */
.menu-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 620px;
  position: relative;
  z-index: 1;
}
.menu-item { margin-bottom: var(--space-md); }
.menu-item:last-child { margin-bottom: 0; }

.menu-item__row {
  display: flex;
  align-items: baseline;
}
.menu-item__name {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.04em;
  font-size: 1.18rem;
  color: var(--ink);
}
/* faint dotted leader — hidden by default, only shown in the catering
   section (where prices will be added later) */
.menu-item__leader { display: none; }
.menu-section--catering .menu-item__leader {
  display: block;
  flex: 1 1 1.5rem;
  align-self: flex-end;
  border-bottom: 2px dotted var(--leader);
  margin: 0 0.1rem 0.34rem 0.6rem;
}
/* Catering prices sit at the right end of the leader dots (catering only —
   it's the only section where a .menu-item__price span exists). Matches the
   dish name (serif / size / ink) and never shrinks. */
.menu-section--catering .menu-item__price {
  flex: 0 0 auto;
  white-space: nowrap;
  padding-left: 0.6rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.18rem;
  color: var(--ink);
}
.menu-item__desc {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 92%;
}

/* -------------------------------------------------------------------------
   DECORATIVE FOOD PHOTOS (reuse .photo-card look)
   Mobile-first: static, un-rotated, stacked below the list.
   ------------------------------------------------------------------------- */
.menu-photo {
  width: min(78vw, 320px);
  margin: var(--space-lg) auto 0;
  transform: rotate(0deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Coffee-ring watermark (reuses .coffee-ring from styles.css); hidden on
   small screens to avoid clutter, repositioned to the right on desktop. */
.menu-ring { display: none; }

/* -------------------------------------------------------------------------
   BOTTOM ACTIONS
   ------------------------------------------------------------------------- */
.menu-actions {
  padding-block: var(--space-2xl);
  text-align: center;
}
.menu-actions__inner {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------------
   DESKTOP: photos overlap section edges, tilted; rings appear
   ------------------------------------------------------------------------- */
@media (min-width: 901px) {
  .menu-photo {
    position: absolute;
    width: 260px;
    margin: 0;
    top: 32%;
    z-index: 2;
  }
  .menu-photo--right { right: 0; transform: rotate(3deg); }
  .menu-photo--left { left: 0; transform: rotate(-3deg); }
  .menu-photo--right:hover { transform: rotate(1deg) scale(1.02); }
  .menu-photo--left:hover { transform: rotate(-1deg) scale(1.02); }

  .menu-ring {
    display: block;
    top: 50%;
    right: 1%;
    transform: translateY(-50%);
    width: 210px;
    height: 210px;
  }
}

/* -------------------------------------------------------------------------
   BLUEBONNET LUNCH — edge-bleed plate photos (transparent PNGs)
   Used ONLY on menu-bluebonnet/index.html. The plate floats directly on the
   page and bleeds off the viewport edge: NO frame, border, shadow, radius,
   background, or tilt. Deliberately separate from .photo-card / .menu-photo
   (those are left untouched and still used on the dinner & airline pages).
   ------------------------------------------------------------------------- */
.menu-bleed { display: none; }   /* hidden on phones — keeps centered text clean */

/* Anchor the bleed to the FULL-WIDTH section (not the centered container) so it
   reaches the real viewport edge. __inner is normally position:relative; drop
   that for the two bleed sections only. */
.menu-section:has(.menu-bleed) .menu-section__inner { position: static; }

/* Keep the menu text above the transparent plate image (image z-index 1). */
.menu-section:has(.menu-bleed) .menu-heading,
.menu-section:has(.menu-bleed) .menu-list {
  position: relative;
  z-index: 2;
}

/* Off-screen bleed must not create a horizontal scrollbar. Scoped to the lunch
   page only — it is the only page that contains a .menu-bleed image. Applied to
   html/body (not the sections) so the visible part of the plate still shows out
   to the viewport edge and the torn band SVG edges are never clipped. */
html:has(.menu-bleed),
body:has(.menu-bleed) { overflow-x: hidden; }

@media (min-width: 861px) {
  .menu-bleed {
    display: block;
    position: absolute;
    top: 50%;
    width: clamp(300px, 34vw, 500px);
    height: auto;
    border: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    z-index: 1;                     /* behind the menu text (z-index 2) */
    pointer-events: none;
  }
  /* Tightly-cropped (fully opaque) plate, anchored to the viewport edge and
     translated so ~32% bleeds off-screen; the visible part sits in the side
     gutter beside the centred 620px menu column. translate's -50% also handles
     the vertical centring — no tilt. */
  .menu-bleed--right { right: 0; left: auto; transform: translate(18%, -50%); }
  .menu-bleed--left  { left: 0;  right: auto; transform: translate(-25%, -50%); }
}

/* Narrow desktop: between the mobile cutoff and ~1180px the centred 620px text
   column leaves only a small gutter, so tuck the plates further off the edge to
   guarantee the menu names/descriptions stay clear of the opaque plate. */
@media (min-width: 861px) and (max-width: 1180px) {
  .menu-bleed--right { transform: translate(62%, -50%); }
  .menu-bleed--left  { transform: translate(-62%, -50%); }
}

/* -------------------------------------------------------------------------
   CATERING — Party Pack highlighted block (catering section only)
   Distinct cream box with an orange left accent, centered in the menu column.
   No dotted leaders inside; contents list is two columns on desktop, one on
   mobile.
   ------------------------------------------------------------------------- */
.catering-partypack {
  max-width: 620px;
  margin: var(--space-xl) auto 0;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}
.catering-partypack__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--line);
}
.catering-partypack__title {
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  color: var(--ink);
}
.catering-partypack__price {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 1.1rem + 1.3vw, 1.9rem);
  color: var(--accent-ink);
  white-space: nowrap;
}
.catering-partypack__sub {
  text-align: center;
  font-family: var(--font-body);
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: var(--space-md);
}
.catering-partypack__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;   /* two columns on desktop */
  gap: 0.4rem 1.5rem;
}
.catering-partypack__list li {
  position: relative;
  padding-left: 1.1rem;
  font-family: var(--font-body);
  color: var(--ink);
}
.catering-partypack__list li::before {
  content: "\2022";                 /* bullet, no dotted leaders here */
  position: absolute;
  left: 0;
  color: var(--accent);
}
@media (max-width: 560px) {
  .catering-partypack__list { grid-template-columns: 1fr; }
}
