/* ---------- Gift registry: botanical stationery card ---------- */
.registry-section {
  padding: clamp(60px, 9vw, 120px) 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(122, 140, 104, 0.12), transparent 60%), var(--color-cream);
  overflow: clip;
  position: relative;
  isolation: isolate;
}
.registry-section > .container { position: relative; z-index: 1; }

/* ---------- Background ambience (built by registry.js) ---------- */
.registry-ambience { position: absolute; inset: 0; pointer-events: none; z-index: 0; container-type: size; }
.rg-glow {
  position: absolute;
  width: 46vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 201, 120, 0.28), rgba(232, 201, 120, 0) 65%);
  animation: rgGlow 26s ease-in-out infinite alternate;
}
.rg-glow.g1 { top: -18%; left: -14%; }
.rg-glow.g2 { bottom: -22%; right: -12%; background: radial-gradient(circle, rgba(150, 170, 120, 0.22), rgba(150, 170, 120, 0) 65%); animation-duration: 31s; animation-direction: alternate-reverse; }
.rg-glow.g3 { top: 30%; left: 38%; width: 30vmax; animation-duration: 22s; animation-delay: -8s; }
@keyframes rgGlow {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
  to { transform: translate3d(6vw, 4vh, 0) scale(1.15); opacity: 1; }
}

.registry-ambience i {
  position: absolute;
  top: 0;
  width: var(--s);
  height: var(--s);
  opacity: 0;
  animation: rgFall var(--d) linear var(--dl) infinite;
  will-change: transform;
}
.rg-leaf {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 2C31 9 33 26 20 38 7 26 9 9 20 2z' fill='%23869a72'/%3E%3Cpath d='M20 5v31' stroke='%23e8ecd9' stroke-width='1' opacity='.7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rg-leaf:nth-of-type(3n) { filter: hue-rotate(-12deg) brightness(1.12); }
.rg-petal {
  border-radius: 80% 10% 80% 10%;
  background: linear-gradient(135deg, #fffdf8, #efe5d2);
  box-shadow: 0 1px 3px rgba(120, 100, 70, 0.18);
}
.rg-speck { border-radius: 50%; background: #d9b45a; box-shadow: 0 0 8px 2px rgba(232, 201, 120, 0.6); }
@keyframes rgFall {
  0% { transform: translate3d(0, -60px, 0) rotate(0deg); opacity: 0; }
  8% { opacity: 0.85; }
  30% { transform: translate3d(var(--dx), 28cqh, 0) rotate(calc(var(--spin) * 0.3)); }
  60% { transform: translate3d(calc(var(--dx) * -0.6), 58cqh, 0) rotate(calc(var(--spin) * 0.6)); }
  90% { opacity: 0.75; }
  100% { transform: translate3d(calc(var(--dx) * 0.5), calc(100cqh + 40px), 0) rotate(var(--spin)); opacity: 0; }
}
.registry-section.rg-idle .registry-ambience *,
.registry-section.rg-idle .registry-bloom img,
.registry-section.rg-idle .registry-spark { animation-play-state: paused; }

/* Card rises in the first time the section is reached */
.registry-section.rg-idle:not(.rg-seen) .registry-card { opacity: 0; transform: translateY(40px) scale(0.98); }
.registry-section .registry-card { transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }

.registry-card {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 104px) clamp(28px, 12vw, 160px) clamp(60px, 8vw, 96px);
  text-align: center;
  border-radius: 6px;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(150, 165, 120, 0.12), transparent 45%),
    radial-gradient(ellipse at 88% 85%, rgba(150, 165, 120, 0.12), transparent 45%),
    linear-gradient(180deg, #fbf7ee, #f5efe2);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.65), 0 0 0 9px rgba(212, 175, 55, 0.25), 0 50px 90px -50px rgba(28, 42, 31, 0.55);
  overflow: hidden;
  isolation: isolate;
}

/* Corner sprays: eucalyptus with white roses tucked in */
.registry-bloom { position: absolute; width: clamp(170px, 32%, 320px); aspect-ratio: 1; pointer-events: none; z-index: 0; }
.registry-bloom img { position: absolute; height: auto; filter: drop-shadow(0 4px 6px rgba(60, 70, 55, 0.18)); }
/* the branch's cut stems point into the corner, so the leaves fan out across the card */
.registry-bloom .rb-leaf { width: 135%; left: -22%; top: 12%; transform: rotate(135deg); animation: rbSway 9s ease-in-out infinite alternate; }
.registry-bloom .rb-rose { width: 56%; left: -9%; top: -7%; transform: rotate(-24deg); animation: rbSway 11s ease-in-out infinite alternate-reverse; }
.registry-bloom-tl { top: 0; left: 0; }
.registry-bloom-br { bottom: 0; right: 0; transform: rotate(180deg); }
@keyframes rbSway { from { rotate: -1.5deg; } to { rotate: 1.5deg; } }

/* Fine gold vines curling in from the corners */
.registry-vine { position: absolute; width: clamp(90px, 13%, 130px); fill: none; stroke: #c9a24a; stroke-width: 1.4; stroke-linecap: round; opacity: 0.75; z-index: 0; pointer-events: none; }
.registry-vine-tl { top: 38%; left: 12px; }
.registry-vine-br { bottom: 38%; right: 12px; transform: rotate(180deg); }

.registry-spark { position: absolute; color: #c9a24a; font-size: 18px; line-height: 1; z-index: 0; animation: rbTwinkle 3.6s ease-in-out infinite; }
.registry-spark.s1 { top: 9%; left: 62%; }
.registry-spark.s2 { top: 30%; right: 6%; animation-delay: 1.2s; }
.registry-spark.s3 { bottom: 16%; left: 8%; animation-delay: 2.4s; }
@keyframes rbTwinkle { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.1); } }

.registry-content { position: relative; z-index: 1; }
.registry-content .section-tag { display: block; margin-bottom: 14px; }
.registry-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: 1.12;
  color: #2c3424;
  letter-spacing: 0.2px;
}
.registry-script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.45em;
  line-height: 0;
  margin-right: 0.04em;
  color: #2c3424;
}

.registry-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: clamp(20px, 3vw, 30px) auto; max-width: 420px; }
.registry-divider .line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #c9a24a); }
.registry-divider .line:last-child { transform: scaleX(-1); }
.registry-divider svg { width: 26px; height: 26px; fill: none; stroke: #b8892f; stroke-width: 1.4; stroke-linejoin: round; }

.registry-text {
  font-family: var(--font-serif);
  font-size: clamp(1.12rem, 2.3vw, 1.4rem);
  line-height: 1.5;
  color: #3b4233;
  max-width: 40ch;
  margin: 0 auto 14px;
  text-wrap: balance;
}
.registry-text + .registry-text { margin-top: 10px; }

.registry-btn { margin-top: clamp(18px, 3vw, 28px); display: inline-flex; align-items: center; gap: 10px; }
.registry-btn .registry-btn-soon { display: none; }
.registry-btn[aria-disabled="true"] { pointer-events: none; filter: saturate(0.55); opacity: 0.8; }
.registry-btn[aria-disabled="true"] .registry-btn-live { display: none; }
.registry-btn[aria-disabled="true"] .registry-btn-soon { display: inline; }

@media (max-width: 640px) {
  .registry-card { padding: 120px 22px 110px; }
  .registry-bloom { width: 170px; }
  .registry-br { display: none; }
  .registry-vine { display: none; }
  .registry-spark.s2 { top: 8%; right: 10%; }
}

@media (prefers-reduced-motion: reduce) {
  .registry-bloom img, .registry-spark, .rg-glow { animation: none; }
  .registry-ambience i { display: none; }
  .registry-section .registry-card { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- Store location ---------- */
.registry-store {
  max-width: 520px;
  margin: clamp(30px, 5vw, 44px) auto 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 24px 50px -32px rgba(28, 42, 31, 0.45);
}
.registry-store-head { display: flex; align-items: center; gap: 12px; text-align: left; margin-bottom: 14px; }
.registry-store-head strong { display: block; font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 2px; text-transform: uppercase; color: #9a7425; }
.registry-store-head div span { display: block; line-height: 1.25; font-family: var(--font-serif); font-size: 1.15rem; color: #2c3424; }
.registry-store-pin { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #f3ead2; border: 1px solid rgba(212, 175, 55, 0.5); }
.registry-store-pin svg { width: 20px; height: 20px; fill: none; stroke: #9a7425; stroke-width: 1.6; }
.registry-map { border-radius: 12px; overflow: hidden; border: 1px solid rgba(212, 175, 55, 0.3); background: #ece6d6; }
.registry-map iframe { display: block; width: 100%; height: 240px; border: 0; }
.registry-directions { margin-top: 14px; width: 100%; justify-content: center; }
@media (max-width: 640px) {
  .registry-store { padding: 14px; }
  .registry-map iframe { height: 210px; }
}
