/* Forever Love - tema undangan (diadaptasi dari Forever Love Wedding Agency HTML Template) */
:root {
    --fv-pink: #f66b88;
    --fv-navy: #002157;
    --fv-text: #7d7d7d;
    --fv-dark: #333333;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Playfair Display', serif; font-size: 15px; line-height: 1.8; color: var(--fv-text); background: #f3efe9 url(../img/bg-pattern.jpg); overflow-x: hidden; }
a { color: var(--fv-pink); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--fv-navy); font-weight: 700; line-height: 1.3; }
.fv-container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.fv-block { padding: 110px 0; position: relative; }
.fv-block.white { background: #fff; }
.fv-card { background: #fff; box-shadow: 0 0 30px rgba(25, 62, 122, .1); position: relative; }
.text-center { text-align: center; }
.fv-sign { font-family: 'Great Vibes', cursive; font-weight: 400; }
.fv-icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; fill: currentColor; }

/* Judul bingkai dua warna */
.title { position: relative; padding: 0 0 0 48px; margin-bottom: 60px; z-index: 1; }
.title:before { content: ''; position: absolute; left: 0; top: -15px; width: 119px; height: 134px; border: 3px solid #ccc; z-index: -1; }
.title h4 { font-size: 43px; line-height: 57px; letter-spacing: .2px; color: var(--fv-navy); }
.title h4 span { color: var(--fv-pink); }
.title.style2 { padding: 0; text-align: center; }
.title.style2:before { left: 50%; margin-left: -55px; width: 109px; height: 142px; }
.title.style3:before { border-color: #fff; }
.title.style3 h4 span { color: #fff; }

/* Tombol */
.btn1 { display: inline-flex; align-items: stretch; background: var(--fv-pink); color: #fff; border-radius: 6px; overflow: hidden; font-size: 17px; border: 0; cursor: pointer; font-family: 'Playfair Display', serif; transition: all .3s ease; box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--fv-pink) 80%, transparent); }
.btn1 i { display: flex; align-items: center; justify-content: center; width: 72px; border-right: 1px solid rgba(255,255,255,.4); font-style: normal; }
.btn1 i span { width: 30px; height: 30px; border: 1px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.btn1 > span { padding: 14px 28px; }
.btn1:hover { background: var(--fv-navy); color: #fff; }
.btn2 { display: inline-block; background: var(--fv-pink); color: #fff; border-radius: 8px; padding: 10px 30px; font-size: 15px; border: 0; cursor: pointer; font-family: 'Playfair Display', serif; transition: background .3s; }
.btn2:hover { background: var(--fv-navy); color: #fff; }
.btn2.small { padding: 6px 18px; font-size: 13px; }

/* Bunga jatuh */
.fv-flowers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.fv-flowers img { position: absolute; animation: fv-float 7s ease-in-out infinite; }
.fv-flowers img:nth-child(1) { width: 110px; left: -30px; top: 42%; filter: blur(1px); }
.fv-flowers img:nth-child(2) { width: 38px; left: 16%; top: 12%; animation-delay: -2s; }
.fv-flowers img:nth-child(3) { width: 70px; right: 2%; top: 18%; animation-delay: -4s; }
.fv-flowers img:nth-child(4) { width: 56px; right: 12%; top: 64%; animation-delay: -1s; }
.fv-flowers img:nth-child(5) { width: 64px; left: 8%; top: 72%; animation-delay: -3s; }
@keyframes fv-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(12deg); } }

/* Sampul */
.fv-cover { display: flex; align-items: center; justify-content: center; padding: 20px; background: #f3efe9 url(../img/bg-pattern.jpg); }
.fv-cover .fv-card { width: 100%; max-width: 520px; padding: 50px 30px 44px; text-align: center; z-index: 2; }
.fv-cover .fv-card:after { content: ''; position: absolute; inset: 14px; border: 1px solid #e3e3e3; pointer-events: none; }
.fv-cover .logo { width: 86px; margin: 0 auto 18px; }
.fv-cover .headline { text-transform: uppercase; letter-spacing: 4px; font-size: 12px; color: var(--fv-pink); }
.fv-cover h1 { font-size: 40px; margin: 8px 0 4px; }
.fv-cover h1 span { color: var(--fv-pink); }
.fv-cover .date { font-style: italic; }
.fv-cover .orn { width: 200px; margin: 18px auto; }
.fv-cover .guest small { font-style: italic; display: block; }
.fv-cover .guest strong { display: block; color: var(--fv-navy); font-size: 22px; margin: 4px 0 26px; }

/* Header */
.fv-topbar { background: var(--fv-pink); color: #fff; font-size: 14px; font-weight: 700; }
.fv-topbar .fv-container { display: flex; align-items: center; justify-content: space-between; min-height: 52px; gap: 10px; }
.fv-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.fv-header .fv-container { display: flex; align-items: center; justify-content: center; gap: 22px; min-height: 80px; }
.fv-header nav { display: flex; gap: 0; flex: 1; }
.fv-header nav.left { justify-content: flex-end; }
.fv-header nav a { color: #58595b; font-size: 15px; padding: 0 22px; position: relative; }
.fv-header nav a + a:before { content: ''; position: absolute; left: -6px; top: 50%; width: 11px; height: 11px; margin-top: -6px; background: var(--fv-pink); transform: rotate(45deg); border-radius: 2px; }
.fv-header nav a:hover { color: var(--fv-pink); }
.fv-header .logo { width: 62px; flex: none; }

/* Hero */
.fv-hero .fv-card { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; }
.fv-hero .fv-card:before { content: ''; position: absolute; left: 0; right: 0; top: -24px; height: 25px; background: url(../img/ptrn1.png) repeat-x left bottom / auto 25px; }
.fv-hero .photo { position: relative; min-height: 560px; background: #eee center/cover no-repeat; }
.fv-hero .photo:after { content: ''; position: absolute; inset: 20px; border: 1px solid rgba(255,255,255,.7); }
.fv-hero .detail { position: relative; padding: 80px 60px 70px; background: url(../img/wed-comsoon-bg.png) right bottom no-repeat; }
.fv-hero .detail .headline { font-style: italic; color: var(--fv-pink); margin-bottom: 30px; font-size: 17px; }
.fv-hero .names { font-family: 'Great Vibes', cursive; font-size: 58px; color: var(--fv-navy); line-height: 1.1; font-weight: 400; margin: -30px 0 30px; }
.wed-counter { display: flex; box-shadow: 0 0 25px rgba(25, 62, 122, .12); margin-bottom: 40px; background: #fff; }
.wed-counter > .day { background: var(--fv-pink); color: #fff; font-weight: 700; font-size: 17px; padding: 18px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.3; min-width: 130px; }
.wed-counter > .day img { width: 26px; margin-bottom: 6px; filter: brightness(10); }
.countdown { display: flex; flex: 1; list-style: none; }
.countdown li { flex: 1; text-align: center; padding: 16px 4px; position: relative; }
.countdown li + li:before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: #e5e5e5; }
.countdown li b { display: block; color: #58595b; font-size: 30px; font-weight: 700; line-height: 1.2; }
.countdown li p { color: var(--fv-pink); font-size: 13px; }

/* Salam */
.fv-greeting .fv-card { max-width: 900px; margin: 0 auto; padding: 70px 60px; text-align: center; }
.fv-greeting h3 { font-size: 30px; margin-bottom: 16px; }
.fv-greeting .orn { width: 36px; margin: 22px auto; }
.fv-greeting blockquote { font-style: italic; font-size: 17px; color: #58595b; }
.fv-greeting cite { display: block; margin-top: 10px; color: var(--fv-pink); font-style: normal; }

/* Mempelai */
.couple { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 200px; max-width: 900px; margin: 0 auto; }
.couple.single { grid-template-columns: minmax(0, 420px); justify-content: center; }
.couple:before { content: ''; position: absolute; left: 50%; top: 250px; width: 235px; height: 254px; margin-left: -117px; background: url(../img/couple.png) no-repeat center / contain; }
.couple.single:before { display: none; }
.intro { text-align: center; position: relative; }
.intro-img { width: 280px; height: 280px; margin: 0 auto 30px; border-radius: 50%; overflow: hidden; border: 10px solid #fff; box-shadow: 0 15px 30px rgba(25, 62, 122, .15); }
.intro-img img { width: 100%; height: 100%; object-fit: cover; }
.intro h4 { font-size: 24px; margin-bottom: 4px; }
.intro .parents { font-size: 15px; }
.intro .ig { display: inline-block; margin-top: 10px; font-size: 14px; color: #fff; background: #c3c3c3; border-radius: 30px; padding: 2px 14px; }
.intro .ig:hover { background: var(--fv-pink); }
.intro .orn { width: 35px; margin: 16px auto 4px; }
.intro .sign { font-family: 'Great Vibes', cursive; font-size: 34px; color: var(--fv-dark); }
.intro .heart { position: absolute; top: 330px; color: var(--fv-pink); font-size: 26px; }
.intro:first-child .heart { left: -60px; }
.intro:last-child .heart { right: -60px; }

/* Cerita */
.story-card { display: grid; grid-template-columns: 40% 60%; margin-bottom: 40px; }
.story-card .img { background: url(../img/stories-bg.jpg) center/cover; padding: 70px 0 70px 60px; display: flex; align-items: center; }
.story-card .img img { width: 118%; max-width: none; aspect-ratio: 4/3; object-fit: cover; border: 10px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,.12); position: relative; z-index: 2; }
.story-card .txt { padding: 70px 60px 60px 100px; }
.story-card h2 { font-size: 26px; font-weight: 400; color: var(--fv-dark); margin-top: 10px; }
.story-card i { display: block; color: #aaa; font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.story-card.no-img { grid-template-columns: 1fr; }
.story-card.no-img .txt { padding: 50px 60px; }

/* Acara */
.event-wrap { display: flex; box-shadow: 0 0 30px rgba(25, 62, 122, .1); }
.event-strip { width: 223px; flex: none; background: url(../img/event-bg.jpg) center/cover; }
.event-title { width: 246px; flex: none; background: var(--fv-pink); padding: 110px 30px 60px; }
.event-title .title { margin-left: 0; }
.event-title .title { padding-left: 28px; }
.event-title .title h4 { color: var(--fv-navy); font-size: 32px; line-height: 44px; overflow-wrap: anywhere; }
.event-title li span .fv-icon { width: 20px; height: 20px; }
.event-title ul { list-style: none; margin-top: 60px; }
.event-title li { display: flex; align-items: center; gap: 18px; color: #fff; font-weight: 700; margin-bottom: 26px; margin-left: -64px; font-size: 15px; line-height: 1.4; }
.event-title li span { width: 50px; height: 50px; flex: none; border-radius: 50%; background: #58595b; color: #fff; display: flex; align-items: center; justify-content: center; }
.event-title li:first-child span { background: #fff; color: var(--fv-pink); }
.event-cards { flex: 1; display: flex; flex-wrap: wrap; background: #fff; }
.venue { flex: 1 1 260px; text-align: center; border-right: 1px solid #eee; display: flex; flex-direction: column; }
.venue > h5 { background: var(--fv-dark); color: #fff; font-size: 17px; padding: 14px; font-family: 'Playfair Display', serif; }
.venue:nth-child(even) > h5 { background: var(--fv-pink); }
.venue .body { padding: 30px 26px; flex: 1; }
.venue .orn { width: 35px; margin: 0 auto 10px; }
.venue h2 { font-size: 18px; color: #58595b; }
.venue .ev { font-style: italic; color: var(--fv-pink); font-size: 17px; }
.venue .dayname { margin-top: 26px; font-size: 17px; color: #aaa; display: inline-block; border-bottom: 1px solid #ddd; padding: 0 20px 4px; }
.venue .date { font-size: 23px; color: #58595b; font-weight: 700; margin: 8px 0 0; border-bottom: 1px solid #ddd; display: inline-block; padding-bottom: 4px; }
.venue .year { display: block; color: #58595b; font-weight: 700; font-size: 14px; margin-bottom: 26px; }
.venue .time { background: var(--fv-pink); color: #fff; font-size: 17px; padding: 6px 10px; margin-bottom: 26px; }
.venue .addr { display: flex; gap: 12px; text-align: left; font-size: 14px; margin-bottom: 20px; }
.venue .addr span { width: 32px; height: 32px; flex: none; border-radius: 50%; background: #58595b; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.venue .addr b { color: #58595b; }
.venue .foot { border-top: 1px dashed #333; padding: 22px 20px; color: var(--fv-dark); font-weight: 700; }
.venue .foot small { display: block; font-weight: 400; }
.fv-live { margin-top: 40px; padding: 40px 30px; text-align: center; }

/* Galeri */
.fv-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fv-gallery a { position: relative; display: block; border: 8px solid #fff; box-shadow: 0 10px 25px rgba(25, 62, 122, .12); overflow: hidden; }
.fv-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s; }
.fv-gallery a:after { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--fv-pink) 70%, transparent) url(../img/design-white2.png) center no-repeat; opacity: 0; transition: opacity .35s; }
.fv-gallery a:hover:after { opacity: 1; }
.fv-gallery a:hover img { transform: scale(1.08); }
.fv-video { margin-top: 40px; position: relative; padding-top: 56.25%; border: 8px solid #fff; box-shadow: 0 10px 25px rgba(25, 62, 122, .12); }
.fv-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Hadiah */
.gift-card { padding: 90px 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.gift-list { display: grid; gap: 30px; }
.gift-item { text-align: center; }
.gift-item .ribbon { width: 100%; max-width: 330px; margin: 0 auto; height: 60px; background: url(../img/ribbon.png) center/contain no-repeat; color: #fff; font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; padding-bottom: 8px; }
.gift-item .num { display: block; font-size: 22px; color: var(--fv-navy); font-weight: 700; letter-spacing: 1px; margin-top: 8px; }
.gift-item .name { display: block; font-style: italic; margin-bottom: 10px; }

/* RSVP */
.rsvp-box { padding: 80px; }
.rsvp-inner { border: 2px solid #e3e3e3; padding: 70px 70px; display: grid; grid-template-columns: 1fr 390px; gap: 50px; align-items: center; }
.rsvp-form { background: #fff; box-shadow: 0 0 30px rgba(25, 62, 122, .12); padding: 26px 50px 60px; position: relative; }
.rsvp-form > img { width: 235px; margin: 0 auto 20px; }
.rsvp-form .mail { position: absolute; left: -45px; bottom: -45px; width: 90px; height: 90px; border-radius: 50%; background: color-mix(in srgb, var(--fv-pink) 40%, #fff); display: flex; align-items: center; justify-content: center; }
.rsvp-form .mail span { width: 66px; height: 66px; border-radius: 50%; background: var(--fv-pink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.inv-field { margin-bottom: 20px; }
.inv-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--fv-navy); font-weight: 700; }
.inv-input { width: 100%; border: 0; border-bottom: 2px solid #7d7d7d; background: transparent; padding: 8px 4px; font-family: 'Playfair Display', serif; font-style: italic; font-size: 16px; color: #58595b; border-radius: 0; }
.inv-input:focus { outline: none; border-color: var(--fv-pink); }
textarea.inv-input { resize: vertical; }
.inv-btn { display: block; margin: 30px auto 0; background: var(--fv-pink); color: #fff; border: 0; border-radius: 30px; padding: 12px 42px; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 17px; cursor: pointer; }
.inv-btn:hover { background: var(--fv-navy); }
.wishes { margin-top: 40px; max-height: 420px; overflow-y: auto; }
.wish { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid #eee; }
.wish .av { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--fv-pink); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.wish strong { color: var(--fv-navy); }
.wish small { color: var(--fv-pink); font-style: italic; }
.wish p { font-size: 14px; margin-top: 2px; }

/* Penutup & footer */
.fv-closing .fv-card { max-width: 900px; margin: 0 auto; padding: 70px 50px; text-align: center; }
.fv-closing .names { font-family: 'Great Vibes', cursive; font-size: 60px; color: var(--fv-navy); line-height: 1.2; margin: 20px 0 10px; }
.fv-footer { background: var(--fv-pink); color: #fff; text-align: center; padding: 90px 15px 40px; position: relative; margin-top: 60px; }
.fv-footer .logo { position: absolute; left: 50%; top: -56px; margin-left: -56px; width: 113px; }
.fv-footer a { color: #fff; font-weight: 700; }

/* Responsif */
@media (max-width: 991px) {
    .fv-header nav { display: none; }
    .fv-hero .fv-card, .gift-card, .rsvp-inner { grid-template-columns: 1fr; }
    .fv-hero .photo { min-height: 380px; }
    .fv-hero .detail { padding: 60px 30px 50px; }
    .couple { grid-template-columns: 1fr; gap: 60px; }
    .couple:before, .intro .heart { display: none; }
    .story-card { grid-template-columns: 1fr; }
    .story-card .img { padding: 40px 30px; }
    .story-card .img img { width: 100%; }
    .story-card .txt { padding: 40px 30px; }
    .event-wrap { flex-direction: column; }
    .event-strip { display: none; }
    .event-title { width: 100%; padding: 70px 30px 30px; }
    .event-title ul { margin-top: 30px; }
    .event-title li { margin-left: 0; }
    .rsvp-box { padding: 30px 20px; }
    .rsvp-inner { padding: 50px 20px; }
}
@media (max-width: 767px) {
    .fv-block { padding: 70px 0; }
    .title h4 { font-size: 34px; line-height: 46px; }
    .fv-hero .names { font-size: 46px; }
    .wed-counter { flex-direction: column; }
    .countdown li b { font-size: 24px; }
    .fv-greeting .fv-card, .fv-closing .fv-card { padding: 50px 24px; }
    .gift-card { padding: 60px 20px; }
    .gift-card > div:last-child { order: -1; }
    .fv-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .fv-gallery a { border-width: 5px; }
    .intro-img { width: 230px; height: 230px; }
    .rsvp-form { padding: 20px 22px 50px; }
    .rsvp-form .mail { left: 50%; margin-left: -45px; bottom: -60px; }
    .fv-topbar { font-size: 12px; }
    .fv-cover h1 { font-size: 32px; }
    .fv-closing .names { font-size: 46px; }
}
