/* Bites on Bonwick — overrides on top of the Foodu v1.6 template.
   Loaded last in app/(site)/layout.tsx so these rules win. */

/* The public site must escape the dashboard's full-height flex app-shell
   (html.h-full + body.min-h-full.flex.flex-col from app/layout.tsx). Combined
   with an overflow-clipped wrapper, the flex column clamps the whole page to a
   single viewport (min-height:0 on an overflow:hidden flex child) — which kills
   scrolling and shows only the hero. Restore normal block flow and the
   template's intended 16px type scale (the dashboard sets html to 130%). These
   rules only load on (site) routes, so the dashboard is unaffected. */
html {
  height: auto !important;
  font-size: 100% !important;
}
body {
  display: block !important;
  min-height: 0 !important;
  height: auto !important;
  background-image: none !important;
}
.page-wraper {
  position: relative;
  overflow: hidden; /* safe now that body is block flow, not a flex column */
}

/* Tailwind (loaded globally for the dashboard) ships single-word utilities that
   collide with the template's Bootstrap-style class names. The worst offender is
   `.collapse { visibility: collapse }`, which hides the whole nav menu (the
   template uses Bootstrap's `.collapse` on the navbar). Restore the template
   behaviour on the public site. */
.navbar .navbar-collapse {
  visibility: visible !important;
}

/* The in-menu logo + close button are for the mobile sidebar only; hide them on
   desktop (they'd otherwise show now that the collapse is forced visible). */
@media (min-width: 992px) {
  .navbar-collapse .bob-logo-mobile,
  .navbar-collapse > .navbar-toggle {
    display: none !important;
  }
}

/* ---- Brand logo image (header + footer), 1178×590 ≈ 2:1 ----
   Replaces the text wordmark. Sized by height with width:auto so the aspect
   ratio is preserved. */
.bob-brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
}
.bob-logo {
  display: block;
  height: 56px;
  width: auto;
}
.bob-logo-mobile {
  height: 60px;
  margin: 10px 0 24px;
}
.bob-logo-footer {
  display: block;
  height: 118px;
  width: auto;
  margin-bottom: 24px;
}

/* ---- Breadcrumb hero with a photo background ----
   When a real photo is passed (vs the default dark shape texture), drop a
   dark overlay behind the content so the white title/links stay legible. */

/* Vertically centre the title/breadcrumb so it sits in the middle of the
   banner (clear of the floating header) rather than near the top. */
.breadcrumb-area.has-photo-bg {
  display: flex;
  align-items: center;
  min-height: 460px;
}

.breadcrumb-area.has-photo-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.65)
  );
  z-index: 0;
}
/* Keep the title + breadcrumb links above the overlay */
.breadcrumb-area.has-photo-bg .container {
  position: relative;
  z-index: 1;
}

/* ---- Chefs: two cards (arched photo, name, role, bio, socials) ---- */
.bob-chef-section {
  position: relative;
  overflow: hidden;
}
/* Soft section backdrop blobs for depth */
.bob-chef-section::before,
.bob-chef-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.bob-chef-section::before {
  top: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle,
    rgba(235, 0, 41, 0.08),
    rgba(235, 0, 41, 0) 70%
  );
}
.bob-chef-section::after {
  bottom: -100px;
  right: -90px;
  width: 360px;
  height: 360px;
  background: radial-gradient(
    circle,
    rgba(255, 184, 0, 0.1),
    rgba(255, 184, 0, 0) 70%
  );
}
.bob-chef-section .container {
  position: relative;
  z-index: 1;
}

/* Tighter grid so the two photos sit closer (less white gap) */
.bob-chefs-grid {
  margin: 10px auto 0;
  max-width: 880px;
  justify-content: center;
}
.bob-chef2 {
  position: relative;
  text-align: center;
  margin-top: 36px;
}
/* Layered glow + ring behind each arched photo → 3D lift */
.bob-chef2::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  width: min(90%, 400px);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  background: radial-gradient(
    circle at 50% 38%,
    rgba(235, 0, 41, 0.16),
    rgba(235, 0, 41, 0) 68%
  );
}
.bob-chef2::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 26px;
  left: calc(50% + 96px);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 9px solid rgba(255, 184, 0, 0.35);
}
.bob-chef2__media {
  position: relative;
  z-index: 1;
  max-width: 380px;
  margin: 0 auto 26px;
  background: #161616;
  border-radius: 200px 200px 22px 22px;
  overflow: hidden;
  box-shadow: 0 34px 60px -18px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.bob-chef2:hover .bob-chef2__media {
  transform: translateY(-8px);
  box-shadow: 0 44px 70px -18px rgba(0, 0, 0, 0.48);
}
.bob-chef2__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.bob-chef2:hover .bob-chef2__media img {
  transform: scale(1.05);
}
.bob-chef2__name {
  margin: 0 0 4px;
  font-size: 26px;
  line-height: 1.2;
}
.bob-chef2__role {
  display: block;
  margin-bottom: 14px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 15px;
}
.bob-chef2__body p {
  max-width: 420px;
  margin: 0 auto 18px;
  line-height: 1.8;
  color: var(--color-paragraph);
}
.bob-chef2__social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.bob-chef2__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background-color 0.25s ease;
}
.bob-chef2__social a:hover {
  background: var(--color-heading);
}

/* Dark-section variant keeps text readable */
.bg-dark .bob-chef2__name {
  color: #fff;
}
.bg-dark .bob-chef2__body p {
  color: #cfcfcf;
}

@media only screen and (max-width: 767px) {
  .bob-chef2__media {
    max-width: 300px;
  }
}

/* ---- Classic menu list (replaces the photo cards) ----
   Printed-menu style: small thumbnail, dish name with a dotted leader to the
   price, description and tags. Two columns on desktop, one on mobile. */

/* Subtle food-doodle backdrop (same pattern as the testimonials), pinned as a
   fixed viewport-sized layer via the template's `bg-fixed` class so the doodles
   stay small and seamless while the (tall) menu scrolls over them. */
.food-menu-area.bob-menu-bg {
  background-image: url(/assets/img/shape/4.png);
  background-color: #fff;
}
/* Mobile fallback: background-attachment:fixed is unreliable on mobile (iOS
   Safari in particular drops or jitters it). Switch to a normally-scrolling,
   natural-size tiled doodle so it stays small and renders everywhere. The
   two-class selector + !important outranks the template's `.bg-fixed` rules. */
@media (max-width: 767px) {
  .food-menu-area.bob-menu-bg {
    background-attachment: scroll !important;
    background-size: auto !important;
    background-repeat: repeat !important;
    background-position: center top !important;
  }
}
/* ---- Menu category filter: professional pill bar ----
   The default Foodu underline tabs were built for ~5 items; with 12 categories
   they wrapped and orphaned a tab ("Drinks") on its own row. Scoped to the BOB
   menu, restyle as a centred, wrapping pill group with a clear filled active
   state. Higher specificity than the template's `.mix-item-menu button` rules. */
.bob-menu-bg .mix-item-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 940px;
  margin: 0 auto 50px;
  padding: 0;
  border: none;
}
.bob-menu-bg .mix-item-menu button {
  margin: 0;
  padding: 9px 20px;
  border: 1px solid #e7e2d6;
  border-radius: 999px;
  background: #fff;
  color: #5b5650;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.bob-menu-bg .mix-item-menu button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.bob-menu-bg .mix-item-menu button.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 16px -4px rgba(235, 0, 41, 0.45);
}
/* Drop the underline pseudo-element the default theme draws under tabs. */
.bob-menu-bg .mix-item-menu button::before,
.bob-menu-bg .mix-item-menu button::after {
  display: none !important;
}
/* Mobile: wrap ALL category pills so every category is visible at once — no
   horizontal scroll (users were missing the off-screen categories). Smaller,
   tighter pills let all 12 fit across a few centred rows. */
@media (max-width: 575px) {
  .bob-menu-bg .mix-item-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
  }
  .bob-menu-bg .mix-item-menu button {
    padding: 7px 13px;
    font-size: 11px;
    letter-spacing: 0.3px;
  }
}

.bob-menu-list {
  text-align: left;
  margin-top: 45px;
}
.bob-menu-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 4px;
  border-bottom: 1px solid #e7e2d6;
}
.bob-menu-thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.bob-menu-info {
  flex: 1 1 auto;
  min-width: 0;
}
.bob-menu-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.bob-menu-name {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
}
.bob-menu-dots {
  flex: 1 1 auto;
  align-self: flex-end;
  border-bottom: 2px dotted #cfc8b8;
  transform: translateY(-6px);
  min-width: 24px;
}
.bob-menu-price {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 800;
  color: #e63946;
  white-space: nowrap;
}
.bob-menu-desc {
  margin: 6px 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #6b6b6b;
}
.bob-menu-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bob-menu-tags {
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #9a9384;
}
.bob-menu-order {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: #e63946;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}
.bob-menu-order:hover {
  color: #b71c2b;
}
/* Dark-section variant (e.g. sectionClass="bg-dark") */
.bg-dark .bob-menu-name {
  color: #fff;
}
.bg-dark .bob-menu-desc {
  color: #cfcfcf;
}
.bg-dark .bob-menu-row {
  border-color: rgba(255, 255, 255, 0.12);
}
@media (max-width: 575px) {
  .bob-menu-thumb {
    width: 68px;
    height: 68px;
  }
  .bob-menu-name {
    font-size: 17px;
  }
}

/* ---- Banner carousel arrows ----
   Swiper's default nav glyph (swiper-icons, font-weight:100) renders a thin,
   slightly off-centre chevron. Hide it and drop in a crisp, evenly-weighted SVG
   chevron, perfectly centred in the circular button. */
.banner-area .swiper-button-prev::after,
.banner-area .swiper-button-next::after {
  display: none;
}
.banner-area .swiper-button-prev,
.banner-area .swiper-button-next {
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-area .swiper-button-prev svg,
.banner-area .swiper-button-next svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mobile: the 60px circular nav buttons are oversized — shrink them */
@media only screen and (max-width: 767px) {
  .banner-area.navigation-circle .swiper-button-prev,
  .banner-area.navigation-circle .swiper-button-next {
    height: 36px;
    width: 36px;
    line-height: 36px;
    border-width: 1.5px;
  }
  .banner-area .swiper-button-prev svg,
  .banner-area .swiper-button-next svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.5;
  }
}

/* ---- Bites on Bonwick text wordmark (no logo image available) ---- */
.bob-wordmark {
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.5px;
  color: #1a1a1a;
  white-space: nowrap;
  display: inline-block;
}
.bob-wordmark .bob-accent {
  color: #e63946;
  font-weight: 700;
  font-style: italic;
}
/* Sticky/scrolled header keeps dark text on white; over the light banner too. */
.navbar.sticked .bob-wordmark {
  color: #1a1a1a;
}
.bob-wordmark-mobile {
  font-size: 22px;
  margin: 10px 0 20px;
}
/* Footer (dark background) */
.bob-wordmark-light {
  color: #ffffff;
  margin-bottom: 18px;
}

/* Inner-page header (HeaderV6, navbar-style-two) sits transparent over the dark
   breadcrumb hero on DESKTOP — use light logo/nav text there. On mobile the
   validnavs navbar has a solid white background, so the text must stay dark
   (white-on-white would be invisible) — hence the desktop-only media query. */
@media (min-width: 992px) {
  .navbar.navbar-style-two.no-background .bob-wordmark,
  .navbar.navbar-style-two.no-background .navbar-nav > li > a {
    color: #fff !important;
  }
}
.navbar.navbar-style-two.sticked .bob-wordmark,
.navbar.navbar-style-two.sticked .navbar-nav > li > a {
  color: #1a1a1a !important;
}

/* Spacing between the brand and the left-aligned nav menu. */
.bob-nav-left .navbar-collapse {
  margin-left: 30px;
}

/* ---- Scroll-to-top button ----
   The Foodu template's global `button` rule sets padding: 14px 40px, radius 7px
   and a sliding ::after hover fill — that horizontal padding (with border-box)
   overrides the width and stretches the button into an oval. A single class
   selector outranks the element selector, so these rules win without
   !important. Kept a perfect 46px circle with a smooth fade + hover lift. */
.bob-scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: #e63946;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease,
    box-shadow 0.2s ease;
}
.bob-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.bob-scroll-top:hover {
  background: #d62836;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(230, 57, 70, 0.5);
}
.bob-scroll-top:active {
  transform: translateY(-1px);
}
.bob-scroll-top::after {
  display: none; /* kill the template's sliding hover fill */
}
.bob-scroll-top svg {
  display: block;
}

/* Mobile-only "Order on UberEats" CTA inside the off-canvas drawer (the header
   button is hidden on phones). Hidden on desktop. */
.bob-mobile-order {
  display: none;
}
@media (max-width: 991px) {
  .bob-nav-left .navbar-collapse {
    margin-left: 0;
  }
  .navbar .bob-mobile-order {
    display: block !important;
    margin: 24px 20px 10px !important;
    padding: 13px 22px !important;
    text-align: center !important;
    background: #e63946 !important;
    color: #fff !important;
    border-radius: 30px !important;
    font-weight: 700;
    letter-spacing: 0.2px;
    border: none !important;
  }
}

/* ---- Testimonial polaroid pair (TestimonialV2 / .tm-proivder-thumb) ----
   The template lays the two review photos out as inline, overlapping
   polaroids. Tailwind's global preflight (loaded for the dashboard) forces
   `img { display: block }`, so they stack vertically and hug the left, and the
   template's margin-left offsets push them further off-centre. Lay the pair out
   with flexbox so they sit side-by-side and centred, keeping the playful
   rotation, downward stagger and slight overlap. */
.tm-proivder-thumb {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-left: 0;
}
.tm-proivder-thumb img {
  margin-left: 0;
}
.tm-proivder-thumb img:nth-child(2) {
  margin-left: -40px; /* keep the polaroid overlap, now centred as a pair */
}

/* ---- Footer bottom bar + CruxLabs credit ----
   Redesigned as a single flex bar: copyright (left), location tagline (centre)
   and a high-visibility CruxLabs pill badge (right). The badge can't be missed
   or clipped, and stacks cleanly on mobile. */
.footer-style-one .footer-bottom {
  margin-top: 30px;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
}
.footer-bottom-inner .footer-copy {
  margin: 0;
  font-size: 15px;
  color: #cfcfcf;
}
.cruxlabs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease,
    transform 0.2s ease;
}
.cruxlabs-badge span {
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #b9c0be;
}
.cruxlabs-badge strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--color-primary);
}
.cruxlabs-badge:hover {
  border-color: var(--color-primary);
  background: rgba(235, 0, 41, 0.1);
  transform: translateY(-1px);
}
.cruxlabs-badge:hover strong {
  color: #fff;
}
@media (max-width: 767px) {
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

/* ---- Branded page scrollbar ----
   Custom vertical scrollbar in the brand palette: a soft cream track with a
   rounded brand-red thumb that deepens on hover. Applied to the whole window
   (WebKit/Chromium + Firefox), with a thin inset so the thumb reads as a pill. */
html {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--color-primary) #f1ece1; /* thumb, track */
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: #f1ece1;
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 999px;
  /* inset border lets the cream track show around the thumb -> pill shape */
  border: 3px solid #f1ece1;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: #b71c2b;
  border-color: #f1ece1;
  background-clip: padding-box;
}
::-webkit-scrollbar-corner {
  background: #f1ece1;
}

/* ── Masonry gallery (2 / 3 / 2 columns) over a brand gradient ───
   Three equal-width columns share one fixed-ratio box so they all end at
   the same bottom. The outer columns hold 2 tall tiles, the middle column
   holds 3 shorter tiles (flex:1 splits each column's height evenly).
   Collapses to a single stacked column on phones.
   ============================================================ */

.masonry-gallery-area {
  position: relative;
  background: var(--bg-gradient);
}

/* Heading reads cleanly on the colourful gradient */
.masonry-gallery-area .site-heading .sub-title,
.masonry-gallery-area .site-heading .title {
  color: #ffffff;
}

.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  /* fixed box so all three columns share a height and align at the bottom */
  aspect-ratio: 975 / 770;
}

.masonry-gallery__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.masonry-tile {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.masonry-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.6s ease-in-out;
}

.masonry-tile:hover img {
  transform: scale(1.08);
}

.masonry-tile__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.masonry-tile:hover .masonry-tile__overlay {
  opacity: 1;
  visibility: visible;
}

.masonry-tile__trigger {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.masonry-tile:hover .masonry-tile__trigger {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.masonry-tile__trigger i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  width: 52px;
  font-size: 17px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.4s ease;
  cursor: pointer;
}

.masonry-tile:hover .masonry-tile__trigger i {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(235, 0, 41, 0.45);
}

/* Tablet — keep the 3-column shape, slightly taller box + tighter gaps */
@media only screen and (max-width: 991px) {
  .masonry-gallery {
    gap: 12px;
    aspect-ratio: 3 / 4;
  }
  .masonry-gallery__col {
    gap: 12px;
  }
}

/* Phone — drop the fixed-height columns; stack every tile in one column
   at a natural ratio so there are no uneven columns or blank gaps. */
@media only screen and (max-width: 767px) {
  .masonry-gallery {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
    gap: 14px;
  }
  .masonry-gallery__col {
    gap: 14px;
  }
  .masonry-tile {
    flex: none;
    aspect-ratio: 3 / 2;
  }
  .masonry-tile__trigger i {
    height: 44px;
    width: 44px;
    font-size: 15px;
  }
}

/* ============================================================
   Hero slider — Ken Burns zoom on the active slide.
   This banner has no per-slide background images; each slide's
   main visual is the food image in `.thumb`, so the slow scale-up
   is applied there. Keyed off Swiper's `.swiper-slide-active`, it
   restarts every time a slide becomes active. Pure transform =
   GPU-accelerated, no reflow / layout shift (banner clips overflow).
   ============================================================ */

@keyframes bobKenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.13);
  }
}

@keyframes bobHeroFade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Base state for the hero food image — primed for transform animation */
.banner-style-four .swiper-slide .thumb > img:first-child {
  transform: scale(1);
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
}

/* Active slide: slow continuous zoom over the visible duration */
.banner-style-four .swiper-slide-active .thumb > img:first-child {
  animation: bobKenBurns 8s ease-out forwards;
}

/* Full-bleed background-image slide (e.g. the ambience slide) */
.banner-style-four .banner-slide-bg .banner-slide-bgimg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  z-index: 0;
}
/* Dark gradient overlay so the white text stays readable (heavier on the
   left where the copy sits) */
.banner-style-four .banner-slide-bg .banner-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.25) 100%
  );
  z-index: 1;
}
.banner-style-four .banner-slide-bg > .container {
  position: relative;
  z-index: 2;
}
/* Ken Burns the background image of the active ambience slide */
.banner-style-four .swiper-slide-active.banner-slide-bg .banner-slide-bgimg {
  animation: bobKenBurns 8s ease-out forwards;
}

/* "100% Halal" badge — a corner accent on the product slides (the template
   positions the 2nd .thumb image top-left) and a larger right-side accent on
   the full-bleed ambience slide where the right side is otherwise empty. */
.banner-style-four .bob-halal-badge {
  width: clamp(96px, 11vw, 150px);
  height: auto;
  z-index: 3;
  pointer-events: none;
  animation: bobHalalFloat 4s ease-in-out infinite;
}

.banner-style-four .banner-slide-bg .bob-halal-badge--hero {
  position: absolute;
  right: 13%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(150px, 20vw, 300px);
  z-index: 3;
}

/* Slides 4 & 5 (salad, breakfast): lift the badge up off the product so the
   food stays clear. Same specificity as the template's :nth-child(2) rule and
   loaded later, so this wins. */
.banner-style-four .thumb img.bob-halal-badge--up {
  top: -12%;
}

@keyframes bobHalalFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

/* The hero badge keeps its vertical centering; only add a gentle bob */
@keyframes bobHalalFloatHero {
  0%,
  100% {
    transform: translateY(-50%) rotate(-3deg);
  }
  50% {
    transform: translateY(calc(-50% - 8px)) rotate(2deg);
  }
}
.banner-style-four .banner-slide-bg .bob-halal-badge--hero {
  animation: bobHalalFloatHero 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .banner-style-four .bob-halal-badge {
    animation: none;
  }
}

@media only screen and (max-width: 767px) {
  .banner-style-four .banner-slide-bg .bob-halal-badge--hero {
    right: 5%;
    width: clamp(96px, 26vw, 150px);
  }
}

/* Subtle staggered fade-in for the active slide's text content */
.banner-style-four .swiper-slide-active .content h4,
.banner-style-four .swiper-slide-active .content h2,
.banner-style-four .swiper-slide-active .content p,
.banner-style-four .swiper-slide-active .content .button {
  animation: bobHeroFade 0.9s ease both;
}
.banner-style-four .swiper-slide-active .content h4 {
  animation-delay: 0.1s;
}
.banner-style-four .swiper-slide-active .content h2 {
  animation-delay: 0.25s;
}
.banner-style-four .swiper-slide-active .content p {
  animation-delay: 0.4s;
}
.banner-style-four .swiper-slide-active .content .button {
  animation-delay: 0.55s;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .banner-style-four .swiper-slide-active .thumb > img:first-child,
  .banner-style-four .swiper-slide-active .content h4,
  .banner-style-four .swiper-slide-active .content h2,
  .banner-style-four .swiper-slide-active .content p,
  .banner-style-four .swiper-slide-active .content .button {
    animation: none;
  }
}

