/* Dải hoa trang trí – trang Liên hệ (ảnh gốc + cánh hoa, trái tim, lá chuyển động phủ lên trên) */
.flower-strip { position: relative; overflow: hidden; padding-block: 0 28px; }
.strip-inner {
  position: relative; width: 100%; max-width: 1920px; margin: 0 auto;
  /* mờ mép trên/dưới để dải hoa hòa vào nền trang */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
}
.strip-inner img {
  display: block; width: 100%; height: clamp(130px, 11vw, 200px);
  object-fit: cover; object-position: 50% 50%;
  /* mờ mép trái/phải */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.s-fx { position: absolute; pointer-events: none; }
.s-petal { top: -14px; width: 12px; height: 9px; border-radius: 80% 0 80% 0; background: radial-gradient(circle at 30% 30%, #FFE1E8 0%, #F4AFC2 75%); opacity: 0; animation: s-fall 11s linear infinite; }
.sp1 { left: 14%; animation-delay: -1s; }
.sp2 { left: 33%; animation-delay: -6s; animation-duration: 13s; width: 10px; height: 8px; }
.sp3 { left: 61%; animation-delay: -3s; animation-duration: 12s; }
.sp4 { left: 78%; animation-delay: -8.5s; width: 9px; height: 7px; }
.sp5 { left: 90%; animation-delay: -4.5s; animation-duration: 14s; }

.s-heart { width: 16px; height: 16px; color: #F2A3B9; animation: s-bob 3.8s ease-in-out infinite; }
.sh1 { left: 26%; top: 18%; }
.sh2 { left: 70%; top: 62%; width: 13px; height: 13px; animation-delay: -1.4s; }
.sh3 { left: 44%; top: 70%; width: 12px; height: 12px; color: #EFB7C6; animation-delay: -2.6s; }

.s-leaf { width: 38px; height: 46px; bottom: 16%; transform-origin: 50% 100%; animation: s-sway 6s ease-in-out infinite; }
.sl1 { left: 9%; }
.sl2 { right: 9%; animation-delay: -2.8s; animation-duration: 7s; }

/* Hiện dần khi cuộn tới */
.flower-strip.anim .reveal { opacity: 0; transition: opacity 1.2s ease; }
.flower-strip.anim .reveal.in { opacity: 1; }

@keyframes s-fall {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  15% { opacity: .85; }
  80% { opacity: .7; }
  100% { transform: translate(40px, 210px) rotate(220deg); opacity: 0; }
}
@keyframes s-bob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.08); } }
@keyframes s-sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* Điện thoại: giữ cụm hoa giữa, bớt hiệu ứng */
@media (max-width: 760px) {
  .flower-strip { padding-bottom: 18px; }
  .strip-inner img { height: 130px; }
  .sp4, .sp5, .sh3, .s-leaf { display: none; }
  .sh1 { left: 10%; }
  .sh2 { left: 84%; }
}

@media (prefers-reduced-motion: reduce) {
  .flower-strip .s-fx { animation: none; }
  .flower-strip .s-petal { display: none; }
  .flower-strip.anim .reveal { opacity: 1; transition: none; }
}
