/* Blue Sapphire v7 · source-referenced mobile layout · PHP-native, no Elementor runtime */
:root{
  --navy:#0c1444;
  --navy2:#0b1444;
  --ink:#0c1444;
  --gold:#e3c063;
  --sapphire-pattern:url('../img/blue-original-pattern.png');
  --sapphire-story-pattern:url('../img/blue-original-story-pattern.png');
  --sapphire-smooth:cubic-bezier(.22,1,.36,1);
}
body{background:#e6e8f0;color:var(--ink);font-family:'Nunito','DM Sans',sans-serif;line-height:1.65}
.invitation-shell{max-width:540px;background:#fff;box-shadow:0 6px 45px rgba(8,17,48,.14);overflow:hidden}
button,a{-webkit-tap-highlight-color:transparent}
.btn:focus-visible,.bottom-nav a:focus-visible,.float-action:focus-visible{outline:3px solid #ead188;outline-offset:3px}
.section-light,.patterned,.paper{background-color:#fff;background-image:var(--sapphire-pattern);background-repeat:repeat;background-size:150px auto}
.section-navy{background:#0c1444;color:#fff}
.section-script{font-family:var(--script);font-weight:400;line-height:1.16;text-wrap:balance}
.section{isolation:isolate;scroll-margin-top:16px}
/* Original white side wreaths supplied with the HTML archive. */
.monogram{width:min(252px,65vw);height:168px;margin-left:auto;margin-right:auto;position:relative;isolation:isolate}
.monogram .leaf{height:158px;width:auto;top:0;object-fit:contain}
.monogram .leaf.left{left:0}.monogram .leaf.right{right:0}
.monogram span{font-size:clamp(61px,17vw,88px);letter-spacing:-.085em;z-index:2;line-height:1}
.eyebrow{font-family:var(--serif);letter-spacing:.19em;font-size:clamp(17px,4.8vw,23px)}
.couple-cover,.couple-title{font-family:var(--serif);letter-spacing:-.055em;text-wrap:balance;font-weight:400}
/* Shared photographic sections: the background images remain controlled by Admin. */
.cover,.hero,.closing{background-color:#0c1444!important;position:relative;overflow:hidden}
.cover:before,.hero:before,.closing:before{pointer-events:none;z-index:2}
.cover-inner,.hero-content,.closing-copy{position:relative;z-index:4}
.cover:before{background:linear-gradient(180deg,rgba(0,0,0,.28) 0%,rgba(4,8,28,.25) 35%,rgba(4,8,28,.22) 58%,rgba(9,17,51,.58) 100%)}
.hero:before{background:linear-gradient(180deg,rgba(3,9,27,.15) 0%,rgba(10,16,53,.13) 30%,rgba(12,20,68,.30) 58%,rgba(12,20,68,.88) 82%,#0c1444 99%)}
.closing:before{background:linear-gradient(180deg,rgba(3,9,29,.06) 0%,rgba(12,20,68,.25) 28%,rgba(12,20,68,.79) 63%,#0c1444 94%)}
.cover{max-width:540px;height:100svh;min-height:640px}
.cover-inner{height:100%;min-height:0;gap:clamp(9px,2svh,20px);justify-content:flex-start;padding:clamp(70px,9vh,102px) 23px max(36px,env(safe-area-inset-bottom))}
.cover .eyebrow{margin-bottom:4px;text-shadow:0 1px 6px #0003}
.cover .monogram{margin:0 auto 9px}
.cover .couple-cover{font-size:clamp(33px,8.8vw,54px);margin:0;line-height:1.24}
.cover .guest-label{margin-top:auto;margin-bottom:15px;gap:12px;max-width:420px}
.cover .guest-label em{font-size:clamp(14px,4vw,18px)}
.cover .guest-label strong{font-size:clamp(22px,6.1vw,30px)}
.cover .guest-label small{font-size:clamp(11px,3.2vw,14px);max-width:360px}
.cover .btn{min-width:205px;min-height:47px;padding:10px 23px;border-radius:32px;font-size:16px}
.cover-pagination{z-index:8;bottom:max(14px,env(safe-area-inset-bottom))}
/* Fixed photo order + slow dissolve. */
.cover-slideshow,.hero-slideshow{background:#0c1444}
.cover-slide,.hero-slide{filter:saturate(.99)}
.sapphire-particles{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden}
.sapphire-particles i{position:absolute;top:var(--py);left:var(--px);width:var(--ps);height:var(--ps);border-radius:50%;background:#fff;filter:blur(.3px);opacity:.06;animation:sapphireFloat 13s ease-in-out var(--pd) infinite alternate}
@keyframes sapphireFloat{0%{transform:translateY(0) scale(.84);opacity:.045}100%{transform:translateY(-45px) scale(1.15);opacity:.12}}
/* Original 105vh hero, full-bleed image, lower-half typography. */
.hero{height:max(100svh,710px);min-height:710px;align-items:center;isolation:isolate}
.hero-content{display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;min-height:100%;padding:clamp(170px,23svh,255px) 20px clamp(115px,16svh,160px)}
.hero .eyebrow{font-size:clamp(18px,4.65vw,22px);line-height:1.4}
.hero .monogram{margin:16px auto 12px;height:160px}
.hero .couple-title{font-size:clamp(34px,9vw,54px);line-height:1.24;margin:9px auto 21px}
.hero-date{font:400 clamp(14px,3.5vw,17px)/1.55 var(--serif);letter-spacing:.18em;margin:0 0 24px}
.hero .btn{min-height:48px;padding:10px 25px;font-size:16px;border-radius:30px}
.hero-pagination{margin-top:18px;gap:7px}
.sapphire-wave{position:absolute;left:0;bottom:-1px;width:100%;height:35px;z-index:5;display:block;pointer-events:none}
.sapphire-wave-hero{fill:#0c1444}
.sapphire-wave-verse{fill:#fff;height:32px;bottom:-1px}
/* Surah and translation: navy, centered ornament, compact Arabic. */
.verse-refined{position:relative;padding:54px 25px 72px;background:#0c1444!important;color:#fff;overflow:hidden}
.verse-refined .flower{height:108px;width:auto;margin:0 auto 13px;object-fit:contain}
.verse-refined .section-overline{font-size:16px;line-height:1.4;margin:0 auto 13px;font-weight:400;letter-spacing:0}
.verse-refined .arabic{max-width:465px;font-family:'Amiri', 'Noto Naskh Arabic',serif;font-size:clamp(19px,5vw,24px);line-height:1.68;letter-spacing:0;word-spacing:0;direction:rtl;text-align:center;margin:4px auto 15px;overflow-wrap:break-word}
.verse-refined blockquote{font-family:var(--serif);font-size:clamp(15px,3.9vw,19px);line-height:1.86;font-style:normal;font-weight:400;max-width:470px;margin:6px auto 22px}
.verse-refined b{display:block;font:400 clamp(16px,4.2vw,22px)/1.5 var(--serif);letter-spacing:0}
/* White pattern, script greeting and oval portraits just like the example. */
.profiles{padding:82px 22px 75px;background-image:var(--sapphire-pattern)!important;background-size:150px auto}
.profile-intro{padding:0 4px 36px;max-width:500px;margin:0 auto}
.profile-intro .intro-overline{font:400 13px/1.2 var(--serif);letter-spacing:.14em;text-transform:uppercase;margin:0 0 8px;color:var(--ink)}
.profile-intro .intro-greeting{font-family:var(--script);font-size:clamp(37px,9.3vw,52px);line-height:1.1;margin:0 auto 16px;letter-spacing:-.04em}
.profile-intro .opening-invite{font-size:clamp(15px,4.2vw,20px);line-height:1.83;max-width:435px;margin:0 auto;color:var(--ink);font-weight:400}
.profile .portrait{width:min(282px,70vw);height:min(390px,100vw);margin:0 auto 18px;border:2px solid #0c1444;border-radius:49% / 38%;object-fit:cover;object-position:center top;padding:6px;background:#fff}
.profile h2{font:600 clamp(27px,6.75vw,38px)/1.17 var(--serif);letter-spacing:-.035em;max-width:500px;margin:0 auto 11px}
.profile p{font-size:clamp(14px,3.8vw,18px);line-height:1.75;max-width:435px}
.social-buttons{display:flex;justify-content:center;gap:5px;margin-top:10px}
.social-buttons a{display:grid;place-items:center;min-width:33px;height:33px;padding:5px 10px;border-radius:60px;background:#0c1444;color:#fff;font:500 10px/1.2 var(--ff)}
.ampersand{font:italic 700 clamp(58px,16vw,79px)/1 var(--serif);color:#8185a0;margin:31px auto 28px}
/* Event section: photo above, countdown and two white patterned cards. */
.events{padding:0 18px 75px;background:#0c1444}
.event-banner{position:relative;isolation:isolate;min-height:310px;padding:70px 14px 40px;margin:0 -18px 18px;overflow:hidden;background:#0c1444!important}
.event-banner .scene-photo{object-fit:cover}
.event-banner:before{background:linear-gradient(180deg,rgba(12,20,68,.13) 0%,rgba(12,20,68,.60) 60%,#0c1444 100%);z-index:1}
.event-banner>*:not(.scene-photo){position:relative;z-index:2}
.event-banner .section-script{font:400 clamp(42px,10vw,59px)/1.2 var(--script);margin:0 0 15px;color:#fff}
.countdown{display:flex;gap:7px;max-width:480px;margin:auto;justify-content:space-between}
.countdown>div{min-width:0;flex:1;align-items:center}
.countdown strong{font:600 clamp(33px,9.1vw,53px)/1.1 'Nunito',sans-serif;color:var(--gold);font-variant-numeric:tabular-nums}
.countdown span{font:italic 17px/1.3 var(--serif);margin-top:6px}
.event-card{padding:38px 22px 44px;margin:20px 0 25px;border-radius:22px;background-image:var(--sapphire-pattern)!important;background-size:150px auto;box-shadow:0 6px 13px #0002}
.rings-original{width:94px;height:80px;object-fit:contain;margin:0 auto 13px}
.event-card h3{font:600 clamp(28px,7.9vw,38px)/1.3 var(--serif);color:var(--ink);margin:0 0 13px}
.event-card p{font-size:clamp(15px,4.1vw,18px);line-height:1.75;color:#60606b;margin:2px auto;max-width:370px}
.location-separator{margin:36px 12px 18px}
.location-separator:before,.location-separator:after{height:1px;background:var(--navy)}
.event-card .btn{font-size:clamp(14px,3.7vw,18px);margin-top:22px;border-radius:30px;padding:11px 22px}
/* Timeline faithful to original vertical spine / navy cards. */
.story{padding:48px 16px 75px;background-image:var(--sapphire-story-pattern)!important;background-size:150px auto}
.story .flower,.gifts .flower,.gallery .flower,.wishes .flower{width:auto;height:100px;margin:0 auto 3px;object-fit:contain}
.story .section-script,.gifts .section-script,.gallery .section-script,.wishes .section-script{font-size:clamp(44px,10.5vw,60px);margin:5px auto 30px}
.story .timeline{position:relative;max-width:470px;margin:28px auto 0;padding-left:57px}
.story .timeline:before{left:20px;width:2px;top:18px;bottom:32px}
.story-item{margin-bottom:26px;position:relative}
.story-item:before{content:"";position:absolute;left:-16px;top:18px;width:17px;height:17px;background:#0c1444;transform:rotate(45deg);z-index:1}
.story .heart-dot{left:-59px;top:10px;width:48px;height:48px;z-index:2;box-shadow:0 0 0 5px #fff3}
.story-card{border-radius:15px;background:#0c1444;color:#fff;padding:17px 17px 25px;box-shadow:none;overflow:hidden}
.story-card img{width:100%;aspect-ratio:3/3.85;object-fit:cover;object-position:center center}
.story-body{padding:16px 0 0;text-align:left}
.story-body h3{font:600 23px/1.25 var(--serif);margin:0 0 5px}
.story-body strong{font:700 14px/1.5 var(--ff)}
.story-body p{font-size:14px;line-height:1.55;margin:5px 0 0}
/* Gallery: narrow gutters and justified portrait tiles. */
.gallery{padding:52px 23px 70px;background:#0c1444}
.gallery .section-script{margin-bottom:30px}
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;grid-auto-flow:dense}
.gallery-item{border:0;padding:0;min-width:0;min-height:140px;overflow:hidden;background:#27366f;position:relative}
.gallery-item img{width:100%;height:100%;aspect-ratio:.65;object-fit:cover;transition:transform .65s var(--sapphire-smooth),filter .65s ease}
.gallery-item.wide{grid-column:span 2}
.gallery-item.wide img{aspect-ratio:1.38}
.gallery-item:hover img,.gallery-item:focus-visible img{transform:scale(1.065)}
/* Gift: original geometric bank-card background, top-right bank logo and chip. */
.gifts{padding:53px 23px 80px;background-image:var(--sapphire-pattern)!important;background-size:150px auto}
.gifts .intro-italic{font-size:clamp(15px,4.3vw,19px);line-height:1.9;margin:12px auto 27px;max-width:455px;color:var(--ink)}
.gift-card{display:flex;flex-direction:column;align-items:flex-start;position:relative;min-height:238px;padding:25px 25px 29px;margin:18px auto 22px;border-radius:15px;background:#f7f7f8 url('../img/blue-original-gift-card.jpg') center/cover no-repeat;box-shadow:0 3px 8px #0002;text-align:left;color:#333}
.gift-card:after{display:none}
.gift-card .bank-logo{width:auto;max-width:137px;max-height:57px;min-height:43px;align-self:flex-end;object-fit:contain;margin:0 0 5px auto}
.gift-card .account-chip{width:44px;height:35px;object-fit:contain;order:1;margin:3px 0 14px}
.gift-card .account-number{font:400 clamp(22px,5.85vw,31px)/1.35 ui-monospace,Consolas,monospace;letter-spacing:.11em;overflow-wrap:anywhere;margin:0;order:2}
.gift-card .account-number+p{font:400 clamp(15px,3.8vw,20px)/1.4 ui-monospace,Consolas,monospace;letter-spacing:.035em;margin:4px 0 10px;order:3;overflow-wrap:anywhere}
.gift-card>.btn-copy{order:4;align-self:flex-start;margin-top:5px}
.btn-copy{font:600 12px/1.3 var(--ff);border-radius:7px;background:#8f8f92;padding:8px 13px;color:#fff}
.gift-card:has(.gift-emoji){text-align:center;align-items:center;justify-content:center;gap:10px}
.gift-card:has(.gift-emoji) h3{font:700 24px/1.2 var(--ff);margin:0}
.gift-card:has(.gift-emoji) p{font-size:15px;max-width:410px;line-height:1.6;white-space:normal}
/* Wishes and RSVP: navy blocks surrounding a pale pattern card. */
.wishes{padding:55px 21px 75px;background:#0c1444}
.wishes .section-script{margin-bottom:12px}
.wishes .intro-italic{font-size:clamp(15px,4.15vw,20px);margin:14px auto 28px;line-height:1.65}
.wishes-paper,.rsvp-paper{background:#fff var(--sapphire-pattern) center/150px repeat;border-radius:16px;box-shadow:none;color:#0c1444}
.wishes-paper{padding:24px 18px 30px}
.wishes-paper h3{font:700 clamp(17px,4.6vw,22px)/1.4 var(--ff);margin:0 -18px 26px;padding:0 12px 23px;border-bottom:1px solid #0c1444;color:#0c1444}
.wish-form{gap:16px}
.wish-form input:not(.trap),.wish-form textarea{background:#fff;color:#161b36;border:1px solid #d8dbe3;min-height:48px;border-radius:2px;padding:12px 13px;font-size:15px}
.wish-form textarea{min-height:116px}
.wish-form .btn{border-radius:5px;padding:11px 19px;font-weight:600;font-size:15px}
.wish-list{margin-top:20px;max-height:500px}
.wish-entry{padding:17px 4px;gap:12px}
.wish-entry .avatar{background:#c1c1c5;color:#fff;width:32px;height:32px;min-width:32px}
.wish-entry strong{font-weight:700;font-size:16px}
.wish-entry p{font-size:14px;line-height:1.6}
.rsvp-paper{margin:27px 0 0;padding:34px 20px 38px;text-align:center}
.rsvp-paper .intro-italic{font-size:clamp(15px,4.2vw,19px);line-height:1.78;margin:0 auto 21px;color:#0c1444}
.rsvp-paper .btn{font-size:17px;border-radius:30px;min-height:45px;padding:10px 24px}
/* RSVP modal modeled on the reference behavior but native accessible JS. */
.rsvp-modal{position:fixed;inset:0;z-index:300;display:flex;align-items:center;justify-content:center;background:rgba(4,10,30,.64);padding:18px;backdrop-filter:blur(4px);overflow-y:auto}
.rsvp-dialog{background:#fff var(--sapphire-pattern) center/150px repeat;border-radius:14px;max-height:calc(100dvh - 36px);overflow:auto;width:min(100%,450px);box-shadow:0 18px 62px #0007;animation:sapphireModal .38s var(--sapphire-smooth)}
@keyframes sapphireModal{from{opacity:0;transform:translateY(22px) scale(.98)}to{opacity:1;transform:none}}
.rsvp-modal-head{background:#0c1444;color:white;display:flex;justify-content:space-between;align-items:center;padding:17px 21px}
.rsvp-modal-head h3{margin:0;font-size:19px;font-weight:700}
.rsvp-modal-head button{color:white;border:0;background:transparent;font-size:29px;line-height:1;padding:3px 5px}
.rsvp-dialog .rsvp-form{padding:21px 22px 25px;margin:0;gap:15px}
.rsvp-dialog .rsvp-form label{font-size:13px;color:#11193f}
.rsvp-dialog .rsvp-form :is(input,textarea,select){border:1px solid #cbd0de;border-radius:5px;background:#fff}
.rsvp-dialog .rsvp-form .btn{justify-self:stretch;width:100%;border-radius:6px;margin-top:7px}
/* Full-height closing photo, gradient, script and social footer. */
.closing{min-height:max(100svh,780px);background:#0c1444!important;text-align:center;display:flex;align-items:flex-end;isolation:isolate}
.closing-copy{padding:clamp(320px,44svh,450px) 20px max(105px,calc(85px + env(safe-area-inset-bottom)));width:100%;color:#fff}
.closing-copy>p{font-size:clamp(13px,3.6vw,17px);max-width:500px;line-height:1.8}
.closing-copy .section-script{font:400 clamp(27px,7.7vw,42px)/1.24 var(--script);letter-spacing:-.025em;white-space:normal;margin:18px 0 27px}
.closing-copy .couple-title{font-size:clamp(34px,9vw,54px);margin:20px auto 31px}
.closing-copy .brand{margin-top:35px;font-size:13px;color:#fff}
.closing-copy .brand a,.closing-copy .brand b{letter-spacing:.12em;font-size:clamp(13px,3.9vw,19px)}
.footer-social{display:flex;justify-content:center;gap:20px;align-items:center;margin:16px auto 0}
.footer-social a{font-size:12px;text-decoration:none;border:1px solid #fff8;border-radius:30px;padding:5px 14px;background:#fff1;color:#fff}
/* Original floating tools and centered white translucent bottom pill. */
.bottom-nav{z-index:85;max-width:calc(100vw - 28px);background:rgba(241,235,240,.94);backdrop-filter:blur(12px);padding:9px 10px;gap:5px;border-radius:65px;box-shadow:0 3px 15px rgba(0,0,0,.24);bottom:max(17px,env(safe-area-inset-bottom))}
.bottom-nav a{width:clamp(34px,9.2vw,45px);height:clamp(34px,9.2vw,45px);min-width:0;flex:0 0 auto;background:#0c1444;display:grid;place-items:center;border-radius:50%;color:#fff}
.bottom-nav a svg{width:clamp(19px,5.5vw,25px);height:clamp(19px,5.5vw,25px)}
.bottom-nav a.active{background:#2d417c}
.float-action{z-index:79;top:56%;right:max(calc((100vw - 540px)/2 + 8px),8px);width:38px;height:38px;background:#0c1444;color:white}
.float-second{top:calc(56% + 48px);font-size:24px}
html{scroll-padding-top:8px}
body.invite-closed .bottom-nav,body.invite-closed .float-action{visibility:hidden;opacity:0;pointer-events:none}
body.invite-opened .bottom-nav,body.invite-opened .float-action{visibility:visible;opacity:1;transition:opacity .45s ease}
@media (min-width:650px){.invitation-shell{border-radius:0}.bottom-nav{max-width:490px}}
@media (max-width:400px){
 .cover-inner{padding-top:8svh;padding-bottom:30px}
 .cover .monogram{height:145px}.cover .monogram .leaf{height:136px}.cover .monogram span{font-size:70px}
 .hero .monogram{height:140px}.hero .monogram .leaf{height:135px}.hero .monogram span{font-size:67px}
 .hero-content{padding-top:21svh;padding-bottom:17svh}
 .verse-refined{padding-left:20px;padding-right:20px}
 .verse-refined .arabic{font-size:18px;line-height:1.65}
 .verse-refined blockquote{font-size:15.5px;line-height:1.81}
 .profiles{padding-left:17px;padding-right:17px}
 .profile .portrait{width:min(260px,72vw);height:min(375px,101vw)}
 .event-card{padding:33px 16px 37px}
 .story{padding-left:14px;padding-right:15px}
 .gallery{padding-left:15px;padding-right:15px}
 .gifts{padding-left:17px;padding-right:17px}
 .wishes{padding-left:15px;padding-right:15px}
 .bottom-nav{padding:7px;gap:4px;max-width:calc(100vw - 22px)}
 .bottom-nav a{width:clamp(32px,9vw,37px);height:clamp(32px,9vw,37px)}
}
@media (max-height:760px){.cover{min-height:570px}.cover-inner{padding-top:7svh;gap:7px}.hero{min-height:620px}.hero-content{padding-top:21svh;padding-bottom:15svh}}
@media (prefers-reduced-motion:reduce){.sapphire-particles i,.rsvp-dialog{animation:none!important}}

/* Optional gallery video and wedding-gift QRIS, both editable through Admin. */
.wedding-video{margin:34px auto 0;max-width:480px;width:100%;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#061032;box-shadow:0 3px 17px #0004}
.wedding-video iframe{width:100%;height:100%;border:0;display:block}
.gift-qris{margin:24px auto 0;padding:23px;max-width:360px;background:#fff;border-radius:15px;box-shadow:0 3px 12px #0002;color:#0c1444}
.gift-qris img{width:100%;max-width:270px;max-height:360px;object-fit:contain;margin:0 auto 12px}
.gift-qris figcaption{font-size:14px;font-weight:600;text-align:center}
/* Prevent scrolling the page behind the unopened cover (old versions overlapped). */
body.invite-closed{overflow:hidden}
body.invite-opened{overflow-x:hidden;overflow-y:auto}
