/* Blue Hearts — bespoke Nikah invitation (invite-blue-hearts.php) */
:root {
  --navy: #2c3e5e;
  --navy-2: #3b5480;
  --navy-deep: #22314c;
  --gold: #c9a14e;
  --gold-soft: #e7c87f;
  --gold-deep: #a9802f;
  --ivory: #fffcf3;
  --ink: #1f2a37;
  --muted: #5b6574;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.bh { margin: 0; background: var(--navy); color: var(--ink); font-family: var(--sans); overflow-x: hidden; }
body.is-locked { overflow: hidden; height: 100vh; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ---------- Intro film ---------- */
.bh-intro { position: fixed; inset: 0; z-index: 100; background: #e9e2d6; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; transition: opacity .9s ease, visibility .9s; }
.bh-intro.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.bh-intro__stage { position: relative; z-index: 1; width: 100%; height: 100%; }
.bh-intro__video, .bh-intro__poster { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.bh-intro__poster { z-index: 1; transition: opacity .35s ease; }
.bh-intro.is-rolling .bh-intro__poster { opacity: 0; pointer-events: none; }
.bh-intro__backdrop { display: none; }
@media (min-aspect-ratio: 3/4) {
  /* wide screens: keep the portrait film whole, fill the sides with a soft blurred copy */
  .bh-intro__backdrop { display: block; position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(28px) brightness(.9) saturate(1.1); }
  .bh-intro__stage { width: auto; height: 100%; aspect-ratio: 9 / 16; box-shadow: 0 0 60px rgba(0,0,0,.25); }
}
/* small spinner while the film is still downloading after the tap */
.bh-intro__loading { position: absolute; z-index: 2; left: 50%; bottom: max(44px, env(safe-area-inset-bottom)); margin-left: -18px; width: 36px; height: 36px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.bh-intro__loading i { display: block; width: 100%; height: 100%; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: bh-spin .8s linear infinite; filter: drop-shadow(0 1px 4px rgba(0,0,0,.4)); }
.bh-intro.is-buffering .bh-intro__loading { opacity: 1; }
@keyframes bh-spin { to { transform: rotate(360deg); } }
.bh-intro__hint { position: absolute; z-index: 2; left: 50%; bottom: max(36px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: #fff; font: 500 11px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.45); transition: opacity .4s; }
.bh-intro__hint span { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.9); position: relative; animation: bh-pulse 1.8s ease-out infinite; }
.bh-intro__hint span::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: #fff; }
.bh-intro.is-playing .bh-intro__hint { opacity: 0; }
/* end card: the couple's names over the film's last frame, then "Open Invitation" */
.bh-intro__head { position: absolute; inset: 0 0 12%; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 26px; text-align: center; pointer-events: none;
  opacity: 0; transform: translateY(-14px); transition: opacity 1.5s ease, transform 1.5s ease;
  background: radial-gradient(82% 24% at 50% 50%, rgba(255,252,243,.8) 0%, rgba(255,252,243,.5) 52%, rgba(255,252,243,0) 100%); }
.bh-intro__bism { margin: 0 0 10px; font-family: "Amiri", serif; font-size: 24px; line-height: 1; color: var(--gold-deep); }
.bh-intro__names { margin: 0; font-family: var(--serif); font-size: clamp(34px, 10.2vw, 50px); font-weight: 300; line-height: 1.06; letter-spacing: .5px; color: var(--navy-deep); }
.bh-intro__names span { display: block; margin: 9px 0 7px; font-family: "Cinzel", serif; font-size: 10.5px; letter-spacing: 5px; text-transform: uppercase; color: var(--gold-deep); }
.bh-intro__cta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 0 26px max(38px, env(safe-area-inset-bottom)); text-align: center;
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 1.4s ease, transform 1.4s ease; }
.bh-intro__rule { width: 64px; height: 1px; margin: 0 auto 12px; background: var(--gold); }
.bh-intro__date { margin: 0; font-family: "Cinzel", serif; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--navy-deep); text-shadow: 0 1px 10px rgba(255,252,243,.92); font-variant-numeric: lining-nums; }
.bh-intro__open { margin-top: 20px; padding: 15px 34px; border: 0; border-radius: 40px; background: var(--navy); color: var(--ivory); font-family: "Cinzel", serif; font-size: 11px; letter-spacing: 3.4px; text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(34,49,76,.3); transition: transform .25s, background .25s; }
.bh-intro__open:hover { background: var(--navy-deep); transform: translateY(-2px); }
.bh-intro.is-ending .bh-intro__head, .bh-intro.is-ending .bh-intro__cta { opacity: 1; transform: none; }
.bh-intro.is-ending .bh-intro__cta { pointer-events: auto; }
.bh-intro.is-ending .bh-intro__loading { opacity: 0; }
@keyframes bh-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 100% { box-shadow: 0 0 0 18px rgba(255,255,255,0); } }

.bh-draft { position: sticky; top: 0; z-index: 50; background: #fff7e0; color: #7a5a12; text-align: center; font-size: 13px; padding: 8px 12px; }

/* ---------- Sections ---------- */
.bh-sec { position: relative; padding: 96px 20px; overflow: hidden; }
.bh-wrap { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; text-align: center; }
.bh-wrap--left { text-align: left; max-width: 520px; }
.bh-wrap--form { max-width: 440px; }
.bh-wrap--wall { max-width: 520px; }
.bh-navy { color: #fff; background-color: var(--navy); background-image: linear-gradient(105deg, #3c5680, #22314c); background-size: cover; background-position: center; }
.bh-cream { background: var(--ivory); }

.bh-title { margin: 0 0 22px; font: italic 500 clamp(38px, 8vw, 50px)/1.02 var(--serif); color: #111; }
.bh-title--light { color: #fff; }
.bh-title--light em { color: #c9d9f3; font-style: italic; }
.bh-title--upright { font-style: normal; color: #1d2a26; font-size: clamp(38px, 8vw, 48px); margin-bottom: 14px; }
.bh-kicker { margin: 0 0 14px; font: 500 10px/1 var(--sans); letter-spacing: .42em; text-transform: uppercase; }
.bh-kicker--gold { color: var(--gold); }

/* reveal on scroll (only hidden when JS is running) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.bh-hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; }
.bh [lang="ar"] { text-align: center; }
.bh-hero__ar { margin: 0 0 6px; font: 400 clamp(22px, 5vw, 28px)/1.6 "Aref Ruqaa", "Amiri", serif; color: #fff; }
.bh-hero__names { margin: 0 0 22px; font: italic 500 clamp(54px, 13vw, 92px)/1 var(--serif); letter-spacing: .01em; text-shadow: 0 2px 30px rgba(10,20,40,.25); }
.bh-hero__names span { font-weight: 400; }
.bh-hero__line { margin: 0 auto 30px; max-width: 34em; font: 400 clamp(15px, 3.6vw, 18px)/1.55 var(--sans); color: rgba(255,255,255,.94); }
.bh-hero__date { margin: 0; display: flex; flex-direction: column; gap: 4px; font: 500 12px/1.2 var(--sans); letter-spacing: .06em; }
.bh-hero__date b { color: var(--gold-soft); font-weight: 500; font-size: 13px; }
.bh-hero__date span { color: rgba(255,255,255,.88); font-size: 11px; }
.bh-scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 24px; height: 38px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 14px; z-index: 1; }
.bh-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold-soft); animation: bh-wheel 1.8s ease-in-out infinite; }
@keyframes bh-wheel { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

.bh-floaters { position: absolute; inset: 0; pointer-events: none; }
.bh-floaters i { position: absolute; bottom: -60px; width: 22px; fill: rgba(170,196,240,.18); animation: bh-rise linear infinite; }
.bh-floaters i:nth-child(1) { left: 6%; width: 26px; animation-duration: 17s; }
.bh-floaters i:nth-child(2) { left: 18%; width: 14px; animation-duration: 13s; animation-delay: -4s; }
.bh-floaters i:nth-child(3) { left: 29%; width: 34px; animation-duration: 21s; animation-delay: -9s; }
.bh-floaters i:nth-child(4) { left: 41%; width: 16px; animation-duration: 15s; animation-delay: -2s; }
.bh-floaters i:nth-child(5) { left: 53%; width: 24px; animation-duration: 19s; animation-delay: -12s; }
.bh-floaters i:nth-child(6) { left: 64%; width: 12px; animation-duration: 12s; animation-delay: -6s; }
.bh-floaters i:nth-child(7) { left: 74%; width: 30px; animation-duration: 23s; animation-delay: -15s; }
.bh-floaters i:nth-child(8) { left: 84%; width: 18px; animation-duration: 16s; animation-delay: -8s; }
.bh-floaters i:nth-child(9) { left: 92%; width: 22px; animation-duration: 20s; animation-delay: -3s; }
.bh-floaters i:nth-child(10) { left: 48%; width: 10px; animation-duration: 11s; animation-delay: -7s; fill: rgba(231,200,127,.22); }
@keyframes bh-rise { from { transform: translateY(0) rotate(-8deg); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateY(calc(-1 * var(--rise, 115vh))) rotate(12deg); opacity: 0; } }

/* ---------- Bismillah & date tiles ---------- */
.bh-details { padding-bottom: 0; }
.bh-bismillah { margin: 0 0 26px; text-align: center; font: 700 clamp(34px, 8vw, 46px)/1.5 "Aref Ruqaa", "Amiri", serif;
  background: linear-gradient(100deg, #f6dd98 0%, #d8ae55 35%, #f9e4a4 55%, #c69a45 80%, #f3d58c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bh-verse { margin: 0 0 40px; font: italic 400 clamp(16px, 3.8vw, 18px)/1.5 var(--serif); color: rgba(255,255,255,.88); }
.bh-verse cite { display: block; margin-top: 10px; font: 500 13px/1 var(--sans); font-style: normal; color: #fff; }
.bh-grace { margin: 0 0 38px; font: italic 400 16px/1 var(--serif); color: rgba(255,255,255,.82); }

.bh-arches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(6px, 1.6vw, 10px); max-width: 500px; }
.bh-arches--count { max-width: 400px; margin: 0 auto; }
.bh-arch { aspect-ratio: 116 / 104; border: 1px solid var(--gold); border-bottom-color: rgba(201,161,78,.9); border-radius: 999px 999px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 8%;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)); }
.bh-arch b { font: 400 clamp(22px, 6.6vw, 40px)/1 "Times New Roman", var(--serif); color: #fff; white-space: nowrap; }
.bh-arch span { margin-top: 9px; font: 500 clamp(6px, 1.6vw, 8px)/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.88); }
.bh-arches--count .bh-arch b { font-size: clamp(24px, 7vw, 36px); }

.bh-marquee { position: relative; z-index: 1; margin: 72px -20px 0; padding: 28px 0; overflow: hidden; background: linear-gradient(90deg, rgba(37,54,84,.92), rgba(63,89,132,.78)); }
.bh-marquee__track { display: flex; width: max-content; will-change: transform; animation: bh-marquee 75s linear infinite; }
.bh-marquee span { display: inline-flex; align-items: center; gap: 10px; padding: 0 30px; font: italic 400 24px/1 "Times New Roman", var(--serif); white-space: nowrap; }
.bh-goldheart { display: inline-block; width: 17px; fill: #e2b94f; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
@keyframes bh-marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Countdown & big heart ---------- */
.bh-count { padding-top: 70px; padding-bottom: 90px; }
.bh-count__done { margin: 22px 0 0; font: italic 400 20px/1.3 var(--serif); color: var(--gold-soft); }
/* scratch-card heart: gold foil canvas on top of the ivory date heart */
.bh-bigheart { position: relative; width: min(290px, 72vw); aspect-ratio: 24 / 22; margin: 64px auto 0; filter: drop-shadow(0 18px 30px rgba(10,18,35,.35)); }
.bh-bigheart.is-idle { animation: bh-beat 2.4s ease-in-out infinite; transform-origin: 50% 55%; }
.bh-bigheart__under { position: absolute; inset: 0; width: 100%; height: 100%; }
.bh-bigheart__under text { text-anchor: middle; fill: var(--navy); }
.bh-bigheart__under .u-kicker { font: 600 9px var(--sans); letter-spacing: .32em; fill: var(--gold-deep); }
.bh-bigheart__under .u-day { font: 500 58px "Times New Roman", var(--serif); }
.bh-bigheart__under .u-month { font: italic 500 21px var(--serif); }
.bh-bigheart__under .u-meta { font: 500 8px var(--sans); letter-spacing: .26em; fill: #4b5a74; }
.bh-bigheart__foil { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity .8s ease; }
.bh-bigheart__foil:active { cursor: grabbing; }
.bh-bigheart.is-clear .bh-bigheart__foil { opacity: 0; pointer-events: none; }
.bh-bigheart.is-clear .bh-bigheart__under { animation: bh-beat 2.4s ease-in-out 1s infinite; transform-origin: 50% 55%; }
.bh-bigheart__burst { position: absolute; left: 50%; top: 45%; width: 0; height: 0; pointer-events: none; }
.bh-bigheart__burst i { position: absolute; left: -7px; top: -7px; width: 14px; fill: #e2b94f; animation: bh-burst 1.4s cubic-bezier(.15,.7,.3,1) forwards; }
@keyframes bh-burst { 0% { transform: translate(0,0) scale(.3) rotate(0); opacity: 1; } 100% { transform: translate(var(--x), var(--y)) scale(var(--s)) rotate(var(--r)); opacity: 0; } }
.bh-scratch-hint { margin: 22px 0 0; font: 500 10px/1.5 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold-soft); transition: color .4s; }
.bh-scratch-hint.is-done { font: italic 400 19px/1.4 var(--serif); letter-spacing: .02em; text-transform: none; color: #fff; }
@keyframes bh-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.06); } 24% { transform: scale(.99); } 36% { transform: scale(1.04); } 50% { transform: scale(1); } }

/* ---------- Du'a ---------- */
.bh-dua { background: radial-gradient(ellipse 60% 70% at 50% 50%, #fff 0%, #f4f8ff 45%, #dbe8fd 75%, #fff 100%); padding: 120px 20px; }
.bh-dua .bh-title { margin-bottom: 26px; }
.bh-dua__tr { margin: 0 0 4px; font: italic 400 13px/1 var(--serif); color: #8a8f99; }
.bh-dua__names { margin: 0 0 22px; font: italic 500 clamp(26px, 6vw, 30px)/1.1 var(--serif); color: #111; }
.bh-dua__ar { margin: 0 0 22px; font: 400 clamp(19px, 4.6vw, 23px)/1.9 "Amiri", serif; color: #1f2a37; }
.bh-dua__en { margin: 0 auto; max-width: 34em; font: italic 400 14px/1.5 var(--serif); color: #3b4757; }
.bh-dua__en span { display: block; margin-top: 4px; font: 500 12px/1.3 var(--sans); font-style: normal; color: #111; }

/* ---------- Families ---------- */
.bh-fams { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin: 8px auto 0; max-width: 500px; }
.bh-fam { text-align: left; padding: 26px 26px 28px; border: 1px solid rgba(255,255,255,.4); background: linear-gradient(100deg, rgba(37,54,84,.82), rgba(66,94,138,.55)); backdrop-filter: blur(3px); }
.bh-fam h3 { margin: 0 0 16px; font: italic 500 42px/1 var(--serif); color: #fff; }
.bh-fam__rel { margin: 0 0 3px; font: 500 13px/1.3 var(--sans); }
.bh-fam__parents, .bh-fam__home { margin: 0; font: italic 400 14px/1.4 var(--serif); color: rgba(255,255,255,.82); }
.bh-fam hr { margin: 12px 0; border: 0; border-top: 1px solid rgba(255,255,255,.35); }
.bh-compl { margin: 44px 0 0; font: 500 14px/1.5 var(--sans); }
.bh-compl em { display: block; font: italic 400 14px/1.4 var(--serif); color: rgba(255,255,255,.8); }

/* ---------- Schedule ---------- */
.bh-plan__events { list-style: none; margin: 0 auto; padding: 0; max-width: 420px; text-align: left; }
.bh-plan__events li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(44,62,94,.15); }
.bh-plan__events b { font: 500 13px/1.6 var(--sans); letter-spacing: .08em; color: var(--gold); }
.bh-plan__events span { font: 500 22px/1.2 var(--serif); color: #111; }
.bh-plan__events em { display: block; margin-top: 4px; font: italic 400 14px/1.4 var(--serif); color: #5b6575; }
.bh-plan__deadline { margin: 40px 0 0; font: italic 400 17px/1.5 var(--serif); color: #3b4757; }
.bh-plan__deadline b { font-style: normal; color: #111; }

/* ---------- Venue ---------- */
.bh-venue__title { margin: 0 0 14px; font: 500 clamp(44px, 11vw, 60px)/1.05 var(--serif); color: #fff; }
.bh-venue__lead { margin: 0 auto 34px; max-width: 26em; font: 400 17px/1.6 var(--serif); color: rgba(255,255,255,.72); }
.bh-venue__name { margin: 0 0 8px; font: 500 clamp(30px, 7.4vw, 40px)/1.15 var(--serif); color: #fff; }
.bh-venue__addr { margin: 0; font: 400 16px/1.5 var(--serif); color: rgba(255,255,255,.7); letter-spacing: .03em; }
.bh-rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 36px auto; }
.bh-rule::before, .bh-rule::after { content: ""; width: 72px; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,161,78,.8)); }
.bh-rule::after { transform: scaleX(-1); }
.bh-rule i { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.bh-venue .bh-rule:first-child { margin-top: 0; }
.bh-venue .bh-rule:last-child { margin-bottom: 0; }
.bh-map { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid rgba(201,161,78,.55); box-shadow: 0 18px 40px rgba(10,20,40,.35); aspect-ratio: 3 / 2; background: #e9eef5; }
.bh-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bh-map__chip { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 4px; background: #fff; color: #1a73e8; font: 500 14px/1 var(--sans); text-decoration: none; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.bh-map__chip svg { width: 16px; height: 16px; fill: currentColor; }
.bh-venue__btn { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px 0 0; padding: 20px 18px; border: 1px solid rgba(201,161,78,.6); border-radius: 18px; background: rgba(201,161,78,.06);
  color: var(--gold-soft); font: 500 12px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; text-decoration: none; transition: background .25s, border-color .25s; }
.bh-venue__btn:hover { background: rgba(201,161,78,.14); border-color: var(--gold); }
.bh-venue__pin { width: 18px; height: 18px; fill: none; stroke: var(--gold-soft); stroke-width: 1.6; }
.bh-venue__btn span { font-size: 18px; letter-spacing: 0; }

/* ---------- Forms ---------- */
.bh-form { text-align: left; }
.bh-label { display: block; margin: 0 0 8px 3px; font: 500 9px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); }
.bh-input { display: block; width: 100%; margin: 0 0 26px; padding: 11px 14px; border: 1px solid #d9b56c; border-radius: 9px; background: #fffefa; color: var(--ink);
  font: italic 400 16px/1.3 var(--serif); letter-spacing: .12em; outline: none; transition: border-color .2s, box-shadow .2s; }
.bh-input::placeholder { color: #8e8a80; }
.bh-input:focus { border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(201,161,78,.18); }
textarea.bh-input { resize: vertical; min-height: 96px; }
select.bh-input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-deep) 50%), linear-gradient(135deg, var(--gold-deep) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.bh-input.is-invalid { border-color: #c2553f; box-shadow: 0 0 0 3px rgba(194,85,63,.12); }
.bh-guests { margin-top: 0; }
.bh-choices { display: grid; gap: 18px; margin-bottom: 30px; }
.bh-choice { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border: 1px solid #d9b56c; border-radius: 9px; background: #faf7ec; cursor: pointer; transition: background .2s, border-color .2s; }
.bh-choice input { position: absolute; opacity: 0; pointer-events: none; }
.bh-choice span { font: 400 18px/1.2 "Times New Roman", var(--serif); letter-spacing: .14em; color: #1d2a26; }
.bh-choice i { width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--gold); flex-shrink: 0; transition: background .2s, box-shadow .2s; }
.bh-choice:has(input:checked) { background: #f3ecd6; border-color: var(--gold-deep); }
.bh-choice input:checked ~ i { background: var(--gold); box-shadow: inset 0 0 0 3px #faf7ec; }
.bh-choice input:focus-visible ~ span { text-decoration: underline; }
.bh-choices.is-invalid .bh-choice { border-color: #c2553f; }
.bh-form__msg { min-height: 1.2em; margin: -10px 0 12px; font-size: 13px; color: #b04a35; }
.bh-form__msg.ok { color: #3c7a52; }
.bh-btn { display: block; width: 100%; padding: 15px 20px; border: 0; border-radius: 10px; background: linear-gradient(90deg, #3e5680, #2c3e5e); color: var(--gold-soft);
  font: 500 14px/1 var(--sans); letter-spacing: .38em; text-transform: uppercase; box-shadow: 0 8px 22px rgba(44,62,94,.22); transition: transform .2s, box-shadow .2s, opacity .2s; }
.bh-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(44,62,94,.3); }
.bh-btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.bh-wishform { padding-bottom: 40px; }
.bh-rsvp { padding-top: 70px; }
.bh-divider { display: flex; align-items: center; justify-content: center; gap: 0; margin: 0 auto 14px; width: 186px; }
.bh-divider::before, .bh-divider::after { content: ""; flex: 1; height: 1px; background: #cdb27a; }
.bh-divider i { width: 7px; height: 7px; margin: 0 8px; background: var(--gold); transform: rotate(45deg); }
.bh-sub { margin: 0 0 28px; font: italic 400 17px/1.4 var(--serif); color: #3d4744; }
.bh-link { display: inline-block; margin-top: 18px; background: none; border: 0; border-bottom: 1px solid currentColor; padding: 2px 0; color: var(--gold-deep); font: 500 11px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; }

.bh-thanks { text-align: center; padding: 34px 26px; border: 1px solid #e4cf9c; border-radius: 14px; background: #fffaf0; }
.bh-thanks__heart { width: 46px; margin: 0 auto 14px; fill: var(--gold); animation: bh-beat 2.4s ease-in-out infinite; }
.bh-thanks h3 { margin: 0 0 8px; font: italic 500 30px/1.1 var(--serif); color: #111; }
.bh-thanks p { margin: 0; font: italic 400 17px/1.45 var(--serif); color: #4b5563; }

/* ---------- Blessings wall ---------- */
.bh-wall { padding-top: 40px; }
.bh-wall__count { margin: 0 0 14px 4px; text-align: left; font: 500 10px/1 var(--sans); letter-spacing: .3em; color: var(--gold); }
.bh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; text-align: left; }
.bh-card { padding: 22px 22px 16px; border: 1px solid #c3c7cf; background: #fff; display: flex; flex-direction: column; animation: bh-in .6s ease both; }
.bh-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.bh-avatar { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg, #4a6491, #22314c); color: #fff; font: italic 500 26px/1 var(--serif); }
.bh-card__name { margin: 0; font: italic 500 26px/1 var(--serif); color: #111; overflow-wrap: anywhere; }
.bh-card__when { display: block; margin-top: 3px; font: 400 13px/1 var(--sans); color: #222; }
.bh-card__msg { margin: 0 0 18px; flex: 1; font: italic 400 15px/1.45 var(--serif); color: #4b5563; overflow-wrap: anywhere; white-space: pre-line; }
.bh-heart { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid #a9adb5; border-radius: 30px; background: #fff; font: 500 13px/1 var(--sans); color: #111; transition: border-color .2s, transform .2s; }
.bh-heart svg { width: 14px; fill: none; stroke: var(--navy); stroke-width: 2.4; transition: fill .2s; }
.bh-heart.is-on svg { fill: var(--navy); }
.bh-heart.pop svg { animation: bh-pop .45s ease; }
.bh-heart:hover { border-color: var(--navy); }
.bh-empty { grid-column: 1 / -1; padding: 30px 20px; text-align: center; border: 1px dashed #d4c49b; font: italic 400 17px/1.4 var(--serif); color: #6b7280; }
@keyframes bh-pop { 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes bh-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Gallery ---------- */
.bh-story { padding-top: 70px; padding-bottom: 20px; }
.bh-story__frame { width: min(340px, 100%); margin: 18px auto 0; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; border: 1px solid rgba(201,161,78,.6); background: rgba(255,255,255,.08); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.bh-story__frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.bh-gallery { padding-top: 70px; }
.bh-mosaic { display: grid; gap: 10px; margin: 0 auto 50px; max-width: 490px; }
.bh-tile { padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.08); }
.bh-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bh-tile:hover img { transform: scale(1.05); }
.bh-mosaic--5 { grid-template-columns: 1fr 1fr 1.25fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 490 / 290; }
.bh-mosaic--5 .bh-tile:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.bh-mosaic--5 .bh-tile:nth-child(2) { grid-column: 2 / 4; grid-row: 1; }
.bh-mosaic--5 .bh-tile:nth-child(3) { grid-column: 4; grid-row: 1; }
.bh-mosaic--5 .bh-tile:nth-child(4) { grid-column: 2; grid-row: 2; }
.bh-mosaic--5 .bh-tile:nth-child(5) { grid-column: 3 / 5; grid-row: 2; }
.bh-mosaic--1 { grid-template-columns: 1fr; }
.bh-mosaic--2, .bh-mosaic--4 { grid-template-columns: 1fr 1fr; }
.bh-mosaic--3 { grid-template-columns: 1fr 1fr 1fr; }
.bh-mosaic--1 .bh-tile, .bh-mosaic--2 .bh-tile, .bh-mosaic--3 .bh-tile, .bh-mosaic--4 .bh-tile { aspect-ratio: 4 / 5; }
/* landscape photos span the row instead of being cropped into a portrait tile */
.bh-mosaic--2 .bh-tile--wide, .bh-mosaic--4 .bh-tile--wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.bh-gallery__names { margin: 0 0 22px; font: italic 400 clamp(40px, 9vw, 50px)/1 "Times New Roman", var(--serif); }
.bh-pill { display: inline-block; padding: 13px 22px; border: 1px solid rgba(255,255,255,.55); border-radius: 40px; background: rgba(255,255,255,.04); color: #fff; text-decoration: none;
  font: italic 500 13px/1 var(--serif); letter-spacing: .04em; text-transform: uppercase; transition: background .2s, border-color .2s; }
.bh-pill:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.bh-foot { padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); text-align: center; background: var(--navy-deep); }
.bh-foot a { color: rgba(255,255,255,.6); font-size: 12px; letter-spacing: .06em; text-decoration: none; }
.bh-foot b { color: var(--gold-soft); font-weight: 500; }

/* ---------- Sheet, lightbox, toast, music ---------- */
.bh-sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(14,22,38,.55); backdrop-filter: blur(3px); }
.bh-sheet[hidden], .bh-lightbox[hidden] { display: none; }
.bh-sheet__panel { width: min(420px, 100%); margin: 0 12px 12px; padding: 22px 18px calc(16px + env(safe-area-inset-bottom)); border-radius: 18px; background: var(--ivory); text-align: center; animation: bh-in .3s ease; }
.bh-sheet__panel h3 { margin: 0 0 14px; font: italic 500 26px/1 var(--serif); }
.bh-sheet__panel button { display: block; width: 100%; margin-top: 10px; padding: 13px; border: 1px solid #d9b56c; border-radius: 10px; background: #fff; color: var(--navy); font: 500 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.bh-sheet__panel .bh-sheet__close { border-color: transparent; background: none; color: var(--muted); }
.bh-lightbox { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; background: rgba(10,16,28,.92); }
.bh-lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; object-fit: contain; }
.bh-lightbox button { position: absolute; border: 0; background: none; color: #fff; font-size: 44px; line-height: 1; padding: 10px 16px; opacity: .85; }
.bh-lightbox__close { top: 10px; right: 8px; }
.bh-lightbox__nav--prev { left: 4px; top: 50%; transform: translateY(-50%); }
.bh-lightbox__nav--next { right: 4px; top: 50%; transform: translateY(-50%); }
.bh-toast { position: fixed; left: 50%; bottom: 28px; z-index: 99; transform: translate(-50%, 20px); padding: 11px 20px; border-radius: 30px; background: #1d2b45; color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; max-width: calc(100% - 32px); text-align: center; }
.bh-toast.show { opacity: 1; transform: translate(-50%, 0); }
.bh-music { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80; width: 50px; height: 50px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(231,200,127,.8); background: radial-gradient(circle at 35% 30%, #f6dd98, #c9a14e 70%, #a9802f); box-shadow: 0 8px 22px rgba(10,18,35,.35); color: #2c3e5e; }
.bh-music[hidden] { display: none; }
.bh-music::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(231,200,127,.55); opacity: 0; }
.bh-music.is-on::before { animation: bh-ring 2.4s ease-out infinite; }
.bh-music__note { width: 20px; height: 20px; fill: currentColor; }
.bh-music__off { position: absolute; width: 26px; height: 2px; background: currentColor; border-radius: 2px; transform: rotate(-45deg); box-shadow: 0 0 0 1.5px #e7c87f; }
.bh-music.is-on .bh-music__off { display: none; }
.bh-music__bars { position: absolute; bottom: 9px; display: none; gap: 2px; align-items: flex-end; height: 8px; }
.bh-music.is-on .bh-music__bars { display: flex; }
.bh-music.is-on .bh-music__note { transform: translateY(-3px); }
.bh-music__bars i { width: 2px; background: currentColor; border-radius: 1px; animation: bh-eq 1s ease-in-out infinite; }
.bh-music__bars i:nth-child(2) { animation-delay: -.4s; }
.bh-music__bars i:nth-child(3) { animation-delay: -.7s; }
@keyframes bh-eq { 0%, 100% { height: 2px; } 50% { height: 8px; } }
@keyframes bh-ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

@media (max-width: 480px) {
  .bh-sec { padding: 80px 18px; }
  .bh-marquee { margin-left: -18px; margin-right: -18px; }
  .bh-marquee span { font-size: 20px; padding: 0 22px; }
  .bh-fam h3 { font-size: 38px; }
  .bh-mosaic { gap: 7px; }
  .bh-tile { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  /* love bubbles stay on, just drifting slower */
  .bh-floaters i { animation-name: bh-rise !important; animation-timing-function: linear !important; animation-iteration-count: infinite !important; animation-duration: 26s !important; }
  .bh-floaters i:nth-child(odd) { animation-duration: 32s !important; }
  .bh-intro__loading i { animation: bh-spin .8s linear infinite !important; }
  /* the names strip is gentle sideways motion: keep it running, just slower */
  .bh-marquee__track { animation: bh-marquee 130s linear infinite !important; }
}

/* tap glitter layer (drawn by invite-blue-hearts.js) */
.bh-glitter { position: fixed; inset: 0; z-index: 200; width: 100%; height: 100%; pointer-events: none; }
/* family card with only a name (no parents / house) */
.bh-fam h3:last-child { margin-bottom: 0; }
.bh-fam:has(h3:last-child) { text-align: center; }

/* love bubbles in every section: pale blue on navy, soft gold on the light sections */
.bh-cream .bh-floaters i, .bh-dua .bh-floaters i { fill: rgba(201,161,78,.16); }
.bh-cream .bh-floaters i:nth-child(10), .bh-dua .bh-floaters i:nth-child(10) { fill: rgba(59,84,128,.12); }

/* optional uploads: couple photo in "The couple", venue photo above the map */
.bh-couple { margin: 10px auto 26px; max-width: 300px; padding: 6px; border: 1px solid rgba(212,175,55,.55); border-radius: 160px 160px 16px 16px; }
.bh-couple img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 154px 154px 12px 12px; }
.bh-venue__photo { display: block; width: 100%; max-width: 520px; aspect-ratio: 16 / 9; object-fit: cover; margin: 22px auto 0; border-radius: 16px; }

/* the Mark By Ilara credit (includes/ilara-watermark.php) sits on the navy ending: light text */
main .ilara-wm { color: #fff; }


/* ---------- long text (Blue Hearts) ----------
   A long name, venue, address or link never runs out of its box: a word too long for its line
   breaks onto the next line instead of being cut off or overlapping. overflow-wrap is inherited,
   so this one rule covers every text in the design; it only acts when a word would overflow. */
body.bh { overflow-wrap: break-word; word-wrap: break-word; }
