/* Weddingo - tema undangan watercolor biru & terakota (diadaptasi dari template Weddingo Wedding Planner) */
:root { --wd-primary: #C78665; --wd-slate: #465E6E; --wd-black: #000; --wd-text: #666; --wd-gray: #EDF5F7; --wd-gray2: #ECF0F2; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.wd { margin: 0; font-family: 'Marcellus', serif; font-size: 16px; line-height: 28px; color: var(--wd-text); background: #fff; overflow-x: hidden; }
.wd img { max-width: 100%; display: block; }
.wd h1, .wd h2, .wd h3 { font-family: 'Marcellus', serif; font-weight: 400; color: var(--wd-black); margin: 0; line-height: 1.25; }
.wd p { margin: 0 0 1em; }
.wd a { color: var(--wd-primary); }
.wd-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.wd-narrow { max-width: 820px; text-align: center; }
.wd-script { font-family: 'Alex Brush', cursive !important; font-weight: 400; }

/* Tombol khas: blok terakota dengan garis dalam putih */
.wd-btn { position: relative; display: inline-block; background: var(--wd-primary); color: #fff !important; border: 0; padding: 5px; font: 400 16px/1 'Marcellus', serif; text-decoration: none; cursor: pointer; transition: background .3s; }
.wd-btn > span { display: block; border: 1px solid rgba(255,255,255,.9); padding: 14px 40px; }
.wd-btn:hover { background: var(--wd-slate); }
.wd-btn-sm > span { padding: 9px 22px; font-size: 14px; }
.wd-link { text-decoration: none; border-bottom: 1px solid currentColor; }

/* Judul section */
.wd-section-top { text-align: center; margin-bottom: 50px; }
.wd-section-top.wd-left { text-align: left; margin-bottom: 30px; }
.wd-sprig { color: var(--wd-primary); margin-bottom: 14px; display: flex; justify-content: center; }
.wd-subtitle { color: var(--wd-primary); font-size: 16px; letter-spacing: 3.6px; text-transform: uppercase; margin-bottom: 16px; line-height: 1.4; }
.wd-title { font: 400 clamp(52px, 7vw, 80px)/1 'Alex Brush', cursive !important; color: var(--wd-black); }
.wd-title-sm { font-size: clamp(40px, 5vw, 60px) !important; line-height: 1.15 !important; }
.wd-top-text { max-width: 640px; margin: 20px auto 0 !important; }

/* Sampul */
.wd-cover { background: var(--wd-gray) url('../img/paper-bg.png') center/cover no-repeat; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.wd-cover-f1 { position: absolute; width: 260px; right: -60px; top: -40px; }
.wd-cover-f2 { position: absolute; width: 280px; left: -70px; bottom: -40px; }
.wd-cover-inner { position: relative; z-index: 1; padding: 20px; max-width: 600px; }
.wd-cover-photo { width: 190px; height: 190px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; box-shadow: -12px 8px 0 #d6d6d6; outline: 1px solid #000; outline-offset: 8px; }
.wd-cover-photo img { width: 100%; height: 100%; object-fit: cover; }
.wd-cover h1 { font-size: clamp(60px, 12vw, 110px); line-height: .95; color: #000; margin-bottom: 10px; }
.wd-cover-date { font-size: 26px; text-transform: uppercase; color: #555; }
.wd-guest { margin: 16px auto 26px; }
.wd-guest small { display: block; font-size: 14px; }
.wd-guest strong { display: block; font: 400 36px/1.2 'Alex Brush', cursive; color: var(--wd-black); }

/* Banner */
.wd-banner { position: relative; overflow: hidden; padding: 120px 0 110px; background: var(--wd-gray) url('../img/paper-bg.png') center/cover no-repeat; }
.wd-banner-s1 { position: absolute; left: 0; top: 0; width: 280px; }
.wd-banner-s2 { position: absolute; right: 30px; top: 10px; width: 200px; opacity: .9; }
.wd-banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.wd-banner-contents { text-align: center; }
.wd-banner-contents h2 { font-size: clamp(70px, 11vw, 150px) !important; line-height: .88 !important; color: #000; }
.wd-banner-text { max-width: 280px; margin: 26px auto 0 !important; }
.wd-banner-date { font-size: clamp(30px, 3.6vw, 45px); text-transform: uppercase; color: var(--wd-text); margin: 14px 0 44px; line-height: 1.2; }
.wd-banner-image { position: relative; max-width: 520px; margin: 0 auto; width: 100%; }
.wd-main-thumb { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: -20px 0 0 #d6d6d6; outline: 1px solid #000; outline-offset: -1px; }
.wd-main-thumb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; }
.wd-main-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wd-thumb-s1 { position: absolute; z-index: 2; width: 330px; left: -110px; bottom: -110px; }
.wd-thumb-s2 { position: absolute; z-index: 2; width: 220px; right: -90px; top: -60px; }

/* Acara */
.wd-feature { padding: 120px 0 100px; }
.wd-feature-row { display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; gap: 30px; }
.wd-feature-block { flex: 1 1 260px; max-width: 340px; text-align: center; }
.wd-feature-icon { width: 100px; height: 100px; margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; }
.wd-feature-icon img { max-height: 100px; }
.wd-feature-block h3 { font-size: 28px; margin-bottom: 14px; }
.wd-venue strong { color: #333; font-weight: 400; }
.wd-feature-line { width: 1px; background: linear-gradient(transparent, var(--wd-primary), transparent); align-self: stretch; }
.wd-live { text-align: center; margin-top: 60px; }
.wd-live h3 { font-size: 30px; margin-bottom: 10px; }

/* Hitung mundur */
.wd-eventtime { position: relative; overflow: hidden; padding: 120px 0; background: var(--wd-gray2); text-align: center; }
.wd-counter-s1 { position: absolute; left: 4%; bottom: 10px; width: 140px; }
.wd-counter-s2 { position: absolute; right: 0; top: 0; width: 260px; }
.wd-counter-thumb { position: absolute; width: 260px; height: 260px; border-radius: 50%; overflow: hidden; border: 10px solid #fff; box-shadow: 0 10px 40px rgba(0,0,0,.08); }
.wd-counter-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wd-ct-1 { left: 3%; top: 60px; }
.wd-ct-2 { right: 3%; bottom: 60px; }
.wd-eventtime-content { max-width: 640px; margin: 0 auto; }
.wd-eventtime-text { font-size: 18px; margin-bottom: 36px !important; }
.wd-countdown { display: flex; justify-content: center; gap: 16px; }
.wd-countdown div { width: 120px; padding: 20px 0 14px; background: #fff; border: 1px solid #d9d9d9; position: relative; }
.wd-countdown div::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(199,134,101,.4); pointer-events: none; }
.wd-countdown b { display: block; font: 400 48px/1.1 'Marcellus', serif; color: var(--wd-primary); }
.wd-countdown span { font-size: 14px; text-transform: uppercase; letter-spacing: 2px; }

/* Salam */
.wd-greeting { padding: 110px 0 60px; }
.wd-quote { margin: 30px 0 0; padding: 30px 20px; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.wd-quote p { font-size: 21px; line-height: 1.7; color: var(--wd-slate); }
.wd-quote cite { font-style: normal; color: var(--wd-primary); letter-spacing: 2px; text-transform: uppercase; font-size: 14px; }

/* Tokoh */
.wd-bridegroom { position: relative; overflow: hidden; padding: 100px 0 120px; }
.wd-bg-shape { position: absolute; left: -40px; bottom: 20px; width: 220px; opacity: .8; }
.wd-bg-row { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 40px; align-items: center; }
.wd-bg-row.is-one { grid-template-columns: 1fr 1.2fr; max-width: 900px; margin: 0 auto; }
.wd-bg-row.is-one .wd-bg-img { order: -1; }
.wd-person-box h3 { font-size: 30px; margin-bottom: 6px; }
.wd-person-box.is-right { text-align: right; }
.wd-designation { color: var(--wd-primary); text-transform: uppercase; letter-spacing: 2px; font-size: 14px; margin-bottom: 4px !important; }
.wd-parents { color: #333; }
.wd-ig { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.wd-bg-img { position: relative; display: flex; justify-content: center; gap: 0; padding: 40px 0; }
.wd-bg-photo { position: relative; z-index: 1; width: 55%; aspect-ratio: 3 / 4.4; border-radius: 300px 300px 0 0; overflow: hidden; border: 8px solid #fff; box-shadow: 0 10px 40px rgba(0,0,0,.1); }
.wd-bg-photo.p1 { margin-left: -12%; margin-top: 70px; }
.wd-bg-photo img { width: 100%; height: 100%; object-fit: cover; }
.wd-bg-row.is-one .wd-bg-photo { width: 70%; }
.wd-bg-s1 { position: absolute; z-index: 2; width: 180px; left: -30px; bottom: 0; }
.wd-bg-s2 { position: absolute; z-index: 2; width: 150px; right: -20px; top: 0; }

/* Cerita */
.wd-story { position: relative; overflow: hidden; padding: 110px 0; background: var(--wd-gray); }
.wd-story-s1 { position: absolute; left: 20px; top: 40px; width: 150px; }
.wd-story-s4 { position: absolute; right: 20px; bottom: 60px; width: 150px; }
.wd-story-item { display: grid; grid-template-columns: 7fr 5fr; gap: 50px; align-items: center; margin-bottom: 70px; }
.wd-story-item.is-reverse { grid-template-columns: 5fr 7fr; }
.wd-story-item.is-reverse .wd-story-thumb { order: 2; }
.wd-story-thumb { position: relative; }
.wd-story-thumb img { width: 100%; aspect-ratio: 490 / 345; object-fit: cover; border-radius: 20px; }
.wd-story-date { position: absolute; left: 30px; bottom: -22px; background: var(--wd-primary); color: #fff; font-size: 16px; }
.wd-story-date { outline: 1px solid rgba(255,255,255,.9); outline-offset: -6px; padding: 10px 26px; }
.wd-story-content h3 { font-size: 34px; margin-bottom: 14px; }

/* Galeri */
.wd-gallery { position: relative; overflow: hidden; padding: 110px 0; }
.wd-gallery-leaves { position: absolute; right: -30px; top: 20px; width: 240px; }
.wd-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wd-gallery-grid a { display: block; overflow: hidden; border-radius: 16px; }
.wd-gallery-grid a:nth-child(4n+1), .wd-gallery-grid a:nth-child(4n+4) { grid-row: span 2; }
.wd-gallery-grid img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; transition: transform .6s; }
.wd-gallery-grid a:hover img { transform: scale(1.06); }
.wd-video { position: relative; padding-top: 56.25%; margin-top: 30px; }
.wd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 16px; }

/* Hadiah */
.wd-gift { padding: 110px 0; background: var(--wd-gray2); }
.wd-gift-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.wd-gift-card { flex: 1 1 280px; max-width: 360px; background: #fff; padding: 40px 26px; text-align: center; border: 1px solid #e0e0e0; outline: 1px solid #e0e0e0; outline-offset: -10px; }
.wd-gift-card small { display: block; font-size: 14px; letter-spacing: 3px; text-transform: uppercase; color: var(--wd-primary); }
.wd-gift-card strong { display: block; font: 400 28px/1.4 'Marcellus', serif; color: #000; margin: 10px 0 2px; }
.wd-gift-card > span { display: block; margin-bottom: 18px; }
.wd-gift-card p { margin: 10px 0 18px; }

/* RSVP */
.wd-contact { position: relative; overflow: hidden; padding: 110px 0; background: var(--wd-gray) url('../img/paper-bg.png') center/cover no-repeat; }
.wd-contact-s1 { position: absolute; left: 0; bottom: 0; width: 260px; transform: rotate(180deg); }
.wd-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.wd-contact-form { background: #fff; padding: 50px 44px; box-shadow: 0 10px 40px rgba(0,0,0,.05); }
.wd .inv-field { margin-bottom: 18px; }
.wd .inv-label { display: block; font-size: 15px; color: #000; margin-bottom: 6px; }
.wd .inv-input { width: 100%; padding: 13px 18px; border: 1px solid #C8C8C8; background: transparent; font: 400 16px 'Marcellus', serif; color: #333; outline: none; border-radius: 0; }
.wd .inv-input:focus { border-color: var(--wd-primary); }
.wd .inv-btn { width: 100%; padding: 16px; outline: 1px solid rgba(255,255,255,.9); outline-offset: -6px; }
.wd-contact-thumb { position: relative; max-width: 360px; margin: 0 auto 40px; }
.wd-blob { position: absolute; width: 78%; right: -30px; top: -20px; }
.wd-thumb-photo { position: relative; width: 78%; aspect-ratio: 4 / 5; border-radius: 200px 200px 0 0; overflow: hidden; }
.wd-thumb-photo img { width: 100%; height: 100%; object-fit: cover; }
.wd-wishes-wrap h3 { font: 400 44px/1.2 'Alex Brush', cursive; margin-bottom: 14px; }
.wd-wishes { max-height: 380px; overflow-y: auto; padding-right: 6px; }
.wd-wish { background: rgba(255,255,255,.8); padding: 14px 18px; margin-bottom: 10px; border-left: 3px solid var(--wd-primary); }
.wd-wish-top { display: flex; justify-content: space-between; gap: 10px; }
.wd-wish-top strong { color: #000; font-weight: 400; font-size: 17px; }
.wd-wish-top em { font-style: normal; font-size: 13px; color: var(--wd-primary); white-space: nowrap; }
.wd-wish p { margin: 4px 0; }
.wd-wish small { color: #999; }

/* Footer */
.wd-footer { position: relative; overflow: hidden; padding: 110px 0 50px; text-align: center; background: #fff; }
.wd-footer-s1 { position: absolute; left: 20px; top: 30px; width: 170px; }
.wd-footer-s2 { position: absolute; right: 20px; bottom: 30px; width: 170px; }
.wd-footer h2 { font-size: clamp(60px, 9vw, 100px); color: #000; line-height: 1; margin: 10px 0 16px; }
.wd-signature { color: var(--wd-slate); }
.wd-credit { margin-top: 50px !important; font-size: 14px; }

@media (max-width: 1199px) {
    .wd-counter-thumb { width: 180px; height: 180px; }
    .wd-ct-1 { left: 1%; }
    .wd-ct-2 { right: 1%; }
}
@media (max-width: 991px) {
    .wd-banner { padding: 90px 0 120px; }
    .wd-banner-grid { grid-template-columns: 1fr; gap: 90px; }
    .wd-banner-image { max-width: 380px; }
    .wd-feature-line { display: none; }
    .wd .wd-counter-thumb { display: none; }
    .wd-bg-row, .wd-bg-row.is-one { grid-template-columns: 1fr; text-align: center; }
    .wd-person-box.is-right { text-align: center; }
    .wd-bg-img { max-width: 460px; margin: 0 auto; width: 100%; }
    .wd-story-item, .wd-story-item.is-reverse { grid-template-columns: 1fr; gap: 40px; }
    .wd-story-item.is-reverse .wd-story-thumb { order: 0; }
    .wd-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .wd-contact-grid { grid-template-columns: 1fr; }
    .wd-contact-thumb { display: none; }
    .wd .wd-bg-shape, .wd .wd-counter-s1 { display: none; }
}
@media (max-width: 575px) {
    .wd-feature, .wd-eventtime, .wd-bridegroom, .wd-story, .wd-gallery, .wd-gift, .wd-contact { padding: 80px 0; }
    .wd-banner-s1 { width: 180px; }
    .wd .wd-banner-s2, .wd .wd-thumb-s2 { display: none; }
    .wd-thumb-s1 { width: 220px; left: -40px; bottom: -80px; }
    .wd-main-thumb { box-shadow: -12px 0 0 #d6d6d6; }
    .wd-countdown { gap: 6px; }
    .wd-countdown div { width: 76px; padding: 14px 0 10px; }
    .wd-countdown b { font-size: 34px; }
    .wd-countdown span { font-size: 11px; letter-spacing: 1px; }
    .wd-contact-form { padding: 40px 22px; }
    .wd-gallery-grid { gap: 10px; }
    .wd-cover-f1 { width: 180px; }
    .wd-cover-f2 { width: 200px; }
    .wd-footer { padding: 130px 0 120px; }
    .wd-footer-s1 { width: 100px; top: 0; left: -10px; }
    .wd-footer-s2 { width: 100px; bottom: 0; right: -10px; }
    .wd .wd-story-s1, .wd .wd-story-s4 { width: 90px; opacity: .6; }
    .wd-story-s1 { top: 10px; left: -10px; }
    .wd-counter-s2 { width: 160px; }
}
