/* Hero banner + 3 thẻ lợi ích – Shop Hoa Tươi (hoa rơi, cành đung đưa, trái tim, lấp lánh) */
.hero2, .benefits {
  --h-pink: #D94475;
  --h-pastel: #FBE4EA;
  --h-deep: #A83A5B;
  --h-cream: #FFF9F5;
  --h-gold: #CBA86A;
  --h-green: #66846A;
  --h-text: #6a5a5f;
}

/* ---------- Hero ---------- */
.hero2 {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 30%, rgba(251, 228, 234, .95) 0, rgba(251, 228, 234, 0) 340px),
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, .9) 0, rgba(255, 255, 255, 0) 300px),
    linear-gradient(180deg, #FDEEF2 0%, var(--h-cream) 62%, #FBE9EE 100%);
}
.hero2-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center;
  padding-block: 54px 136px;
}
.hero2-text { position: relative; min-width: 0; }

.hero2-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .75); border: 1px solid #F6D3DD;
  color: var(--h-pink); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 8px 18px -14px rgba(169, 58, 91, .6);
}
.hero2-label b { color: var(--h-deep); font-weight: 700; }
.hero2-label svg { width: 18px; height: 18px; flex: none; }

.hero2-title {
  position: relative; margin-top: 18px;
  font-family: "Playfair Display", var(--display); font-style: normal; font-weight: 700;
  line-height: 1.08; letter-spacing: .005em; color: var(--h-deep);
}
.hero2-title .t1 { display: block; font-size: clamp(60px, 8.4vw, 108px); color: var(--h-pink); }
.hero2-title .t2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .28em; margin-top: 6px; font-size: clamp(38px, 4.2vw, 58px); }
.hero2-title .t2a { font-weight: 600; color: #9C7636; }
.hero2-title .t2b { position: relative; color: var(--h-deep); }
.title-swash { display: block; width: min(420px, 90%); height: 34px; margin: 2px 0 0 18%; color: var(--h-deep); }

.hero2-desc { margin-top: 22px; max-width: 46ch; color: var(--h-text); font-size: 18px; line-height: 1.7; }
.hero2-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.h-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 12px 30px; border-radius: 999px;
  font-size: 17px; font-weight: 600; text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.h-btn svg { width: 20px; height: 20px; flex: none; }
.h-btn-primary { color: #ffffff; background: linear-gradient(135deg, var(--h-pink) 0%, var(--h-deep) 100%); box-shadow: 0 16px 30px -14px rgba(169, 58, 91, .85); }
.h-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -14px rgba(169, 58, 91, .95); }
.h-btn-primary .arrow { transition: transform .25s ease; }
.h-btn-primary:hover .arrow { transform: translateX(4px); }
.h-btn-outline { color: var(--h-deep); background: rgba(255, 255, 255, .85); border: 1.5px solid var(--h-pink); }
.h-btn-outline:hover { background: #ffffff; transform: translateY(-2px); }
.h-btn-outline svg { color: var(--h-pink); }

.hero2-checks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero2-checks li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--h-text); }
.hero2-checks svg { width: 20px; height: 20px; flex: none; }

/* Trái tim, lấp lánh quanh tiêu đề */
.h-deco { position: absolute; pointer-events: none; }
.h-heart-outline { width: 46px; height: 46px; left: -54px; top: 84px; color: var(--h-pink); animation: h-bob 4s ease-in-out infinite; }
.h-heart-fill { width: 38px; height: 38px; right: 6%; top: 46%; color: #F06D97; animation: h-pulse 2.8s ease-in-out infinite; }
.h-heart-small { width: 18px; height: 18px; right: 10%; top: 4%; color: #F49BB3; animation: h-bob 3.4s ease-in-out infinite -1s; }
.h-spark { width: 22px; height: 22px; color: var(--h-gold); animation: h-twinkle 3.2s ease-in-out infinite; }
.hs1 { left: -40px; top: -6px; }
.hs2 { right: 18%; top: 30px; width: 26px; height: 26px; animation-delay: -1.1s; }
.hs3 { right: 2%; top: 62%; width: 18px; height: 18px; animation-delay: -2s; }

/* ---------- Ảnh cô gái + khung vòm ---------- */
.hero2-visual { position: relative; justify-self: center; width: 100%; max-width: 470px; padding: 20px 34px 30px; }
.arch-group { position: relative; }
.arch-outline {
  position: absolute; inset: -16px -16px 12px 12px; z-index: 0;
  border: 1.5px solid var(--h-gold); border-radius: 999px 999px 30px 30px;
}
.arch {
  position: relative; z-index: 1; margin: 0;
  border-radius: 999px 999px 28px 28px; overflow: hidden;
  background: var(--h-pastel);
  box-shadow: 0 34px 60px -30px rgba(169, 58, 91, .55), 0 0 0 6px rgba(255, 255, 255, .7);
}
.arch img { display: block; width: 100%; height: auto; aspect-ratio: 376 / 471; object-fit: cover; }

.dr { position: absolute; z-index: 2; pointer-events: none; }
.dr svg { display: block; width: 100%; height: auto; overflow: visible; }
.dr-front { left: -74px; bottom: -44px; width: 270px; transform-origin: 30% 80%; animation: h-sway 7s ease-in-out infinite; }
.dr-top { right: -56px; top: 30px; width: 170px; transform-origin: 70% 30%; animation: h-sway 8s ease-in-out infinite -3s; }
.dr-ribbon { left: 10%; right: -30px; bottom: -58px; z-index: 1; }

.v-spark { position: absolute; z-index: 3; color: var(--h-gold); animation: h-twinkle 3.6s ease-in-out infinite; pointer-events: none; }
.vs1 { width: 26px; height: 26px; left: 0; top: 20%; animation-delay: -.6s; }
.vs2 { width: 20px; height: 20px; right: 8px; top: 8%; animation-delay: -1.8s; }
.vs3 { width: 16px; height: 16px; right: 0; top: 54%; animation-delay: -2.6s; }

.hand-note {
  position: absolute; z-index: 3; left: -140px; top: 76%;
  font-family: "Dancing Script", "Great Vibes", cursive; font-weight: 700; font-size: 24px; line-height: 1.15;
  color: var(--h-deep); transform: rotate(-14deg); text-align: center; pointer-events: none;
}
.hand-note svg { display: block; width: 150px; height: 34px; margin: 2px 0 0 -10px; color: var(--h-gold); }

.note-card {
  position: absolute; z-index: 4; right: -26px; bottom: 10px;
  width: 132px; padding: 14px 12px 12px; border-radius: 6px;
  background: #FFFDF9; box-shadow: 0 16px 30px -16px rgba(122, 60, 80, .45);
  font-family: "Dancing Script", "Great Vibes", cursive; font-weight: 700; font-size: 21px; line-height: 1.2; color: #7A4A55;
  transform: rotate(6deg); animation: h-note 6s ease-in-out infinite;
}
.note-card::before { content: ""; position: absolute; left: 50%; top: -9px; width: 46px; height: 16px; margin-left: -23px; background: rgba(247, 198, 208, .85); transform: rotate(-4deg); border-radius: 2px; }
.note-card svg { width: 18px; height: 18px; color: var(--h-pink); vertical-align: -3px; }

/* Cành hoa hai mép banner */
.hb { position: absolute; z-index: 1; pointer-events: none; width: 210px; }
.hb svg { display: block; width: 100%; height: auto; overflow: visible; }
.hb-left { left: -40px; top: 120px; transform-origin: 0% 90%; animation: h-sway 6.5s ease-in-out infinite; }
.hb-right { right: -40px; bottom: 120px; transform-origin: 100% 90%; animation: h-sway 7.5s ease-in-out infinite -2.4s; }
.hb-right svg { transform: scaleX(-1); }

/* Cánh hoa rơi (JS tạo, số lượng giới hạn) */
.h-petals { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.h-petal {
  position: absolute; top: -40px;
  background: radial-gradient(circle at 30% 30%, #FFD9E3 0%, #F6A5BC 70%, #EF8FAB 100%);
  border-radius: 80% 0 80% 0; opacity: 0;
  animation: h-fall linear infinite;
}

.hero2-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; width: 100%; height: 90px; display: block; }

/* ---------- 3 thẻ lợi ích ---------- */
.benefits { position: relative; z-index: 3; margin-top: -96px; padding-bottom: 20px; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefits-grid > .reveal { display: flex; min-width: 0; }
.benefit {
  flex: 1; display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: center;
  padding: 22px 24px; border-radius: 24px; background: var(--h-cream);
  border: 1px solid #F6E2E8;
  box-shadow: 0 18px 40px -24px rgba(169, 58, 91, .45);
  transition: transform .3s ease, box-shadow .3s ease;
}
.benefit:hover { transform: translateY(-5px); box-shadow: 0 26px 48px -24px rgba(169, 58, 91, .6); }
.benefit-icon { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--h-pastel); }
.benefit-icon svg { width: 66px; height: 66px; transition: transform .4s ease; }
.benefit:hover .benefit-icon svg { animation: h-wiggle .7s ease; }
.benefit h3 { font-family: "Playfair Display", var(--display); font-weight: 700; font-size: 24px; color: var(--h-deep); }
.benefit p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--h-text); }
.benefit > div { min-width: 0; }

/* Hiện dần khi cuộn tới (dùng chung cơ chế với "Về chúng tôi") */
.benefits.anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; transition-delay: var(--d, 0s); }
.benefits.anim .reveal.in { opacity: 1; transform: none; }

/* ---------- Chuyển động khi tải trang ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero2-label   { animation: h-in-left .8s ease .05s both; }
  .hero2-title   { animation: h-in-left .9s ease .15s both; }
  .title-swash   { animation: h-in-left .9s ease .35s both; }
  .hero2-desc    { animation: h-in-up .8s ease .45s both; }
  .hero2-actions { animation: h-in-up .8s ease .65s both; }
  .hero2-checks  { animation: h-in-up .8s ease .85s both; }
  .arch-group    { animation: h-fade 1.2s ease .2s both, h-float 6.5s ease-in-out 1.4s infinite; }
}

@keyframes h-in-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes h-in-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes h-fade { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes h-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes h-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes h-bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
@keyframes h-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes h-twinkle { 0%, 100% { transform: scale(.7) rotate(0); opacity: .45; } 50% { transform: scale(1.1) rotate(25deg); opacity: 1; } }
@keyframes h-note { 0%, 100% { transform: rotate(6deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-6px); } }
@keyframes h-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg) scale(1.06); } 60% { transform: rotate(6deg) scale(1.06); } }
@keyframes h-fall {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  8% { opacity: .9; }
  85% { opacity: .75; }
  100% { transform: translate(var(--drift, 60px), 1150px) rotate(var(--spin, 300deg)); opacity: 0; }
}

/* ---------- Máy tính bảng ---------- */
@media (max-width: 1180px) {
  .hand-note { display: none; }
  .h-heart-outline { left: -10px; top: -40px; width: 34px; height: 34px; }
  .hs1 { left: auto; right: 30%; top: -20px; }
}
@media (max-width: 1000px) {
  .hero2-grid { gap: 24px; }
  .benefits-grid { gap: 16px; }
  .benefit { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 22px 18px; }
  .benefit-icon { width: 84px; height: 84px; }
  .benefit h3 { font-size: 22px; }
}

/* ---------- Điện thoại ---------- */
@media (max-width: 760px) {
  .hero2-title .t2 { font-size: clamp(34px, 9.6vw, 48px); }
  .hero2-grid { grid-template-columns: 1fr; padding-block: 30px 120px; gap: 46px; }
  .hero2-text { text-align: left; }
  .hero2-title .t1 { font-size: clamp(56px, 16vw, 80px); }
  .hero2-title .t2 { font-size: clamp(34px, 9.6vw, 48px); }
  .title-swash { margin-left: 8%; }
  .hero2-desc { font-size: 17px; }
  .hero2-actions .h-btn { flex: 1 1 220px; }
  .hero2-checks { gap: 8px 18px; }
  .h-heart-fill { right: 0; top: 30%; width: 30px; height: 30px; }
  .h-heart-outline { display: none; }
  .hero2-visual { max-width: 360px; padding: 16px 26px 34px; }
  .dr-front { width: 190px; left: -40px; bottom: -34px; }
  .dr-top { width: 120px; right: -34px; top: 20px; }
  .note-card { width: 108px; font-size: 17px; right: -12px; bottom: 0; }
  .hb-left { display: none; }
  .hb-right { width: 130px; right: -46px; bottom: 60px; opacity: .85; }
  .benefits { margin-top: -80px; }
  .benefits-grid { grid-template-columns: 1fr; gap: 16px; max-width: 460px; margin: 0 auto; }
  .benefit { grid-template-columns: 80px 1fr; text-align: left; justify-items: stretch; padding: 18px 20px; }
  .benefit-icon { width: 80px; height: 80px; }
  .benefit-icon svg { width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero2 *, .hero2 *::before, .hero2 *::after, .benefits * { animation: none !important; }
  .h-petals { display: none; }
  .benefits.anim .reveal { opacity: 1; transform: none; }
  .benefit, .h-btn { transition: none; }
}

/* Ảnh đầu trang dạng ảnh ghép hoàn chỉnh (đã có khung vòm, hoa và thiệp) */
.hero-photo img { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: 0 34px 60px -32px rgba(169, 58, 91, .55); }
.hero2-visual:has(.hero-photo) { max-width: 500px; }
.hero2-visual:has(.hero-photo) .hand-note { display: none; }
