/* Happy Wedding - tema undangan (diadaptasi dari Happy Wedding - Wedding Event & Planner HTML Template) */
:root {
    --hw-primary: #d65679;
    --hw-dark: #333333;
    --hw-text: #777777;
    --hw-lighter: #f7f7f7;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; font-size: 14px; line-height: 1.7; color: var(--hw-text); background: #fff; overflow-x: hidden; }
a { color: var(--hw-primary); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { font-family: 'Playball', cursive; font-weight: 400; color: var(--hw-dark); line-height: 1.3; }
.hw-container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.hw-section { padding: 100px 0; position: relative; }
.hw-lighter { background: var(--hw-lighter); }
.bg-bottom { background-repeat: no-repeat; background-position: center bottom; background-size: 100% auto; }
.text-center { text-align: center; }
.hw-icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; fill: currentColor; }

/* Judul section */
.section-title { text-align: center; max-width: 620px; margin: 0 auto 50px; }
.section-title h2 { font-size: 42px; }
.section-title .divider { display: block; width: 200px; height: 20px; margin: 12px auto 16px; background: var(--hw-primary);
    -webkit-mask: url(../img/section-title-after.png) center/contain no-repeat; mask: url(../img/section-title-after.png) center/contain no-repeat; }
.section-title p { font-style: italic; font-size: 15px; }

/* Tombol */
.btn-hw { display: inline-block; background: var(--hw-primary); color: #fff; border: 1px solid var(--hw-primary); border-radius: 3px; padding: 9px 26px; font-family: 'Open Sans', sans-serif; font-size: 14px; cursor: pointer; transition: all .3s ease; }
.btn-hw:hover { background: color-mix(in srgb, var(--hw-primary) 80%, #000); color: #fff; }
.btn-hw.outline { background: transparent; color: var(--hw-primary); }
.btn-hw.outline:hover { background: var(--hw-primary); color: #fff; }
.btn-hw.white { background: #fff; color: var(--hw-primary); border-color: #fff; }
.btn-hw.sm { padding: 5px 16px; font-size: 12px; }

/* Logo teks "Happy ♡ Wedding" */
.hw-logo { font-family: 'Playball', cursive; color: var(--hw-primary); font-size: 32px; line-height: 1.2; display: inline-flex; align-items: center; gap: 10px; }
.hw-logo .hw-icon { font-size: .8em; }

/* Sampul */
.hw-cover { display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; background: #f6c9d6 url(../img/p20.jpg) repeat; }
.hw-cover .box { background: rgba(255,255,255,.88); border-radius: 12px; padding: 40px 30px 46px; max-width: 520px; width: 100%; box-shadow: 0 20px 50px rgba(214, 86, 121, .18); position: relative; overflow: hidden; }
.hw-cover .box:after { content: ''; position: absolute; right: 0; bottom: 0; width: 160px; height: 150px; background: url(../img/bg-flower6.png) right bottom / contain no-repeat; opacity: .8; pointer-events: none; }
.hw-cover .doves { width: 200px; margin: 0 auto 10px; }
.hw-cover .headline { color: var(--hw-text); margin: 6px 0 4px; }
.hw-cover h1 { font-size: 50px; color: var(--hw-dark); margin-bottom: 6px; }
.hw-cover .guest { margin: 26px 0; }
.hw-cover .guest small { display: block; font-style: italic; }
.hw-cover .guest strong { display: block; font-family: 'Playball', cursive; font-weight: 400; font-size: 30px; color: var(--hw-primary); }

/* Header */
.hw-header { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 50; }
.hw-header .names { display: flex; align-items: flex-end; justify-content: center; gap: 30px; padding: 8px 15px 4px; }
.hw-header .person { text-align: center; }
.hw-header .person .pill { display: inline-block; background: var(--hw-primary); color: #fff; font-family: 'Playball', cursive; font-size: 17px; padding: 0 22px; border-radius: 0 0 12px 12px; margin-top: -8px; }
.hw-header .person b { display: block; font-family: 'Playball', cursive; font-weight: 400; font-size: 24px; color: var(--hw-dark); }
.hw-header nav { display: flex; justify-content: safe center; gap: 30px; padding: 6px 15px 10px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.hw-header nav::-webkit-scrollbar { display: none; }
.hw-header nav a { font-size: 12px; text-transform: uppercase; color: #999; padding-bottom: 4px; }
.hw-header nav a:first-child { color: var(--hw-dark); border-bottom: 2px solid var(--hw-primary); }
.hw-header nav a:hover { color: var(--hw-primary); }

/* Hero */
.hw-hero { position: relative; min-height: 680px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; background: #caa center/cover no-repeat; padding: 80px 15px; }
.hw-hero:before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.hw-hero > div { position: relative; }
.hw-hero .doves { width: 200px; margin: 0 auto 10px; }
.hw-hero .heart-big { font-size: 60px; color: #fff; margin-bottom: 10px; }
.hw-hero h1 { color: #fff; font-size: 64px; line-height: 1.1; text-transform: uppercase; }
.hw-hero .sub { font-family: 'Playball', cursive; font-size: 26px; margin: 12px 0 26px; }

/* Salam */
.hw-greeting .quote { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 10px; padding: 36px 40px; position: relative; overflow: hidden; box-shadow: 0 6px 30px rgba(0,0,0,.05); text-align: center; }
.hw-greeting .quote:after { content: ''; position: absolute; right: 0; bottom: 0; width: 160px; height: 150px; background: url(../img/bg-flower6.png) right bottom / contain no-repeat; pointer-events: none; }
.hw-greeting .quote p { font-style: italic; font-size: 16px; position: relative; z-index: 1; }
.hw-greeting .quote cite { display: block; margin-top: 12px; font-style: normal; text-transform: uppercase; color: var(--hw-dark); position: relative; z-index: 1; }

/* Mempelai */
.hw-couple { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.couple { flex: 0 1 360px; text-align: center; }
.couple-thumb { overflow: hidden; border-radius: 6px; }
.couple-thumb img { width: 100%; aspect-ratio: 360/400; object-fit: cover; transition: transform .6s ease; }
.couple:hover .couple-thumb img { transform: scale(1.05); }
.couple-details { position: relative; background: #fff; margin: -40px 20px 0; border-radius: 6px; padding: 20px 16px 22px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.couple-details .name { font-size: 28px; }
.couple-details .title span { display: inline-block; background: var(--hw-primary); color: #fff; font-family: 'Playball', cursive; font-size: 17px; font-weight: 400; padding: 0 22px; border-radius: 12px; margin: 6px 0 10px; }
.couple-details p { font-size: 13px; }
.couple-details .ig { display: inline-block; margin-top: 8px; font-size: 13px; }
.hw-countdown-wrap { margin-top: 70px; text-align: center; }
.hw-countdown-wrap h3 { font-size: 34px; }
.hw-countdown { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 20px; }
.hw-countdown div { width: 128px; height: 128px; background: url(../img/date-bg.png) center/contain no-repeat; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hw-countdown b { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 36px; line-height: 1.1; color: var(--hw-dark); }
.hw-countdown span { font-size: 13px; color: var(--hw-primary); }

/* Cerita (timeline) */
.story-row { display: grid; grid-template-columns: 1fr 1.9fr; gap: 20px; align-items: center; margin-bottom: 22px; }
.story-row .date { font-family: 'Playball', cursive; font-size: 40px; color: #888; padding-left: 20px; }
.story-row .box { position: relative; overflow: hidden; background: #eee; border-radius: 8px; padding: 26px 20px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.story-row .box:after { content: ''; position: absolute; right: 0; bottom: 0; width: 140px; height: 130px; background: url(../img/bg-flower6.png) right bottom / contain no-repeat; opacity: .6; pointer-events: none; }
.story-row .box img { width: 130px; height: 130px; object-fit: cover; border-radius: 50%; border: 4px solid #fff; }
.story-row .box h4 { font-size: 24px; margin-bottom: 6px; }
.story-row .box > div { position: relative; z-index: 1; }
.story-row.alt { grid-template-columns: 1.9fr 1fr; }
.story-row.alt .date { order: 2; }
.story-row.alt .box { background: var(--hw-primary); color: #fff; }
.story-row.alt .box h4 { color: #fff; }

/* Acara */
.hw-events { display: grid; gap: 40px; max-width: 980px; margin: 0 auto; }
.event { display: grid; grid-template-columns: 1fr 2fr; background: var(--hw-lighter); border-radius: 6px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.05); }
.event.flip { grid-template-columns: 2fr 1fr; }
.event.flip .entry-header { order: 2; }
.entry-header { position: relative; min-height: 260px; background: #ddd center/cover no-repeat; }
.entry-date { position: absolute; left: 20px; bottom: 20px; background: var(--hw-primary); color: #fff; text-align: center; padding: 8px 14px; font-size: 26px; line-height: 1.1; border-radius: 3px; font-family: 'Playfair Display', serif; }
.entry-date span { display: block; font-size: 13px; letter-spacing: 1px; font-family: 'Open Sans', sans-serif; font-weight: 700; }
.entry-content { padding: 34px 44px; }
.entry-content h4 { font-size: 30px; color: var(--hw-dark); }
.entry-meta { list-style: none; margin: 10px 0 16px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.entry-meta li { display: flex; align-items: flex-start; gap: 6px; }
.entry-meta .hw-icon { color: var(--hw-primary); margin-top: 3px; flex: none; }
.entry-content .venue { color: var(--hw-dark); font-weight: 600; margin-bottom: 14px; }
.hw-live { text-align: center; margin-top: 50px; }

/* Parallax */
.hw-parallax { position: relative; text-align: center; padding: 110px 15px; background: #ccc center/cover no-repeat fixed; }
.hw-parallax:before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.8); }
.hw-parallax > * { position: relative; }
.hw-parallax h2 { font-size: 52px; color: var(--hw-dark); }
.hw-parallax p { font-size: 17px; font-style: italic; }

/* Galeri */
.hw-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hw-gallery a { position: relative; display: block; overflow: hidden; border-radius: 4px; }
.hw-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s; }
.hw-gallery a:after { content: '+'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 40px; font-weight: 300; background: color-mix(in srgb, var(--hw-primary) 80%, transparent); opacity: 0; transition: opacity .35s; }
.hw-gallery a:hover:after { opacity: 1; }
.hw-gallery a:hover img { transform: scale(1.08); }
.hw-video { max-width: 900px; margin: 40px auto 0; position: relative; padding-top: 50.6%; }
.hw-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; }

/* Hadiah (kartu testimoni) */
.hw-gifts { display: grid; gap: 16px; max-width: 900px; margin: 0 auto; }
.hw-gift { position: relative; overflow: hidden; background: #fff; border-radius: 16px; padding: 30px 30px; text-align: center; box-shadow: 0 6px 24px rgba(0,0,0,.04); }
.hw-gift:after { content: ''; position: absolute; right: 0; bottom: 0; width: 160px; height: 150px; background: url(../img/bg-flower6.png) right bottom / contain no-repeat; pointer-events: none; }
.hw-gift > * { position: relative; z-index: 1; }
.hw-gift .num { display: block; font-size: 22px; color: var(--hw-dark); letter-spacing: 2px; }
.hw-gift h4 { font-family: 'Open Sans', sans-serif; text-transform: uppercase; font-size: 17px; color: var(--hw-dark); margin-top: 10px; }
.hw-gift small { display: block; margin-bottom: 12px; }

/* RSVP */
.hw-rsvp-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 30px; align-items: start; }
.hw-rsvp { background: var(--hw-primary); padding: 40px; border-radius: 4px; }
.hw-rsvp h3 { color: #fff; text-align: center; font-size: 38px; margin-bottom: 16px; }
.hw-rsvp .inv-field { margin-bottom: 16px; }
.hw-rsvp .inv-label { display: block; color: #fff; font-weight: 600; margin-bottom: 5px; }
.hw-rsvp .inv-input { width: 100%; background: #fff; border: 1px solid #fff; border-radius: 3px; padding: 9px 12px; font-family: 'Open Sans', sans-serif; font-size: 14px; color: var(--hw-dark); }
.hw-rsvp .inv-input:focus { outline: 2px solid rgba(255,255,255,.5); }
.hw-rsvp textarea.inv-input { resize: vertical; }
.hw-rsvp .inv-btn { display: block; width: 100%; background: var(--hw-dark); color: #fff; border: 0; border-radius: 3px; padding: 12px; font-family: 'Open Sans', sans-serif; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; }
.hw-rsvp .inv-btn:hover { background: #000; }
.hw-wishes h3 { font-size: 34px; text-align: center; }
.hw-wishes .list { max-height: 560px; overflow-y: auto; margin-top: 16px; }
.hw-wish { position: relative; overflow: hidden; background: #fff; border-radius: 12px; padding: 20px 22px; margin-bottom: 12px; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.hw-wish:after { content: ''; position: absolute; right: 0; bottom: 0; width: 90px; height: 84px; background: url(../img/bg-flower6.png) right bottom / contain no-repeat; opacity: .7; pointer-events: none; }
.hw-wish > * { position: relative; z-index: 1; }
.hw-wish h5 { font-family: 'Open Sans', sans-serif; text-transform: uppercase; font-size: 14px; color: var(--hw-dark); }
.hw-wish small { color: var(--hw-primary); }

/* Penutup & footer */
.hw-closing .silhouette { width: 220px; margin: 0 auto 20px; opacity: .9; }
.hw-closing h2 { font-size: 56px; color: var(--hw-primary); margin: 10px 0; }
.hw-footer { background: #222; color: #aaa; text-align: center; padding: 50px 15px 30px; }
.hw-footer .hw-logo { color: #fff; }
.hw-footer .copy { border-top: 1px solid #333; margin-top: 30px; padding-top: 20px; font-size: 13px; }

/* Responsif */
@media (max-width: 991px) {
    .hw-rsvp-grid { grid-template-columns: 1fr; }
    .event, .event.flip { grid-template-columns: 1fr; }
    .event.flip .entry-header { order: 0; }
}
@media (max-width: 767px) {
    .hw-section { padding: 70px 0; }
    .section-title h2 { font-size: 36px; }
    .hw-header .names { gap: 12px; }
    .hw-header .person b { font-size: 18px; }
    .hw-header .person .pill { font-size: 13px; padding: 0 12px; }
    .hw-header .hw-logo { font-size: 22px; }
    .hw-hero { min-height: 560px; }
    .hw-hero h1 { font-size: 40px; }
    .hw-cover h1 { font-size: 40px; }
    .hw-countdown { gap: 4px; }
    .hw-countdown div { width: 82px; height: 82px; }
    .hw-countdown b { font-size: 24px; }
    .hw-countdown span { font-size: 11px; }
    .story-row, .story-row.alt { grid-template-columns: 1fr; gap: 6px; }
    .story-row.alt .date { order: 0; }
    .story-row .date { font-size: 32px; padding-left: 0; text-align: center; }
    .story-row .box { grid-template-columns: 1fr; text-align: center; }
    .story-row .box img { margin: 0 auto; }
    .entry-content { padding: 26px 22px; }
    .hw-gallery { grid-template-columns: repeat(2, 1fr); }
    .hw-parallax { background-attachment: scroll; padding: 80px 15px; }
    .hw-parallax h2 { font-size: 40px; }
    .hw-rsvp { padding: 30px 20px; }
    .hw-closing h2 { font-size: 44px; }
}
