/* ==========================================================================
   BLOSSOM & OUD — MOROCCAN BOTANICAL LUXURY WEDDING INVITATION STYLES
   Inspired by & upgraded from webgencyinvitations.com/blossomoud
   ========================================================================== */

:root {
  --bg-sand: #f9e6d4;
  --bg-peach-light: #fdf3ea;
  --bg-alabaster: #fffaf8;
  --olive-primary: #747b54;
  --olive-dark: #60603b;
  --burgundy-oud: #360c1a;
  --espresso-oud: #40312c;
  --warm-beige: #efdfcd;
  --gold-tan: #ac9778;
  --border-oud: rgba(172, 151, 120, 0.42);
  --shadow-soft: 0 14px 40px rgba(64, 49, 44, 0.08);
  --shadow-card: 0 22px 55px rgba(54, 12, 26, 0.14);
  --font-serif: 'Ovo', 'Cormorant Garamond', 'Georgia', serif;
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-script: 'Great Vibes', cursive;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-serif);
  background-color: var(--bg-sand);
  color: var(--espresso-oud);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   TOP FLOATING TOOLBAR (Language Switcher & Custom Guest Link)
   ========================================================================== */
.top-floating-bar {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-btn {
  background: rgba(255, 250, 248, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-oud);
  color: var(--espresso-oud);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 15px rgba(64, 49, 44, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.pill-btn:hover {
  background: var(--olive-primary);
  color: #fff;
  border-color: var(--olive-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   SECTION 0: FLORAL ENVELOPE / CURTAIN OVERLAY (REC 2443433693)
   ========================================================================== */
.blossom-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: var(--bg-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.9s ease 2s, visibility 0s 2.9s;
}

.blossom-intro-overlay.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.blossom-stage {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: 100vh;
  max-height: 860px;
  overflow: hidden;
  background: var(--bg-peach-light);
  box-shadow: 0 25px 70px rgba(54, 12, 26, 0.22);
}

.blossom-panel {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
  transition: transform 2.1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s, opacity 0.6s ease 2s;
}

.blossom-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blossom-panel-left {
  top: 0;
  left: -12%;
  width: 72%;
  height: 100%;
  z-index: 2;
}

.blossom-panel-right {
  top: 0;
  right: -12%;
  width: 72%;
  height: 100%;
  z-index: 2;
}

.blossom-panel-bottom {
  bottom: -6%;
  left: -5%;
  width: 110%;
  height: 75%;
  z-index: 3;
}

.blossom-panel-top {
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  z-index: 4;
}

.blossom-intro-overlay.opened .blossom-panel-left {
  transform: translateX(-115%);
  opacity: 0;
}

.blossom-intro-overlay.opened .blossom-panel-right {
  transform: translateX(115%);
  opacity: 0;
}

.blossom-intro-overlay.opened .blossom-panel-bottom {
  transform: translateY(115%);
  opacity: 0;
}

.blossom-intro-overlay.opened .blossom-panel-top {
  transform: translate(-50%, -180%);
  opacity: 0;
}

.wax-seal-btn {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.9s ease, opacity 0.8s ease;
}

.wax-seal-btn:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.blossom-intro-overlay.opened .wax-seal-btn {
  transform: translate(-50%, -50%) scale(1.22);
  opacity: 0;
  pointer-events: none;
}

.wax-seal-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(54, 12, 26, 0.25));
  animation: pulseSeal 2.5s infinite ease-in-out;
}

.wax-seal-caption {
  margin-top: -10px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--espresso-oud);
  background: rgba(255, 250, 248, 0.94);
  padding: 7px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-oud);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.06em;
}

@keyframes pulseSeal {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ==========================================================================
   SECTION 1: LUXURY ATMOSPHERIC VIDEO HERO (REC 2443433723)
   ========================================================================== */
.hero-video-section {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  min-height: 760px;
  overflow: hidden;
  background: var(--bg-sand);
  box-shadow: 0 10px 45px rgba(64, 49, 44, 0.08);
}

.hero-video-el {
  width: 100%;
  height: 760px;
  object-fit: cover;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(249, 230, 212, 0.12) 0%,
    rgba(249, 230, 212, 0.06) 45%,
    rgba(249, 230, 212, 0.88) 86%,
    #f9e6d4 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 40px 20px 34px;
}

.hero-names-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero-single-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 3.8rem);
  font-weight: 500;
  color: var(--burgundy-oud);
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(255, 250, 248, 0.9);
}

.hero-amp {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--olive-dark);
  line-height: 0.9;
}

.hero-date-line {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--espresso-oud);
}

.hero-time-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--olive-dark);
  margin-top: 4px;
}

.replay-curtain-btn {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--olive-dark);
  background: rgba(255, 250, 248, 0.85);
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-oud);
}

/* ==========================================================================
   SECTION 2: ORNATE MOROCCAN FRAME INVITATION CARD (REC 2443433743)
   ========================================================================== */
.moroccan-invite-section {
  padding: 50px 16px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.moroccan-frame-card {
  position: relative;
  background: var(--bg-alabaster);
  border: 2px solid var(--border-oud);
  border-radius: 32px;
  padding: 52px 28px 48px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.moroccan-frame-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0.35;
  pointer-events: none;
}

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

.arabic-monogram-img {
  width: 120px;
  margin: 0 auto 14px;
}

.line-flower-img {
  width: 150px;
  margin: 10px auto 18px;
}

.arabic-invite-block {
  font-family: var(--font-arabic);
  font-size: 1.38rem;
  line-height: 1.9;
  color: var(--burgundy-oud);
  direction: rtl;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border-oud);
}

.guest-greeting-title {
  font-family: var(--font-script);
  font-size: clamp(2.1rem, 5vw, 2.75rem);
  color: var(--olive-dark);
  margin-bottom: 10px;
}

.sw-invite-text {
  font-size: 1.08rem;
  color: var(--espresso-oud);
  max-width: 420px;
  margin: 0 auto 16px;
}

.venue-highlight-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--burgundy-oud);
  background: var(--bg-sand);
  padding: 8px 24px;
  border-radius: 99px;
  border: 1px solid var(--border-oud);
  margin-top: 8px;
}

/* ==========================================================================
   SECTION 3: COUNTDOWN TIMER (REC 2443433753)
   ========================================================================== */
.countdown-section {
  padding: 50px 20px;
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.botanical-divider {
  width: 210px;
  margin: 0 auto 18px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  font-weight: 500;
  color: var(--burgundy-oud);
  margin-bottom: 10px;
}

.countdown-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 26px 0;
}

.cd-box {
  background: var(--bg-alabaster);
  border: 1.5px solid var(--border-oud);
  border-radius: 16px;
  padding: 18px 8px;
  box-shadow: var(--shadow-soft);
}

.cd-num {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  font-weight: 600;
  color: var(--olive-dark);
}

.cd-lbl {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-tan);
  margin-top: 6px;
}

.btn-olive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--olive-primary);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(116, 123, 84, 0.32);
  transition: all 0.25s ease;
}

.btn-olive:hover {
  background: var(--olive-dark);
  transform: translateY(-2px);
}

.btn-olive-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-alabaster);
  color: var(--olive-dark);
  border: 1.5px solid var(--olive-primary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.btn-olive-outline:hover {
  background: var(--olive-primary);
  color: #fff;
}

/* ==========================================================================
   SECTION 4: EVENT TIMELINE (REC 2443433773)
   ========================================================================== */
.timeline-section {
  padding: 55px 20px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.flower-decor-top {
  width: 140px;
  margin: 0 auto 14px;
}

.oud-timeline-grid {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.oud-tl-card {
  background: var(--bg-alabaster);
  border: 1px solid var(--border-oud);
  border-radius: 18px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}

.oud-tl-time {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--olive-primary);
  padding: 8px 16px;
  border-radius: 12px;
  min-width: 88px;
}

.oud-tl-info {
  text-align: left;
  flex: 1;
}

.oud-tl-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--burgundy-oud);
}

.oud-tl-sub {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--espresso-oud);
  opacity: 0.8;
}

/* ==========================================================================
   SECTION 5: VENUE & GOOGLE MAPS (REC 2443433783, 3823, 3843)
   ========================================================================== */
.venue-section {
  padding: 55px 20px;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.venue-card-box {
  background: var(--bg-alabaster);
  border: 1.5px solid var(--border-oud);
  border-radius: 26px;
  padding: 36px 24px;
  box-shadow: var(--shadow-soft);
}

.venue-illust-img {
  width: 240px;
  margin: 14px auto 18px;
}

.map-frame-wrap {
  margin: 24px auto;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-card);
  height: 280px;
}

.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   SECTION 6: DRESS CODE & 5 OUD COLOR SWATCHES (REC 2443433793 & 3803)
   ========================================================================== */
.dresscode-section {
  padding: 55px 20px;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.dc-card {
  background: var(--bg-alabaster);
  border: 1.5px solid var(--border-oud);
  border-radius: 26px;
  padding: 38px 24px;
  box-shadow: var(--shadow-soft);
}

.dc-couple-img {
  width: 250px;
  margin: 18px auto 22px;
  border-radius: 16px;
}

.oud-swatches-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 20px 0 26px;
}

.oud-swatch {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 16px rgba(64, 49, 44, 0.16);
}

.dc-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}

.dc-col-box {
  background: var(--bg-sand);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border-oud);
}

.dc-col-box h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--burgundy-oud);
  margin-bottom: 6px;
}

/* ==========================================================================
   SECTION 7: GIFTS & RSVP FORM (REC 2443433813)
   ========================================================================== */
.rsvp-section {
  padding: 55px 20px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.gifts-mini-card {
  background: var(--bg-alabaster);
  border: 1.5px solid var(--border-oud);
  border-radius: 22px;
  padding: 28px 22px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-soft);
}

.copy-row-oud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-sand);
  border: 1px dashed var(--olive-primary);
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
}

.copy-oud-btn {
  background: #ffffff;
  border: 1px solid var(--border-oud);
  color: var(--olive-dark);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
}

.copy-oud-btn:hover {
  background: var(--olive-primary);
  color: #fff;
}

.rsvp-form-box {
  background: var(--bg-alabaster);
  border: 2px solid var(--border-oud);
  border-radius: 26px;
  padding: 36px 26px;
  box-shadow: var(--shadow-card);
  text-align: left;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--espresso-oud);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--gold-tan);
  background: #ffffff;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--espresso-oud);
}

.radio-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-oud {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-oud);
  cursor: pointer;
}

.qr-oud-pass {
  display: none;
  margin-top: 22px;
  background: var(--bg-sand);
  border: 2px solid var(--olive-primary);
  border-radius: 18px;
  padding: 18px;
}

.qr-oud-pass.active {
  display: block;
}

.qr-pass-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.qr-code-img {
  width: 104px;
  height: 104px;
  background: #fff;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid var(--border-oud);
}

/* ==========================================================================
   SECTION 8: CLOSING ILLUSTRATION & FOOTER VIDEO (REC 2443433853 & 3863)
   ========================================================================== */
.closing-section {
  padding: 50px 20px 80px;
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.chandelier-img {
  width: 170px;
  margin: 0 auto 14px;
}

.fine-flowers-img {
  width: 210px;
  margin: 16px auto;
}

.footer-video-card {
  margin-top: 28px;
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid var(--bg-alabaster);
  box-shadow: var(--shadow-card);
}

.footer-video-card video {
  width: 100%;
  display: block;
}

/* ==========================================================================
   FLOATING AUDIO BUTTON & GUEST LINK MODAL
   ========================================================================== */
.floating-audio-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--olive-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9400;
  box-shadow: 0 8px 24px rgba(116, 123, 84, 0.42);
  border: 2px solid #ffffff;
}

.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(54, 12, 26, 0.65);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.custom-modal-backdrop.open {
  display: flex;
}

.custom-modal-box {
  background: var(--bg-alabaster);
  border: 2px solid var(--border-oud);
  border-radius: 22px;
  max-width: 460px;
  width: 100%;
  padding: 30px 24px;
  position: relative;
  text-align: left;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-sand);
  font-size: 1.2rem;
}

@media (max-width: 640px) {
  .dc-two-cols {
    grid-template-columns: 1fr;
  }
  .countdown-row {
    gap: 8px;
  }
}
