/* ═══════════════════════════════════════════════════
   MAHROUS & ESRAA — WEDDING CSS
   styles.css
═══════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────── */
:root {
  --blush:      #fdf0f0;
  --blush-mid:  #f5dede;
  --blush-deep: #e8c4c4;
  --gold:       #b8860b;
  --gold-light: #d4a843;
  --gold-bright:#e8c84a;
  --gold-pale:  #f5e9c8;
  --gold-shine: #faf0d7;
  --green:      #4a6741;
  --green-light:#6b8f5e;
  --text-dark:  #2c1810;
  --text-mid:   #5c3d2e;
  --white:      #fffef9;
  --shadow-gold:rgba(184,134,11,0.25);
}

/* ── RESET & BASE ──────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cormorant Garamond', serif;
  background: var(--blush);
  color: var(--text-dark);
  overflow-x: hidden;
  cursor: none;
}

/* ── LOADER ────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.loader-ring {
  width: 80px; height: 80px;
  border: 2px solid transparent;
  border-top-color: var(--gold);
  border-right-color: var(--gold-light);
  border-radius: 50%;
  animation: spin 1.4s linear infinite;
  position: absolute;
}
.loader-ring-2 {
  width: 60px; height: 60px;
  border-top-color: transparent;
  border-bottom-color: var(--gold);
  border-left-color: var(--gold-light);
  animation-direction: reverse;
  animation-duration: 1s;
}
.loader-monogram {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  background: linear-gradient(135deg, #8B6914, #D4A843, #F0D060, #D4A843, #8B6914);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 90px;
}
.loader-text {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--gold-light);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── CUSTOM CURSOR ─────────────────────────────── */
#cursor {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform 0.1s ease, opacity 0.2s ease;
  mix-blend-mode: multiply;
}
#cursor-trail {
  width: 28px; height: 28px;
  border: 1px solid rgba(184,134,11,0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%,-50%);
  transition: left 0.15s ease, top 0.15s ease;
}
body:hover #cursor { opacity: 1; }

/* ── PETAL CANVAS ──────────────────────────────── */
#petalCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

/* ── FLORAL BACKGROUND ─────────────────────────── */
.floral-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.floral-layer {
  position: absolute;
  inset: 0;
  transition: transform 0.05s linear;
}

/* ── NAVBAR ────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  background: rgba(253,240,240,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(184,134,11,0.18);
  transition: all 0.4s ease;
}
nav.scrolled {
  padding: 12px 40px;
  background: rgba(253,240,240,0.96);
  box-shadow: 0 2px 32px rgba(184,134,11,0.12);
}
.nav-links {
  display: flex;
  gap: 44px;
  list-style: none;
  align-items: center;
}
.nav-link {
  font-family: 'Great Vibes', cursive;
  font-size: 1.35rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold-light);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav-link:hover { color: var(--gold-light); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-monogram {
  font-family: 'Great Vibes', cursive;
  font-size: 1.7rem;
  background: linear-gradient(135deg, #8B6914, #D4A843, #F0D060, #D4A843, #8B6914);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  margin: 0 36px;
  transition: filter 0.3s ease;
}
.nav-monogram:hover { filter: brightness(1.15); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: absolute;
  right: 20px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--gold);
  transition: all 0.3s ease;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: rgba(253,240,240,0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  gap: 20px;
  border-bottom: 1px solid rgba(184,134,11,0.15);
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease;
}
.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.mob-link {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
.mob-link:hover { color: var(--gold-light); }

/* ── HERO ──────────────────────────────────────── */
#home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 20px 80px;
  text-align: center;
  overflow: hidden;
  z-index: 2;
}
.hero-floral-left, .hero-floral-right {
  position: absolute;
  top: 0;
  width: 300px;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-floral-left  { left: -20px; }
.hero-floral-right { right: -20px; transform: scaleX(-1); }
.hero-content { position: relative; z-index: 2; max-width: 660px; }

/* Sparkle ring */
.sparkle-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 500px; height: 500px;
  pointer-events: none;
  z-index: 1;
}
.sparkle-ring span {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold-bright);
  animation: sparklePulse 2s ease-in-out infinite;
}

@keyframes sparklePulse {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* Bismillah */
.bismillah {
  font-family: 'Amiri', serif;
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 26px;
  letter-spacing: 0.1em;
  direction: rtl;
}
.invitation-text {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-mid);
  letter-spacing: 0.06em;
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 2;
}

/* Gold divider */
.gold-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px auto;
  width: fit-content;
}
.gd-line {
  height: 1px;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--gold-light), transparent);
}
.gd-diamond {
  width: 7px; height: 7px;
  background: var(--gold-light);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Names */
.names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3.5rem, 9vw, 7rem);
  background: linear-gradient(135deg, #8B6914 0%, #D4A843 30%, #F0D060 50%, #D4A843 70%, #8B6914 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(184,134,11,0.3));
  line-height: 1.15;
  animation: goldFlow 4s ease infinite;
}
.name-amp {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-style: italic;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  filter: none;
  margin: -6px 0;
}
@keyframes goldFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Countdown */
.countdown-wrap { margin: 30px 0 16px; }
.countdown {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px;
}
.count-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}
.count-number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 3.6rem;
  line-height: 1;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 60%, #6b4a00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 4px rgba(184,134,11,0.35));
  min-width: 72px;
  text-align: center;
  position: relative;
}
.count-label {
  font-family: 'IM Fell English', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-top: 4px;
}
.count-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: var(--gold-light);
  line-height: 1.1;
  opacity: 0.5;
  align-self: flex-start;
  margin-top: 4px;
}
.count-number.flip-anim {
  animation: flipNum 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes flipNum {
  0%   { transform: scale(1) translateY(0); opacity: 1; }
  40%  { transform: scale(1.15) translateY(-6px); opacity: 0.7; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Event details */
.event-details {
  font-family: 'Amiri', serif;
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 2.4;
  direction: rtl;
}
.detail-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 2px 0;
}
.icon { font-size: 1.1rem; color: var(--gold); }
.green-icon { color: var(--green); }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: fadeUp 1s ease 3s both;
}
.scroll-hint span {
  font-family: 'IM Fell English', serif;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.scroll-arrow {
  width: 18px; height: 18px;
  border-right: 1.5px solid var(--gold-light);
  border-bottom: 1.5px solid var(--gold-light);
  transform: rotate(45deg);
  animation: bounce 1.6s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(7px); }
}

/* ── GOLD DIVIDERS ─────────────────────────────── */
.gold-hr {
  position: relative;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-light), var(--gold), var(--gold-light), transparent);
  border: none;
  margin: 0;
  z-index: 2;
}
.gold-hr-ornament {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  font-size: 1.3rem;
  color: var(--gold-light);
  background: var(--blush);
  padding: 0 14px;
  line-height: 1;
}

/* ── SECTIONS BASE ─────────────────────────────── */
section {
  position: relative;
  z-index: 2;
  padding: 90px 40px;
}
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-label {
  display: block;
  font-family: 'IM Fell English', serif;
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.section-title {
  display: block;
  font-family: 'Great Vibes', cursive;
  font-size: 3.2rem;
  color: var(--gold);
}
.section-title-ar {
  display: block;
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
  color: var(--green);
  direction: rtl;
  margin-top: 4px;
}

/* ── DETAILS ───────────────────────────────────── */
#details { background: linear-gradient(180deg, var(--blush) 0%, var(--gold-shine) 50%, var(--blush) 100%); }
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px;
  max-width: 940px;
  margin: 0 auto;
}
.detail-card {
  text-align: center;
  padding: 38px 22px;
  background: rgba(255,254,249,0.75);
  border: 1px solid rgba(184,134,11,0.2);
  position: relative;
  transition: all 0.4s cubic-bezier(0.23,1,0.32,1);
  overflow: hidden;
  transform-style: preserve-3d;
}
.detail-card::before, .detail-card::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border-color: var(--gold-light);
  border-style: solid;
  transition: width 0.4s ease, height 0.4s ease;
}
.detail-card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.detail-card::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.detail-card:hover::before,
.detail-card:hover::after { width: 40px; height: 40px; }
.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(212,168,67,0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.detail-card:hover .card-glow { opacity: 1; }
.detail-card:hover {
  box-shadow: 0 12px 48px var(--shadow-gold), 0 0 0 1px rgba(212,168,67,0.15);
  transform: translateY(-6px) scale(1.01);
}
.detail-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 14px;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.detail-card:hover .detail-icon { transform: scale(1.2) rotate(-5deg); }
.detail-card h3 {
  font-family: 'Great Vibes', cursive;
  font-size: 1.65rem;
  color: var(--gold);
  margin-bottom: 10px;
}
.detail-card p {
  font-family: 'Amiri', serif;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.9;
  direction: rtl;
}
.green-note { font-size: 0.85rem; color: var(--green); }
.gold-note  { font-size: 0.85rem; color: var(--gold); }

/* ── RSVP ──────────────────────────────────────── */
#rsvp { background: var(--blush); }
.rsvp-inner {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255,254,249,0.92);
  border: 1px solid rgba(184,134,11,0.3);
  padding: 52px 48px;
  position: relative;
  overflow: hidden;
}
.rsvp-shimmer {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 180deg at 50% 50%,
    transparent 0deg, rgba(212,168,67,0.04) 60deg, transparent 120deg,
    rgba(212,168,67,0.04) 180deg, transparent 240deg, rgba(212,168,67,0.04) 300deg, transparent 360deg
  );
  animation: shimmerRotate 12s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes shimmerRotate { to { transform: rotate(360deg); } }
.corner-tl, .corner-tr, .corner-bl, .corner-br {
  position: absolute;
  width: 40px; height: 40px;
  border-color: var(--gold-light);
  border-style: solid;
  transition: all 0.4s ease;
}
.corner-tl { top: -1px; left: -1px;   border-width: 2px 0 0 2px; }
.corner-tr { top: -1px; right: -1px;  border-width: 2px 2px 0 0; }
.corner-bl { bottom: -1px; left: -1px;  border-width: 0 0 2px 2px; }
.corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.rsvp-inner:hover .corner-tl,
.rsvp-inner:hover .corner-tr,
.rsvp-inner:hover .corner-bl,
.rsvp-inner:hover .corner-br { width: 60px; height: 60px; }
.rsvp-title-ar {
  font-family: 'Amiri', serif;
  font-size: 1.9rem;
  color: var(--green);
  text-align: center;
  direction: rtl;
  margin-bottom: 6px;
  position: relative; z-index: 1;
}
.rsvp-subtitle {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-mid);
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: 0.04em;
  position: relative; z-index: 1;
}
.form-group {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.form-group label {
  display: block;
  font-family: 'IM Fell English', serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}
.form-group:focus-within label { color: var(--green); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.08rem;
  color: var(--text-dark);
  outline: none;
}
.form-group textarea { resize: none; height: 78px; }
.form-group select { cursor: pointer; }
.form-line {
  height: 1px;
  background: rgba(184,134,11,0.3);
  transform-origin: left;
  transition: background 0.4s ease, transform 0.4s ease;
}
.form-group:focus-within .form-line {
  background: var(--gold);
  animation: lineExpand 0.4s ease forwards;
}
@keyframes lineExpand { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.btn-submit {
  width: 100%;
  margin-top: 16px;
  padding: 17px;
  background: linear-gradient(135deg, #8B6914, #D4A843, #F0D060, #D4A843, #8B6914);
  background-size: 300% 300%;
  animation: goldShimmer 3.5s ease infinite;
  border: none;
  color: #2c1810;
  font-family: 'Great Vibes', cursive;
  font-size: 1.65rem;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn-submit:hover {
  box-shadow: 0 0 50px rgba(212,168,67,0.65), 0 0 100px rgba(212,168,67,0.2);
  transform: translateY(-3px);
}
.btn-submit:disabled,
.btn-submit.is-busy {
  opacity: 0.75;
  cursor: wait;
  transform: none;
  box-shadow: none;
}
.btn-ripple {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.btn-submit:hover .btn-ripple { opacity: 1; }
@keyframes goldShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.whatsapp-note {
  text-align: center;
  margin-top: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: var(--green);
  opacity: 0.8;
  position: relative; z-index: 1;
}

/* RSVP Success */
.rsvp-success {
  display: none;
  text-align: center;
  padding: 28px 16px;
  animation: fadeUp 0.7s ease;
  position: relative; z-index: 1;
}
.success-bloom {
  font-size: 3.5rem;
  animation: popBloom 0.8s cubic-bezier(0.34,1.56,0.64,1);
  display: block;
  margin-bottom: 14px;
}
@keyframes popBloom {
  0%   { transform: scale(0) rotate(-30deg); }
  60%  { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}
.success-title {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 10px;
}
.success-msg {
  font-family: 'Amiri', serif;
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.9;
  direction: rtl;
  margin-bottom: 14px;
}
.success-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-light), transparent);
  margin: 16px auto;
  width: 60%;
}
.success-wa {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  color: var(--green);
  font-style: italic;
}
.success-wa[data-state='error'] {
  color: #b64b4b;
}
.success-wa[data-state='success'] {
  color: var(--green);
}

/* Booking counter */
.booking-counter {
  max-width: 380px;
  margin: 32px auto 0;
  text-align: center;
}
.bc-inner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border: 1px solid rgba(184,134,11,0.22);
  background: rgba(255,254,249,0.75);
  animation: pulse 2.5s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,134,11,0); }
  50%       { box-shadow: 0 0 0 8px rgba(184,134,11,0.06); }
}
.bc-icon { font-size: 1.5rem; }
.bc-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  color: var(--gold);
  font-weight: 300;
  min-width: 2ch;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.bc-label {
  font-family: 'IM Fell English', serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-mid);
  text-align: left;
  line-height: 1.5;
}

/* ── GALLERY ───────────────────────────────────── */
#gallery { background: linear-gradient(180deg, var(--blush) 0%, var(--blush-mid) 100%); }
.gallery-carousel { max-width: 820px; margin: 0 auto; }
.gallery-overflow {
  overflow: hidden;
  border: 1px solid rgba(184,134,11,0.22);
  position: relative;
}
.gallery-overflow::before, .gallery-overflow::after {
  content: '';
  position: absolute;
  width: 28px; height: 28px;
  border-color: var(--gold-light);
  border-style: solid;
  z-index: 2;
  pointer-events: none;
}
.gallery-overflow::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.gallery-overflow::after  { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.gallery-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.77,0,0.175,1);
}
.gallery-slide { min-width: 100%; }
.gallery-frame {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.gallery-frame::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(184,134,11,0.18);
  z-index: 2;
  pointer-events: none;
}
.gallery-art {
  width: 100%; height: 100%;
  transition: transform 0.5s ease;
}
.gallery-slide:hover .gallery-art { transform: scale(1.03); }
.gallery-caption {
  text-align: center;
  padding: 22px 20px;
  background: rgba(255,254,249,0.9);
  border-top: 1px solid rgba(184,134,11,0.1);
}
.gallery-caption h3 {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 6px;
}
.gallery-caption p {
  font-family: 'Amiri', serif;
  font-size: 0.9rem;
  color: var(--text-mid);
  direction: rtl;
}
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 26px;
}
.carousel-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--gold-light);
  background: transparent;
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(45deg);
}
.carousel-btn:hover { background: var(--gold-light); color: var(--white); box-shadow: 0 4px 20px var(--shadow-gold); }
.carousel-btn span { transform: rotate(-45deg); display: block; }
.carousel-dots { display: flex; gap: 8px; }
.dot {
  width: 8px; height: 8px;
  background: var(--blush-deep);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.dot.active { background: var(--gold); transform: scale(1.4); }

/* ── GUESTBOOK ─────────────────────────────────── */
#guestbook { background: var(--gold-shine); }
.guestbook-messages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  max-width: 920px;
  margin: 0 auto 44px;
}
.message-card {
  background: var(--white);
  border: 1px solid rgba(184,134,11,0.15);
  padding: 28px 24px 20px;
  position: relative;
  transition: all 0.4s ease;
}
.message-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--shadow-gold);
}
.msg-quote {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--gold-pale);
  position: absolute;
  top: -14px; right: 14px;
  line-height: 1;
  user-select: none;
}
.message-card p {
  font-family: 'Amiri', serif;
  font-size: 0.97rem;
  line-height: 1.9;
  color: var(--text-mid);
  direction: rtl;
  margin-bottom: 14px;
}
.msg-author {
  font-family: 'Great Vibes', cursive;
  font-size: 1.2rem;
  color: var(--gold);
  display: block;
  text-align: left;
}
.guestbook-input-area {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.guestbook-input-area textarea {
  width: 100%;
  background: rgba(255,254,249,0.85);
  border: 1px solid rgba(184,134,11,0.25);
  padding: 18px;
  font-family: 'Amiri', serif;
  font-size: 1rem;
  color: var(--text-dark);
  resize: none;
  height: 100px;
  outline: none;
  direction: rtl;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  display: block;
  margin-bottom: 12px;
}
.guestbook-input-area textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(184,134,11,0.1);
}
.wish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.wish-counter {
  font-family: 'IM Fell English', serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-mid);
  opacity: 0.6;
}
.btn-wish {
  display: inline-block;
  padding: 11px 36px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: 'Great Vibes', cursive;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.35s ease;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
}
.btn-wish::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: -1;
}
.btn-wish:hover { color: var(--white); box-shadow: 0 4px 24px var(--shadow-gold); }
.btn-wish:hover::before { transform: scaleX(1); }
.btn-wish:disabled,
.btn-wish.is-busy {
  opacity: 0.75;
  cursor: wait;
  box-shadow: none;
}
.wish-status {
  display: block;
  margin-top: 14px;
  min-height: 1.4em;
  font-family: 'Amiri', serif;
  font-size: 0.98rem;
  color: var(--green);
  direction: rtl;
}
.wish-status[data-state='error'] {
  color: #b64b4b;
}

/* ── LOCATION ──────────────────────────────────── */
#location {
  background:
    radial-gradient(circle at top, rgba(212,168,67,0.12), transparent 38%),
    linear-gradient(180deg, rgba(255,254,249,0.35), rgba(245,222,222,0.45)),
    var(--blush);
}
.location-stage {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid rgba(184,134,11,0.18);
  background: linear-gradient(145deg, rgba(255,254,249,0.95), rgba(253,240,240,0.92));
  box-shadow: 0 24px 70px rgba(92,61,46,0.08);
  position: relative;
  overflow: hidden;
}
.location-stage::before,
.location-stage::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.location-stage::before {
  width: 240px;
  height: 240px;
  top: -120px;
  left: -110px;
  background: radial-gradient(circle, rgba(212,168,67,0.18), transparent 68%);
}
.location-stage::after {
  width: 280px;
  height: 280px;
  right: -140px;
  bottom: -160px;
  background: radial-gradient(circle, rgba(74,103,65,0.12), transparent 68%);
}
.location-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.location-copy {
  direction: rtl;
  text-align: right;
}
.location-kicker {
  display: inline-block;
  font-family: 'IM Fell English', serif;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.location-name {
  margin: 0 0 12px;
  font-family: 'Amiri', serif;
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--text-dark);
  line-height: 1.2;
}
.location-description {
  margin: 0;
  font-family: 'Amiri', serif;
  font-size: 1.08rem;
  line-height: 1.95;
  color: var(--text-mid);
}
.location-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.location-badges span {
  padding: 8px 14px;
  border: 1px solid rgba(184,134,11,0.18);
  background: rgba(255,254,249,0.78);
  color: var(--text-mid);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.96rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.location-card {
  padding: 28px 24px;
  background: linear-gradient(155deg, rgba(92,61,46,0.94), rgba(74,103,65,0.9));
  color: var(--white);
  border: 1px solid rgba(212,168,67,0.25);
  box-shadow: 0 18px 44px rgba(44,24,16,0.16);
  position: relative;
  overflow: hidden;
  direction: rtl;
  text-align: right;
}
.location-card::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(245,233,200,0.18);
  pointer-events: none;
}
.location-card-label {
  display: inline-block;
  margin-bottom: 16px;
  color: rgba(245,233,200,0.86);
  font-family: 'IM Fell English', serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.location-card strong {
  display: block;
  margin-bottom: 10px;
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
  line-height: 1.35;
}
.location-card p {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,254,249,0.84);
}
.location-card-address,
.map-address {
  display: block;
  direction: ltr;
  text-align: left;
}
.map-container {
  max-width: none;
  margin: 0;
  border: 1px solid rgba(184,134,11,0.25);
  position: relative;
  overflow: hidden;
  background: rgba(255,254,249,0.9);
  box-shadow: 0 18px 50px rgba(92,61,46,0.07);
  z-index: 1;
}
.map-corner {
  position: absolute;
  width: 28px; height: 28px;
  border-color: var(--gold-light);
  border-style: solid;
  z-index: 2;
  pointer-events: none;
}
.map-corner-tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.map-corner-tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.map-corner-bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.map-corner-br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.map-container iframe {
  width: 100%;
  height: 410px;
  border: none;
  display: block;
  filter: saturate(0.86) sepia(0.1) contrast(1.02);
}
.map-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255,254,249,0.95);
  border-top: 1px solid rgba(184,134,11,0.15);
  flex-wrap: wrap;
}
.map-pin-icon { font-size: 1.6rem; }
.map-info-text {
  flex: 1;
  font-family: 'Amiri', serif;
  font-size: 0.95rem;
  color: var(--text-mid);
  direction: rtl;
  line-height: 1.7;
}
.map-info-label {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--gold);
  font-family: 'IM Fell English', serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.map-info-text strong { color: var(--text-dark); }
.map-btn {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'IM Fell English', serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.map-btn:hover { background: var(--gold); color: var(--white); }
.map-btn-secondary {
  background: rgba(212,168,67,0.08);
}

/* ── FOOTER ────────────────────────────────────── */
footer {
  background: linear-gradient(180deg, var(--blush-mid), var(--blush-deep));
  padding: 60px 40px 40px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.footer-floral { margin-bottom: 8px; }
.footer-monogram {
  font-family: 'Great Vibes', cursive;
  font-size: 5rem;
  background: linear-gradient(135deg, #8B6914 0%, #D4A843 50%, #8B6914 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}
.footer-names {
  font-family: 'Amiri', serif;
  font-size: 1.2rem;
  color: var(--text-mid);
  margin-bottom: 6px;
  direction: rtl;
}
.footer-date {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-mid);
  opacity: 0.75;
  margin-bottom: 22px;
}
.footer-dec-line {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin: 18px 0;
}
.footer-dec-line span { color: var(--gold-light); }
.footer-script {
  font-family: 'Great Vibes', cursive;
  font-size: 1.2rem;
  color: var(--gold);
}
.fline {
  height: 1px;
  width: 120px;
  background: linear-gradient(to right, transparent, var(--gold-light), transparent);
}
.footer-links {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.footer-links a {
  font-family: 'IM Fell English', serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--green); }
.footer-copy {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  color: var(--text-mid);
  opacity: 0.55;
}

/* ── SCROLL REVEAL ─────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HERO REVEAL ───────────────────────────────── */
.bismillah       { animation: fadeUp 1.1s ease 0.4s both; }
.invitation-text { animation: fadeUp 1.1s ease 0.7s both; }
.gold-divider    { animation: fadeUp 1s ease 0.9s both; }
.names           { animation: fadeUp 1.2s ease 1.1s both; }
.countdown-wrap  { animation: fadeUp 1.1s ease 1.8s both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SHAKE ─────────────────────────────────────── */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%  { transform: translateX(-9px); }
  40%  { transform: translateX(9px); }
  60%  { transform: translateX(-6px); }
  80%  { transform: translateX(4px); }
}

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-monogram { margin: 0 auto; }
  nav { justify-content: center; }
}
@media (max-width: 768px) {
  section { padding: 65px 20px; }
  .rsvp-inner { padding: 36px 22px; }
  .hero-floral-left, .hero-floral-right { width: 150px; opacity: 0.5; }
  .bismillah { font-size: 1.5rem; }
  .names { font-size: clamp(2.8rem,8vw,5rem); }
  .location-stage { padding: 24px 18px; }
  .location-showcase { grid-template-columns: 1fr; }
  .location-card { text-align: center; }
  .location-card-address,
  .map-address { text-align: center; }
}
@media (max-width: 520px) {
  .count-number { font-size: 2.4rem; }
  .count-unit { min-width: 54px; }
  .location-copy { text-align: center; }
  .location-badges { justify-content: center; }
  .location-actions { flex-direction: column; }
  .map-btn { width: 100%; text-align: center; }
  .map-info { flex-direction: column; text-align: center; }
  .map-info-text { text-align: center; }
}
