/* ========================================================
   4. HERO COVER & MUSIC TOGGLE
   ======================================================== */
.floating-music {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red-primary);
  color: var(--cream-text);
  box-shadow: 0 6px 20px rgba(56, 10, 14, 0.4);
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: transform 0.25s ease;
}

.floating-music:hover { transform: scale(1.08); }
.floating-music.playing .music-icon {
  animation: spin-vinyl 4s linear infinite;
}

/* ===== Botanical Cover — Layout 1 Cột Căn Giữa Chuẩn Thiết Kế ===== */
.hero-section {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto 28px;
  min-height: max(100svh, 840px);
  min-height: max(100dvh, 840px);
  max-height: 1022px;
  padding: 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Viền vàng bo góc trang trí */
.hero-gold-frame {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  border: 1.3px solid #d4cca9;
  border-radius: 20px;
  pointer-events: none;
  z-index: 1;
  box-sizing: border-box;
}

.hero-inner-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: max(100svh, 840px);
  min-height: max(100dvh, 840px);
  max-height: 1022px;
  margin: 0 auto;
  padding: 48px 18px 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

/* Cành lá trang trí 2 góc trên */
.hero-leaf {
  position: absolute;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 4;
  mix-blend-mode: multiply;
  object-fit: contain;
  opacity: 0.55;
}

.hero-leaf-tl {
  top: -6px;
  left: -14px;
  width: clamp(140px, 36%, 220px);
  height: auto;
  transform: none;
  opacity: 0.36;
}

.hero-leaf-tr {
  top: -6px;
  right: -14px;
  width: clamp(140px, 36%, 220px);
  height: auto;
  opacity: 0.58;
}

.hero-leaf-bl {
  display: none !important;
}

/* 1. KHỐI THÔNG TIN Ở TRÊN (CĂN GIỮA) */
.hero-title-box {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 0 6px;
  box-sizing: border-box;
}

/* SAVE THE DATE + hoa văn lá nhỏ */
.hero-kicker-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
  width: 100%;
}

.hero-kicker {
  font-family: var(--font-sans, "Montserrat", sans-serif);
  font-size: clamp(0.74rem, 2.3vw, 0.88rem);
  letter-spacing: 0.32em;
  color: #28362a;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  padding: 0;
  text-align: center;
  white-space: nowrap;
}

.hero-kicker-leaf {
  display: none;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  width: 24px;
  height: 9px;
}

.hero-kicker-leaf svg {
  width: 24px;
  height: 9px;
  display: block;
}

.hero-invite-guest {
  font-family: "Cormorant Garamond", "Lora", Georgia, serif;
  font-size: clamp(1.2rem, 3.8vw, 1.45rem);
  font-style: italic;
  font-weight: 600;
  color: #2b3e2e;
  text-align: center;
  margin: 14px auto 4px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 5;
}

/* Tên Cô Dâu & Chú Rể */
.hero-names {
  font-family: "Alex Brush", "Great Vibes", cursive;
  font-weight: 400;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 8px 0 12px;
  padding: 0;
  text-align: center;
  width: 100%;
}

.hero-names .hero-name-groom {
  font-size: clamp(2.5rem, 8.2vw, 3.6rem);
  color: #1e3526;
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: block;
  margin: 0;
  text-align: center;
  line-height: 1.12;
}

.hero-names .amp {
  font-family: "Alex Brush", "Great Vibes", cursive;
  font-size: clamp(1.45rem, 4.6vw, 2rem);
  font-weight: 400;
  color: #a58e58;
  margin: 2px 0 4px;
  line-height: 1;
  display: block;
  text-align: center;
}

.hero-names .hero-name-bride {
  font-size: clamp(2.5rem, 8.2vw, 3.6rem);
  color: #1e3526;
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: block;
  margin: 0;
  text-align: center;
  line-height: 1.12;
}

/* Ngày cưới */
.hero-date-wrap {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.hero-date {
  font-family: "Cinzel", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(0.98rem, 2.9vw, 1.22rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #223025;
  margin: 0;
  text-align: center;
}

.hero-date-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}

.hero-date-divider .date-leaf-icon {
  width: 24px;
  height: 8px;
  display: block;
}

/* 2. KHUNG CỔNG VÒM ẢNH ĐÔI Ở GIỮA */
.hero-photo-arch-wrap {
  position: relative;
  width: clamp(260px, 84%, 420px);
  aspect-ratio: 4 / 4.85;
  max-height: 52vh;
  border-radius: 200px 200px 0 0;
  border: 1.5px solid #d4cca9;
  overflow: hidden;
  z-index: 2;
  margin: 16px auto 10px;
  box-shadow: 0 8px 24px rgba(45, 55, 45, 0.06);
}

.hero-couple-photo {
  position: absolute;
  inset: 0;
  border-radius: 198px 198px 0 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, rgba(0, 0, 0, 0.4) 95%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 84%, rgba(0, 0, 0, 0.4) 95%, transparent 100%);
}

.hero-couple-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

/* 3. TRÍCH DẪN DƯỚI ẢNH */
.hero-quote-box {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 520px;
  margin: 6px auto 0;
  padding: 0 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-quote-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(0.86rem, 2.5vw, 1.02rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.55;
  color: #324034;
  margin: 0;
  text-align: center;
}

.hero-quote-heart {
  display: none;
}

.envelope-stage,
.hero-peony-deco {
  display: none !important;
}

/* ---- Mobile nhỏ (<= 380px) ---- */
@media (max-width: 380px) {
  .hero-gold-frame {
    top: 8px;
    right: 8px;
    bottom: 8px;
    left: 8px;
    border-radius: 14px;
  }
  .hero-inner-stage { padding: 22px 10px 16px; }
  .hero-kicker { font-size: 0.68rem; }
  .hero-names { margin-top: 18px; }
  .hero-names .hero-name-groom,
  .hero-names .hero-name-bride { font-size: 2.05rem; }
  .hero-names .amp { font-size: 1.25rem; }
  .hero-date { font-size: 0.88rem; }
  .hero-photo-arch-wrap {
    width: clamp(210px, 76%, 270px);
    aspect-ratio: 4 / 5.8;
    max-height: 52vh;
    border-radius: 135px 135px 0 0;
    margin: 4px auto;
  }
  .hero-couple-photo { border-radius: 133px 133px 0 0; }
  .hero-quote-text { font-size: 0.74rem; line-height: 1.4; }
  .hero-leaf-tl { left: -10px; top: 125px; width: 130px; }
  .hero-leaf-tr { right: -10px; top: 125px; width: 130px; }
}

/* ---- Tablet / Desktop trung (381px - 767px) ---- */
@media (min-width: 381px) and (max-width: 767px) {
  .hero-gold-frame {
    top: 12px;
    right: 12px;
    bottom: 12px;
    left: 12px;
  }
  .hero-inner-stage { padding: 30px 14px 20px; }
  .hero-names { margin-top: 18px; }
  .hero-photo-arch-wrap {
    width: clamp(230px, 78%, 320px);
    aspect-ratio: 4 / 6;
    max-height: 53vh;
    border-radius: 160px 160px 0 0;
  }
  .hero-couple-photo { border-radius: 158px 158px 0 0; }
  .hero-leaf-tl { top: 145px; }
  .hero-leaf-tr { top: 145px; }
}
