
/* York Snack Food — premium dynamic home hero */
#ysf-premium-hero {
  padding: 34px 0 22px;
  background:
    radial-gradient(circle at 90% 0%, rgba(11, 116, 255, .05), transparent 26%),
    linear-gradient(180deg, #f6f7fa 0%, #f3f5f8 100%);
}

#ysf-premium-hero .ysf-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(310px, 1fr);
  gap: 18px;
  align-items: stretch;
}

#ysf-premium-hero .ysf-hero-main,
#ysf-premium-hero .ysf-promo-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #0b1320;
  box-shadow: 0 20px 45px rgba(10, 20, 35, .14);
}

#ysf-premium-hero .ysf-hero-main {
  min-height: 520px;
}

#ysf-premium-hero .ysf-hero-main .carousel,
#ysf-premium-hero .ysf-hero-main .carousel-inner,
#ysf-premium-hero .ysf-hero-main .carousel-item {
  height: 100%;
  min-height: 520px;
}

#ysf-premium-hero .ysf-hero-main .carousel-item {
  position: relative;
}

#ysf-premium-hero .ysf-hero-main .carousel-item > img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
}

#ysf-premium-hero .ysf-hero-main .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 24, .84) 0%, rgba(5, 13, 24, .61) 34%, rgba(5, 13, 24, .18) 67%, rgba(5, 13, 24, .03) 100%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.35));
  pointer-events: none;
}

#ysf-premium-hero .ysf-hero-content {
  position: absolute;
  z-index: 3;
  left: 38px;
  bottom: 42px;
  width: min(610px, calc(100% - 76px));
  color: #fff;
}

#ysf-premium-hero .ysf-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(255,255,255,.86);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
}

#ysf-premium-hero .ysf-hero-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: #1591ff;
}

#ysf-premium-hero .ysf-hero-content h2 {
  margin: 0 0 15px;
  color: #fff;
  font-size: clamp(38px, 4.4vw, 66px);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -1.7px;
  text-shadow: 0 3px 18px rgba(0,0,0,.22);
}

#ysf-premium-hero .ysf-hero-content p {
  max-width: 530px;
  margin: 0 0 23px;
  color: rgba(255,255,255,.90);
  font-size: 16px;
  line-height: 1.55;
}

#ysf-premium-hero .ysf-hero-btn {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 10px;
  background: #0e84ff;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(14,132,255,.25);
  transition: .25s ease;
}

#ysf-premium-hero .ysf-hero-btn:hover {
  color: #fff;
  background: #006fe8;
  transform: translateY(-2px);
}

#ysf-premium-hero .ysf-hero-main .carousel-control-prev,
#ysf-premium-hero .ysf-hero-main .carousel-control-next {
  z-index: 5;
  top: auto;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(4, 14, 28, .56);
  border: 1px solid rgba(255,255,255,.14);
  opacity: 1;
  backdrop-filter: blur(8px);
}

#ysf-premium-hero .ysf-hero-main .carousel-control-prev {
  left: auto;
  right: 66px;
}

#ysf-premium-hero .ysf-hero-main .carousel-control-next {
  right: 16px;
}

#ysf-premium-hero .ysf-hero-main .carousel-control-prev-icon,
#ysf-premium-hero .ysf-hero-main .carousel-control-next-icon {
  width: 16px;
  height: 16px;
}

#ysf-premium-hero .ysf-hero-main .carousel-indicators {
  z-index: 5;
  right: auto;
  left: 38px;
  bottom: 15px;
  margin: 0;
  justify-content: flex-start;
}

#ysf-premium-hero .ysf-hero-main .carousel-indicators li {
  width: 8px;
  height: 8px;
  margin: 0 5px 0 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.50);
}

#ysf-premium-hero .ysf-hero-main .carousel-indicators .active {
  width: 24px;
  border-radius: 9px;
  background: #0e84ff;
}

#ysf-premium-hero .ysf-promo-column {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}

#ysf-premium-hero .ysf-promo-card {
  min-height: 251px;
}

#ysf-premium-hero .ysf-promo-card > img {
  width: 100%;
  height: 100%;
  min-height: 251px;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}

#ysf-premium-hero .ysf-promo-card:hover > img {
  transform: scale(1.035);
}

#ysf-premium-hero .ysf-promo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,14,24,.76), rgba(8,14,24,.26) 63%, rgba(8,14,24,.08));
  pointer-events: none;
}

#ysf-premium-hero .ysf-promo-content {
  position: absolute;
  z-index: 2;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: min(245px, calc(100% - 56px));
}

#ysf-premium-hero .ysf-promo-content small {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  margin-bottom: 9px;
  border-radius: 999px;
  background: rgba(14,132,255,.82);
  color: #fff;
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

#ysf-premium-hero .ysf-promo-content h3 {
  margin: 0 0 9px;
  color: #fff;
  font-size: clamp(25px, 2.35vw, 36px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.7px;
}

#ysf-premium-hero .ysf-promo-content p {
  margin: 0 0 14px;
  color: rgba(255,255,255,.88);
  font-size: 13px;
  line-height: 1.45;
}

#ysf-premium-hero .ysf-promo-link {
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  transition: .22s ease;
}

#ysf-premium-hero .ysf-promo-link:hover {
  color: #111827;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

#ysf-premium-hero .ysf-hero-trust-strip {
  margin-top: 18px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 0;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 15px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 30px rgba(15,23,42,.055);
}

#ysf-premium-hero .ysf-hero-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 18px;
  border-right: 1px solid rgba(15,23,42,.09);
}

#ysf-premium-hero .ysf-hero-trust-item:first-child { padding-left: 0; }
#ysf-premium-hero .ysf-hero-trust-item:last-child {
  padding-right: 0;
  border-right: 0;
}

#ysf-premium-hero .ysf-hero-trust-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #edf6ff;
  color: #0e84ff;
  font-size: 18px;
}

#ysf-premium-hero .ysf-hero-trust-item strong {
  display: block;
  color: #172033;
  font-size: 13px;
  line-height: 1.25;
}

#ysf-premium-hero .ysf-hero-trust-item span {
  display: block;
  margin-top: 2px;
  color: #7a8494;
  font-size: 10px;
  line-height: 1.3;
}

@media (max-width: 991px) {
  #ysf-premium-hero .ysf-hero-grid {
    grid-template-columns: 1fr;
  }

  #ysf-premium-hero .ysf-promo-column {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  #ysf-premium-hero .ysf-hero-trust-strip {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px 0;
  }

  #ysf-premium-hero .ysf-hero-trust-item:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 767px) {
  #ysf-premium-hero {
    padding: 18px 0 14px;
  }

  #ysf-premium-hero .ysf-hero-main,
  #ysf-premium-hero .ysf-hero-main .carousel,
  #ysf-premium-hero .ysf-hero-main .carousel-inner,
  #ysf-premium-hero .ysf-hero-main .carousel-item,
  #ysf-premium-hero .ysf-hero-main .carousel-item > img {
    min-height: 430px;
  }

  #ysf-premium-hero .ysf-hero-content {
    left: 22px;
    bottom: 54px;
    width: calc(100% - 44px);
  }

  #ysf-premium-hero .ysf-hero-content h2 {
    font-size: 37px;
  }

  #ysf-premium-hero .ysf-hero-content p {
    font-size: 14px;
  }

  #ysf-premium-hero .ysf-hero-main .carousel-indicators {
    left: 22px;
  }

  #ysf-premium-hero .ysf-promo-column {
    grid-template-columns: 1fr;
  }

  #ysf-premium-hero .ysf-promo-card,
  #ysf-premium-hero .ysf-promo-card > img {
    min-height: 230px;
  }

  #ysf-premium-hero .ysf-promo-content {
    left: 22px;
    width: calc(100% - 44px);
  }

  #ysf-premium-hero .ysf-hero-trust-strip {
    grid-template-columns: 1fr;
  }

  #ysf-premium-hero .ysf-hero-trust-item,
  #ysf-premium-hero .ysf-hero-trust-item:first-child,
  #ysf-premium-hero .ysf-hero-trust-item:last-child {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(15,23,42,.08);
  }

  #ysf-premium-hero .ysf-hero-trust-item:last-child {
    border-bottom: 0;
  }
}
