/*
 * FoodX / Shaktisarvo homepage hero + trust strip.
 * Rendered by the foodx/hero block in templates/front-page.html.
 * Breakpoints: >=980px two-column | <980px stacked, image below copy.
 */

/* ---------------- hero ---------------- */
.fx-hero{
  box-sizing:border-box;
  position:relative; overflow:hidden; background:#FFFFFF;
  font-family:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
.fx-hero *,.fx-trust *{ box-sizing:border-box; }
/* Full-bleed: the media column runs to the viewport edge rather than
 * stopping at a 1360px container. The copy is padded back in so its text
 * still lines up with the 1360px content column (and with .fx-trust-in). */
.fx-hero-in{
  max-width:none; margin:0;
  display:grid; grid-template-columns:0.9fr 1.1fr;
  align-items:center; gap:0; min-height:520px;
}
.fx-hero--noimg .fx-hero-in{ grid-template-columns:1fr; min-height:380px; }

.fx-hero-copy{ padding:56px 24px 56px max(48px,calc((100vw - 1360px) / 2 + 48px)); }

.fx-hero-title{
  font-family:'Bricolage Grotesque',-apple-system,BlinkMacSystemFont,sans-serif;
  font-weight:800; margin:0 0 22px; line-height:1; letter-spacing:.01em;
}
.fx-hero-t1{ display:block; font-size:54px; color:#1B4D3E; }
.fx-hero-t2{ display:block; font-size:62px; color:#D93A2B; }

.fx-hero-lede{
  font-size:17px; color:#3E4E45; line-height:1.65;
  margin:0 0 30px; max-width:460px;
}

.fx-hero-cta{
  display:inline-flex; align-items:center; gap:10px;
  background:#1B4D3E; color:#fff; text-decoration:none;
  font-size:15px; font-weight:800; letter-spacing:.06em;
  padding:16px 30px; border-radius:10px; transition:background .2s;
}
.fx-hero-cta:hover,.fx-hero-cta:focus-visible{ background:#163F33; color:#fff; }

/* ---------------- hero media ---------------- */
.fx-hero-media{ position:relative; align-self:stretch; min-height:520px; }
/* Left-edge fade only — it blends the photo into the headline beside it.
 * No right or bottom taper: those just read as white padding. */
.fx-hero-media img.fx-hero-img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:50% 100%;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 18%,#000 100%);
          mask-image:linear-gradient(90deg,transparent 0%,#000 18%,#000 100%);
}
.fx-hero-fade-x{ position:absolute; inset:0; pointer-events:none; }
.fx-hero-fade-x{
  background:linear-gradient(90deg,rgba(255,255,255,.85) 0%,rgba(255,255,255,0) 24%);
}

/* ---------------- trust strip ---------------- */
/* A white rounded card that lifts slightly over the bottom of the hero. */
.fx-trust{
  position:relative; z-index:2; margin-top:-40px;
  font-family:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
.fx-trust-in{
  max-width:1360px; width:calc(100% - 40px); margin:0 auto;
  background:#fff; border:1px solid #EAEEE9; border-radius:24px;
  box-shadow:0 18px 40px -26px rgba(27,42,36,.35);
  overflow:hidden;
  display:grid; grid-template-columns:repeat(4,1fr);
  align-items:stretch; padding:0;
}
.fx-trust-item{
  display:flex; flex-direction:column; align-items:center; text-align:center;
  gap:9px; padding:26px 20px; border-radius:0;
  transition:background .2s;
}
.fx-trust-item + .fx-trust-item{ border-left:1px solid #EEF1EC; }
.fx-trust-item:hover{ background:#FAFBF9; }

.fx-trust-icon{
  flex:none; width:44px; height:44px; border-radius:12px;
  background:#F1F5EF; border:0; box-shadow:none;
  display:flex; align-items:center; justify-content:center;
}
.fx-trust-icon svg{ width:22px; height:22px; }

.fx-trust-title{
  display:block;
  font-family:'Bricolage Grotesque',-apple-system,BlinkMacSystemFont,sans-serif;
  font-weight:800; font-size:15.5px; color:#1B2A24; line-height:1.2;
}
.fx-trust-meta{
  display:flex; align-items:center; justify-content:center; gap:5px;
  font-size:13px; color:#98A29D; margin-top:2px;
}
.fx-stars{ color:#E58E26; letter-spacing:-1px; }

/* ======================= TABLET ======================= */
@media (max-width:1100px){
  .fx-hero-t1{ font-size:42px; }
  .fx-hero-t2{ font-size:48px; }
  .fx-hero-copy{ padding:44px 24px; }
  .fx-trust-in{ grid-template-columns:repeat(2,1fr); }
  .fx-trust-item:nth-child(odd){ border-left:0; }
  .fx-trust-item:nth-child(n+3){ border-top:1px solid #EEF1EC; }
}

/* ======================= MOBILE ======================= */
@media (max-width:979px){
  .fx-hero-in{ grid-template-columns:1fr; min-height:0; gap:0; }
  .fx-hero-copy{ padding:40px 20px 32px; }
  .fx-hero-t1{ font-size:34px; }
  .fx-hero-t2{ font-size:39px; }
  .fx-hero-lede{ font-size:15.5px; margin-bottom:24px; }
  .fx-hero-cta{ padding:14px 24px; font-size:14px; }

  /* Unmask on mobile — the side fades only make sense beside the copy. */
  .fx-hero-media{ min-height:0; height:300px; }
  .fx-hero-media img.fx-hero-img{
    -webkit-mask-image:none; mask-image:none;
    object-position:50% 60%;
  }
  .fx-hero-fade-x{ display:none; }
}

/* ---- Mobile: carousel instead of a stack ----
 * Four full-width rows made the strip taller than the hero above it. Below
 * 700px the card becomes a horizontal snap-scroll track, auto-advanced by
 * assets/js/foodx-trust.js. It stays a plain scroller if the JS never runs. */
@media (max-width:700px){
  .fx-trust{ margin-top:-24px; }
  .fx-trust-in{
    display:flex; flex-wrap:nowrap;
    width:calc(100% - 28px); border-radius:20px;
    overflow-x:auto; scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
    scrollbar-width:none; -ms-overflow-style:none;
  }
  .fx-trust-in::-webkit-scrollbar{ display:none; }

  .fx-trust-item{
    flex:0 0 100%; scroll-snap-align:center;
    padding:22px 16px; border-left:0;
  }
  .fx-trust-item + .fx-trust-item{ border-left:0; border-top:0; }
  .fx-trust-item:nth-child(n+3){ border-top:0; }

  .fx-trust-dots{ display:flex; }

  .fx-hero-media{ height:240px; }
}

/* Dots live outside the scroll track; hidden until the carousel is active. */
.fx-trust-dots{
  display:none; justify-content:center; gap:7px;
  margin:12px auto 0; padding:0; list-style:none;
}
.fx-trust-dot{
  width:7px; height:7px; border-radius:50%; padding:0; border:0;
  background:#D2DACF; transition:background .2s,width .2s;
}
.fx-trust-dot.is-on{ width:20px; border-radius:999px; background:#1B4D3E; }

@media (prefers-reduced-motion:reduce){
  .fx-hero-cta,.fx-trust-item,.fx-trust-dot{ transition:none !important; }
  .fx-trust-in{ scroll-behavior:auto; }
}
