/* Homepage hero: premium details (Nov 2026). Scoped to .hu-hero only; nothing else on the site uses these rules. */

/* A fine woven gold divider under the headline (Habesha tibeb-inspired diamond chain). */
.hu-hero h1::after {
  content: ""; display: block; width: 148px; height: 12px; margin-top: 1.15rem;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 50% / 100% 1px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M8 1l5 5-5 5-5-5z' fill='%23F8F4EC' stroke='%23B89B63' stroke-width='1.2'/%3E%3Ccircle cx='8' cy='6' r='1.4' fill='%23B89B63'/%3E%3C/svg%3E") 0 0 / 16px 12px repeat-x;
  -webkit-mask: linear-gradient(90deg, #000 70%, transparent); mask: linear-gradient(90deg, #000 70%, transparent);
}

/* A very light woven lattice behind the arch, fading out at the edges. */
.hu-hero .hero-visual::before {
  content: ""; position: absolute; inset: -6% -10% -2% 4%; z-index: -1; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 2l12 12-12 12L2 14z' fill='none' stroke='%23B89B63' stroke-opacity='.22' stroke-width='.8'/%3E%3Ccircle cx='14' cy='14' r='1' fill='%23B89B63' fill-opacity='.28'/%3E%3C/svg%3E") 0 0 / 28px 28px;
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); mask: radial-gradient(closest-side, #000 30%, transparent);
}
.hu-hero .hero-visual { isolation: isolate; }

/* The primary and outline buttons wrap instead of running off very small screens. */
.hu-hero .cluster .btn { max-width: 100%; white-space: normal; text-align: center; }

/* ---------- Invitation card (sits in the empty corner beside the arch's curve) ---------- */
.hu-hero .invite-float {
  left: 0; top: .5rem; width: 158px; padding: 0; background: none; border: 0; box-shadow: none; display: block; z-index: 4;
  perspective: 600px;
}
.if-env { position: relative; height: 104px; background: #EFE6D2; border: 1px solid var(--gold-soft); border-radius: 10px; box-shadow: var(--shadow-lg); overflow: visible; }
.if-env::after { /* envelope pocket */
  content: ""; position: absolute; inset: auto 0 0 0; height: 64px; border-radius: 0 0 10px 10px; z-index: 3;
  background: linear-gradient(160deg, transparent 49.5%, #E6DAC0 50%) 0 0 / 50% 100% no-repeat, linear-gradient(200deg, transparent 49.5%, #E6DAC0 50%) 100% 0 / 50% 100% no-repeat, #EADFC7;
}
.if-flap { position: absolute; left: 0; right: 0; top: 0; height: 58px; z-index: 4; transform-origin: 50% 0; transform: rotateX(0deg); background: #E3D5B6; clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 10px 10px 0 0; transition: transform .9s cubic-bezier(.5, 0, .2, 1), z-index 0s .45s; }
.if-seal { position: absolute; left: 50%; top: 44px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--forest); z-index: 5; box-shadow: 0 0 0 2px #E3D5B6; transition: opacity .4s ease; }
.if-seal::after { content: ""; position: absolute; inset: 5px; transform: rotate(45deg); border: 1px solid var(--gold-light); }
.if-card {
  position: absolute; left: 10px; right: 10px; top: 14px; z-index: 2; padding: .6rem .55rem .55rem; background: var(--warm-white); border: 1px solid var(--line); border-radius: 6px;
  display: grid; gap: .1rem; justify-items: center; text-align: center; box-shadow: 0 6px 18px -10px rgba(31, 47, 37, .35);
  transition: transform 1s cubic-bezier(.2, .8, .2, 1) .35s;
}
.if-kick { font: 500 .62rem/1.3 var(--font-ethiopic); color: var(--gold-ink); }
.if-you { font: 600 .52rem/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.if-names { font: 600 1.02rem/1.15 var(--font-display); color: var(--forest); white-space: nowrap; }
.if-band { width: 70%; height: 6px; margin: .2rem 0; background: repeating-linear-gradient(90deg, var(--forest) 0 6px, var(--gold) 6px 9px, #A8312B 9px 11px, var(--gold) 11px 14px); border-radius: 2px; opacity: .85; }
.if-date { font: 500 .6rem/1.3 var(--font-body); color: var(--muted); letter-spacing: .04em; }
/* Opened: the flap folds back and the card rises out of the envelope. */
.invite-float.is-open .if-flap { transform: rotateX(180deg); z-index: 1; }
.invite-float.is-open .if-seal { opacity: 0; }
.invite-float.is-open .if-card { transform: translateY(-62px); }

/* ---------- RSVP notification: realistic messages that change gently ---------- */
.hu-hero .rsvp-float { min-width: 13.5rem; overflow: hidden; }
.hu-hero .rsvp-float .rf-msg { display: grid; line-height: 1.25; transition: opacity .45s ease, transform .45s ease; }
.hu-hero .rsvp-float .rf-msg small { font-size: .72rem; color: var(--gold-light); opacity: .9; }
.hu-hero .rsvp-float .rf-msg.is-out { opacity: 0; transform: translateY(-8px); }

/* ---------- Celebrations card: countdown line ---------- */
.hu-hero .ef-count { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .45rem .6rem; margin: -.1rem -.2rem .1rem; border-radius: 8px; background: color-mix(in srgb, var(--gold-soft) 38%, transparent); }
.hu-hero .ef-count b { font: 600 1.55rem/1 var(--font-display); color: var(--forest); }
.hu-hero .ef-count span { font-size: .72rem; color: var(--gold-ink); letter-spacing: .04em; }

/* Wide screens: tuck the card into the gap beside the arch so it never covers the photo. */
@media (min-width: 1200px) { .hu-hero .invite-float { left: -3.4rem; top: -1.6rem; } }

/* Small screens: the invitation card would cover the photo, so it is left out; the other cards stay. */
@media (max-width: 560px) { .hu-hero .rsvp-float { min-width: 0; } }
/* Shown only where it fits beside the arch without covering the photo or the headline. */
@media (max-width: 1199px) { .hu-hero .invite-float { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .if-flap, .if-card, .if-seal, .hu-hero .rsvp-float .rf-msg { transition: none; }
}

/* Many photos: smaller steps between the slideshow dots so the column stays short. */
.hu-hero .hs-dot { height: 17px; }
.hu-hero .hs-dot::before { width: 7px; height: 7px; }
