:root{
    --primary:#fff;
    --primary-dark:#fff;

    --bg:#7c6348;           
    --section-bg:#7c6348; /* versi gelap */

    --text:#FFFFFF;
    --text-soft:#E5D8B8;

    --white:#FFFFFF;

    --radius-sm:8px;
    --radius-md:16px;
    --radius-lg:30px;

    --shadow-soft:0 6px 18px rgba(0,0,0,.25);
    --shadow-medium:0 12px 30px rgba(0,0,0,.45);
}

/* =================================================
   FIXED BACKGROUND SYSTEM (KHUSUS TEMA INI)
================================================= */

body.theme-fixed-bg::before{
    content:"";
    position:fixed;
    top:0;
    bottom:0;
    left:50%;
    transform:translateX(-50%);

    width:480px;
    max-width:100vw;
    height:100vh;

    background:url("image/bg-aceh1.webp") center / cover no-repeat;
    z-index:0;
}

body.theme-fixed-bg::after{
    content:"";
    position:fixed;
    top:0;
    bottom:0;
    left:50%;
    transform:translateX(-50%);

    width:540px;
    max-width:100vw;
    height:100vh;

    background:rgba(243, 230, 200, 0.2); /* fallback */
    background:color-mix(in srgb, var(--primary) 20%, transparent);

    z-index:1;
    pointer-events:none;
}

/* =================================================
   RESET & BASE BODY
================================================= */

*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

body{
    font-family:var(--font-body);
    color:var(--text);
    line-height:1.7;
}

/* override background global (tema ini saja) */
body.theme-fixed-bg{
    background:transparent;
}

/* semua section naik di atas fixed background */

body.theme-fixed-bg section{
    position:relative;
    z-index:2;
    background-color:transparent; /* ⬅️ PENTING */
}

/* MATIKAN background-image bawaan template */
body.theme-fixed-bg 
.section-bg:not(.section-fullscreen):not(.penutup){
    background-image: none;
}

/* =================================================
   SECTION SYSTEM (GLOBAL TEMPLATE)
================================================= */

/* ================= SECTION ================= */

section{
    max-width:480px;
    margin:0 auto;
    padding:60px 20px;
    text-align:center;
    position:relative;
}

.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-bg{
    padding:40px 20px;
    text-align:center;
}

section.section-bg:not(.section-fullscreen){
    display:block;
}

/* fullscreen layout */
.section-fullscreen{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
}


/* ================= TYPOGRAPHY ================= */

h1,h2,h3{
    font-family:var(--font-heading);
    margin-bottom:12px;
}

h1{font-size:24px;}
h2{font-size:22px;}
h3{font-size:18px;}

h1.couple-name{
    font-family: var(--font-accent);
    font-size: 28px;          /* naik dikit biar “nafas” */
    font-weight: 500;
    letter-spacing: 0.3px; 
    line-height: 1.15;
}

.card-pria h3,
.card-wanita h3{
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 0.3px;
}

.card-acara h2{
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}


p{
    font-size:13.5px;         /* sedikit di atas default */
    line-height:1.75;         /* lebih lega */
    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(--bg);
}

/* ================= BUTTON ================= */
.btn{
    background:var(--bg);
    color:#fff;
    font-weight:600;
    border:none;
    padding:12px 36px;
    border-radius:8px;
    cursor:pointer;
    transition:.3s;
    font-size:13px;
    margin-top:10px;

}

.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;
    }
}

/* ================= COVER ================= */
.cover{
    min-height:100vh;
    display:flex;
    align-items:flex-end;       /*turun ke bawah */
    justify-content:center;
    padding-bottom:90px;        /*jarak dari bawah (feel premium) */

    position:relative;
    overflow:hidden;
    
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* wrapper isi cover */
.cover > div{
    text-align:center;
    color:#fff;                 /*semua teks putih */
    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;
        padding:12px 45px;
    border: 1px solid;
    border-color:var(--section-bg);
    box-shadow:0 12px 30px rgba(0,0,0,.35);
}

/* ===============================
   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);
    }
}

/* ===============================
   SECTION PEMBUKA / HERO
================================ */
section.section-fullscreen:has(.pembuka-photo){
    background-image:url('image/bg-aceh2.webp');
    min-height:100vh;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    color:#000;

    position:relative;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    padding-bottom:130px;

}

/* foto pembuka tampil di section hero */
section.section-fullscreen:has(.pembuka-photo) .pembuka-photo{
    display:block;
    position:relative;
    z-index:2;
}

.pembuka-photo{
    margin-top:20px;
    width:200px;
    height:200px;
    object-fit:cover;
    background:#fff;
    padding:4px;
    border-radius: 250px;

    box-shadow:
        0 16px 36px rgba(62,58,57,.16),
        0 4px 10px rgba(62,58,57,.08);

    margin-bottom:14px;
}


/* ================= COUNTDOWN – ELEGANT ================= */
.countdown{
    display:flex;
    justify-content:center;
    gap:12px;                 /* lebih rapat */
    margin:14px 0 6px;
    font-weight:500;
}

.countdown .unit{
    display:flex;
    flex-direction:column;
    align-items:center;

    background:var(--bg);
    color:#fff;

    padding:10px 8px;         /* ⬅️ diperkecil */
    width:50px;              /* ⬅️ lebih ramping */
    border-radius:8px;
    border:solid 1px #fff;

    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; 
    margin:0 auto;
    padding:60px 24px 60px 24px;
    max-width:460px;
    border-radius:24px;
    border: 2px solid;
    border-color:var(--bg);
    color:#000;
    
    background:rgba(243, 230, 200, 0.2); /* fallback */
    background:color-mix(in srgb, #fff 70%, transparent);

    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;
    color: #000;
}

.profile-photo{
    margin-top:20px;
    width:180px;
    height:260px;
    object-fit:cover;
    border-radius: 125px;

    box-shadow:
        0 16px 36px rgba(62,58,57,.16),
        0 4px 10px rgba(62,58,57,.08);

    margin-bottom:16px;
}

.card-wanita, .card-pria{
    color:#000;
}

.instagram-icon-link{
    display: flex;          /* biar icon pas di tengah */
    align-items: center;
    justify-content: center;
    text-decoration: none;

    margin: 10px auto 0;

    width: 30px;                   /* ⬅️ kunci biar bulat sempurna */
    height: 30px;

    color: var(--white);
    background-color: var(--bg);  /* warna lingkaran */

    font-size: 15px;
    border-radius: 50%;
}

/* ================= QUOTE ================= */
body.theme-fixed-bg .quote{
    background:color-mix(in srgb, var(--bg) 70%, transparent);
}

section blockquote{
    color:#000;
    padding:40px 20px;
    border-radius:var(--radius-md);
    border: solid 1px var(--text);
    font-size:13px;
    text-align:center;
    background:color-mix(in srgb, #fff 70%, transparent);
}

/* ===============================
   CARD ACARA – FIX WIDTH
================================ */
.section-acara{
    position:relative;
    z-index:4; 
    margin:0 auto;
    padding:60px 24px 60px 24px;

    max-width:460px;
    border-radius: 24px;
    border: 2px solid;
    border-color:var(--bg);
    
    background:rgba(243, 230, 200, 0.2); /* fallback */
    background:color-mix(in srgb, #fff 70%, transparent);

    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;   /* KUNCI LEBAR CARD */
    padding: 25px;
    z-index: 0;
}

/* Judul acara */
.card-acara h2{
    margin-bottom: 12px;
    color: #000;
}

/* Isi teks */
.card-acara p{
    font-size: 14px;
    color: #000;
}

/* Tanggal acara */
.card-acara .tanggal-custom{
    font-weight: 600;
    color: #000;
}

/* Tombol lokasi */
.card-acara .btn{
    margin-top: 12px;
}


/* ================= LIVE STREAMING ================= */
body.theme-fixed-bg .live-stream{
    background:color-mix(in srgb, var(--bg) 70%, transparent);
}

.live-stream{
    text-align:center;
    padding:32px 20px;
}

.live-stream p{
    color:var(--text);
}

.live-btn{
    display:inline-block;
    margin-top:12px;
    padding:8px 24px;
    border-radius:30px;
    background:var(--primary);
    color:#000;
    font-weight:500;
    text-decoration:none;
    box-shadow:var(--shadow-medium);
}

.live-btn:hover{
    background:var(--primary);
}

/* ================= GALLERY ================= */
body.theme-fixed-bg .gallery{
    background-color:var(--bg);
}

.gallery{
    background:var(--primary);
    color:var(--primary);
    text-align:center;
    font-size:28px;
}

.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 ================= */
body.theme-fixed-bg .love-story{
    background:color-mix(in srgb, #fff 70%, transparent);
}

.love-story{
    position:relative;
    z-index:4; 
    margin:20px;
    padding:60px 24px 40px 24px;

    max-width:460px;
    border-radius: 24px;
    
    background:rgba(243, 230, 200, 0.2); /* fallback */
    background:color-mix(in srgb, #fff 70%, transparent);

    box-shadow:
        0 18px 40px rgba(0,0,0,.08),
        0 6px 14px rgba(0,0,0,.05);

    text-align:center;
    align-items:center;
}


/* garis vertikal */
.love-story::before{
    content:"";
    position:absolute;
    left:8px;
    top:0;
    bottom:0;
    width:2px;
    background:linear-gradient(
        to bottom,
        transparent,
        var(--bg),
        var(--bg),
        transparent
    );
    opacity:.8;
}

/* judul section */
.love-story h2{
    text-align:center;
    color:var(--bg);
    margin-bottom:24px;
    position:relative;
}

/* intro text */
.love-story > p{
    text-align:center;
    color:#000;
    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(--bg);
    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(--bg);
    text-align:left;
}

/* isi cerita */
.story-item p{
    text-align:left;
    color:#000;
    font-size:13px;
    line-height:1.8;
    max-width:520px;
}

/* ================= RSVP ================= */
body.theme-fixed-bg .section-rsvp{
    background:color-mix(in srgb, #fff 70%, transparent);
}

.section-rsvp{
    position:relative;
    align-items:center;
    text-align:center;
    background:var(--primary);
    color:#000;
}    

/* ================= GIFT ================= */
body.theme-fixed-bg .section-gift{
    background:color-mix(in srgb, var(--bg) 70%, transparent);
}

.section-gift{
    position:relative;
    padding:40px 40px;
    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);
    color:#000;
}

.gift-card small{
    display:block;
    font-size:13px;
    color:#000;
}

.gift-card span.account-number{
    display:block;
    font-size:14px;
    font-weight:600;
    color:#000;
}

.kado-fisik-box{
    color:#000;
}

.gift-card .btn{
    background:var(--bg);
    padding:8px 18px;
    font-size:12px;
    border-radius:8px;
}


/* ================= TURUT MENGUNDANG ================= */

body.theme-fixed-bg .turut-mengundang{
    background:color-mix(in srgb, var(--bg) 70%, transparent);
}

.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
================================ */
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:90px;
}

/* foto tetap disembunyikan di penutup */
section.penutup:has(.pembuka-photo) .pembuka-photo{
    display:none;
}

/* overlay KHUSUS penutup */
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;
}



.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
================================ */
body.theme-fixed-bg .section-footer{
    background:color-mix(in srgb, #fff 90%, transparent);
}

.footer{
    padding:30px 20px;
    text-align:center;
}

.footer-inner{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
}

.footer-logo{
    height:36px;
    width:auto;
    opacity:.85;
}

.footer-text{
    font-size:13px;
    color:#000;
    letter-spacing:.3px;
}

.footer-text strong{
    color:var(--bg);
}

/* ================= MUSIC ================= */
#music-toggle{
    position:fixed;
    bottom:20px;
    left:20px;
    width:50px;
    height:50px;
    border-radius:50%;
    background:var(--bg);
    color:#fff;
    border:solid 1px var(--primary);
    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;
    }

}
