/* ================= ROOT SYSTEM  ================= */
:root{
    /* PRIMARY – ornamen & aksen utama */
    --primary:#7A1F2B;          /* maroon */
    --primary-dark:#5C1620;     /* maroon gelap */

    /* BACKGROUND */
    --bg:#FAF5F6;               /* ivory kemerahan */
    --section-bg:#F0DEE1;       /* pink maroon lembut */

    /* TEXT */
    --text:#4A1F26;             /* coklat maroon */
    --text-soft:#8A5A62;        /* maroon abu */

    /* NEUTRAL */
    --white:#FFFFFF;

    /* ICON / AKSEN */
    --insta:#7A1F2B;            

    /* RADIUS */
    --radius-sm:8px;
    --radius-md:16px;
    --radius-lg:30px;

    /* SHADOW */
    --shadow-soft:0 6px 18px rgba(0,0,0,.08);
    --shadow-medium:0 12px 30px rgba(0,0,0,.18);
}


/* ================= Dekorasi satu ================= */
.dekorasi-satu::before{
    content:"";
    display:block;

    width:100%;
    height:120px;

    background:url('image/12.png') top center / contain no-repeat;

    margin-bottom:8px;
    pointer-events:none;
}

/* ================= TYPOGRAPHY ================= */

h1,h2,h3{
    font-family:var(--font-heading);
    margin-bottom:12px;
}

h1{font-size:28px;}
h2{font-size:24px;}
h3{font-size:18px;}

h1.couple-name{
    font-family: var(--font-accent);
    font-size: 28px;          /* naik dikit biar “nafas” */
    font-weight: 500;
    letter-spacing: 3px;      /* Italiana butuh ruang */
    line-height: 1.15;
    text-transform: uppercase; /* editorial look */
}

.card-pria h3,
.card-wanita h3,
.card-acara h2{
    font-family: var(--font-accent); /* Italiana */
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}


p{
    font-size:13.5px;
    line-height:1.75;
    margin-bottom:14px;
}

small{
    font-size:12.5px;
    letter-spacing:.3px;
}

.alamat-label{
    font-weight:600;
    font-size:14px;
    text-transform:uppercase;
    letter-spacing:.4px;
    color:var(--primary-dark);
}

/* ================= BUTTON ================= */
.btn{
    background:var(--primary-dark);
    color:#fff;
    font-weight:600;
    border:none;
    padding:12px 45px;
    border-radius:8px;
    cursor:pointer;
    transition:.3s;
    font-size:13px;
    margin-top:10px;
    border: 1px solid;
    border-color:var(--section-bg);
    box-shadow:0 12px 30px rgba(0,0,0,.35);
}

.btn:hover{
    background:var(--primary);
}

.btn:active{
    transform:translateY(1px);
}

/* ================= WATERMARK PITA ================= */
.watermark{
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;

    background: linear-gradient(
        135deg,
        #f5d06f,
        #d4af37,
        #b8962e
    );
    color: #3a2c00;

    padding: 8px 26px 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;

    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;

    box-shadow:
        0 6px 14px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.6);
}

/* bentuk trapezoid / sayap kiri */
.watermark::before,
.watermark::after{
    content:"";
    position:absolute;
    top:0;
    width:0;
    height:0;
    border-top: 18px solid #b8962e;
}

/* kiri */
.watermark::before{
    left:-18px;
    border-left: 18px solid transparent;
}

/* kanan */
.watermark::after{
    right:-18px;
    border-right: 18px solid transparent;
}

/* mobile sedikit diperkecil */
@media (max-width: 768px){
    .watermark{
        font-size: 13px;
        padding: 7px 22px 9px;
    }
}


/* ================= RESET ================= */
*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

body{
    font-family:var(--font-body);
    background:var(--bg);
    color:var(--text);
    line-height:1.7;
}

/* =================================================
   SECTION BACKGROUND SYSTEM 
================================================= */

.section-bg{
    position:relative;
    overflow:hidden;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

.section-bg > *{
    position:relative;
    z-index:3;
}


/* ================= SECTION ================= */
.section{
    align-items:center;
    text-align:center;
}

section.section-bg{
    padding:40px 20px;
    text-align:center;
}

section.section-bg:not(.section-fullscreen){
    display:block;
}


/* ===============================
   FULLSCREEN SECTION
================================ */
.section-fullscreen{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
}

/* ================= COVER ================= */
.cover{
    min-height:100vh;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    padding-bottom:90px;
    
    background-size:cover;
    background-position:center;
    position:relative;
    overflow:hidden;
}

/* wrapper isi cover */
.cover > div{
    text-align:center;
    color:#fff;
    max-width:420px;
}

.cover > div > div{
    font-size:14px;
    letter-spacing:.3px;
    opacity:.9;
}

.cover .couple-name{
    margin:18px 0 10px;
    color:#fff;
}

.cover p{
    font-size:14px;
    opacity:.95;
}

.cover small{
    display:block;
    margin-top:6px;
    opacity:.85;
}

#namatamu{
    margin-top:12px;
    font-weight:500;
    letter-spacing:.3px;
}

.cover .btn{
    margin-top:26px;
    font-weight:600;
}

/* ===============================
   COVER CONTENT ANIMATION
================================ */
.cover > div{
    animation: coverEnter .9s cubic-bezier(.22,.61,.36,1) forwards;
}

@keyframes coverEnter{
    from{
        opacity:0;
        transform:translateY(60px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* ===============================
   FOTO PEMBUKA – KHUSUS SECTION HERO
================================ */

section.section-fullscreen:has(.pembuka-photo),
section.penutup:has(.pembuka-photo){
    background-image: var(--section-bg-image);
    min-height:90vh;

    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    align-items:center;

    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding-bottom:60px;
}

/* hide img hanya di section hero */
section.section-fullscreen:has(.pembuka-photo) .pembuka-photo,
section.penutup:has(.pembuka-photo) .pembuka-photo{
    display:none;
}

/* overlay hanya untuk hero */
section.section-fullscreen:has(.pembuka-photo)::before,
section.penutup:has(.pembuka-photo)::before{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(
        rgba(0,0,0,.35),
        rgba(0,0,0,.45)
    );
    z-index:1;
}

/* konten hero naik */
section.section-fullscreen:has(.pembuka-photo) > *,
section.penutup:has(.pembuka-photo) > *{
    position:relative;
    z-index:2;
    color:#fff;
}

/* ================= COUNTDOWN – ELEGANT ================= */
.countdown{
    display:flex;
    justify-content:center;
    gap:8px;                 /* lebih rapat */
    margin:14px 0 6px;
    font-weight:500;
}

.countdown .unit{
    display:flex;
    flex-direction:column;
    align-items:center;

    background: var(--primary-dark);
    color:#fff;

    padding:8px 6px;         /* ⬅️ diperkecil */
    width:52px;              /* ⬅️ lebih ramping */
    border-radius:1px;

    box-shadow:0 4px 10px rgba(0,0,0,.12);
}

.countdown .number{
    font-size:18px;          /* ⬅️ lebih halus */
    font-weight:600;
    line-height:1.1;
}

.countdown .label{
    font-size:13px;          /* ⬅️ kecil & elegan */
    letter-spacing:.4px;
    opacity:.85;
}


.tanggal-content{
    font-size:14px;
}

/* ================= TRANSITION ================= */
.hidden{display:none;}

.fade-item{
    opacity:0;
    transform:translateY(20px);
    transition:.8s ease;
}

.fade-in{
    opacity:1;
    transform:translateY(0);
}

/* ================= CARD Mempelai ================= */
.card-mempelai{
    position:relative;
    z-index:4; 
    background:#fff;
    margin:0 auto;
    padding:40px 24px;
    max-width:460px;
    border-radius:24px;
    border: 1px solid;
    border-color:var(--primary);
    box-shadow:
        0 18px 40px rgba(0,0,0,.08),
        0 6px 14px rgba(0,0,0,.05);

    text-align:center;
}


.salam-pembuka{
    margin-top: 50px;
}

.card{
    margin:40px auto;
    position:relative;
}

.profile-photo{
    margin-top:20px;
    width:240px;
    height:360px;
    object-fit:cover;
    background:#fff;
    padding:4px;

    box-shadow:
        0 16px 36px rgba(62,58,57,.16),
        0 4px 10px rgba(62,58,57,.08);

    margin-bottom:16px;
}

.instagram-icon-link{
    display:block;        /* ukuran mengikuti icon */
    margin:10px auto 0;         /* ⬅️ turun baris + center */
    
    color:var(--primary);
    font-size:18px;
    padding:8px;
    border-radius:50%;
}

/* ================= QUOTE ================= */
.quote{
    background:var(--primary);
}

section blockquote{
    background:var(--primary);
    color:#fff;
    padding:40px 20px;
    border-radius:var(--radius-md);
    font-size:13px;
    text-align:center;
}

/* ===============================
   CARD ACARA – FIX WIDTH
================================ */
.section-acara{
    position:relative;
    z-index:4; 
    background:#fff;
    margin:0 auto;
    max-width:460px;
    border-radius:24px;
    padding:40px 24px;
    border: 1px solid;
    border-color:var(--primary);
    box-shadow:
        0 18px 40px rgba(0,0,0,.08),
        0 6px 14px rgba(0,0,0,.05);
    text-align:center;
}

.card-acara{
    width: 100%;
    max-width: 440px;
    padding: 20px;
    z-index: 0;
}

/* Judul acara */
.card-acara h2{
    margin-bottom: 12px;
    color: var(--text);
}

/* Isi teks */
.card-acara p{
    font-size: 14px;
    color: var(--text);
}

/* Tanggal acara */
.card-acara .tanggal-custom{
    font-weight: 600;
    color: var(--text);
}

/* Tombol lokasi */
.card-acara .btn{
    margin-top: 12px;
}


/* ================= LIVE STREAMING ================= */

.live-stream{
    text-align:center;
    padding:32px 20px;
    background:var(--section-bg);
    border-radius:var(--radius-md);
}

.live-stream p{
    color:var(--text-soft);
}

.live-btn{
    display:inline-block;
    margin-top:12px;
    padding:8px 24px;
    border-radius:30px;
    background:var(--primary);
    color:#fff;
    font-weight:600;
    text-decoration:none;
    box-shadow:var(--shadow-medium);
}

.live-btn:hover{
    background:var(--primary-dark);
}

/* ================= GALLERY ================= */
.gallery{
    background:var(--primary);
    color:#fff;
}

.gallery-masonry{
    column-count:2;
    column-gap:12px;
    margin-top:30px;
}

.masonry-item{
    width:100%;
    margin-bottom:12px;
    break-inside:avoid;
}

/* ===============================
   GALLERY POPUP (FULL VIEW)
=============================== */

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.gallery-modal.active {
    display: block;
}

.gallery-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.75);
}

.gallery-modal-box {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; /* jarak kiri kanan mobile */
}

.gallery-modal-box img {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    background: #000;
}

.gallery-modal-close {
    position: fixed;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 10000;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav.prev {
    left: 12px;
}

.gallery-nav.next {
    right: 12px;
}

/* NAV PANAH */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}


/* INDIKATOR */
.gallery-indicator {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.55);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    z-index: 5;
}


@media (max-width: 768px) {
    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 24px;
        background: rgba(0,0,0,.45);
    }    
    
}

/* ===============================
   VIDEO PREWEDDING (SIMPLE & AMAN)
=============================== */

.video-prewedding {
    width: 100%;
    margin: 20px 0;
}

.video-prewedding iframe {
    width: 100%;
    height: 220px;   /* default mobile */
    border: none;
}

/* tablet */
@media (min-width: 600px) {
    .video-prewedding iframe {
        height: 320px;
    }
}

/* desktop */
@media (min-width: 1024px) {
    .video-prewedding iframe {
        height: 420px;
    }
}



/* ================= LOVE STORY SECTION ================= */

.love-story{
    margin-top:40px;
    padding-left:26px;
    position:relative;
}

/* garis vertikal */
.love-story::before{
    content:"";
    position:absolute;
    left:8px;
    top:0;
    bottom:0;
    width:2px;
    background:linear-gradient(
        to bottom,
        transparent,
        var(--primary),
        var(--primary),
        transparent
    );
    opacity:.8;
}

/* judul section */
.love-story h2{
    text-align:left;
    margin-bottom:24px;
    position:relative;
}

/* intro text */
.love-story > p{
    text-align:left;
    color:var(--text-soft);
    margin-bottom:24px;
    max-width:520px;
}

/* ================= STORY ITEM ================= */

.story-item{
    position:relative;
    padding-left:28px;
    margin-bottom:32px;
}

/* dot timeline */
.story-item::before{
    content:"";
    position:absolute;
    left:-3px;
    top:6px;
    width:12px;
    height:12px;
    background:var(--primary);
    border-radius:50%;
    box-shadow:0 0 0 4px rgba(217,163,174,.25);
}

/* judul cerita */
.story-item h3{
    font-size:17px;
    margin-bottom:8px;
    color:var(--primary-dark);
    text-align:left;
}

/* isi cerita */
.story-item p{
    text-align:left;
    color:var(--text);
    font-size:13px;
    line-height:1.8;
    max-width:520px;
}

/* ================= RSVP ================= */
.section-rsvp{
    position:relative;
    align-items:center;
    text-align:center;
    background:#fff;
}    

/* ================= GIFT ================= */
.section-gift{
    position:relative;
    margin:40px 20px;
    align-items:center;
    text-align:center;
}    

.gift-card{
    background:#fff;
    border-radius:var(--radius-md);
    padding:20px;
    margin:20px 0;
    text-align:center;
    box-shadow:var(--shadow-soft);
}

.gift-card strong{
    font-size:18px;
    display:block;
    margin-bottom:8px;
    color:var(--primary-dark);
}

.gift-card small{
    display:block;
    font-size:13px;
}

.gift-card span.account-number{
    display:block;
    font-size:14px;
    font-weight:600;
}

.gift-card .btn{
    background:var(--primary-dark);
    padding:8px 18px;
    font-size:12px;
    border-radius:8px;
}


/* ================= TURUT MENGUNDANG ================= */

.turut-mengundang{
    margin-top:40px;
    text-align:left;
    padding:32px 20px;
    background:var(--section-bg);
}

.mengundang-subtitle{
    margin-top:18px;
    margin-bottom:10px;
    font-size:15px;
    color:var(--primary-dark);
}

.mengundang-list{
    list-style:none;
    padding-left:0;
    margin-top:12px;
}

.mengundang-list li{
    position:relative;
    padding-left:22px;
    margin-bottom:10px;
    font-size:13px;
    color:var(--text);
    line-height:1.7;
}

/* titik bullet */
.mengundang-list li::before{
    content:"";
    position:absolute;
    left:0;
    top:8px;
    width:8px;
    height:8px;
    background:var(--primary);
    border-radius:50%;
    box-shadow:0 0 0 3px rgba(217,163,174,.25);
}

/* ===============================
   SECTION PENUTUP – FINAL LAYOUT
================================ */

.penutup{
    min-height:90vh;

    display:flex;
    flex-direction:column;
    justify-content:flex-end;   /* ⬅️ konten ke bawah */
    align-items:center;
    text-align:center;

    padding-bottom:90px;        /* lebih lega dari pembuka */
}

/* pakai foto pembuka sebagai background */
.penutup:has(.pembuka-photo){
    background-image: var(--section-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* hide img */
.penutup .pembuka-photo{
    display:none;
}

/* overlay lebih dramatis */
.penutup::before{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(
        rgba(0,0,0,.45),
        rgba(0,0,0,.7)
    );
    z-index:1;
}

/* isi naik ke atas overlay */
.penutup > *{
    position:relative;
    z-index:2;
    color:#fff;
}


/* ===============================
   FOOTER – MOMENLINK
================================ */
.footer{
    padding:40px 20px 30px;
    text-align:center;
    background:transparent;
}

.footer-inner{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
}

.footer-logo{
    height:28px;
    width:auto;
    opacity:.85;
}

.footer-text{
    font-size:12px;
    color:var(--text-soft);
    letter-spacing:.3px;
}

.footer-text strong{
    color:var(--primary-dark);
}

/* ================= MUSIC ================= */
#music-toggle{
    position:fixed;
    bottom:20px;
    left:20px;
    width:50px;
    height:50px;
    border-radius:50%;
    background:var(--primary);
    color:#fff;
    border:none;
    box-shadow:var(--shadow-medium);
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    opacity:0;
    visibility:hidden;
    transition:.3s;
    
    z-index:999;
}

#music-toggle.visible{
    opacity:1;
    visibility:visible;
}


/* ================= RESPONSIVE ================= */
@media(max-width:480px){
    section{
        padding:50px 16px;
    }
    
    .love-story{
        padding-left:22px;
    }

    .story-item{
        padding-left:24px;
    }

    .story-item::before{
        width:10px;
        height:10px;
        left:-4px;
    }
    
   .cover{
    padding-bottom:150px;
    }

}
