﻿:root {
    --primary-gold: #cbb282;
    --secondary-gold: #e4c590;
    --text-dark: #444444;
    --text-grey: #7a7a7a;
    --bg-light: #f9f9f9;
    --bg-dark: #504f48;
    --white: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: #f7f3ed;
    color: #3d3935;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Dancing Script', cursive; }
a { color: inherit; text-decoration: none; }
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
section { padding: 60px 0; position: relative; text-align: center; }
.opening-gate {
    position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 28px;
    color: #fff; text-align: center; transition: opacity .5s, visibility .5s;
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.opening-gate.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
.opening-card { max-width: 560px; padding: 35px 24px; }
.opening-card .eyebrow { font: 12px Arial, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.opening-card h1 { font-size: clamp(42px, 8vw, 78px); line-height: .95; font-weight: normal; margin: 28px 0; }
.opening-card p { font: 16px Arial, sans-serif; margin: 8px 0; }
.open-button, .btn-submit, .btn-gift, .btn-copy, .btn-more, .music-toggle { border: none; cursor: pointer; }
.open-button {
    margin-top: 20px; padding: 12px 24px; border-radius: 999px; background: var(--white); color: var(--text-dark);
    font-weight: 600; box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.music-toggle { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 48px; height: 48px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 1.1rem; }
#cover { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #172c27, #2b3f35); color: #fff; }
.content p { letter-spacing: .25em; text-transform: uppercase; font-size: .95rem; margin-bottom: 12px; }
.content h1 { font-size: clamp(46px, 8vw, 78px); margin-top: 10px; }
.snow-flurry { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.snow-flurry span { position: absolute; top: -10px; display: block; border-radius: 50%; background: rgba(255,255,255,.8); animation: fall linear infinite; }
@keyframes fall { from { transform: translate3d(0, -10px, 0); } to { transform: translate3d(0, 110vh, 0); } }
#opening, #events { background: #f7f3ed; }
.names { font-size: clamp(2rem, 4vw, 2.8rem); margin: 20px 0; }
.script-font { font-family: 'Dancing Script', cursive; font-weight: 700; }
.date-container { display: flex; justify-content: center; margin: 24px 0; }
.date-content { display: flex; align-items: center; gap: 12px; }
.date-left, .date-right { font-size: 1rem; letter-spacing: .25em; text-transform: uppercase; color: var(--text-grey); }
.date-mid { display: flex; flex-direction: column; align-items: center; }
.number-big { font-size: 3rem; font-weight: 700; line-height: 1; }
.month-bottom { font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; }
.countdown-title { margin: 18px 0 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--text-grey); }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(80px, 1fr)); gap: 12px; max-width: 520px; margin: 0 auto; }
.countdown-item { background: rgba(255,255,255,.75); border-radius: 12px; padding: 14px 8px; }
.countdown-item .num { display: block; font-size: 1.5rem; font-weight: 700; }
.countdown-item .label { font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-grey); }
#couple { background: #fff; }
.intro-note { color: var(--text-grey); margin-bottom: 10px; }
.invitation-text { max-width: 700px; margin: 0 auto 30px; line-height: 1.8; }
.profile-card { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 30px auto; max-width: 760px; }
.foto-wrapper { position: relative; width: 220px; height: 220px; }
.profile-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 6px solid #f9f0e0; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.ornamen-gold { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); object-fit: contain; pointer-events: none; }
.profile-info h3 { font-size: 2rem; margin-bottom: 6px; }
.profile-subtitle { font-weight: 500; color: var(--text-grey); margin-bottom: 4px; }
.divider-custom { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px 0; }
.wave-line { width: 120px; height: 24px; }
.center-ornament { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #d6d6d6; border-radius: 50%; background: #fff; }
.event-shell { background: rgba(0,0,0,.55); padding: 5%; border-radius: 24px; }
.event-intro { margin-bottom: 24px; font-size: .95rem; line-height: 1.7; color: #fff; }
.event-card { background: rgba(255,255,255,.95); border-radius: 18px; padding: 24px; margin-bottom: 18px; text-align: left; }
.event-title { font-size: 1.7rem; margin-bottom: 12px; }
.event-data { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 10px; }
.event-data .day, .event-data .teks-bergaris-putih { font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-grey); }
.event-data .date { font-size: 1.4rem; font-weight: 700; line-height: 1.1; }
.event-details { line-height: 1.8; color: var(--text-dark); }
.btn-map { display: inline-block; margin-top: 16px; padding: 10px 16px; background: var(--primary-gold); color: #fff; border-radius: 999px; font-size: .83rem; letter-spacing: .2em; }
#gallery .gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.gallery-item img { width: 100%; height: 180px; object-fit: cover; border-radius: 14px; display: block; }
.section-title { font-size: 2rem; margin-bottom: 10px; }
.quote { max-width: 700px; margin: 0 auto; line-height: 1.8; font-size: 1rem; color: var(--text-dark); }
.quote-footer { margin-top: 14px; font-weight: 700; color: var(--text-grey); }
.rsvp-wrapper { background: #e6e6e6; padding: 40px 20px 60px; }
.rsvp-intro { color: var(--text-grey); margin: 0 auto 20px; max-width: 620px; }
.rsvp-box { max-width: 540px; margin: 0 auto; background: #fff; padding: 24px; border-radius: 18px; box-shadow: 0 10px 25px rgba(0,0,0,.08); }
.form-group { margin-bottom: 14px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group select { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; }
.row-flex { display: flex; gap: 12px; }
.row-flex .form-group { flex: 1; }
.btn-submit { width: 100%; padding: 12px; background: var(--primary-gold); color: #fff; border-radius: 10px; margin-top: 8px; }
.rsvp-message { margin-top: 12px; color: var(--text-dark); }
#gift { background: linear-gradient(135deg, #5d4b1e, #c6a96d); color: #fff; }
.gift-intro { max-width: 620px; margin: 0 auto 22px; line-height: 1.8; }
.bank-accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.bank-card { background: rgba(255,255,255,.9); color: var(--text-dark); border-radius: 14px; padding: 18px; }
.bank-card h4 { margin-bottom: 8px; }
.btn-copy, .btn-gift, .btn-more { padding: 12px 18px; border-radius: 999px; margin-top: 12px; background: #fff; color: var(--text-dark); }
.hidden { display: none; }
#wishes { background: #fff; }
.wishes-container { max-width: 760px; margin: 0 auto; padding: 24px; border: 1px solid #eee; border-radius: 20px; }
.wish-input { width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 10px; margin: 14px 0 8px; }
.wish-count { text-align: left; margin-bottom: 14px; font-size: .9rem; color: var(--text-grey); }
.wish-list { text-align: left; display: grid; gap: 12px; }
.wish-item { padding: 12px 0; border-bottom: 1px solid #eee; }
.wish-item .time { font-size: .8rem; color: var(--text-grey); margin-left: 8px; }
footer { background: #fff; padding: 40px 0 60px; text-align: center; }
.footer-caption { font-size: .8rem; margin-top: 20px; }
.footer-names { font-size: 1.7rem; font-family: 'Dancing Script', cursive; margin: 8px 0; }
.footer-small { margin-top: 30px; font-size: .7rem; }
.footer-logo { margin-top: 20px; font-size: 1.4rem; color: var(--primary-gold); }
@media (max-width: 767px) {
    .profile-card { flex-direction: column; }
    .row-flex { flex-direction: column; }
    .bank-accounts, #gallery .gallery-grid { grid-template-columns: 1fr; }
    .countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .event-data { flex-direction: column; align-items: flex-start; }
}
