/* ============================================================
   Wedding Card — Styles
   Palette: olive #6B7B4C · cream #F5F1E8 · gold #C9A227 · navy #2C3E50
   ============================================================ */

:root {
  --olive: #6B7B4C;
  --olive-light: #8A9A6D;
  --olive-pale: #D4DCC9;
  --cream: #F5F1E8;
  --white: #FFFFFF;
  --gold: #C9A227;
  --gold-light: #E3C86D;
  --navy: #2C3E50;
  --ink: #2A2A2A;

  --font-en-display: "Playfair Display", serif;
  --font-en-script: "Great Vibes", cursive;
  --font-en-body: "Montserrat", sans-serif;
  --font-fa: "Vazirmatn", "Tahoma", sans-serif;

  --shadow-soft: 0 18px 50px -18px rgba(107, 123, 76, 0.35);
  --shadow-card: 0 10px 40px -12px rgba(44, 62, 80, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-en-body);
  background: var(--cream);
  color: var(--navy);
  overflow-x: hidden;
  min-height: 100vh;
}

body[data-lang="fa"] { font-family: var(--font-fa); }

.fa-font { font-family: var(--font-fa); }

/* ---------- Ambient layers ---------- */

#petals {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.blob {
  position: fixed;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.blob-a { background: var(--olive-pale); top: -18vmax; inset-inline-start: -14vmax; animation: drift 26s ease-in-out infinite alternate; }
.blob-b { background: var(--gold-light); bottom: -22vmax; inset-inline-end: -16vmax; opacity: 0.22; animation: drift 32s ease-in-out infinite alternate-reverse; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vmax, 4vmax) scale(1.12); }
}

.corner {
  position: fixed;
  width: clamp(110px, 20vw, 220px);
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

.corner-tr { top: 0; inset-inline-end: 0; }
.corner-bl { bottom: 0; inset-inline-start: 0; transform: rotate(180deg); }

/* In Persian (RTL) swap the two corners so lamp stays visually top-left and flower bottom-right */
body[data-lang="fa"] .corner-tr { inset-inline-end: auto; inset-inline-start: 0; }
body[data-lang="fa"] .corner-bl { inset-inline-start: auto; inset-inline-end: 0; }

/* ---------- Language select ---------- */

.lang-select {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 24px;
  background: radial-gradient(120% 120% at 50% 0%, var(--white) 0%, var(--cream) 55%, var(--olive-pale) 100%);
  transition: opacity 0.8s ease, visibility 0.8s;
}

.lang-select.hidden { opacity: 0; visibility: hidden; }

.welcome-icon {
  width: clamp(340px, 88vw, 560px);
  filter: none;
  mix-blend-mode: multiply;
}

.ls-welcome {
  font-family: var(--font-en-script);
  font-size: clamp(2.6rem, 8vw, 4rem);
  color: var(--olive);
  line-height: 1.1;
}

.gold-line {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ls-choose {
  color: var(--navy);
  opacity: 0.75;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 500;
}

.ls-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.ls-btn {
  cursor: pointer;
  border: 1.5px solid var(--olive);
  background: var(--white);
  border-radius: 18px;
  padding: 20px 38px;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.ls-btn:hover {
  transform: translateY(-4px);
  background: linear-gradient(160deg, var(--white), var(--olive-pale));
  box-shadow: var(--shadow-soft);
}

.ls-btn-script {
  font-family: var(--font-en-script);
  font-size: 2rem;
  color: var(--olive);
  line-height: 1.2;
}

.ls-btn-script.fa-font {
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: 1.6rem;
}

.ls-btn-sub {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
}

.ls-btn-sub.fa-font { letter-spacing: 0; font-size: 0.8rem; }

/* ---------- Card / shared ---------- */

.card { position: relative; z-index: 2; }

.section {
  max-width: 720px;
  margin: 0 auto;
  padding: 26px 22px 10px;
  text-align: center;
}

.section-icon {
  width: clamp(130px, 30vw, 190px);
  margin-bottom: 4px;
  filter: drop-shadow(0 10px 18px rgba(107, 123, 76, 0.28));
}

#invitationIcon.section-icon {
  width: clamp(180px, 42vw, 280px);
}

.section-icon-lg {
  width: clamp(220px, 55vw, 340px);
}

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

body[data-lang="fa"] .kicker { letter-spacing: 0.06em; font-size: 0.85rem; }

.title {
  font-family: var(--font-en-display);
  font-size: clamp(1.7rem, 5.5vw, 2.4rem);
  color: var(--olive);
  margin-bottom: 26px;
  font-weight: 600;
}

body[data-lang="fa"] .title { font-family: var(--font-fa); font-weight: 800; }

.script { font-family: var(--font-en-script); }

body[data-lang="fa"] .script { font-family: var(--font-fa); font-weight: 600; }

.sep {
  display: block;
  width: clamp(240px, 60vw, 420px);
  margin: 12px auto 0;
  opacity: 0.95;
}

.white-card {
  background: var(--white);
  border-radius: 22px;
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(212, 220, 201, 0.7);
}

.body-text {
  font-size: 1rem;
  line-height: 2;
  color: var(--navy);
}

.body-text + .body-text { margin-top: 14px; }
.body-text strong { color: var(--olive); }
.center { max-width: 560px; margin: 0 auto; text-align: center; }

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 18px 22px 40px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.brand-tag {
  font-family: var(--font-en-display);
  color: var(--olive);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
}

body[data-lang="fa"] .brand-tag { font-family: var(--font-fa); letter-spacing: 0.1em; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  border: 1.4px solid var(--olive);
  background: rgba(255, 255, 255, 0.75);
  color: var(--olive);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  backdrop-filter: blur(6px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.lang-toggle:hover { background: var(--white); transform: translateY(-2px); }
.lang-toggle svg { width: 16px; height: 16px; }

.music-toggle {
  position: fixed;
  bottom: 22px;
  right: 22px;
  left: auto;
  z-index: 40;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--olive);
  background: rgba(255, 255, 255, 0.85);
  color: var(--olive);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, background 0.25s ease;
}

.music-toggle:hover { transform: scale(1.08); background: var(--white); }
.music-toggle svg { width: 20px; height: 20px; }

.hero-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  text-align: center;
}

.video-shell {
  width: min(86vw, 400px);
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(150deg, var(--gold-light), var(--olive-light));
  box-shadow: var(--shadow-soft);
}

.video-shell video {
  display: block;
  width: 100%;
  border-radius: 20px;
  background: var(--olive-pale);
}

.save-the-date {
  font-size: clamp(2rem, 7vw, 2.9rem);
  color: var(--gold);
  line-height: 1;
}

body[data-lang="fa"] .save-the-date { font-size: clamp(1.2rem, 4.5vw, 1.5rem); color: var(--gold); }

.hero-names {
  font-family: var(--font-en-display);
  font-size: clamp(2.2rem, 9vw, 3.6rem);
  color: var(--olive);
  font-weight: 700;
  line-height: 1.15;
  margin: 6px 0 12px;
}

body[data-lang="fa"] .hero-names { font-family: var(--font-fa); font-weight: 800; }

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--navy);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}

.hero-meta .dot { color: var(--gold); }

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--olive);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 28px;
}

body[data-lang="fa"] .scroll-hint { letter-spacing: 0.05em; font-size: 0.8rem; }

.chevron-down {
  width: 18px;
  height: 18px;
  color: var(--gold);
  animation: bounceDown 1.8s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.45; }
}

/* ---------- Invitation ---------- */

.sign {
  margin-top: 22px;
  font-size: 1.9rem;
  color: var(--gold);
}

body[data-lang="fa"] .sign { font-size: 1.15rem; }

/* ---------- Countdown ---------- */

.cd-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  direction: ltr; /* عددها همیشه چپ‌به‌راست، حتی در نسخهٔ فارسی */
}

.cd-box {
  background: var(--white);
  border: 1px solid rgba(212, 220, 201, 0.8);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 16px 8px 12px;
  min-width: clamp(64px, 19vw, 88px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cd-num {
  font-family: var(--font-en-display);
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  font-weight: 700;
  color: var(--olive);
  font-variant-numeric: tabular-nums;
}

body[data-lang="fa"] .cd-num { font-family: var(--font-fa); font-weight: 800; }

.cd-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

body[data-lang="fa"] .cd-label { letter-spacing: 0; font-size: 0.75rem; }

.cd-sep { color: var(--gold); font-size: 1.6rem; font-weight: 300; }

.cd-done { font-size: 2.2rem; color: var(--gold); margin-top: 12px; }
body[data-lang="fa"] .cd-done { font-size: 1.4rem; }

/* ---------- Timeline ---------- */

.tl-list {
  list-style: none;
  position: relative;
  text-align: start;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 4px;
}

.tl-list::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  inset-inline-start: 31px;
  width: 2px;
  background: linear-gradient(var(--gold-light), var(--olive-light));
  border-radius: 2px;
}

.tl-item {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 14px 0;
}

.tl-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--gold-light);
  box-shadow: 0 6px 16px -6px rgba(201, 162, 39, 0.4);
  display: grid;
  place-items: center;
}

.tl-icon img { width: 42px; height: 42px; object-fit: contain; }

.tl-body { padding-top: 4px; }

.tl-time {
  font-family: var(--font-en-display);
  color: var(--gold);
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

body[data-lang="fa"] .tl-time { font-family: var(--font-fa); font-weight: 800; }

.tl-title {
  font-weight: 600;
  color: var(--olive);
  font-size: 1.02rem;
  margin: 2px 0 4px;
}

.tl-desc { font-size: 0.88rem; line-height: 1.8; color: var(--navy); opacity: 0.85; }

/* ---------- Venue ---------- */

.venue-name {
  font-family: var(--font-en-display);
  color: var(--olive);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

body[data-lang="fa"] .venue-name { font-family: var(--font-fa); font-weight: 800; }

.venue-address { font-weight: 500; }
.venue-notes { font-size: 0.85rem; opacity: 0.75; }

.dir-label {
  margin-top: 22px;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

body[data-lang="fa"] .dir-label { letter-spacing: 0.05em; font-size: 0.8rem; }

.dir-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn svg { width: 17px; height: 17px; }

.btn-solid {
  background: var(--olive);
  color: var(--white);
  box-shadow: 0 10px 22px -10px rgba(107, 123, 76, 0.7);
}

.btn-solid:hover { transform: translateY(-3px); background: var(--olive-light); }

.btn-outline {
  border: 1.5px solid var(--olive);
  color: var(--olive);
  background: var(--white);
}

.btn-outline:hover { transform: translateY(-3px); background: var(--olive-pale); }

.btn-sm { padding: 9px 18px; font-size: 0.8rem; }

/* ---------- RSVP ---------- */

.rsvp-card { border-top: 3px solid var(--gold); }

.rsvp-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

.rsvp-contact-pair {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(212, 220, 201, 0.7);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.person-chip {
  background: var(--cream);
  border-radius: 16px;
  padding: 18px 14px;
}

.person-role {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
}

body[data-lang="fa"] .person-role { letter-spacing: 0.05em; font-size: 0.78rem; }

.person-name {
  font-family: var(--font-en-display);
  font-size: 1.4rem;
  color: var(--olive);
  font-weight: 700;
  margin-bottom: 12px;
}

body[data-lang="fa"] .person-name { font-family: var(--font-fa); font-weight: 800; }

.person-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.footer { text-align: center; padding: 20px 22px 46px; }

.footer-text {
  margin-top: 22px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--olive);
  opacity: 0.75;
}

/* ---------- Motion utilities ---------- */

.float-slow { animation: floaty 5s ease-in-out infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

