/* My Wedding - tema undangan (diadaptasi dari template "My Wedding" / Perfect Wedding) */
:root {
    --mw-red: #ED2437;
    --mw-sage: #9AAD62;
    --mw-sage-rgb: 154, 173, 98;
    --mw-text: #3b3b3b;
}
html, body { height: auto; }
body { font-family: 'Lato', sans-serif; color: var(--mw-text); font-size: 16px; line-height: 1.7; background: #fff; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: 'Great Vibes', cursive; font-weight: 400; }
a { color: var(--mw-red); text-decoration: none; }
a:hover { color: var(--mw-red); opacity: .85; }
img { max-width: 100%; }

.wd-section { padding: 80px 0; position: relative; }
.wd-section.pt-0 { padding-top: 0; }
.wd_section_heading { text-align: center; margin-bottom: 40px; }
.wd_section_heading h1 { color: var(--mw-red); font-size: 52px; line-height: 1.2; margin-bottom: 6px; }
.wd_dot_heading { display: inline-block; width: 10px; height: 10px; background: var(--mw-red); border-radius: 100%; position: relative; }
.wd_dot_heading::before, .wd_dot_heading::after { content: ''; position: absolute; top: 1px; width: 8px; height: 8px; background: var(--mw-red); border-radius: 100%; }
.wd_dot_heading::before { left: -16px; }
.wd_dot_heading::after { left: 18px; }
.title-desc { max-width: 700px; margin: 0 auto; text-align: center; }

.wd-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--mw-red); color: #fff !important; border: 2px solid var(--mw-red); border-radius: 30px; padding: 10px 28px; font-family: 'Lora', serif; font-style: italic; font-size: 17px; cursor: pointer; transition: all .3s; }
.wd-btn:hover { background: #fff; color: var(--mw-red) !important; opacity: 1; }
.wd-btn.light { background: transparent; border-color: #fff; }
.wd-btn.light:hover { background: #fff; }
.wd-btn.sm { padding: 6px 20px; font-size: 15px; }

/* Hati besar (sampul & hero) */
.wd-heart-stage:not([data-inv-cover]) { position: relative; }
.wd-heart-stage { min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; background: #444 center / cover no-repeat; }
.wd-heart-stage .wd-bg { position: absolute; inset: 0; background: inherit; background-size: cover; background-position: center; animation: wd-scales 60s ease infinite; }
.wd-heart-stage canvas { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; pointer-events: none; }
.wd-heart-stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.25)); pointer-events: none; }
@keyframes wd-scales { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.wd_img_overlay { position: relative; z-index: 3; width: 100%; background: rgba(var(--mw-sage-rgb), .78); color: #fff; text-align: center; margin-top: 260px; min-height: 170px; }
.wd-heart { position: absolute; left: 50%; bottom: -30px; width: 520px; transform: translateX(-50%); }
.wd-heart svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 30px rgba(0,0,0,.18)); }
.wd-heart svg path { fill: var(--mw-red); }
.wd-heart-content { position: absolute; left: 50%; bottom: 0; width: 360px; transform: translateX(-50%); padding-bottom: 24px; text-align: center; color: #fff; }
.wd-heart-content .pre { font-family: 'Great Vibes', cursive; font-size: 30px; line-height: 1; margin: 0; }
.wd-heart-content h1 { font-size: 46px; line-height: 1.05; margin: 4px 0 6px; color: #fff; }
.wd-heart-content h4 { font-family: 'Lato', sans-serif; font-size: 18px; margin: 0 0 10px; color: #fff; }
.wd-heart-content h4 .fa { margin-right: 8px; }
.wd-guest { font-size: 13px; line-height: 1.4; margin: 0 auto 10px; max-width: 280px; }
.wd-guest strong { display: block; font-family: 'Lora', serif; font-style: italic; font-size: 20px; font-weight: 400; }
.wd-open { background: none; border: 0; color: #fff; cursor: pointer; font-size: 15px; font-family: 'Lato', sans-serif; }
.wd-open .wd_scroll { display: block; width: 40px; height: 36px; margin: 6px auto 0; position: relative; background: url(../images/little_heart.png) no-repeat center; }
.wd-open .wd_scroll i { position: absolute; left: 50%; top: 30%; width: 2px; height: 8px; margin-left: -1px; background: #fff; animation: wd-mouse 1.5s linear infinite; }
@keyframes wd-mouse { 0% { opacity: 1; top: 29%; } 15% { opacity: 1; top: 50%; } 50% { opacity: 0; top: 50%; } 100% { opacity: 0; top: 29%; } }
@media (max-width: 575px) {
    .wd-heart { width: 460px; bottom: -26px; }
    .wd-heart-content { width: 320px; }
    .wd-heart-content h1 { font-size: 40px; }
}

/* Hero hitung mundur */
.wd-hero .wd_img_overlay { margin-top: 0; padding: 30px 16px 34px; }
.wd-hero-names { position: relative; z-index: 3; text-align: center; color: #fff; padding: 0 16px 40px; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.wd-hero-names .pre { font-family: 'Lora', serif; font-style: italic; font-size: 20px; }
.wd-hero-names h1 { font-size: 72px; line-height: 1.05; color: #fff; margin: 0; }
.wd-countdown { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.wd-countdown .unit { width: 100px; height: 100px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 510 510'%3E%3Cpath fill='%23fff' d='M255,489.6L219.3,453.9C86.7,336.6,0,257.55,0,160.65C0,81.6,61.2,20.4,140.25,20.4c43.35,0,86.7,20.4,114.75,53.55C283.05,40.8,326.4,20.4,369.75,20.4C448.8,20.4,510,81.6,510,160.65c0,96.9-86.7,175.95-219.3,293.25L255,489.6z'/%3E%3C/svg%3E") center / contain no-repeat; color: var(--mw-red); display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 14px; font-family: 'Vollkorn', 'Lora', serif; }
.wd-countdown b { font-size: 30px; line-height: 1; font-weight: 700; }
.wd-countdown small { font-size: 13px; }
@media (max-width: 575px) {
    .wd-hero-names h1 { font-size: 54px; }
    .wd-countdown { gap: 6px; }
    .wd-countdown .unit { width: 80px; height: 80px; padding-bottom: 12px; }
    .wd-countdown b { font-size: 24px; }
    .wd-countdown small { font-size: 11px; }
}

/* Salam & kutipan (pita sage) */
.wd-band { position: relative; color: #fff; padding: 90px 0; background: #777 center / cover no-repeat; text-align: center; }
.wd-band::before { content: ''; position: absolute; inset: 0; background: rgba(var(--mw-sage-rgb), .8); }
.wd-band > .container { position: relative; }
.wd-band .wd-quote-icon { display: inline-flex; width: 90px; height: 90px; border-radius: 50%; background: #fff; color: var(--mw-red); align-items: center; justify-content: center; font-size: 36px; box-shadow: 0 0 0 6px rgba(255,255,255,.35); margin-bottom: 26px; }
.wd-band blockquote { font-family: 'Lora', serif; font-style: italic; font-size: 24px; line-height: 1.6; max-width: 820px; margin: 0 auto 14px; }
.wd-band cite { font-family: 'Great Vibes', cursive; font-style: normal; font-size: 30px; }

/* Tokoh */
.wd-member { text-align: center; margin-bottom: 40px; }
.wd-member .photo { width: 230px; height: 230px; margin: 0 auto 20px; border-radius: 50%; padding: 8px; border: 2px dashed var(--mw-red); }
.wd-member .photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.wd-member h2 { color: var(--mw-red); font-size: 48px; line-height: 1.1; margin-bottom: 4px; }
.wd-member h3 { font-family: 'Lora', serif; font-style: italic; font-size: 20px; color: #222; margin-bottom: 10px; }
.wd-member p { margin: 0; }
.wd-member .ig { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; }
.wd-amp { font-size: 90px; color: var(--mw-sage); line-height: 1; font-family: 'Great Vibes', cursive; }

/* Cerita */
.story_section { margin-bottom: 50px; }
.story_section .img-col { position: relative; }
.wd_img_round { position: relative; margin: auto; width: 300px; height: 300px; border-radius: 50%; overflow: hidden; }
.wd_img_round img { width: 100%; height: 100%; object-fit: cover; }
.wd_img_round .overlay { position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-radius: 50%; background: rgba(var(--mw-sage-rgb), .7); opacity: 0; transition: .3s ease; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; }
.wd_img_round:hover .overlay { opacity: 1; width: 100%; height: 100%; }
.wd_post_date { position: absolute; z-index: 5; bottom: 0; width: 130px; height: 130px; padding-top: 26px; text-align: center; color: #fff; font-family: 'Vollkorn', 'Lora', serif; font-size: 22px; line-height: 1.3; }
.wd_post_date svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.wd_post_date svg path { fill: var(--mw-red); }
.wd_post_date span { display: block; padding: 0 22px; }
.wd_right { right: 12%; }
.wd_left { left: 12%; }
.story_section h2 { font-size: 40px; color: #222; margin-bottom: 8px; }
@media (max-width: 991px) {
    .story_section { text-align: center; }
    .story_section .img-col { margin-bottom: 30px; }
    .wd_right { right: calc(50% - 170px); }
    .wd_left { left: calc(50% - 170px); }
}
@media (max-width: 400px) {
    .wd_img_round { width: 250px; height: 250px; }
    .wd_post_date { width: 104px; height: 104px; padding-top: 18px; font-size: 18px; }
    .wd_right { right: calc(50% - 150px); }
    .wd_left { left: calc(50% - 150px); }
}

/* Acara */
.wd_event_section { text-align: center; margin-bottom: 40px; }
.wd_event_section > h2 { font-size: 42px; color: #222; margin-bottom: 10px; }
.wd_event_card { position: relative; border: 1px solid #eee; box-shadow: 0 8px 30px rgba(0,0,0,.06); background: #fff; }
.wd_event_card .img { height: 190px; overflow: hidden; }
.wd_event_card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.wd_event_card:hover .img img { transform: scale(1.08); }
.wd_event_card h3 { position: relative; margin: -24px 10px 0; background: var(--mw-red); color: #fff; font-size: 34px; line-height: 1.4; padding: 2px 0 4px; }
.wd_event_card h3::before, .wd_event_card h3::after { content: ''; position: absolute; bottom: -10px; border-top: 10px solid #b3131f; }
.wd_event_card h3::before { left: 0; border-left: 10px solid transparent; }
.wd_event_card h3::after { right: 0; border-right: 10px solid transparent; }
.info_box { display: flex; text-align: left; border-bottom: 1px solid #ddd; padding: 9px 20px; font-size: 15px; }
.info_box .wd_label { flex: 0 0 90px; font-weight: 700; color: #222; }
.info_box .wd_text { flex: 1; }
.info_box_last { padding: 18px 10px 24px; }
.info_box_last a { display: inline-flex; flex-direction: column; align-items: center; font-size: 14px; }
.info_box_last a .fa { font-size: 36px; margin-bottom: 4px; }
.wd-live { max-width: 640px; margin: 10px auto 0; text-align: center; padding: 30px 20px; border: 2px dashed rgba(var(--mw-sage-rgb), .8); border-radius: 20px; }
.wd-live h3 { font-size: 40px; color: var(--mw-red); }

/* Galeri */
.wd_gallery_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 10px; }
.wd_gal_img { position: relative; display: block; overflow: hidden; aspect-ratio: 1; }
.wd_gal_img img { width: 100%; height: 100%; object-fit: cover; }
.wd_gal_overlay { position: absolute; inset: 0; background: rgba(255,255,255,.8) url(../images/pattern.png); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.5); transition: all .5s; }
.wd_gal_overlay i { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--mw-red); color: var(--mw-red); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.wd_gal_img:hover .wd_gal_overlay { opacity: 1; transform: scale(1); }
@media (max-width: 767px) { .wd_gallery_grid { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 0 6px; } }
.wd-video { max-width: 900px; margin: 30px auto 0; padding: 0 12px; }

/* Hadiah */
.wd-gift-wrap { background: url(../images/pattern.png) repeat; }
.wd-gift { background: #fff; border-radius: 16px; padding: 30px 22px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.07); margin-bottom: 24px; height: calc(100% - 24px); border-top: 4px solid var(--mw-red); }
.wd-gift h3 { font-size: 38px; color: var(--mw-red); margin-bottom: 6px; }
.wd-gift .num { font-family: 'Lora', serif; font-size: 22px; font-weight: 700; letter-spacing: 1px; color: #222; word-break: break-all; }
.wd-gift p { margin: 4px 0 16px; }

/* RSVP */
.wd_rsvp_box { max-width: 760px; margin: 0 auto; background: #fff; padding: 10px 0; }
.inv-field { margin-bottom: 22px; }
.inv-label { display: block; color: var(--mw-red); font-family: 'Lato', sans-serif; font-weight: 700; font-size: 22px; margin-bottom: 8px; }
.inv-input { width: 100%; background: #f5f5f5; border: 0; border-bottom: 2px solid transparent; padding: 16px 18px; font-size: 17px; color: #333; outline: none; transition: border-color .3s; border-radius: 0; }
.inv-input:focus { border-bottom-color: var(--mw-red); }
.inv-btn { display: block; margin: 10px auto 0; background: var(--mw-red); color: #fff; border: 2px solid var(--mw-red); border-radius: 30px; padding: 12px 46px; font-family: 'Lora', serif; font-style: italic; font-size: 18px; cursor: pointer; transition: all .3s; }
.inv-btn:hover { background: #fff; color: var(--mw-red); }
.inv-btn:disabled { opacity: .6; }
.wd-wishes-title { text-align: center; font-size: 42px; color: var(--mw-red); margin: 60px 0 20px; }
.wd-wishes { max-width: 760px; margin: 0 auto; max-height: 440px; overflow-y: auto; padding: 4px 6px; }
.wd-wish { display: flex; gap: 14px; background: #fff; border: 1px solid #f0f0f0; border-left: 4px solid var(--mw-sage); padding: 14px 16px; margin-bottom: 12px; }
.wd-wish-initial { flex: 0 0 50px; height: 46px; display: flex; align-items: center; justify-content: center; color: #fff; font-family: 'Vollkorn', 'Lora', serif; font-size: 20px; font-weight: 700; padding-bottom: 6px; background: var(--mw-red); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 510 510'%3E%3Cpath fill='%23ED2437' d='M255,489.6L219.3,453.9C86.7,336.6,0,257.55,0,160.65C0,81.6,61.2,20.4,140.25,20.4c43.35,0,86.7,20.4,114.75,53.55C283.05,40.8,326.4,20.4,369.75,20.4C448.8,20.4,510,81.6,510,160.65c0,96.9-86.7,175.95-219.3,293.25L255,489.6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 510 510'%3E%3Cpath fill='%23ED2437' d='M255,489.6L219.3,453.9C86.7,336.6,0,257.55,0,160.65C0,81.6,61.2,20.4,140.25,20.4c43.35,0,86.7,20.4,114.75,53.55C283.05,40.8,326.4,20.4,369.75,20.4C448.8,20.4,510,81.6,510,160.65c0,96.9-86.7,175.95-219.3,293.25L255,489.6z'/%3E%3C/svg%3E") center / contain no-repeat; text-transform: uppercase; }
.wd-wish strong { color: #222; }
.wd-wish .att { color: var(--mw-sage); font-size: 13px; margin-left: 6px; font-weight: 700; }
.wd-wish p { margin: 2px 0; }
.wd-wish small { color: #999; }
.wd-wishes .empty { text-align: center; color: #888; }

/* Penutup & footer */
.wd-closing h2 { font-size: 62px; margin-bottom: 10px; }
.wd-closing .names { font-family: 'Great Vibes', cursive; font-size: 44px; margin-top: 10px; }
.wd_footer_section { padding: 30px 0; border-bottom: 3px solid var(--mw-red); background: url(../images/pattern.png) repeat rgba(var(--mw-sage-rgb), .7); color: #fff; text-align: center; font-size: 15px; }
.wd_footer_section a { color: #fff; font-weight: 700; }
.wd_footer_section .hearts { font-size: 22px; letter-spacing: 10px; margin-bottom: 6px; }
@media (max-width: 575px) {
    .wd-section { padding: 60px 0; }
    .wd_section_heading h1 { font-size: 42px; }
    .wd-band { padding: 70px 0; }
    .wd-band blockquote { font-size: 19px; }
    .wd-closing h2 { font-size: 50px; }
}
