/* ─── Foundations ──────────────────────────────────────────────── */
:root {
  --cream: #faf3ec;
  --cream-deep: #f3e7da;
  --blush: #e9cdc6;
  --blush-soft: #f4dfd9;
  --rose: #c98a8a;
  --rose-deep: #a76767;
  --mauve: #5a3a3a;
  --mauve-soft: #856060;
  --sage: #94a98a;
  --sage-deep: #6f8568;
  --gold: #c9a96e;
  --ink: #3a2a2a;

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --serif-ar: "Aref Ruqaa", "Amiri", "Noto Naskh Arabic", serif;
  --script: "Allura", "Great Vibes", cursive;
  --script-ar: "Aref Ruqaa", "Amiri", "Noto Naskh Arabic", serif;
  --ui: "Manrope", "Inter", system-ui, sans-serif;
  --ui-ar: "Cairo", "Noto Naskh Arabic", "Manrope", system-ui, sans-serif;

  --shadow-sm: 0 4px 18px rgba(90, 58, 58, .08);
  --shadow-md: 0 18px 50px rgba(90, 58, 58, .14);
  --shadow-lg: 0 32px 80px rgba(90, 58, 58, .22);

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ui);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}
body.rtl { font-family: var(--ui-ar); font-size: 17px; }
body.rtl .lead, body.rtl .blessing,
body.rtl .home-card .invite-line, body.rtl h1.title, body.rtl h2.title,
body.rtl .home-card .place, body.rtl .address-card .venue,
body.rtl .event .when, body.rtl .note-title, body.rtl .form-row label,
body.rtl .input, body.rtl .textarea, body.rtl .choice,
body.rtl .small, body.rtl .date, body.rtl .seal-hint,
body.rtl .invite-line, body.rtl .eyebrow {
  font-family: var(--serif-ar);
}
body.rtl .home-card .date-large .stack { text-align: right; border-left: none; border-right: 1px solid var(--gold); padding-left: 0; padding-right: 14px; }

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

#root { min-height: 100vh; min-height: 100svh; }
.app { position: relative; min-height: 100vh; min-height: 100svh; background: var(--cream); }

/* ─── ENTRY: 3D envelope + breaking wax seal ──────────────────── */
.entry {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 50% 20%, #fdf2eb 0%, #f4d9cc 50%, #e1b3a4 100%);
  overflow: hidden;
  z-index: 50;
  transition: opacity .9s ease, transform 1.2s ease;
}
.entry.exiting { opacity: 0; pointer-events: none; transform: scale(1.1); }

/* Camera zoom: stage scales up so the seal fills the screen */
.zoom-stage {
  position: relative;
  width: min(86vw, 460px);
  aspect-ratio: 7/5;
  perspective: 1800px;
  transform-style: preserve-3d;
  animation: zoomIn 1.6s cubic-bezier(.2,.7,.2,1) .25s both;
}
.entry.opening .zoom-stage {
  animation: zoomBig 4.2s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes zoomIn {
  0%   { transform: scale(.6) translateY(20px); opacity: 0; }
  100% { transform: scale(1)   translateY(0);   opacity: 1; }
}
@keyframes zoomBig {
  0%   { transform: scale(1); }
  100% { transform: scale(1.6); }
}

.env3d {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(8deg);
  filter: drop-shadow(0 30px 50px rgba(90, 30, 30, .25));
}

/* envelope back wall — holds the inner card */
.env-back {
  position: absolute; inset: 0;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #efd4c0 0%, #e3bfa8 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.4),
    inset 0 0 60px rgba(120, 70, 60, .2);
  transform: translateZ(-2px);
  overflow: hidden;
}
.env-back::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 50%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(167, 103, 103, .04) 14px 16px);
}

.env-card {
  position: absolute;
  left: 7%; right: 7%; top: 12%; bottom: 14%;
  background: linear-gradient(180deg, #fffaf5 0%, #fbeee5 100%);
  border-radius: 6px;
  padding: 6% 9%;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  box-shadow:
    0 4px 14px rgba(90,58,58,.18),
    inset 0 0 0 1px rgba(201, 169, 110, .25);
  transform: translateY(0) translateZ(0);
  transition: transform 3s cubic-bezier(.2,.8,.2,1) 3s;
}
.entry.opening .env-card { transform: translateY(-30%) translateZ(40px); }

.card-deco-top, .card-deco-bot {
  width: 60px; height: 12px;
  background:
    radial-gradient(circle at 50% 100%, var(--gold) 0 2px, transparent 3px) 0 100% / 12px 12px repeat-x;
  opacity: .5;
}
.card-deco-bot { transform: rotate(180deg); }

.env-card .small {
  font-size: 10px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--mauve-soft);
  margin-top: 8px;
}
.env-card .names {
  font-family: var(--script);
  font-size: clamp(28px, 7.5vw, 44px);
  color: var(--rose-deep);
  line-height: 1;
  margin: 4px 0 6px;
}
body.rtl .env-card .names { font-family: var(--script-ar); font-size: clamp(34px, 8vw, 50px); font-weight: 700; }
.env-card .date {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--mauve);
  margin-bottom: 8px;
}
.env-card .leaf {
  height: 1px; width: 60%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 6px 0;
  opacity: .7;
}

/* envelope front body — closed pocket */
.env-front {
  position: absolute; inset: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7e2d3 0%, #e9c4b1 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transform: translateZ(2px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.55),
    inset 0 -30px 50px rgba(120, 70, 60, .18);
}
/* the front sits below the flap; carve out the V at the top so the back peeks through */
.env-front::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(120,70,60,0) 100%);
  /* paper fold pleats */
}
.env-pleat {
  position: absolute;
  background: linear-gradient(180deg, rgba(255,255,255,.3), transparent);
  pointer-events: none;
}
.env-pleat.l { top: 0; left: 0; width: 50%; height: 50%; clip-path: polygon(0 0, 100% 50%, 0 100%); background: linear-gradient(135deg, #f0d4c1, #e7bda7); border-right: 1px solid rgba(255,255,255,.4); }
.env-pleat.r { top: 0; right: 0; width: 50%; height: 50%; clip-path: polygon(100% 0, 0 50%, 100% 100%); background: linear-gradient(225deg, #f0d4c1, #e7bda7); border-left: 1px solid rgba(255,255,255,.4); }
.env-pleat.b { bottom: 0; left: 0; right: 0; height: 50%; clip-path: polygon(0 100%, 50% 0, 100% 100%); background: linear-gradient(0deg, #efd0bc, #e8c2ae); border-top: 1px solid rgba(255,255,255,.5); }

/* top flap that swings open */
.env-flap {
  position: absolute; top: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(180deg, #f7e2d3 0%, #e9c4b1 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transform: translateZ(3px) rotateX(0);
  transition: transform 1.6s cubic-bezier(.55, .05, .25, 1) .35s;
  box-shadow: 0 8px 16px rgba(122,80,70,.12);
  z-index: 4;
}
.env-flap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(0,0,0,.06) 60%, rgba(120, 70, 60, .14) 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.entry.opening .env-flap {
  transform: translateZ(3px) rotateX(-175deg);
  transition: transform 4.5s cubic-bezier(.45, 0, .25, 1) 1s;
}

/* ─── Wax seal (centered over the flap) ───────────────────────── */
.seal-wrap {
  position: absolute;
  left: 50%; top: 50%;
  width: 130px; height: 130px;
  transform: translate(-50%, -50%) translateZ(8px);
  background: transparent;
  border: 0; padding: 0;
  z-index: 6;
  cursor: pointer;
}
.seal-pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(167, 103, 103, .55);
  animation: sealRipple 2.4s cubic-bezier(.2,.6,.3,1) infinite;
  pointer-events: none;
}
.seal-pulse-2 { animation-delay: 1.2s; }
@keyframes sealRipple {
  0%   { transform: scale(1);   opacity: .75; }
  60%  { opacity: .15; }
  100% { transform: scale(2.2); opacity: 0; }
}
.entry.opening .seal-pulse, .entry.opening .seal-pulse-2 { animation: none; opacity: 0; }

.seal {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #d99a9a 0%, #b86d6d 45%, #813c3c 100%);
  box-shadow:
    0 10px 26px rgba(80, 20, 20, .45),
    inset 0 -8px 18px rgba(50, 12, 12, .5),
    inset 0 8px 14px rgba(255, 220, 220, .35);
  animation: sealHeartbeat 1.6s ease-in-out infinite;
  transition: opacity .25s ease;
}
.seal::before {
  content: "";
  position: absolute; inset: 10px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 230, 220, .55);
}
@keyframes sealHeartbeat {
  0%, 100% { transform: scale(1)    rotate(0); }
  18%      { transform: scale(1.10) rotate(-2deg); }
  32%      { transform: scale(1)    rotate(0); }
  50%      { transform: scale(1.06) rotate(2deg); }
  64%      { transform: scale(1)    rotate(0); }
}
.seal-mono {
  font-family: var(--script);
  color: #f9e7e0;
  font-size: 44px;
  line-height: 1;
  text-shadow: 0 2px 3px rgba(0,0,0,.35);
  pointer-events: none;
}
body.rtl .seal-mono { font-family: var(--script-ar); font-size: 38px; font-weight: 700; }

/* crack appears just before shards explode */
.crack {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
}
.crack svg { width: 100%; height: 100%; }
.entry.opening .crack {
  animation: crackShow .9s ease-out .35s forwards;
}
@keyframes crackShow {
  0% { opacity: 0; }
  60% { opacity: 1; }
  100% { opacity: 1; }
}
.entry.opening .seal {
  animation: sealHide .35s ease-out 1.2s forwards;
}
@keyframes sealHide {
  to { opacity: 0; transform: scale(.95); }
}

/* shards (8 wedges of the wax) */
.shard {
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #d99a9a 0%, #b86d6d 45%, #813c3c 100%);
  opacity: 0;
  transform: translate(0,0) rotate(0);
  filter: drop-shadow(0 4px 6px rgba(60,10,10,.4));
  transform-origin: 50% 50%;
}
.entry.opening .shard {
  animation: shardFly 2.4s cubic-bezier(.3,.7,.3,1) forwards;
  animation-delay: calc(1.2s + var(--del, 0s));
}
@keyframes shardFly {
  0%   { opacity: 1; transform: translate(0,0) rotate(0); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
}

.seal-hint {
  position: absolute;
  left: 50%; bottom: -52px;
  transform: translateX(-50%);
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--mauve);
  opacity: .8;
  white-space: nowrap;
  animation: pulse 2.2s ease-in-out infinite;
}
.entry.opening .seal-hint { opacity: 0; transition: opacity .3s; }
@keyframes pulse {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}

.entry-floor {
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 28%;
  background: linear-gradient(180deg, transparent, rgba(167, 103, 103, .14));
  pointer-events: none;
}

.corner-floral {
  position: absolute;
  width: 200px; opacity: .55;
  pointer-events: none;
}
.corner-floral.tl { top: 0; left: 0; }
.corner-floral.br { right: 0; bottom: 0; transform: scaleX(-1) scaleY(-1); }

/* ─── LANGUAGE SWITCHER ───────────────────────────────────────── */
.lang-switch {
  position: fixed;
  top: 14px; right: 14px;
  z-index: 80;
  font-family: var(--ui);
}
body.rtl .lang-switch { right: auto; left: 14px; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: rgba(255, 250, 245, .9);
  border: 1px solid rgba(167, 103, 103, .25);
  border-radius: 999px;
  color: var(--mauve);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
}
.lang-btn:hover { transform: translateY(-1px); }
.lang-current { font-weight: 600; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  background: rgba(255, 250, 245, .98);
  border: 1px solid rgba(167, 103, 103, .2);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 6px;
  min-width: 160px;
  display: flex; flex-direction: column;
  gap: 2px;
  backdrop-filter: blur(10px);
}
body.rtl .lang-menu { right: auto; left: 0; }
.lang-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--mauve);
  cursor: pointer;
  font-size: 13px;
  transition: background .15s ease;
}
.lang-item:hover { background: var(--blush-soft); }
.lang-item.active { background: linear-gradient(180deg, #d39994, #c47a78); color: #fff; }
.lang-code {
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: .15em;
  font-size: 11px;
  opacity: .8;
}
.lang-name { font-family: var(--serif); font-size: 14px; }

/* ─── VIDEO transition ─────────────────────────────────────────── */
/* (kept empty for forward compat — no video stage in flow) */

/* ─── SITE ─────────────────────────────────────────────────────── */
.site {
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}
.site.visible { opacity: 1; pointer-events: auto; }

.section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 80px 24px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  overflow: hidden;
}

.section-bg { position: absolute; inset: 0; z-index: 0; }
.section-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(250, 243, 236, .55) 0%, rgba(250, 243, 236, .82) 100%);
}
.section-content { position: relative; z-index: 2; width: 100%; max-width: 580px; }

.eyebrow {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--rose);
  text-align: center;
  margin-bottom: 16px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin: 0 12px;
  opacity: .6;
}
body.rtl .eyebrow { letter-spacing: .12em; text-transform: none; font-weight: 600; }

h1.title, h2.title {
  font-family: var(--serif);
  font-weight: 400;
  text-align: center;
  color: var(--mauve);
  margin: 0;
  letter-spacing: .02em;
}
h1.title { font-size: clamp(40px, 9vw, 70px); }
h2.title { font-size: clamp(30px, 6.5vw, 44px); }

.script {
  font-family: var(--script);
  color: var(--rose-deep);
  font-size: clamp(56px, 14vw, 96px);
  line-height: 1;
  text-align: center;
}

.lead {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--mauve);
  text-align: center;
  text-wrap: pretty;
}

/* HOME */
.home {
  background:
    radial-gradient(120% 80% at 50% 0%, #fbeee6 0%, #f5dfd3 50%, #ebc6b9 100%);
  min-height: 100vh; min-height: 100svh;
}
.home-card {
  position: relative;
  background: rgba(255, 250, 245, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: var(--radius-lg);
  padding: 56px 32px 44px;
  text-align: center;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 460px;
}
.home-card .invite-line {
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--mauve-soft);
  margin-bottom: 8px;
}
body.rtl .home-card .invite-line { letter-spacing: .08em; text-transform: none; }
.home-card .names-script {
  font-family: var(--script);
  font-size: clamp(60px, 16vw, 100px);
  line-height: .95;
  color: var(--rose-deep);
  margin: 4px 0 0;
}
body.rtl .home-card .names-script {
  font-family: var(--script-ar);
  font-size: clamp(56px, 14vw, 92px);
  font-weight: 700;
  line-height: 1.2;
}
.home-card .amp { display: inline-block; color: var(--sage-deep); font-style: italic; margin: 0 .12em; }
.home-card .hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 22px auto;
  width: 80%;
  opacity: .7;
}
.home-card .date-large {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  font-family: var(--serif);
}
.home-card .date-large .day {
  font-size: 56px; line-height: 1;
  color: var(--mauve);
  font-weight: 500;
}
.home-card .date-large .stack {
  display: flex; flex-direction: column;
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--mauve);
  text-align: left;
  border-left: 1px solid var(--gold);
  padding-left: 14px;
  gap: 4px;
}
body.rtl .home-card .date-large .stack { letter-spacing: .04em; text-transform: none; font-weight: 600; }
.home-card .place {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .08em;
  color: var(--mauve);
}
.home-card .blessing {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--mauve-soft);
  font-size: 15px;
  line-height: 1.6;
}
body.rtl .home-card .blessing { font-style: normal; font-size: 16px; }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
}
.scroll-cue .arrow {
  display: block;
  margin: 8px auto 0;
  width: 1px; height: 32px;
  background: linear-gradient(180deg, var(--mauve), transparent);
  animation: cueDown 1.8s ease-in-out infinite;
}
@keyframes cueDown {
  0%, 100% { opacity: .3; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(6px); }
}

/* Falling petals */
.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.petal {
  position: absolute;
  top: -40px;
  width: var(--s, 18px); height: var(--s, 18px);
  animation: fall var(--d, 14s) linear var(--del, 0s) infinite,
             sway var(--sw, 4s) ease-in-out var(--del, 0s) infinite alternate;
  opacity: .75;
  will-change: transform;
}
.petal svg { width: 100%; height: 100%; display: block; }
@keyframes fall {
  0%   { transform: translateY(-60px) rotate(0); }
  100% { transform: translateY(110vh) rotate(720deg); }
}
@keyframes sway {
  0%   { margin-left: -10px; }
  100% { margin-left: 10px; }
}

.garland {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 110px;
  z-index: 2;
  pointer-events: none;
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: 320px 110px;
  opacity: .9;
}

/* COUNTDOWN */
.countdown { background: linear-gradient(180deg, #fbeee6 0%, #f4dfd9 100%); }
.countdown-bg { background: url("assets/bg-countdown.svg") center / cover no-repeat; opacity: .35; }
.cd-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin: 28px 0;
}
.cd-cell {
  background: rgba(255, 250, 245, .72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--radius-md);
  padding: 18px 6px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.cd-cell .num {
  font-family: var(--serif);
  font-size: clamp(34px, 8vw, 48px);
  line-height: 1;
  color: var(--rose-deep);
  font-weight: 500;
}
.cd-cell .lbl {
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--mauve-soft);
  margin-top: 8px;
}
body.rtl .cd-cell .lbl { letter-spacing: .04em; text-transform: none; font-weight: 600; }

.clock {
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffaf5 0%, #f5dfd3 80%);
  border: 8px solid #fff;
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(201,169,110,.3);
  display: grid; place-items: center;
  margin: 0 auto 20px;
  position: relative;
}
.clock .tick {
  position: absolute;
  width: 2px; height: 8px;
  background: var(--mauve);
  left: 50%; top: 6px;
  transform-origin: 50% 84px;
  border-radius: 1px;
  opacity: .55;
}
.clock .hand {
  position: absolute;
  background: var(--mauve);
  left: 50%; top: 50%;
  transform-origin: top center;
  border-radius: 999px;
}
.clock .hand.h { width: 3px; height: 50px; transform: translate(-50%, 0) rotate(20deg); }
.clock .hand.m { width: 2px; height: 70px; transform: translate(-50%, 0) rotate(120deg); background: var(--rose-deep); }
.clock .pin { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px #fff; z-index: 2; }

/* LOCATION */
.location { background: linear-gradient(180deg, #f7ede2 0%, #f1dccf 100%); }
.location-bg { background: url("assets/bg-location.svg") center / cover no-repeat; opacity: .3; }
.map-frame {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 6px solid #fff;
  margin: 20px 0;
  aspect-ratio: 4 / 3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.address-card {
  background: rgba(255, 250, 245, .82);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: var(--shadow-sm);
}
.address-card .venue { font-family: var(--serif); font-size: 22px; color: var(--mauve); margin-bottom: 4px; }
.address-card .addr { font-family: var(--ui); font-size: 14px; color: var(--mauve-soft); letter-spacing: .04em; }
body.rtl .address-card .addr { font-family: var(--ui-ar); }

.btn-row {
  display: flex; gap: 10px;
  margin-top: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-primary {
  background: linear-gradient(180deg, #d39994, #c47a78);
  color: #fff;
  box-shadow: 0 8px 20px rgba(167, 103, 103, .3);
}
.btn-ghost {
  background: rgba(255, 255, 255, .8);
  color: var(--mauve);
  border: 1px solid rgba(167, 103, 103, .2);
}
body.rtl .btn { letter-spacing: .04em; text-transform: none; font-weight: 600; }

/* SCHEDULE */
.schedule { background: linear-gradient(180deg, #fbeee6 0%, #f5dfd3 100%); }
.schedule-bg { background: url("assets/bg-schedule.svg") center / cover no-repeat; opacity: .35; }
.timeline { position: relative; margin: 30px 0; padding: 8px 0; }
.timeline::before {
  content: "";
  position: absolute;
  left: 32px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--rose) 0%, var(--gold) 50%, var(--sage) 100%);
  opacity: .5;
}
body.rtl .timeline::before { left: auto; right: 32px; }
.event {
  position: relative;
  padding: 14px 0 14px 72px;
  display: flex; align-items: center;
  gap: 14px;
}
body.rtl .event { padding: 14px 72px 14px 0; }
.event .dot {
  position: absolute;
  left: 22px; top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--rose);
  box-shadow: 0 0 0 4px rgba(201,138,138,.15);
}
body.rtl .event .dot { left: auto; right: 22px; }
.event .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255,255,255,.7);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--rose-deep);
  box-shadow: var(--shadow-sm);
}
.event .icon svg { width: 22px; height: 22px; }
.event .info { flex: 1; }
.event .when { font-family: var(--serif); font-size: 22px; color: var(--mauve); line-height: 1; }
.event .what {
  font-family: var(--ui);
  font-size: 13px; letter-spacing: .04em;
  color: var(--mauve-soft);
  margin-top: 4px;
}
body.rtl .event .what { font-family: var(--ui-ar); font-size: 14px; }

/* ETIQUETTE */
.etiquette { background: linear-gradient(180deg, #f4dfd9 0%, #ecc8bf 100%); }
.etiquette-bg { background: url("assets/bg-etiquette.svg") center / cover no-repeat; opacity: .35; }
.notes { display: grid; gap: 14px; margin: 26px 0; }
.note-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px; align-items: center;
  padding: 18px 22px;
  background: rgba(255, 250, 245, .85);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.note-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f5dfd3, #e9cdc6);
  display: grid; place-items: center;
  color: var(--rose-deep);
}
.note-icon svg { width: 28px; height: 28px; }
.note-title { font-family: var(--serif); font-size: 18px; color: var(--mauve); margin: 0 0 2px; }
.note-body {
  font-family: var(--ui);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--mauve-soft);
  text-wrap: pretty;
}
body.rtl .note-body { font-family: var(--ui-ar); font-size: 15px; }

/* RSVP */
.rsvp { background: linear-gradient(180deg, #ecc8bf 0%, #d8a89f 100%); }
.rsvp-bg { background: url("assets/bg-rsvp.svg") center / cover no-repeat; opacity: .25; }
.form-card {
  background: rgba(255, 250, 245, .92);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,.6);
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--mauve-soft);
  margin-bottom: 8px;
}
body.rtl .form-row label { letter-spacing: .04em; text-transform: none; font-weight: 600; font-size: 13px; }

.input, .textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(167, 103, 103, .2);
  background: #fff;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--mauve);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus, .textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(201,138,138,.15); }
.textarea { min-height: 80px; resize: vertical; font-family: var(--ui); font-size: 14px; }
body.rtl .textarea { font-family: var(--ui-ar); }

.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(167, 103, 103, .2);
  background: #fff;
  font-family: var(--ui);
  font-size: 13px;
  color: var(--mauve);
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}
.choice.active {
  background: linear-gradient(180deg, #d39994, #c47a78);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}
.guest-stepper {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff;
  border: 1px solid rgba(167, 103, 103, .2);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
}
.guest-stepper .v {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--mauve);
  min-width: 30px;
  text-align: center;
}
.step-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(167, 103, 103, .2);
  background: var(--cream);
  color: var(--mauve);
  font-size: 18px;
  display: grid; place-items: center;
  transition: all .15s ease;
}
.step-btn:hover { background: var(--blush-soft); }
.step-btn:disabled { opacity: .35; cursor: not-allowed; }

.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(180deg, #c47a78 0%, #a76767 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: .35em;
  text-transform: uppercase;
  margin-top: 10px;
  box-shadow: 0 12px 30px rgba(167, 103, 103, .35);
  transition: transform .2s ease;
}
body.rtl .btn-submit { letter-spacing: .04em; text-transform: none; font-weight: 700; font-size: 14px; }
.btn-submit:hover { transform: translateY(-1px); }

.thanks { text-align: center; padding: 30px 10px; }
.thanks .heart { width: 60px; height: 60px; margin: 0 auto 12px; color: var(--rose-deep); }

/* FOOTER */
.footer {
  text-align: center;
  padding: 40px 24px 30px;
  background: linear-gradient(180deg, #d8a89f 0%, #c89189 100%);
  color: #fff;
}
.footer .script { color: #fff; font-size: 60px; }
body.rtl .footer .script { font-family: var(--script-ar); font-size: 56px; font-weight: 700; }
.footer .tag { font-family: var(--ui); font-size: 11px; letter-spacing: .35em; text-transform: uppercase; opacity: .85; }
body.rtl .footer .tag { font-family: var(--ui-ar); letter-spacing: .04em; text-transform: none; font-weight: 600; }

/* Audio toggle */
.audio-toggle {
  position: fixed;
  right: 16px; bottom: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 250, 245, .9);
  border: 1px solid rgba(167, 103, 103, .25);
  color: var(--rose-deep);
  display: grid; place-items: center;
  z-index: 30;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}
body.rtl .audio-toggle { right: auto; left: 16px; }

/* Scroll progress beads */
.dots {
  position: fixed;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column;
  gap: 10px;
  z-index: 25;
}
body.rtl .dots { right: auto; left: 14px; }
.dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(90, 58, 58, .25);
  transition: all .3s ease;
}
.dots .dot.active { background: var(--rose-deep); transform: scale(1.4); }

@media (max-width: 480px) {
  .dots { display: none; }
  .corner-floral { width: 140px; }
}

/* ─── Rose decorations ────────────────────────────────────────── */
.rose-deco { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.rose-deco .rose {
  position: absolute;
  width: 110px; height: 110px;
  opacity: .55;
  filter: drop-shadow(0 6px 14px rgba(167,103,103,.3));
  animation: roseFloat 9s ease-in-out infinite;
}
.rose-deco .rose.r1 { top: 8%; left: 4%; transform: rotate(-18deg); animation-delay: 0s; }
.rose-deco .rose.r2 { bottom: 10%; right: 5%; transform: rotate(22deg); width: 90px; height: 90px; animation-delay: -3.5s; }
@keyframes roseFloat {
  0%, 100% { transform: translateY(0) rotate(var(--r, -18deg)); }
  50%      { transform: translateY(-10px) rotate(calc(var(--r, -18deg) + 4deg)); }
}

.falling-roses { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.frose {
  position: absolute;
  top: -50px;
  width: var(--s, 24px); height: var(--s, 24px);
  animation: fall var(--d, 18s) linear var(--del, 0s) infinite,
             sway var(--sw, 6s) ease-in-out var(--del, 0s) infinite alternate;
  opacity: .7;
}
.frose svg { width: 100%; height: 100%; }

body.rtl .rose-deco .rose.r1 { left: auto; right: 4%; }
body.rtl .rose-deco .rose.r2 { right: auto; left: 5%; }

/* ─── TikTok CTA Section ────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(160deg, #3a2a2a 0%, #5a2a2a 40%, #2a1f3a 100%);
  min-height: 80vh;
  position: relative;
  overflow: hidden;
}
.cta-bg-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 80%, rgba(167, 103, 103, .25), transparent),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(100, 80, 160, .2), transparent);
  pointer-events: none;
}
.cta-eyebrow { color: rgba(255, 220, 200, .75); }
.cta-eyebrow::before, .cta-eyebrow::after { background: rgba(255, 220, 200, .4); }
.cta-title { color: #fff; }
.cta-lead { color: rgba(255, 235, 220, .8); max-width: 440px; margin: 12px auto 0; }

.cta-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* TikTok button */
.tiktok-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #010101 0%, #1a1a1a 100%);
  color: #fff;
  text-decoration: none;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow:
    0 0 0 1px rgba(255, 0, 80, .3),
    0 0 30px rgba(105, 201, 208, .2),
    0 12px 32px rgba(0, 0, 0, .5);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.tiktok-btn::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(105, 201, 208, .12), rgba(254, 44, 85, .08));
  opacity: 0;
  transition: opacity .25s ease;
}
.tiktok-btn:hover { transform: translateY(-2px); }
.tiktok-btn:hover::before { opacity: 1; }
.tiktok-btn:hover {
  box-shadow:
    0 0 0 1px rgba(254, 44, 85, .5),
    0 0 40px rgba(105, 201, 208, .35),
    0 18px 40px rgba(0, 0, 0, .5);
}
.tiktok-btn svg { flex-shrink: 0; }
body.rtl .tiktok-btn { letter-spacing: .04em; text-transform: none; font-size: 15px; }

/* QR code block */
.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.qr-frame {
  padding: 10px;
  background: #fdf8f3;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .4);
  line-height: 0;
}
.qr-img {
  border-radius: 8px;
  display: block;
  width: 110px; height: 110px;
}
.qr-label {
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 220, 200, .6);
}
body.rtl .qr-label { letter-spacing: .04em; text-transform: none; font-weight: 600; font-size: 12px; }

