/* ============================================================
   CUSTOM — Per-store overrides for Template TF
   Add store-specific tweaks here. Loaded last so it wins
   over theme.css and style.css.
   ============================================================ */

/* ===== Open now / Closed now badge (new-website standards 2026-10-22) =====
   Sits just under the header (absolute, so it never shifts the layout).
   Hidden until the live hours check answers; stays hidden on any error. */
.open-badge {
  position: absolute;
  top: calc(100% + 8px);
  left: max(12px, calc((100% - 1200px) / 2 + 12px));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  font: 600 12px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}
.open-badge[hidden] { display: none; }
.open-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b7280;
}
.open-badge.is-open::before { background: #15803d; }
.open-badge.is-closed::before { background: #b91c1c; }

/* ===== Logo: Barako Bistro round badge (Brandy pack 2026-10-27) =====
   Sized by height, width follows the ~1:1 aspect. Header = dark badge on the
   light header; footer = white badge on the green band (no white plate). */
.brand img {
  width: auto;
  height: 88px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 50%;
}
.foot-brand img {
  width: auto;
  height: 72px;
  padding: 0;
  background: transparent;
  border-radius: 50%;
}
@media (max-width: 600px) {
  .brand img { height: 68px; }
}

/* Dish-page "4.9 · Google rating" text: brand-3 caramel is for stars only
   (2.66:1 on white, THEME.md); the count text uses ink (16.66:1). */
.dish-rating .rating-count { color: var(--ink); }

/* hero video (desktop only, fades in over the poster image) */
.hero-full__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.hero-full__video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-full__video { display: none; }
}

/* hero over the video (all screens): no overlay at all; text stays readable with a soft shadow */
.hero-full::before { background: none; }
.hero-full h1,
.hero-full__tag,
.hero-full .kicker--light {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 2px 24px rgba(0, 0, 0, 0.55);
}
.hero-full__tag em,
.hero-full__tag a {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7), 0 2px 16px rgba(0, 0, 0, 0.55);
}
.hero-full .store-bar {
  background: rgba(20, 16, 12, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

/* FAQ: intro on top, questions two per row (one column on phones) */
.faq .wrap {
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}
.faq-intro {
  position: static;
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}
.faq-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
@media (max-width: 760px) {
  .faq-list { grid-template-columns: 1fr; }
}

/* Menu page: dish photo on top of each card (same look as the home dish cards).
   Dishes without a photo show the logo on a sand tile. */
.menu-item {
  padding: 0.8rem 0.8rem 1.1rem;
}
.menu-item .item-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  background: var(--sand);
  margin-bottom: 0.9rem;
}
.menu-item .item-image.is-placeholder {
  object-fit: contain;
  padding: 18%;
  opacity: 0.85;
}
.menu-item .item-details {
  padding: 0 0.4rem;
}

/* ===== Home: transparent header over the hero while at the top =====
   Only on pages with the full-width hero (home), and only once the header is
   injected (body.header-loaded, --header-h set by components.js). The hero is
   pulled up under the sticky header; scrolling past 8px (.scrolled, script.js)
   or opening the mobile menu brings back the solid white header. */
body.header-loaded:has(.hero-full) .hero-full {
  margin-top: calc(-1 * var(--header-h, 4.5rem));
  padding-top: var(--header-h, 4.5rem);
  min-height: calc(clamp(560px, 82vh, 800px) + var(--header-h, 4.5rem));
}
@media (max-width: 560px) {
  body.header-loaded:has(.hero-full) .hero-full { min-height: 0; }
}
/* address + hours already sit in the hero's store bar on the home page */
body:has(.hero-full) .site-topline {
  display: none;
}
body:has(.hero-full) .site-header {
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.25s ease;
}
body:has(.hero-full) .site-header:not(.scrolled):not(:has(.site-nav.open)) {
  /* soft fade (no hard edge) keeps white links readable over light video frames */
  background: linear-gradient(180deg, rgba(20, 16, 12, 0.5) 0%, rgba(20, 16, 12, 0) 100%) border-box no-repeat;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
@media (min-width: 901px) {
  body:has(.hero-full) .site-header:not(.scrolled) .site-nav a {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  }
  /* over the video: no pill, a solid underline marks the current page */
  body:has(.hero-full) .site-header:not(.scrolled) .site-nav a:hover,
  body:has(.hero-full) .site-header:not(.scrolled) .site-nav a.active {
    background: none;
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.6);
    text-decoration-thickness: 2px;
    text-underline-offset: 7px;
  }
  body:has(.hero-full) .site-header:not(.scrolled) .site-nav a.active {
    text-decoration-color: #fff;
    text-decoration-thickness: 3px;
  }
}
body:has(.hero-full) .site-header:not(.scrolled):not(:has(.site-nav.open)) .nav-toggle {
  background: rgba(255, 255, 255, 0.18);
}
body:has(.hero-full) .site-header:not(.scrolled):not(:has(.site-nav.open)) .nav-toggle__bars span {
  background: #fff;
}

/* logo over the hero: the dark badge sits on a white disc so it reads on any video frame */
body:has(.hero-full) .site-header:not(.scrolled):not(:has(.site-nav.open)) .brand img {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* ===== About page: alternating photo + text story sections ===== */
.story-split {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}
.story-split:nth-of-type(even) {
  background: var(--sand);
}
.story-split .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.story-split--rev .wrap {
  grid-template-columns: 0.9fr 1.1fr;
}
.story-split--rev .ss-img {
  order: -1;
}
.story-split h2,
.story-press h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  margin: 1rem 0 1.1rem;
}
.story-split .lede {
  max-width: 46rem;
}
.story-split .ss-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.story-press {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(1rem, 3vw, 2rem);
  text-align: center;
}
.story-press .wrap {
  max-width: 760px;
}
.story-press p {
  color: var(--muted);
}
@media (max-width: 900px) {
  .story-split .wrap,
  .story-split--rev .wrap {
    grid-template-columns: 1fr;
  }
  .story-split--rev .ss-img {
    order: 0;
  }
}
