/* Elarisse - tema undangan (diadaptasi dari Elarisse Wedding Photography HTML Template) */
:root {
    --el-primary: #301E0E;
    --el-secondary-2: #3B2716;
    --el-bg: #FFFCF4;
    --el-text: #56524E;
    --el-muted: #BBB8B0;
    --el-border: rgba(48, 30, 14, .23);
    --el-border-dark: rgba(255, 252, 244, .14);
    --font-heading: 'Antic Didone', serif;
    --font-body: 'Poppins', sans-serif;
    --frame: 30px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-weight: 300; font-size: 16px; line-height: 1.5; color: var(--el-text); background: var(--el-bg); overflow-x: hidden; }
a { color: var(--el-primary); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 400; color: var(--el-primary); text-transform: uppercase; line-height: 1.2; }
.el-container { max-width: 1146px; margin: 0 auto; padding: 0 24px; }
.el-section { padding: 120px 0; }
.text-center { text-align: center; }
.eyebrow { font-family: var(--font-body); font-size: 13px; font-weight: 300; letter-spacing: 6px; text-transform: uppercase; line-height: 1.2; margin-bottom: 20px; }
.heading-section { font-size: 60px; line-height: 1.1; }
.lead-serif { font-family: var(--font-heading); font-size: 26px; line-height: 1.5; color: var(--el-primary); }
.el-icon { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.2; }

/* Tombol */
.btn-el { display: inline-block; font-family: var(--font-heading); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; padding: 14px 30px; border: 1px solid var(--el-primary); color: var(--el-primary); background: transparent; cursor: pointer; transition: all .3s ease; }
.btn-el:hover { background: var(--el-primary); color: var(--el-bg); }
.btn-el.solid { background: var(--el-primary); color: var(--el-bg); }
.btn-el.solid:hover { background: var(--el-secondary-2); }
.btn-el.light { border-color: var(--el-bg); color: var(--el-bg); }
.btn-el.light:hover { background: var(--el-bg); color: var(--el-primary); }
.btn-el.solid-light { background: var(--el-bg); color: var(--el-primary); border-color: var(--el-bg); }
.btn-el.small { padding: 8px 18px; font-size: 12px; }

/* Sampul */
.el-cover { background: var(--el-bg); display: flex; align-items: center; justify-content: center; padding: var(--frame); }
.el-cover .frame { position: relative; width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center; text-align: center; background: var(--el-primary) center/cover no-repeat; color: var(--el-bg); padding: 40px 24px 60px; }
.el-cover .frame:before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(48,30,14,.2) 0%, rgba(48,30,14,.75) 70%); }
.el-cover .frame > div { position: relative; }
.el-cover h1 { color: var(--el-bg); font-size: 78px; line-height: 1; margin: 6px 0 16px; }
.el-cover .to { margin: 34px 0 26px; }
.el-cover .to small { display: block; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; opacity: .75; }
.el-cover .to strong { display: block; font-family: var(--font-heading); font-weight: 400; font-size: 28px; margin-top: 6px; }

/* Navigasi */
.el-nav { position: sticky; top: 0; z-index: 50; background: var(--el-bg); }
.el-nav .el-container { max-width: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 86px; padding: 0 40px; }
.el-nav nav { display: flex; gap: 40px; }
.el-nav nav.right { justify-content: flex-end; }
.el-nav nav a { font-family: var(--font-heading); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; position: relative; padding: 6px 0; }
.el-nav nav a:first-child.active:after, .el-nav nav a:hover:after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--el-primary); }
.el-nav .logo { font-family: var(--font-heading); font-size: 26px; letter-spacing: 2px; text-transform: uppercase; color: var(--el-primary); }

/* Hero */
.el-hero { padding: 0 var(--frame); }
.el-hero .frame { position: relative; min-height: 810px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--el-primary) center/cover no-repeat; color: var(--el-bg); padding: 80px 8% 90px; }
.el-hero .frame:before { content: ''; position: absolute; inset: 0; background: rgba(48, 30, 14, .45); }
.el-hero .frame > * { position: relative; }
.el-hero .eyebrow { text-align: center; }
.el-hero h1 { color: var(--el-bg); font-size: 110px; line-height: 1; text-align: center; margin-bottom: 40px; }
.el-hero .row { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.el-hero .row p { max-width: 640px; font-size: 16px; margin: 0; }
.el-countdown { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--el-border-dark); margin: 0 auto 50px; max-width: 640px; width: 100%; }
.el-countdown div { text-align: center; padding: 16px 6px; border-left: 1px solid var(--el-border-dark); }
.el-countdown div:first-child { border-left: 0; }
.el-countdown b { display: block; font-family: var(--font-heading); font-weight: 400; font-size: 42px; line-height: 1.1; }
.el-countdown span { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; opacity: .8; }

/* Salam / tentang */
.el-about .top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.el-stagger { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; margin-top: 60px; }
.el-stagger a:nth-child(1) { margin-top: 120px; }
.el-stagger a:nth-child(2) { margin-top: 0; }
.el-stagger a:nth-child(3) { margin-top: 50px; }
.el-stagger img { width: 100%; object-fit: cover; }
.el-stagger a:nth-child(1) img { aspect-ratio: 1; }
.el-stagger a:nth-child(2) img { aspect-ratio: 1020/1440; }
.el-stagger a:nth-child(3) img { aspect-ratio: 1; }
.el-about .quote { max-width: 940px; margin: 90px auto 0; text-align: center; }
.el-about .quote cite { display: block; margin-top: 18px; font-style: normal; font-size: 13px; letter-spacing: 5px; text-transform: uppercase; }

/* Mempelai */
.el-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 50px; }
.el-head-row p { max-width: 450px; margin: 0; }
.el-hosts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.el-hosts.single { grid-template-columns: minmax(0, 520px); justify-content: center; }
.el-host { border: 1px solid var(--el-border); padding: 24px; }
.el-host .img { overflow: hidden; margin-bottom: 26px; }
.el-host .img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .8s ease; }
.el-host:hover .img img { transform: scale(1.04); }
.el-host h3 { font-size: 34px; }
.el-host .full { font-family: var(--font-heading); font-size: 14px; letter-spacing: 5px; text-transform: uppercase; margin: 10px 0 16px; color: var(--el-primary); }
.el-host p { font-size: 15px; margin: 0; }
.el-host .ig { display: inline-block; margin-top: 16px; font-size: 13px; letter-spacing: 2px; border-bottom: 1px solid var(--el-primary); }

/* Acara (kartu layanan) */
.el-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.el-card { position: relative; border: 1px solid var(--el-border); padding: 24px 24px 40px; display: flex; flex-direction: column; background: var(--el-bg); }
.el-card h4 { font-size: 22px; margin-bottom: 14px; }
.el-card p { font-size: 14px; margin: 0 0 6px; }
.el-card .meta { font-family: var(--font-heading); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--el-primary); margin-top: 10px; }
.el-card .icon { margin-top: auto; padding-top: 30px; color: var(--el-primary); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.el-card .tag { position: absolute; right: 24px; bottom: -12px; background: var(--el-primary); color: var(--el-bg); font-family: var(--font-heading); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; padding: 6px 16px; }
.el-live { text-align: center; margin-top: 60px; }

/* Galeri */
.el-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.el-gallery a { display: block; overflow: hidden; }
.el-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s ease; }
.el-gallery a:nth-child(3n+2) { margin-top: 56px; }
.el-gallery a:hover img { transform: scale(1.05); }
.el-video { margin-top: 50px; position: relative; padding-top: 56.25%; }
.el-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Cerita (langkah proses) */
.el-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; row-gap: 50px; }
.el-steps .el-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; margin-bottom: 20px; }

/* Bagian gelap (RSVP) */
.el-dark { background: var(--el-primary); color: var(--el-bg); }
.el-dark h2, .el-dark h3 { color: var(--el-bg); }
.el-dark .eyebrow { color: var(--el-muted); }
.el-form { background: var(--el-secondary-2); padding: 50px 40px; margin-top: 50px; }
.el-form .grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.el-form .inv-field { margin-bottom: 24px; }
.el-form .inv-field:last-of-type { grid-column: 1 / -1; }
.el-form .inv-label { display: block; font-family: var(--font-heading); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #FFE8C1; margin-bottom: 8px; }
.el-form .inv-input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--el-border-dark); color: var(--el-bg); font-family: var(--font-body); font-weight: 300; font-size: 15px; padding: 8px 0 12px; border-radius: 0; }
.el-form .inv-input::placeholder { color: rgba(255, 252, 244, .5); }
.el-form .inv-input option { color: var(--el-primary); }
.el-form .inv-input:focus { outline: none; border-color: var(--el-bg); }
.el-form textarea.inv-input { resize: vertical; }
.el-form .inv-btn { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 1px; font-size: 14px; background: var(--el-bg); color: var(--el-primary); border: 0; padding: 14px 30px; cursor: pointer; }
.el-form .inv-btn:hover { background: #fff; }
.el-form .grid > .inv-btn { grid-column: 1 / -1; justify-self: start; }

/* Ucapan (testimoni) */
.el-wishes { max-width: 860px; margin: 0 auto; max-height: 640px; overflow-y: auto; }
.el-wish { text-align: center; padding: 34px 10px; border-bottom: 1px solid var(--el-border); }
.el-wish p { font-family: var(--font-heading); font-size: 26px; line-height: 1.5; color: var(--el-primary); margin: 0 0 22px; }
.el-wish .av { width: 56px; height: 56px; border-radius: 50%; background: #DEDAD0; color: var(--el-primary); font-family: var(--font-heading); font-size: 22px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.el-wish .who { font-size: 16px; color: var(--el-text); font-weight: 400; }
.el-wish small { display: block; color: var(--el-muted); font-size: 13px; }

/* Hadiah */
.el-gifts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.el-gift { border: 1px solid var(--el-border); padding: 30px 24px; }
.el-gift .bank { font-family: var(--font-heading); font-size: 22px; text-transform: uppercase; color: var(--el-primary); }
.el-gift .num { display: block; font-family: var(--font-heading); font-size: 26px; letter-spacing: 3px; color: var(--el-primary); margin: 14px 0 4px; }
.el-gift .name { display: block; font-size: 14px; margin-bottom: 22px; }

/* Penutup & footer */
.el-closing h2 { font-size: 90px; line-height: 1; margin: 20px 0; }
.el-footer { background: var(--el-primary); color: var(--el-bg); text-align: center; padding: 70px 24px 40px; }
.el-footer .logo { font-family: var(--font-heading); font-size: 34px; letter-spacing: 3px; text-transform: uppercase; }
.el-footer .line { border-top: 1px solid var(--el-border-dark); margin-top: 40px; padding-top: 26px; font-size: 14px; color: rgba(255,252,244,.7); }
.el-footer a { color: var(--el-bg); }

/* Responsif */
@media (max-width: 1024px) {
    .el-hero h1 { font-size: 70px; }
    .heading-section { font-size: 45px; }
    .el-closing h2 { font-size: 64px; }
    .el-nav nav { display: none; }
    .el-nav .el-container { grid-template-columns: 1fr; justify-items: center; min-height: 70px; }
}
@media (max-width: 767px) {
    :root { --frame: 16px; }
    .el-section { padding: 80px 0; }
    .heading-section { font-size: 35px; }
    .el-cover h1 { font-size: 48px; }
    .el-hero .frame { min-height: 640px; padding: 60px 20px 50px; }
    .el-hero h1 { font-size: 45px; margin-bottom: 30px; }
    .el-hero .row { flex-direction: column; align-items: flex-start; gap: 24px; }
    .el-countdown b { font-size: 28px; }
    .el-countdown span { letter-spacing: 2px; font-size: 10px; }
    .el-about .top, .el-head-row { grid-template-columns: 1fr; display: block; }
    .el-head-row p, .el-about .top > p { margin-top: 18px !important; }
    .el-stagger { gap: 10px; margin-top: 30px; }
    .el-stagger a:nth-child(1) { margin-top: 60px; }
    .el-stagger a:nth-child(2) { margin-top: 0; }
    .el-stagger a:nth-child(3) { margin-top: 30px; }
    .lead-serif { font-size: 21px; }
    .el-about .quote { margin-top: 60px; }
    .el-hosts { grid-template-columns: 1fr; }
    .el-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .el-gallery a:nth-child(3n+2) { margin-top: 0; }
    .el-gallery a:nth-child(even) { margin-top: 30px; }
    .el-gallery a img { aspect-ratio: 1 !important; }
    .el-form { padding: 36px 20px; }
    .el-form .grid { grid-template-columns: 1fr; }
    .el-wish p { font-size: 21px; }
    .el-closing h2 { font-size: 44px; }
}
