/* ==========================================================
   Muslim Wedding Template 1 – Ottoman / Turkish style
   Deep emerald & gold, parchment "Quran scroll" info panels.
   Every selector is prefixed .mw- so nothing leaks into the editor.
   Each section carries its own background so the editor can recolour it.
   ========================================================== */
.mw-sec, .mw-top {
  --green-d: #04281A;
  --green: #0B5D3B;
  --green-m: #0E7048;
  --emerald: #0A6B45;
  --gold: #C9A24B;
  --gold-l: #E6C77A;
  --gold-xl: #F6E3A0;
  --gold-d: #8A6A22;
  --ivory: #F6EEDA;
  --parch: #F3E4BC;
  --ink: #14331F;
  --font-display: "Marcellus", "Alegreya", Georgia, serif;
  --font-body: "Alegreya", Georgia, serif;
  --font-ar: "Amiri", "Scheherazade New", "Traditional Arabic", serif;
}
.mw-sec, .mw-sec *, .mw-sec *::before, .mw-sec *::after { box-sizing: border-box; }

/* ---------- Section shells ---------- */
.mw-sec { position: relative; overflow: hidden; padding: 100px 24px 90px; font-family: var(--font-body); font-size: 19px; line-height: 1.75; color: var(--ink); background-color: var(--ivory); }
.mw-sec.mw-green { background: radial-gradient(circle at 50% 0%, #0E7048 0%, transparent 62%), linear-gradient(180deg, #074A2E, #04281A); color: #F4EAC8; }
.mw-sec.mw-emerald { background: radial-gradient(circle at 50% 30%, #12905D 0%, #0A6B45 38%, #04321F 100%); color: #F4EAC8; }
.mw-sec.mw-ivory { background: radial-gradient(circle at 50% 0%, #FFFBEE 0%, transparent 65%), linear-gradient(180deg, #F6EEDA, #EDE0BC); }
.mw-sec p, .mw-sec h1, .mw-sec h2, .mw-sec h3 { margin: 0; }
.mw-sec img { max-width: 100%; }
.mw-sec a { color: var(--green); }
.mw-inner { position: relative; z-index: 4; max-width: 1060px; margin: 0 auto; }
.mw-center { text-align: center; }
.mw-tiles { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .12; background: url("../images/pattern.svg") repeat 0 0 / 120px 120px; }
.mw-ar { font-family: var(--font-ar) !important; direction: rtl; font-weight: 400; }

/* ---------- Type ---------- */
.mw-eyebrow { font-size: .82rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-d); margin-bottom: 8px !important; }
.mw-green .mw-eyebrow, .mw-emerald .mw-eyebrow, .mw-hero .mw-eyebrow, .mw-footer .mw-eyebrow { color: var(--gold-l); }
.mw-scroll .mw-eyebrow { color: var(--gold-d); }
.mw-title { font-family: var(--font-display); font-weight: 400; color: var(--green); font-size: clamp(1.9rem, 4.6vw, 2.9rem); line-height: 1.25; letter-spacing: .04em; }
.mw-divider { display: block; width: min(300px, 64%); margin: 8px auto 18px; }
.mw-lead { font-style: italic; font-size: clamp(1.1rem, 2.3vw, 1.3rem); max-width: 720px; margin: 0 auto 6px !important; }

/* ---------- Buttons ---------- */
.mw-btn { display: inline-block; cursor: pointer; font: 700 .9rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding: 17px 38px; color: #06311F !important; background: linear-gradient(180deg, #F7E3A0, #D4AE5A 52%, #A47C2B); border: 1px solid #7A5A1A; border-radius: 40px; box-shadow: 0 6px 16px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .6); transition: transform .2s, box-shadow .2s; }
.mw-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .6); }
.mw-btn.mw-btn-light { background: transparent; color: var(--gold-xl) !important; border-color: var(--gold-l); box-shadow: none; margin-top: 30px; }
.mw-btn.mw-btn-light:hover { background: var(--gold-l); color: #06311F !important; }

/* ---------- Hero: crescent moon, divine rays, couple at the sides ---------- */
.mw-hero { min-height: max(780px, 62vw); padding: 24% 24px 20%; background: radial-gradient(circle at 50% 16%, #17A06A 0%, #0B6B45 30%, #05301F 70%, #031C12 100%); color: #F4EAC8; }
.mw-sky { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 4 / 3; z-index: 1; pointer-events: none; }
.mw-rays { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none !important; animation: mw-shimmer 6s ease-in-out infinite; mix-blend-mode: screen; }
.mw-moon { position: absolute; left: 50%; top: 14.44%; width: 16%; transform: translate(-50%, -50%); animation: mw-glow 5s ease-in-out infinite; }
.mw-lantern { position: absolute; top: 0; width: 6.2%; transform-origin: 50% 0; animation: mw-swing 6s ease-in-out infinite; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }
.mw-lan-l { left: 14%; } .mw-lan-r { right: 14%; animation-delay: -3s; }
.mw-skyline { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; z-index: 2; opacity: .96; }
.mw-hc { position: absolute; bottom: 1.2%; z-index: 3; }
.mw-hc img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .5)) drop-shadow(0 0 28px rgba(246, 227, 160, .35)); }
.mw-hc-l { left: 3%; width: 21%; } .mw-hc-r { right: 2%; width: 24%; }
.mw-hero-text { max-width: 44%; }
.mw-basmala { font-size: clamp(1.4rem, 3.2vw, 2.7rem); color: var(--gold-xl); line-height: 1.7; text-shadow: 0 0 22px rgba(246, 227, 160, .45); }
.mw-kicker { font-family: var(--font-display); font-size: clamp(1rem, 1.8vw, 1.35rem); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-l); margin: 14px 0 0 !important; }
.mw-hero-names { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1.15; letter-spacing: .06em; text-transform: uppercase; color: #FFF3C8; text-shadow: 0 2px 0 #7A5A1A, 0 0 26px rgba(246, 227, 160, .5); }
.mw-hero-names i { font-style: italic; text-transform: none; color: var(--gold-l); font-size: .7em; padding: 0 .1em; }
.mw-hero-date { font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.55rem); color: var(--gold-xl); margin-top: 6px !important; }
.mw-hero-place { font-size: .88rem; letter-spacing: .22em; text-transform: uppercase; color: #CFE3D2; margin: 6px 0 26px !important; }

/* ---------- Parchment scroll (ancient Quran scroll look) ---------- */
.mw-scroll { position: relative; max-width: 900px; margin: 0 auto; z-index: 4; filter: drop-shadow(0 24px 26px rgba(0, 0, 0, .5)); }
.mw-roller { position: relative; z-index: 3; height: 36px; margin: 0 -24px; border-radius: 18px; background: linear-gradient(180deg, #3A2208 0%, #B58A32 16%, #F8E6A8 40%, #CFA64C 60%, #6B4A12 86%, #2A1704); box-shadow: 0 5px 10px rgba(0, 0, 0, .45); }
.mw-roller i { position: absolute; top: -6px; width: 28px; height: 48px; border-radius: 14px; background: linear-gradient(90deg, #5E3F0E, #F8E6A8 46%, #7A5A1A); box-shadow: 0 3px 6px rgba(0, 0, 0, .45); }
.mw-roller i:first-child { left: -10px; } .mw-roller i:last-child { right: -10px; }
.mw-parchment {
  position: relative; margin: -6px 0; padding: 66px 70px 60px; color: var(--ink);
  background:
    linear-gradient(90deg, rgba(100, 62, 12, .5), rgba(100, 62, 12, 0) 7%, rgba(100, 62, 12, 0) 93%, rgba(100, 62, 12, .5)),
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .45), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(150, 100, 30, .18), transparent 50%),
    repeating-radial-gradient(circle at 20% 30%, rgba(120, 80, 20, .045) 0 2px, transparent 2px 8px),
    linear-gradient(180deg, #F7E9C4, #EAD7A2 55%, #E0C98E);
}
.mw-parchment::before { content: ""; position: absolute; inset: 18px; border: 2px solid #B8903A; box-shadow: inset 0 0 0 5px #F4E4B8, inset 0 0 0 6px rgba(11, 93, 59, .6); pointer-events: none; }
.mw-corner { position: absolute; width: 66px; height: 66px; z-index: 1; }
.mw-c1 { top: 18px; left: 18px; } .mw-c2 { top: 18px; right: 18px; transform: scaleX(-1); }
.mw-c3 { bottom: 18px; left: 18px; transform: scaleY(-1); } .mw-c4 { bottom: 18px; right: 18px; transform: scale(-1, -1); }
.mw-scroll-in { position: relative; z-index: 2; }
.mw-scroll .mw-title { color: var(--green); font-size: clamp(1.7rem, 4vw, 2.5rem); }
.mw-tulip { position: absolute; width: 70px; opacity: .85; z-index: 1; bottom: 40px; }
.mw-tl { left: 6%; } .mw-tr { right: 6%; transform: scaleX(-1); }

/* invitation scroll content */
.mw-salam { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--green); line-height: 1.7; }
.mw-parents { font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 1.8rem); color: var(--green); line-height: 1.5; }
.mw-and { font-family: var(--font-ar); font-style: italic; font-size: 1.5rem; color: var(--gold-d); line-height: 1.4; }
.mw-ayah { font-size: clamp(1.3rem, 2.8vw, 1.85rem); line-height: 2.2; color: #1D3D2A; margin-top: 4px !important; }
.mw-trans { font-style: italic; margin-top: 8px !important; color: #2c4a35; }
.mw-trans span { display: block; font-style: normal; font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-d); margin-top: 6px; }

/* celebrations scroll entries */
.mw-entry { position: relative; text-align: center; padding: 46px 6px 24px; border-top: 1px dashed rgba(138, 106, 34, .7); }
.mw-entry::before { content: "۝"; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); font-family: var(--font-ar); font-size: 1.7rem; line-height: 1; color: var(--gold-d); }
.mw-entry-day { font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-d); font-weight: 500; }
.mw-entry-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--green); line-height: 1.35; margin: 2px 0 !important; }
.mw-entry-time { font-style: italic; font-size: 1.15rem; color: #6E4B14; }
.mw-entry-text { max-width: 560px; margin: 4px auto 0 !important; }

/* guest information scroll items */
.mw-item { position: relative; padding: 18px 8px 16px 54px; border-top: 1px dashed rgba(138, 106, 34, .6); }
.mw-item::before { content: "۝"; position: absolute; left: 6px; top: 14px; font-family: var(--font-ar); font-size: 2rem; line-height: 1; color: var(--gold-d); }
.mw-item-head { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; color: var(--green); }
.mw-item-text { color: #2c4a35; }

/* ---------- Couple ---------- */
.mw-couple-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; margin-top: 50px; }
.mw-octa { width: min(270px, 80%); aspect-ratio: 1; margin: 0 auto 24px; padding: 8px; background: linear-gradient(135deg, #FFF0B8, #C9A24B 45%, #8A6A22 70%, #F3D98C); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.mw-octa-in { width: 100%; height: 100%; background: radial-gradient(circle at 50% 22%, #17A06A, #0B5D3B 60%, #04281A); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.mw-octa-in img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 4%; }
.mw-name { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3rem); color: var(--green); letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.mw-fullname { font-style: italic; margin-bottom: 8px !important; }
.mw-childof { font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-d); }
.mw-pnames { font-weight: 700; color: var(--green); }
.mw-medal { width: 150px; margin: 0 auto 6px; display: block; animation: mw-spin 60s linear infinite; filter: drop-shadow(0 8px 12px rgba(4, 40, 26, .35)); }
.mw-mashallah { font-size: 1.7rem; color: var(--gold-d); line-height: 1.5; }

/* ---------- Countdown ---------- */
.mw-ar-small { font-size: 1.8rem; color: var(--gold-xl); line-height: 1.5; }
.mw-cd-date { font-style: italic; font-size: 1.3rem; color: var(--gold-xl); margin-bottom: 8px !important; }
.mw-countdown { display: flex; justify-content: center; gap: clamp(10px, 2.4vw, 24px); flex-wrap: wrap; margin-top: 24px; }
.mw-countdown > div { position: relative; width: clamp(96px, 18vw, 140px); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #FFF0B8, #C9A24B 45%, #8A6A22 70%, #F3D98C); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.mw-countdown > div::before { content: ""; position: absolute; inset: 6px; background: radial-gradient(circle at 50% 25%, #12905D, #064A2E 70%, #031F13); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.mw-countdown b { position: relative; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 4.6vw, 2.7rem); line-height: 1.1; color: #FFF3C8; }
.mw-countdown span { position: relative; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-l); }
.mw-cl-l { left: 7%; width: 88px; } .mw-cl-r { right: 7%; width: 88px; animation-delay: -3s; }

/* ---------- Venues: pointed arch cards ---------- */
.mw-venue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 50px; }
.mw-arch { padding: 5px; background: linear-gradient(160deg, #FFF0B8, #C9A24B 40%, #8A6A22 70%, #F3D98C); clip-path: polygon(50% 0, 62% 3%, 76% 9%, 89% 19%, 97% 31%, 100% 44%, 100% 100%, 0 100%, 0 44%, 3% 31%, 11% 19%, 24% 9%, 38% 3%); filter: drop-shadow(0 18px 22px rgba(4, 40, 26, .3)); }
.mw-arch-in { padding: 96px 30px 44px; background: radial-gradient(circle at 50% 0%, #FFFBEA, transparent 60%), linear-gradient(180deg, #F8EDCB, #EBD9A5); clip-path: polygon(50% 0, 62% 3%, 76% 9%, 89% 19%, 97% 31%, 100% 44%, 100% 100%, 0 100%, 0 44%, 3% 31%, 11% 19%, 24% 9%, 38% 3%); position: relative; }
.mw-arch-medal { width: 70px; margin: -36px auto 10px; display: block; }
.mw-venue-name { font-family: var(--font-display); font-weight: 400; font-size: 1.65rem; color: var(--green); line-height: 1.35; }
.mw-address { line-height: 1.9; margin-bottom: 10px !important; }
.mw-venue-time { font-style: italic; font-size: 1.2rem; color: #6E4B14; margin-bottom: 22px !important; }

/* ---------- RSVP ---------- */
.mw-rsvp { max-width: 780px; margin: 34px auto 0; padding: 42px 40px 36px; background: #FFFBEE; border: 2px solid var(--gold); box-shadow: 0 0 0 7px #FFFBEE, 0 0 0 9px var(--gold-l), 0 0 0 10px var(--green), 0 22px 36px rgba(4, 40, 26, .2); }
.mw-rsvp .mt_popup_form_container { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.mw-rsvp .mt_form_input:last-child { grid-column: 1 / -1; }
.mw-rsvp input, .mw-rsvp textarea { display: block; width: 100%; padding: 13px 4px; font: 400 1.05rem var(--font-body); color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--gold); border-radius: 0; }
.mw-rsvp input:focus, .mw-rsvp textarea:focus { outline: 0; border-bottom-color: var(--green); }
.mw-rsvp .mtdefaultformbtn { width: 100%; margin-top: 26px; }
.mw-form-note { text-align: center; font-weight: 700; color: var(--green); min-height: 1.5em; margin-top: 12px !important; }
.mw-rsvp-contact { margin-top: 22px !important; font-style: italic; }

/* ---------- Footer ---------- */
.mw-footer { padding: 90px 24px 25%; background: radial-gradient(circle at 50% 0%, #0E7048 0%, transparent 60%), linear-gradient(180deg, #06452B, #031C12); color: #F4EAC8; }
.mw-foot-skyline { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; z-index: 1; opacity: .95; }
.mw-foot-moon { width: 96px; margin: 0 auto 6px; display: block; animation: mw-glow 5s ease-in-out infinite; }
.mw-jazak { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--gold-xl); line-height: 1.6; text-shadow: 0 0 20px rgba(246, 227, 160, .4); }
.mw-thanks { font-size: .82rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-l); }
.mw-big { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3.8rem); letter-spacing: .08em; text-transform: uppercase; color: #FFF3C8; line-height: 1.3; margin: 8px 0 !important; text-shadow: 0 2px 0 #7A5A1A; }
.mw-barak { font-size: clamp(1.1rem, 2.4vw, 1.5rem); line-height: 2; color: #D8E8DA; max-width: 760px; margin: 0 auto !important; }
.mw-hashtag { letter-spacing: .2em; color: var(--gold-l); margin-top: 8px !important; font-weight: 700; }
.mw-tiny { font-size: .9rem; opacity: .75; }

/* ---------- Back to top ---------- */
.mw-top { position: fixed; right: 24px; bottom: 24px; z-index: 20; width: 48px; height: 48px; clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); color: #06311F !important; background: linear-gradient(135deg, #FFF0B8, #C9A24B 55%, #8A6A22); font: 700 1.25rem/48px sans-serif; text-align: center; text-decoration: none; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; }
.mw-top.mw-show { opacity: 1; pointer-events: auto; }

@keyframes mw-shimmer { 0%, 100% { opacity: .78; } 50% { opacity: 1; } }
@keyframes mw-glow { 0%, 100% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 10px rgba(246, 227, 160, .5)); } 50% { transform: translate(-50%, -50%) scale(1.04); filter: drop-shadow(0 0 26px rgba(246, 227, 160, .85)); } }
.mw-foot-moon { animation-name: mw-glow-plain; }
@keyframes mw-glow-plain { 0%, 100% { filter: drop-shadow(0 0 8px rgba(246, 227, 160, .5)); } 50% { filter: drop-shadow(0 0 22px rgba(246, 227, 160, .9)); } }
@keyframes mw-swing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes mw-spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .mw-sec { font-size: 18px; padding-left: 16px; padding-right: 16px; }
  .mw-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: end; padding: 40% 12px 15%; min-height: 0; }
  .mw-hero-text { grid-column: 1 / -1; grid-row: 1; max-width: 100%; padding-bottom: 20px; }
  .mw-hc { position: static; width: auto !important; grid-row: 2; z-index: 3; }
  .mw-hc img { width: min(100%, 230px); }
  .mw-hc-l { grid-column: 1; justify-self: end; } .mw-hc-r { grid-column: 2; justify-self: start; }
  .mw-parchment { padding: 56px 34px 50px; }
  .mw-venue-grid { grid-template-columns: 1fr; }
  .mw-cl-l, .mw-cl-r { display: none; }
}
@media (max-width: 680px) {
  .mw-couple-grid { grid-template-columns: 1fr; }
  .mw-parchment { padding: 50px 22px 44px; }
  .mw-parchment::before { inset: 12px; }
  .mw-corner { width: 44px; height: 44px; } .mw-c1, .mw-c2 { top: 12px; } .mw-c3, .mw-c4 { bottom: 12px; } .mw-c1, .mw-c3 { left: 12px; } .mw-c2, .mw-c4 { right: 12px; }
  .mw-roller { margin: 0 -12px; }
  .mw-rsvp { padding: 34px 20px 28px; }
  .mw-rsvp .mt_popup_form_container { grid-template-columns: 1fr; }
  .mw-tulip { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mw-sec *, .mw-sec *::before, .mw-sec *::after { animation: none !important; transition: none !important; } }
