/* ==========================================
   1. GLOBAL STYLES & VARIABLES
   ================================---------- */
.COVER * {
    box-sizing: border-box;
}

:root {
    --black: #111;
    --charcoal: #1b1b1b;
    --white: #f4f1ec;
    --muted: #aaa49c;
    --gold: #c5ad86;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #111;
    color: var(--white);
    font-family: var(--sans);
    font-weight: 300;
}

body.locked {
    overflow: hidden;
}

/* Background Grain Effect */
.grain {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 20;
    opacity: .08;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}


/* ==========================================
   2. COVER SECTION (HALAMAN DEPAN)
   ================================---------- */
.cover {
    min-height: 100svh;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #151515;
}

.cover-image, 
.quote-bg, 
.rsvp-image {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
}


.cover-image {
    background-image: url("assets/images/UTAMA.jpg");
    background-size: cover;
    background-position: center 23%;
    background-repeat: no-repeat;
    filter: grayscale(1);
    transform: scale(1);
}


.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.27), rgba(0,0,0,.72)), 
                linear-gradient(0deg, rgba(0,0,0,.55), transparent 35%, rgba(0,0,0,.25));
}

.cover-content {
    position: relative;
    text-align: center;
    max-width: 720px;
    padding: 90px 24px 110px;
    z-index: 1;
}

.eyebrow {
    font-size: 9px;
    letter-spacing: .3em;
    color: var(--gold);
    font-weight: 500;
}

.eyebrow.light {
    color: #e6ded1;
}

.cover-names {
    font: 400 clamp(4rem, 12vw, 8.7rem)/.9 var(--serif);
    letter-spacing: -.055em;
    margin: 28px 0 25px;
}

.cover-names em, 
.display-title em, 
.footer h2 em {
    font-weight: 400;
    color: var(--gold);
}

.thin-rule {
    display: block;
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 20px;
}

.cover-date {
    letter-spacing: .28em;
    font-size: 11px;
}

.cover-intro {
    font: italic 18px/1.55 var(--serif);
    color: #e3ded7;
    margin: 30px 0 34px;
}

.guest-label {
    font-size: 10px;
    color: #c6c0b8;
    margin-bottom: 4px;
}

.guest-name {
    font: italic 21px var(--serif);
    margin: 0 0 23px;
}


/* ==========================================
   3. COMPONENTS & BUTTONS
   ================================---------- */
.button {
    border: 1px solid currentColor;
    padding: 14px 23px;
    letter-spacing: .12em;
    font: 500 9px var(--sans);
    text-transform: uppercase;
    background: transparent;
    cursor: pointer;
    transition: .3s;
}

.button span {
    margin-left: 18px;
}

.button-light {
    color: #fff;
}

.button-light:hover {
    background: #fff;
    color: #111;
}

.button-dark {
    color: #111;
    border-color: #111;
}

.button-dark:hover {
    background: #111;
    color: #fff;
}

.cover-side {
    position: absolute;
    right: 26px;
    top: 50%;
    writing-mode: vertical-rl;
    font-size: 8px;
    letter-spacing: .25em;
    color: #c9c0b5;
}

.cover-bottom {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    letter-spacing: .22em;
    color: #ddd;
}

.cover-bottom span {
    margin-left: 14px;
}

/* Music Toggle Player */
.music-toggle {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 30;
    border: 1px solid #777;
    background: #1119;
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.music-bars {
    display: flex;
    gap: 3px;
    align-items: center;
    height: 15px;
}

.music-bars i {
    display: block;
    width: 2px;
    height: 6px;
    background: var(--gold);
}

.music-toggle.playing .music-bars i {
    animation: bars .7s ease-in-out infinite alternate;
}

.music-bars i:nth-child(2) { animation-delay: .2s; }
.music-bars i:nth-child(3) { animation-delay: .4s; }
.music-bars i:nth-child(4) { animation-delay: .1s; }

@keyframes bars {
    to { height: 15px; }
}


/* ==========================================
   4. INVITATION SECTIONS & CONTENT
   ================================---------- */
.invitation-content {
    display: none;
}

.invitation-content.open {
    display: block;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-pad {
    padding: 115px max(7vw, 24px);
}

.intro {
    text-align: center;
    background: #171717;
}

.display-title {
    font: 400 clamp(3rem, 7vw, 5.6rem)/.92 var(--serif);
    letter-spacing: -.035em;
    margin: 20px 0 28px;
}

.body-copy {
    max-width: 560px;
    margin: 0 auto;
    color: #b8b2aa;
    font: 300 14px/1.9 var(--sans);
}

.date-stamp {
    margin: 55px auto 0;
    width: 145px;
    height: 145px;
    border: 1px solid #5c5348;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.date-stamp span {
    font-size: 8px;
    letter-spacing: .2em;
    color: var(--gold);
}

.date-stamp strong {
    font: 400 55px/.9 var(--serif);
}

/* Couple Grid Section */
.couple {
    background: #202020;
}

.section-heading {
    text-align: center;
    margin-bottom: 55px;
}

.couple-grid {
    max-width: 900px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 70px 1fr;
    align-items: center;
    gap: 25px;
}

.person-card {
    text-align: center;
}

.person-photo {
    height: 440px;
    background-size: cover;
    background-position: center;
    filter: grayscale(1);
    border: 8px solid #292929;
}

.groom-photo {
    background-image: url("assets/images/tyo.jpg");
}

.bride-photo {
    background-image: url("assets/images/Wiwin.jpg");
}

.person-role {
    font-size: 8px;
    letter-spacing: .25em;
    color: var(--gold);
    margin: 25px 0 4px;
}

.person-card h3 {
    font: italic 43px var(--serif);
    margin: 0;
}

.person-desc {
    font: 12px/1.7 var(--serif);
    color: #b7b0a7;
}

.ampersand {
    font: italic 54px var(--serif);
    color: var(--gold);
    text-align: center;
}

/* Quote Section */
.quote-section {
    height: 480px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.quote-bg {
    background-image: url("assets/images/Quote.jpg");
    filter: grayscale(1);
}

.quote-overlay, 
.rsvp-overlay {
    position: absolute;
    inset: 0;
    background: #090909a8;
}

.quote-content {
    position: relative;
    text-align: center;
    max-width: 660px;
    padding: 30px;
}

.quote-mark {
    font: 90px var(--serif);
    color: var(--gold);
    line-height: .6;
}

.quote-content p {
    font: italic clamp(23px, 4vw, 36px)/1.25 var(--serif);
}

.quote-content small {
    letter-spacing: .18em;
    font-size: 9px;
    color: var(--gold);
}

/* Event Details */
.event {
    background: #eeeae4;
    color: #181818;
}

.event .eyebrow {
    color: #8c7657;
}

.event .body-copy {
    color: #625e58;
}

.event-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 900px;
    margin: auto;
}

.event-card {
    position: relative;
    border: 1px solid #c9c2b8;
    text-align: center;
    padding: 55px 25px 45px;
}

.event-number {
    position: absolute;
    top: 18px;
    left: 20px;
    color: #a18b6a;
    font: italic 20px var(--serif);
}

.event-card .eyebrow {
    margin: 0 0 12px;
}

.event-card h3 {
    font: italic 42px var(--serif);
    margin: 0;
}

.event-line {
    width: 35px;
    height: 1px;
    background: #a18b6a;
    margin: 20px auto;
}

.event-date, 
.event-time {
    font-size: 12px;
}

.event-place {
    font: 15px/1.6 var(--serif);
    color: #6b655d;
    margin: 25px 0;
}

.text-link {
    font-size: 9px;
    letter-spacing: .2em;
    color: #554936;
    text-decoration: none;
    border-bottom: 1px solid #9c8b73;
    padding-bottom: 5px;
}

/* Countdown Timer */
.countdown-wrap {
    text-align: center;
    margin: 70px auto 0;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 6vw, 65px);
    margin-top: 25px;
}

.countdown div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.countdown strong {
    font: 400 clamp(35px, 6vw, 58px) var(--serif);
}

.countdown span {
    font-size: 8px;
    letter-spacing: .2em;
    color: #837b71;
}

/* Gallery Section */
.gallery {
    background: #181818;
}

.gallery-grid {
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    grid-auto-rows: 230px;
    gap: 12px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: .5s;
}

.gallery-grid img:hover {
    filter: grayscale(0);
    transform: scale(.99);
}

.gallery-tall {
    grid-row: span 2;
}

.gallery-wide {
    grid-column: span 2;
}

.gallery-note {
    text-align: center;
    color: #777;
    font-size: 10px;
    margin-top: 22px;
}

/* RSVP Form Section */
.rsvp {
    position: relative;
    min-height: 720px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.rsvp-image {
    background-image: url("assets/images/7.jpg");
    filter: grayscale(1);
}

.rsvp-overlay {
    background: #080808d9;
}

.rsvp-content {
    position: relative;
    width: min(100%, 520px);
    text-align: center;
}

.rsvp-form {
    display: grid;
    gap: 16px;
    text-align: left;
    margin-top: 38px;
}

.rsvp-form label {
    font-size: 10px;
    letter-spacing: .12em;
    color: #d2cbc1;
}

.rsvp-form input, 
.rsvp-form select, 
.wish-form input, 
.wish-form textarea {
    width: 90%;
    margin-top: 35px;
    background: #ffffff12;
    border: 1px solid #777;
    color: white;
    padding: 14px;
    font: 12px var(--sans);
    outline: none;
    border-radius: 0;
}

.rsvp-form select option {
    color: #111;
}

.rsvp-form .button {
    margin-top: 5px;
}

.form-note {
    font-size: 10px;
    line-height: 1.6;
    color: #aaa;
    margin-top: 18px;
}

/* Wishes Section */
.wishes {
    background: #e9e5df;
    color: #171717;
}

.wishes .eyebrow {
    color: #8c7657;
}

.wishes .body-copy {
    color: #625e58;
}

.wish-form {
    max-width: 580px;
    margin: auto;
    display: grid;
    gap: 12px;
}

.wish-form input, 
.wish-form textarea {
    background: transparent;
    border: 1px solid #b8b0a5;
    color: #111;
}

.wish-form input::placeholder, 
.wish-form textarea::placeholder {
    color: #777;
}

.wish-form .button {
    justify-self: center;
    margin-top: 8px;
}

.wish-list {
    max-width: 280px;
    max-height: 400px; /* Batasi tinggi maksimal kotak */
    overflow-y: auto;  /* Munculkan scrollbar otomatis jika pesan bertambah banyak */
    margin: 35px auto 0;
    display: grid;
    gap: 10px;
    padding-right: 5px; /* Jarak agar teks tidak menempel pada garis scroll */
}

.wish-item {
    padding: 17px 20px;
    background: #ded8cf;
    border-left: 2px solid #a18b6a;
}

.wish-item strong {
    font: italic 20px var(--serif);
}

.wish-item p {
    font-size: 12px;
    line-height: 1.7;
    margin: 7px 0 0;
    color: #514c45;
}

.wishes .form-note {
    color: #777;
    text-align: center;
    max-width: 580px;
    margin: 22px auto;
}
.wish-list {
    max-width: 280px;
    margin: 35px auto 0;
    display: grid;
    gap: 10px;
}

.wish-item {
    padding: 17px 20px;
    background: #ded8cf;
    border-left: 2px solid #a18b6a;
}
.wish-list-heading {
    text-align: center !important;
}
.wish-item strong {
    font: italic 20px var(--serif);
}

.wish-item p {
    font-size: 12px;
    line-height: 1.7;
}

/* Gift Section */
.gift {
    background: #202020;
    text-align: center;
}

.gift-card {
    max-width: 390px;
    margin: auto;
    border: 1px solid #665b4c;
    padding: 35px 25px;
}

.gift-card h3 {
    font: italic 32px var(--serif);
    margin: 18px 0;
}

.gift-card p {
    font-size: 12px;
    color: #c0b8ad;
}

.account-number {
    font-size: 20px !important;
    letter-spacing: .12em;
    color: white !important;
}

.copy-button {
    margin-top: 15px;
    background: transparent;
    border: 1px solid #87765e;
    color: #d5c6ad;
    padding: 11px 15px;
    font-size: 8px;
    letter-spacing: .18em;
    cursor: pointer;
}

/* Footer Section */
.footer {
    padding: 90px 20px 35px;
    text-align: center;
    background: #0c0c0c;
}

.footer h2 {
    font: 400 clamp(3.5rem, 9vw, 6rem) var(--serif);
    margin: 20px 0;
}

.footer > p:not(.eyebrow) {
    font: italic 17px var(--serif);
    color: #aaa;
}

.footer-date {
    display: block;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: .25em;
    margin: 35px 0 65px;
}

.footer small {
    font-size: 8px;
    letter-spacing: .22em;
    color: #716b62;
}

/* Global Utilities */
.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    background: #eeeae4;
    color: #111;
    padding: 12px 18px;
    font-size: 11px;
    z-index: 50;
    transition: .3s;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}


/* ==========================================
   5. OPENED HERO SECTION (MAIN PHOTO & NAMES)
   ================================---------- */
.opened-hero {
    min-height: 100svh;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #282828;
}

.opened-hero-photo {
    position: absolute;
    inset: 0;
    background-image: url("assets/images/MAIN.jpg");
    background-size: cover;
    background-position: center 38%;
    filter: grayscale(1);
    transform: scale(1.02);
}

.opened-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,.52), rgba(10,10,10,.25) 40%, rgba(10,10,10,.65)), 
                linear-gradient(90deg, rgba(0,0,0,.25), transparent, rgba(0,0,0,.25));
}

.opened-hero-content{
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    padding: 60px 25px 85px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.opened-hero-content > .eyebrow{
    letter-spacing: .28em;
    color: #e4ddd4;
    margin-bottom: 15px; /* Memberikan jarak aman ke bawah sebelum nama */
}

.opened-names{
    font: 400 clamp(3.5rem, 11vw, 7.5rem) / 1.1 "Great Vibes", cursive;
    color: #f5f1eb;
    margin: 0 0 20px;
    text-shadow: 0 2px 22px #0008;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Mengatur jarak antara nama Tyo, simbol &, dan Wiwin agar tidak menempel */
    flex-wrap: wrap;
}

.opened-names span{
    font: italic .6em var(--serif);
    color: var(--gold);
    padding: 0;
}

.opened-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #f0e9df;
    font: 400 15px var(--serif);
    letter-spacing: .16em;
    margin-top: -30px; /* Atur nilai minus ini sesuai kebutuhan posisi naik Anda */
}

.opened-date i {
    display: block;
    width: 54px;
    height: 1px;
    background: #d8cbb8;
}

.opened-quote {
    max-width: 570px;
    margin: 100px auto 0 !important; /* Ubah ke angka positif yang lebih kecil agar turun secara pas */
    color: #f2eee8;
    font: italic 17px/1.5 var(--serif);
    text-shadow: 0 2px 8px #000;
}

.opened-verse {
    font: italic 30px "Great Vibes", cursive;
    color: #e4d5c0;
    margin: 9px 0 0;
}

.scroll-cue {
    display: inline-block;
    margin-top: 48px;
    color: #e8e1d7;
    text-decoration: none;
    font-size: 8px;
    letter-spacing: .22em;
}

.scroll-cue span {
    margin-left: 12px;
    color: var(--gold);
}

/* ===== FIX HALAMAN HORMAT KAMI ===== */

section.hosts {
    background: #171717 !important;
    color: #eee9e1 !important;
    padding: 100px 6% !important;
}

.hosts .hosts-inner {
    max-width: 1100px;
    margin: auto;
}

.hosts .section-heading {
    text-align: center;
    margin: 0 auto 60px;
}

.hosts .hosts-intro {
    max-width: 650px;
    margin: 25px auto;
    text-align: center;
    color: #bdb5aa;
    line-height: 1.9;
}

.hosts .hosts-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 30px;
    align-items: stretch;
}

.hosts .host-card {
    display: block;
    background: #e9e5df !important;
    color: #24211d !important;
    padding: 40px 30px;
    border: 1px solid #b69a70;
    text-align: center;
    box-sizing: border-box;
}

.hosts .host-label {
    color: #a4875d;
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.hosts .host-card h3 {
    font-family: var(--serif), serif;
    font-size: 24px;
    line-height: 1.4;
    font-weight: normal;
}

.hosts .host-parents {
    color: #514a41;
    font-style: italic;
    margin: 10px 0;
}

.hosts .host-divider {
    display: block;
    width: 55px;
    height: 1px;
    background: #b69a70;
    margin: 25px auto;
}

.hosts .host-card ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0;
}

.hosts .host-card li {
    color: #38332d;
    font-family: var(--serif), serif;
    font-size: 14px;
    line-height: 2;
}

.hosts .hosts-signoff {
    text-align: center;
    font-family: "Great Vibes", cursive;
    font-size: 52px;
    color: #eee5d8;
    margin-top: 55px;
}

.hosts .hosts-signoff span {
    color: #c5aa80;
}

.hosts .hosts-date {
    text-align: center;
    color: #c5aa80;
    letter-spacing: 4px;
    font-size: 10px;
}

@media (max-width: 700px) {
    section.hosts {
        padding: 75px 20px !important;
    }

    .hosts .hosts-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .hosts .host-card {
        padding: 32px 22px;
    }

    .hosts .host-card h3 {
        font-size: 22px;
    }
}


/* ==========================================
   6. RESPONSIVE MEDIA QUERIES (MOBILE)
   ================================---------- */
@media (max-width: 700px) {
    
    .section-pad {
        padding: 85px 22px;
    }
    
    .cover-content {
        padding: 75px 20px 100px;
    }
    
    .cover-side {
        right: 10px;
    }
    
    .cover-names {
        font-size: clamp(4rem, 18vw, 6.5rem);
    }
    
    .cover-intro {
        font-size: 16px;
    }
    
    .couple-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .person-photo {
        height: 390px;
        max-width: 390px;
        margin: auto;
    }
    
    .ampersand {
        font-size: 42px;
    }
    
    .event-grid {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        padding: 48px 20px 38px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 170px;
        gap: 8px;
    }
    
    .gallery-tall {
        grid-row: span 2;
    }
    
    .gallery-wide {
        grid-column: span 2;
    }
    
    .quote-section {
        height: 400px;
    }
    
    .rsvp {
        min-height: 680px;
    }
    
    .countdown {
        gap: 20px;
    }
    
    .countdown strong {
        font-size: 38px;
    }
    
    .countdown span {
        font-size: 7px;
    }
    
    .display-title {
        font-size: clamp(3rem, 13vw, 4.5rem);
    }

    /* Opened Hero Mobile Adjustments */
    .opened-hero {
        min-height: 100svh;
    }
    
    .opened-hero-photo {
        background-position: 54% center;
    }
    
    .opened-quote {
    font-size: 15px;
    margin-top: clamp(220px, 25vh, 220px); /* Naikkan angka ini jika di HP ingin lebih turun */
}
    
    .opened-names {
        font-size: clamp(4.3rem, 18vw, 6.7rem);
    }
    
.opened-quote {
        font-size: 15px;
        margin-top: 250px !important; /* Ubah angka ini sesuai kebutuhan turunnya di HP */
    }
    
    .opened-date {
        font-size: 13px;
        gap: 12px;
    }
    
    .opened-date i {
        width: 35px;
    }
}