@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Playfair+Display:wght@400;500&family=Pinyon+Script&display=swap");

/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;

    background: #FFFFFF;
    color: #742c43;

    font-family: Georgia, "Times New Roman", serif;

    overflow-x: hidden;
}


/* =====================================================
   GLOBAL SECTION
===================================================== */

.section {
    position: relative;

    width: 100%;
    min-height: 100svh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px 24px;

    background: #ffffff;

    overflow: hidden;
}

.scene {
    position: relative;

    width: 100%;
    max-width: 390px;

    margin: 0 auto;

    text-align: center;

    z-index: 2;
}


/* =====================================================
   GLOBAL TEXT
===================================================== */

h1,
h2,
h3 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-style: normal;

    color: #742c43;
}

h2 {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 21px;
    line-height: 1.35;
}

p {
    font-size: 15px;
    line-height: 1.85;
    font-style: normal;

    color: #742c43;
}

.eyebrow {
    margin-bottom: 22px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 400;
    font-style: normal;

    letter-spacing: 4px;
    line-height: 1.5;

    color: #742c43;
    opacity: 0.75;
}

.date {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 400;
    font-style: normal;

    letter-spacing: 4px;

    color: #742c43;
}

.bismillah {
    margin-bottom: 25px;

    font-size: 25px;
    font-weight: 400;
    font-style: normal;

    line-height: 2;

    color: #742c43;
}

.greeting {
    margin-bottom: 25px;

    font-size: 15px;
    font-style: normal;

    color: #742c43;
}

.opening-text p {
    margin-bottom: 22px;
}


/* =====================================================
   COVER / OPENING
===================================================== */

.opening {
    position: relative;

    width: 100%;
    max-width: 940px;

    min-height: 100svh;

    margin: 0 auto;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background-image: url("assets/opening-swan-castle.png");
    background-color: #f8e8e6;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    overflow: hidden;
}


/* =====================================================
   COVER CONTENT
===================================================== */

.cover-content {
    position: relative;

    width: min(100%, 56.26svh, 430px);
    aspect-ratio: 768 / 1365;

    display: block;

    padding: 0;

    text-align: center;

    color: #742c43;

    background-image: none;
}

.cover-content .bismillah {
    position: absolute;

    top: 13%;
    left: 0;
    right: 0;

    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(14px, 4vw, 20px);
    font-weight: 400;
    font-style: normal;

    line-height: 1.5;

    color: #742c43;
}

.cover-eyebrow {
    position: absolute;

    top: 19%;
    left: 0;
    right: 0;

    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(9px, 2.5vw, 12px);
    font-weight: 400;
    font-style: normal;

    letter-spacing: 5px;

    color: #742c43;
}

.cover-content h1 {
    position: absolute;

    left: 0;
    right: 0;

    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 7vw, 40px);
    font-weight: 400;
    font-style: normal;

    line-height: 1.1;

    color: #742c43;
}

.cover-content h1:nth-of-type(1) {
    top: 25.5%;
}

.cover-content h1:nth-of-type(2) {
    top: 36%;
}

.cover-and {
    position: absolute;

    top: 32.5%;
    left: 0;
    right: 0;

    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 400;
    font-style: normal;

    line-height: 1;

    color: #742c43;
}

.cover-date {
    position: absolute;

    top: 44.5%;
    left: 0;
    right: 0;

    margin: 0;

    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(10px, 2.7vw, 13px);
    font-weight: 400;
    font-style: normal;

    letter-spacing: 5px;

    color: #742c43;
}

.cover-guest {
    position: absolute;

    top: 51%;
    left: 0;
    right: 0;

    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 400;
    font-style: normal;

    line-height: 1.8;

    color: #742c43;
}

.cover-button {
    position: absolute;

    top: 61%;
    left: 50%;

    transform: translateX(-50%);

    min-width: 155px;

    padding: 11px 28px;

    border: 1px solid #8e3f59;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.55);

    color: #742c43;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;

    line-height: 1.4;
    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.cover-button:focus-visible {
    background: rgba(255, 255, 255, 0.9);
    color: #742c43;
    outline: 2px solid #742c43;
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .cover-button:hover {
        background: rgba(255, 255, 255, 0.9);
        color: #742c43;
    }
}

.cover-button:active {
    transform: translateX(-50%) scale(0.97);
}


/* Tombol lama jika masih dipakai HTML */

.open-hotspot {
    position: absolute;

    left: 31.5%;
    top: 67.3%;

    width: 37%;
    height: 5.8%;

    margin: 0;
    padding: 0;

    border: none;
    border-radius: 30px;

    background: transparent;

    cursor: pointer;
    z-index: 20;
}

.open-hotspot:hover {
    background: transparent;
}

.open-hotspot:active {
    transform: scale(0.97);
}


.hero .scene {
    max-width: 370px;
    padding: 24px 18px;
    border-radius: 18px;
    background: rgba(255, 251, 248, 0.30);
}


/* =====================================================
   COUPLE
===================================================== */

.couple {
    display: block;
    overflow: clip;

    position: relative;
    isolation: isolate;

    background: #f8f1e8
        url("assets/couple-background-user.png")
        center center / 100% 100% no-repeat;
}

.section.couple {
    padding: 0;
}

#couple .scene {
    width: min(calc(100% - 48px), 380px);
    padding: 105px 0 150px;

    position: relative;
    z-index: 2;
}

.couple-card {
    width: 100%;

    margin-top: 40px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 18px;
}

.person {
    width: 100%;
    max-width: 330px;

    flex: none;

    padding: 15px 5px;

    text-align: center;
}

.person h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 400;
    font-style: normal;

    line-height: 1.4;

    color: #742c43;
}

.person p {
    margin-top: 12px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-weight: 400;
    font-style: italic;

    letter-spacing: 0.3px;
    line-height: 1.8;

    color: #742c43;
}

.ampersand {
    flex: none;

    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 400;
    font-style: normal;

    color: #742c43;
}


/* =====================================================
   DETAIL AKAD & RESEPSI
===================================================== */

.akad,
.resepsi {
    background: #f7f0e5;
}

.akad .scene,
.resepsi .scene {
    max-width: 390px;
}

/* Judul section */
.akad h2,
.resepsi h2 {
    margin-bottom: 28px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(31px, 8vw, 40px);
    font-weight: 400;
    font-style: normal;

    line-height: 1.2;
    letter-spacing: -0.5px;

    color: #742c43;
}

/* Kartu acara */
.detail-card {
    position: relative;

    width: 100%;
    max-width: 350px;

    margin: 0 auto;
    padding: 43px 25px 34px;

    text-align: center;

    background: #fffdfb;

    border: 1px solid #e5cfd5;

    box-shadow:
        0 12px 30px rgba(116, 44, 67, 0.045);
}

/* Garis dekorasi */
.detail-card::before {
    content: "";

    position: absolute;

    top: 13px;
    left: 50%;

    width: 45px;
    height: 1px;

    transform: translateX(-50%);

    background: #b98a99;
}

/* Ornamen kecil */
.detail-card::after {
    content: "✦";

    position: absolute;

    top: 5px;
    left: 50%;

    transform: translateX(-50%);

    padding: 0 8px;

    background: #fffdfb;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 10px;
    font-style: normal;

    color: #b98a99;
}

/* Judul dalam kartu */
.detail-card h3 {
    margin: 0 0 17px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    font-style: normal;

    line-height: 1.35;

    color: #742c43;
}

/* Tanggal */
.detail-card .date {
    margin-bottom: 17px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 400;
    font-style: normal;

    letter-spacing: 3px;
    line-height: 1.8;

    color: #742c43;
}

/* Jam - SATU-SATUNYA BAGIAN ITALIC */
.detail-card .time {
    margin-bottom: 23px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 400;
    font-style: italic;

    line-height: 1.7;

    color: #742c43;
}

/* Nama tempat dan alamat */
.detail-card p {
    margin: 0 auto;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 400;
    font-style: normal;

    line-height: 1.8;

    color: #742c43;
}

/* Kota jika memakai class city */
.detail-card .city {
    display: block;

    margin-top: 5px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;

    letter-spacing: 0.5px;

    color: #742c43;
}

/* Tombol lokasi */
.location-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 170px;
    min-height: 44px;

    margin-top: 27px;
    padding: 12px 23px;

    border: 1px solid #b07b8c;
    border-radius: 999px;

    background: #ffffff;

    color: #742c43;

    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 400;
    font-style: normal;

    letter-spacing: 1.5px;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.location-button:hover {
    background: #f8e8e6;
    color: #742c43;

    box-shadow:
        0 5px 15px rgba(116, 44, 67, 0.15);
}

.location-button:active {
    transform: scale(0.97);
}


/* =====================================================
   LOVE STORY
===================================================== */

.story {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 0;
    padding: 36px 20px;
    background: #f7f0e5;
}

.story::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image: url("assets/story-becoming-us.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    pointer-events: none;
    z-index: 0;
}

.story .scene {
    position: relative;
    z-index: 1;
    width: min(88%, 390px);
    max-width: none;
    padding: 0;
}

.story h2 {
    margin-top: 0;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(31px, 8.5vw, 36px);
    font-weight: 400;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: 0.1px;
    color: #742c43;
    text-shadow: 0 2px 12px rgba(116, 44, 67, 0.10);
}

.story-content {
    width: 100%;
    max-width: 360px;
    margin: 24px auto 0;
}

.story-quote {
    margin-bottom: 22px;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 500;
    font-style: italic;
    line-height: 1.75;
    letter-spacing: 0.1px;
    text-align: center;
    color: #742c43;
}

.story-copy p {
    margin: 0 0 20px;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    line-height: 1.75;
    letter-spacing: 0.05px;
    text-align: center;
    color: #742c43;
}

.story-copy p:last-child {
    margin-bottom: 0;
}


/* =====================================================
   COUNTDOWN
===================================================== */

.countdown {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #ffffff;
}

#countdown.section {
    min-height: 100svh;
    padding: 24px 20px 36px;
    background-color: #f5efe7;
    background-image: url("assets/countdown-page-background.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

#countdown .countdown-frame {
    position: relative;
    width: 100%;
    max-width: 520px;
    min-height: 100svh;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 18px 30px;
}

#countdown .countdown-frame {
    position: relative;
    width: 100%;
    max-width: 500px;
    min-height: 100svh;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
}

#countdown .scene {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    max-width: none;
    transform: none;
    left: auto;
    top: auto;
    margin: 0 auto;
    padding: 30px 18px 26px;
    border-radius: 28px;
    background: rgba(255, 251, 245, 0.42);
    box-shadow: 0 20px 40px rgba(116, 44, 67, 0.08);
}

#countdown .eyebrow {
    margin-bottom: 10px;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: clamp(11px, 2vw, 15px);
    letter-spacing: 0.35em;
    font-weight: 500;
    color: #7b4050;
    opacity: 0.95;
    text-transform: uppercase;
}


#countdown h2 {
    margin-bottom: 28px;
    font-family: "Pinyon Script", cursive;
    font-size: clamp(36px, 6vw, 46px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    color: #742c43;
    -webkit-text-stroke: 0;
    text-shadow: none;
}

.countdown-wrapper {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

#countdown .countdown-wrapper > div {
    flex: none;
    min-width: 0;
    padding: 16px 8px 12px;
    border: 1px solid rgba(123, 64, 80, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}


#countdown .countdown-wrapper span {
    display: block;
    font-family: "Bodoni Moda", serif;
    font-size: clamp(26px, 5vw, 36px);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.1;
    color: #742c43;
}



#countdown .countdown-wrapper small {
    display: block;
    margin-top: 10px;
    font-family: "Bodoni Moda", serif;
    font-size: clamp(8px, 1.8vw, 11px);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #662d3c;
    opacity: 0.9;
}


@media (max-width: 360px) {
    #countdown.section {
        padding: 18px 12px;
    }

    #countdown .scene {
        padding: 22px 10px 18px;
    }

    .countdown-wrapper {
        gap: 8px;
    }

    #countdown .countdown-wrapper > div {
        padding: 14px 6px 10px;
    }
}


/* =====================================================
   WISHES
===================================================== */

.wishes {
    background-color: #f8f0e4;
    background-image: url("assets/wishes-prayers-frame.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

#wishes .scene {
    transform: translateY(4px);
}

.wish-form {
    width: 100%;
    max-width: 350px;

    margin: 30px auto 0;

    text-align: left;
}

#wishes .wish-form input,
#wishes .wish-form textarea {
    background: rgba(255, 251, 243, 0.7);
}

.wish-form label {
    display: block;

    margin: 15px 0 8px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 400;
    font-style: normal;

    color: #742c43;
}

.wish-form input,
.wish-form textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid rgba(91, 38, 53, 0.25);
    border-radius: 0;

    background: #ffffff;

    color: #742c43;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-style: normal;

    outline: none;
}

.wish-form input::placeholder,
.wish-form textarea::placeholder {
    color: #742c43;
    opacity: 0.65;
}

.wish-form textarea {
    resize: vertical;
}

.wish-form input:focus,
.wish-form textarea:focus {
    border-color: #7b4050;
}

button {
    appearance: none;

    min-height: 44px;

    border: 1px solid #7b4050;
    border-radius: 0;

    background: transparent;
    color: #742c43;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 400;
    font-style: normal;

    letter-spacing: 1px;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.wish-form button {
    margin-top: 20px;
    padding: 13px 20px;
}

button:hover {
    background: #f8e8e6;
    color: #742c43;
}

button:active {
    transform: scale(0.97);
}

.wish-list {
    width: 100%;
    max-width: 350px;

    margin: 22px auto 0;
}

.wish-item {
    margin-bottom: 18px;
    padding: 18px;

    text-align: left;

    border: 1px solid rgba(91, 38, 53, 0.15);

    background: rgba(255, 251, 243, 0.7);
}

.wish-item h3 {
    font-size: 17px;
}

.wish-item p {
    margin-top: 7px;
    font-size: 13px;
}


/* =====================================================
   CLOSING
===================================================== */

.closing {
    background: #f7f0e8;
    background-image: url("assets/closing-couple-floral-background.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.closing .eyebrow {
    margin-bottom: 18px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    letter-spacing: 3px;
    color: #742c43;
}

.closing h2 {
    margin: 20px 0 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 6.5vw, 34px);
    font-style: normal;
    line-height: 1.35;
}

.closing h2 span {
    font-size: 0.75em;
}

.closing .date {
    margin-top: 18px;

    font-size: 11px;
    letter-spacing: 2.5px;
    line-height: 1.7;
}

.closing .scene > p:not(.eyebrow):not(.date) {
    width: 100%;
    max-width: 340px;
    margin-right: auto;
    margin-left: auto;

    font-size: 13px;
    line-height: 1.8;
}

.closing .scene > p:last-child {
    margin-top: 25px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-style: italic;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 699px) {

    body {
        background: #ffffff;
    }

    .section {
        width: 100%;
        min-height: 100svh;

        padding: 55px 20px;
    }

    #couple .scene {
        width: calc(100% - 40px);
        padding: 105px 0 150px;
    }

    .scene {
        width: 100%;
        max-width: 390px;
    }

    .couple-card {
        gap: 12px;
    }

    .person {
        width: 100%;
        max-width: 330px;

        padding: 15px 3px;
    }

    .person-image {
        width: 165px;
        height: 165px;
    }

    .person h3 {
        font-size: 19px;
    }

    .countdown-wrapper {
        gap: 5px;
    }

    .countdown-wrapper > div {
        padding: 13px 3px;
    }

    .countdown-wrapper span {
        font-size: 23px;
    }

    .bismillah {
        font-size: 22px;
    }

    .opening {
        width: 100%;
        max-width: none;

        min-height: 100svh;

        margin: 0;
        padding: 0;

        display: flex;
    }

    .cover-content h1 {
        font-size: clamp(28px, 7vw, 36px);
    }

    .cover-content .bismillah {
        font-size: clamp(14px, 4vw, 20px);
    }

    .cover-button {
        padding-right: clamp(16px, 5vw, 28px);
        padding-left: clamp(16px, 5vw, 28px);
        white-space: nowrap;
    }

    .akad h2,
    .resepsi h2 {
        margin-bottom: 25px;

        font-size: 34px;
    }

    .detail-card {
        max-width: 340px;

        padding: 42px 21px 32px;
    }

    .detail-card h3 {
        font-size: 23px;
    }

    .detail-card .date {
        font-size: 9px;
        letter-spacing: 2.5px;
    }

    .detail-card .time {
        font-size: 15px;
    }

    .detail-card p {
        font-size: 14px;
    }
}


/* =====================================================
   DESKTOP
   TETAP BERBENTUK LAYAR HP
===================================================== */

@media (min-width: 700px) {

    body {
        background: #f7f4f0;
    }

    .section {
        width: 430px;
        max-width: 430px;

        margin-left: auto;
        margin-right: auto;

        padding-left: 24px;
        padding-right: 24px;
    }

    .opening {
        width: 430px;
        max-width: 430px;

        min-height: 100svh;

        padding: 0;
    }

    .scene {
        max-width: 380px;
    }
}


/* =====================================================
   DESKTOP BESAR
===================================================== */

@media (min-width: 1200px) {

    .section {
        box-shadow: none;
    }
}


/* =====================================================
   SEMUA LATAR PUTIH
===================================================== */

html,
body,
.section,
.hero,
.couple,
.akad,
.resepsi,
.story,
.countdown,
.wishes,
.closing {
    background-color: #ffffff;
    box-shadow: none;
}

html body {
    background-color: #f4eee5;
}

/* =====================================================
   FIX AKAD & RESEPSI - TARGET SEMUA VERSI HTML
===================================================== */

/* Judul akad dan resepsi */
.akad h2,
.resepsi h2,
.event h2 {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 36px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
    color: #742c43 !important;
    margin-bottom: 28px !important;
}

/* Kartu versi detail-card DAN event */
.detail-card,
.event {
    position: relative !important;

    width: 100% !important;
    max-width: 350px !important;

    margin: 0 auto !important;
    padding: 43px 25px 34px !important;

    text-align: center !important;

    background: #fffdfb !important;

    border: 1px solid #e5cfd5 !important;

    box-shadow: 0 12px 30px rgba(116, 44, 67, 0.06) !important;
}

/* Garis dekorasi atas */
.detail-card::before,
.event::before {
    content: "" !important;

    position: absolute !important;
    top: 13px !important;
    left: 50% !important;

    width: 45px !important;
    height: 1px !important;

    transform: translateX(-50%) !important;

    background: #b98a99 !important;
}

/* Simbol kecil atas */
.detail-card::after,
.event::after {
    content: "✦" !important;

    position: absolute !important;
    top: 5px !important;
    left: 50% !important;

    transform: translateX(-50%) !important;

    padding: 0 8px !important;

    background: #fffdfb !important;

    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 10px !important;
    color: #b98a99 !important;
}

/* Nama tempat */
.detail-card h3,
.event .event-place {
    margin: 0 0 17px !important;

    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    font-style: normal !important;

    line-height: 1.35 !important;

    color: #742c43 !important;
}

/* Tanggal */
.detail-card .date,
.event .event-date {
    margin-bottom: 17px !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 9px !important;
    font-weight: 400 !important;
    font-style: normal !important;

    letter-spacing: 3px !important;
    line-height: 1.8 !important;

    color: #742c43 !important;
}

/* Jam saja yang italic */
.detail-card .time,
.event .event-time {
    margin-bottom: 23px !important;

    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    font-style: italic !important;

    line-height: 1.7 !important;

    color: #742c43 !important;
}

/* Alamat dan kota */
.detail-card p,
.event .event-address {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;

    line-height: 1.8 !important;

    color: #742c43 !important;
}

/* Tombol lokasi */
.detail-card .location-button,
.event .location-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 170px;

    margin-top: 27px;
    padding: 12px 23px;

    border: 1px solid #742c43;
    border-radius: 999px;

    background: #f7f0e5;

    color: #742c43;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 400;
    font-style: normal;

    letter-spacing: 1.5px;

    text-decoration: none;
}

.detail-card .location-button:hover,
.event .location-button:hover {
    background: #742c43;
    color: #f7f0e5;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .akad h2,
    .resepsi h2 {
        font-size: 34px !important;
        margin-bottom: 25px !important;
    }

    .detail-card,
    .event {
        max-width: 340px !important;
        padding: 42px 21px 32px !important;
    }

    .detail-card h3,
    .event .event-place {
        font-size: 23px !important;
    }

    .detail-card .date,
    .event .event-date {
        font-size: 9px !important;
        letter-spacing: 2.5px !important;
    }

    .detail-card .time,
    .event .event-time {
        font-size: 15px !important;
    }
}

/* =====================================================
   AKAD & RESEPSI — FINAL STYLE
===================================================== */

/* Section Akad dan Resepsi */
.akad,
.resepsi {
    position: relative;
    isolation: isolate;

    min-height: 100svh;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f7f0e5;

    overflow: hidden;
}

/* Bingkai bunga full screen */
.akad::before,
.resepsi::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image: url("assets/event-floral-frame.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;

    opacity: 1;

    pointer-events: none;
    z-index: 0;
}

/* Isi section berada di atas bunga */
.akad .scene,
.resepsi .scene {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 390px;

    margin: 0 auto;

    text-align: center;
}

/* Tulisan kecil di luar kotak */
.akad .eyebrow,
.resepsi .eyebrow {
    margin-bottom: 22px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 400;
    font-style: normal;

    letter-spacing: 4px;
    line-height: 1.5;

    color: #742c43;

    text-align: center;
}

/* Judul Akad dan Resepsi */
.akad h2,
.resepsi h2,
.event h2 {
    position: relative;
    z-index: 3;

    margin-bottom: 28px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 8vw, 40px);
    font-weight: 400;
    font-style: normal;

    line-height: 1.2;
    letter-spacing: -0.5px;

    color: #742c43;

    text-align: center;
}

/* Kotak detail acara */
.akad .detail-card,
.resepsi .detail-card,
.akad .event,
.resepsi .event {
    position: relative;
    z-index: 4;

    width: 100%;
    max-width: 350px;

    margin: 0 auto;
    padding: 43px 25px 34px;

    text-align: center;

    background: transparent !important;
    border: 0;
    box-shadow: none;
}

/* Garis dekorasi atas */
.akad .detail-card::before,
.resepsi .detail-card::before,
.akad .event::before,
.resepsi .event::before {
    display: none;
}

/* Simbol kecil atas */
.akad .detail-card::after,
.resepsi .detail-card::after,
.akad .event::after,
.resepsi .event::after {
    display: none;
}

/* Nama tempat */
.detail-card h3,
.event .event-place {
    margin: 0 0 17px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    font-style: normal;

    line-height: 1.35;

    color: #742c43;
}

/* Tanggal */
.detail-card .date,
.event .event-date {
    margin-bottom: 17px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 400;
    font-style: normal;

    letter-spacing: 3px;
    line-height: 1.8;

    color: #742c43;
}

/* Jam — hanya bagian ini italic */
.detail-card .time,
.event .event-time {
    margin-bottom: 23px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 400;
    font-style: italic;

    line-height: 1.7;

    color: #742c43;
}

/* Alamat dan keterangan */
.detail-card p,
.event .event-address {
    margin: 0 auto;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;

    line-height: 1.8;

    color: #742c43;
}

/* Kota */
.detail-card .city {
    display: block;

    margin-top: 5px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;

    letter-spacing: 0.5px;

    color: #742c43;
}

/* Tombol lokasi */
.detail-card .location-button,
.event .location-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 170px;
    min-height: 44px;

    margin-top: 27px;
    padding: 12px 23px;

    border: 1px solid #742c43;
    border-radius: 999px;

    background: #f7f0e5;

    color: #742c43;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 400;
    font-style: normal;

    letter-spacing: 1.5px;
    text-decoration: none;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.detail-card .location-button:hover,
.event .location-button:hover {
    background: #742c43;
    color: #f7f0e5;

    box-shadow:
        0 5px 15px rgba(116, 44, 67, 0.15);
}

.detail-card .location-button:active,
.event .location-button:active {
    background: #742c43;
    color: #f7f0e5;
    transform: scale(0.97);
}

.detail-card .location-button:focus-visible,
.event .location-button:focus-visible {
    outline: 2px solid #742c43;
    outline-offset: 3px;
}

/* =====================================================
   MOBILE — AKAD & RESEPSI
===================================================== */

@media (max-width: 600px) {

    .akad,
    .resepsi {
        min-height: 100svh;
        padding: 55px 20px;
    }

    .akad::before,
    .resepsi::before {
        background-size: 100% 100%;
        background-position: center center;

        opacity: 1;
    }

    .akad h2,
    .resepsi h2,
    .event h2 {
        margin-bottom: 25px;
        font-size: 34px;
    }

    .akad .detail-card,
    .resepsi .detail-card,
    .akad .event,
    .resepsi .event {
        max-width: 340px;
        padding: 42px 21px 32px;
    }

    .detail-card h3,
    .event .event-place {
        font-size: 23px;
    }

    .detail-card .date,
    .event .event-date {
        font-size: 9px;
        letter-spacing: 2.5px;
    }

    .detail-card .time,
    .event .event-time {
        font-size: 15px;
    }

    .detail-card p,
    .event .event-address {
        font-size: 14px;
    }
}


/* =====================================================
   DESKTOP — TETAP LAYOUT HP
===================================================== */

@media (min-width: 700px) {

    .akad,
    .resepsi {
        width: 430px;
        max-width: 430px;

        margin-left: auto;
        margin-right: auto;
    }

    .akad::before,
    .resepsi::before {
        background-size: 100% 100%;
        background-position: center center;
    }
}
/* =====================================================
   BINGKAI BUNGA FOTO MEMPELAI
===================================================== */
.person-image {
    position: relative;
    width: min(180px, 48vw);
    aspect-ratio: 2 / 3;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    overflow: visible;
    isolation: isolate;
}

/* Foto berada di lubang tengah bingkai */
.person-image img {
    position: relative;
    z-index: 2;
    width: 48%;
    height: 40%;
    margin: 0;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 2px solid #ead0d8;
    box-shadow: 0 3px 12px rgba(116, 44, 67, 0.12);
}

/* =====================================================
   KATA PENGANTAR RESPONSIVE UNTUK HP
===================================================== */

.hero .opening-text {
    width: 100%;
    max-width: 410px;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.hero .opening-text p {
    width: 100%;
    max-width: 410px;
    margin: 0 auto 28px;
    font-size: 14px;
    line-height: 1.9;
    text-align: center;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}


#hero {
    position: relative;
    overflow: hidden;
}

#hero .scene {
    position: relative;
    z-index: 5;
}




/* =====================================================
   COVER MUNCUL SETELAH INTRO VIDEO
===================================================== */

#opening {
    position: relative;
    z-index: 1;
}

/* =====================================================
   COVER TETAP PUTIH
===================================================== */

html,
body,
#opening,
.opening {
    background-color: #ffffff;
}

/* =====================================================
   VIDEO SETELAH COVER
   TETAP UKURAN HP — TIDAK ZOOM / TIDAK CROP
===================================================== */

.intro-video {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100svh;
    padding: 0;

    background: #ffffff;
    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro-video.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.intro-video.video-whiteout video {
    opacity: 0;
}

.intro-video.video-whiteout {
    opacity: 1;
    transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
}

.intro-video video {
    display: block;
    width: 100%;
    max-width: 430px;
    height: 100%;
    max-height: 100svh;

    object-fit: contain;
    object-position: center center;
    background: #ffffff;

    opacity: 1;
    transition: opacity 0.7s ease;
}

/* Cover tetap menjadi halaman pertama */
#opening {
    position: relative;
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

body.video-playing #opening {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.invitation-opened #opening {
    display: none;
}

body.scroll-animations-ready .scroll-reveal {
    opacity: 0;
    translate: 0 18px;
    scale: 0.98;
    transition:
        opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        translate 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        scale 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

body.scroll-animations-ready .scroll-reveal.is-scroll-visible {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    transition-duration: 0.8s;
    transition-delay: var(--scroll-delay, 0ms);
}

html,
body,
#opening,
.opening,
.hero {
    background-color: #ffffff;
}

@media (min-width: 700px) {
    body {
        background-color: #f7f4f0;
    }
}

@media (min-width: 700px) {
    .intro-video video {
        width: 430px;
        max-width: 430px;
        height: 100svh;
        max-height: 100svh;
        object-fit: contain;
    }
}

@media (max-width: 430px) {
    .intro-video video {
        width: 100%;
        max-width: 430px;
        height: 100%;
        max-height: 100svh;
        object-fit: contain;
    }
}


/* LATAR HALAMAN SALAM PEMBUKA */
#hero {
    background-image: url("assets/salam-opening-frame.png") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 100% 100% !important;
    background-color: #f8e8e6 !important;
    min-height: 0;
    height: auto;
    aspect-ratio: 768 / 1365;
    padding: 28px 20px;
}

/* Pastikan isi salam tetap terlihat di atas latar */
#hero .scene {
    position: relative;
    z-index: 2;
    width: min(76%, 360px);
    max-width: none;
    padding: 0;
    background: none;
}

#hero .bismillah {
    margin-bottom: clamp(10px, 2vh, 20px);
    font-size: clamp(20px, 6vw, 26px);
    line-height: 1.5;
    white-space: nowrap;
}

#hero .greeting {
    margin-bottom: clamp(10px, 2vh, 20px);
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(11px, 3.4vw, 14px);
    line-height: 1.55;
}

#hero .opening-text {
    max-width: none;
    padding: 0;
}

#hero .opening-text p {
    max-width: none;
    margin-bottom: 0;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(12px, 3.5vw, 14px);
    line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
    body.scroll-animations-ready .scroll-reveal,
    body.scroll-animations-ready .scroll-reveal.is-scroll-visible {
        opacity: 1;
        translate: none;
        scale: 1;
        transform: none;
        transition: none;
    }

}

#story.section {
    min-height: 0;
    height: auto;
    padding: 36px 20px;
}

#wishes.section {
    min-height: 0;
    height: auto;
    aspect-ratio: 768 / 1365;
    padding: 42px 24px;
    background-color: #fbf0e5;
    background-image: url("assets/wishes-prayers-frame.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#wishes .scene {
    width: min(88%, 340px);
    max-width: none;
    transform: none;
}

#wishes .eyebrow {
    margin-bottom: 10px;
    font-size: 8px;
    letter-spacing: 2.5px;
}

#wishes h2 {
    margin-bottom: 8px;
    font-size: clamp(25px, 7vw, 31px);
    line-height: 1.15;
}

#wishes .scene > p:not(.eyebrow) {
    max-width: 290px;
    margin: 0 auto;
    font-size: 12px;
    line-height: 1.55;
}

#wishes .wish-form {
    max-width: 320px;
    margin-top: 15px;
}

#wishes .wish-form label {
    margin: 8px 0 4px;
    font-size: 10px;
}

#wishes .wish-form input,
#wishes .wish-form textarea {
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 12px;
}

#wishes .wish-form input {
    min-height: 38px;
}

#wishes .wish-form textarea {
    min-height: 68px;
    resize: vertical;
}

#wishes .wish-form button {
    min-height: 38px;
    margin-top: 12px;
    padding: 9px 16px;
    font-size: 9px;
}

#wishes .wish-list {
    max-width: 320px;
    margin-top: 10px;
}

#wishes .wish-item {
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 6px;
}

#wishes .wish-item h3 {
    font-size: 14px;
}

#wishes .wish-item p {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 699px) {
    #wishes .wish-list {
        max-height: 24vh;
        max-height: clamp(120px, 24svh, 200px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }
}

/* =====================================================
   PERBAIKAN TERARAH FOTO MEMPELAI
   Override hanya bagian foto; bagian undangan lain tetap.
===================================================== */
#couple .person-image {
    width: min(180px, 48vw);
    height: auto;
    aspect-ratio: 768 / 904;
}

#couple .person-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image: url("assets/couple-oval-pearl-lace-frame.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    pointer-events: none;
}

#couple .person-image img {
    width: 65%;
    height: 76%;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    object-fit: cover;
    object-position: center 25%;
}

@media (max-width: 699px) {
    #couple .person-image {
        width: min(180px, 48vw);
        height: auto;
        aspect-ratio: 768 / 904;
    }

    #couple .person-image img {
        width: 65%;
        height: 76%;
    }
}

.font-nama {
    /* Samakan font nama mempelai dengan judul "Our Special Day" */
    font-family: "Pinyon Script", cursive !important;
    font-size: clamp(32px, 8vw, 40px) !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1.25 !important;
}

.judul-countdown {
    font-family: "Cormorant Garamond", serif !important;
    font-style: italic !important;
    font-weight: 500 !important;
}
/* Bismillah — kaligrafi elegan */
#hero .bismillah {
    position: relative !important;
    top: -12px !important;

    font-family: "Amiri", serif !important;
    font-size: clamp(30px, 7vw, 38px) !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;

    margin-bottom: 10px !important;
    color: #742c43 !important;
    direction: rtl;
}

/* =====================================================
   SATU HALAMAN LOKASI: GARIS MELIUK AKAD & RESEPSI
===================================================== */
.section.location {
    min-height: 100svh;
    padding: 28px 18px;
    overflow: hidden;
    background: #f7f0e5 url("assets/akad-resepsi-background.png") center / 100% 100% no-repeat;
}
.location-scene {
    position: relative;
    width: min(100%, 430px);
    min-height: min(780px, calc(100svh - 56px));
    margin: 0 auto;
    padding: 44px 0 35px;
    isolation: isolate;
}
.location-eyebrow {
    position: relative;
    z-index: 2;
    margin: 0 0 20px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    letter-spacing: 4px;
    color: #742c43;
    opacity: .75;
}
.location-wavy-line {
    position: absolute;
    z-index: 0;
    top: 95px;
    bottom: 24px;
    left: 0;
    width: 100%;
    height: calc(100% - 120px);
    overflow: visible;
    pointer-events: none;
}
.location-wavy-line path {
    fill: none;
    stroke: #842d3c;
    stroke-width: 1.05;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
}
.location-dot {
    position: absolute;
    z-index: 2;
    left: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #842d3c;
    transform: translateX(-50%);
    box-shadow: 0 0 0 5px rgba(247,240,229,.6);
}
.location-dot--top { top: 87px; }
.location-dot--bottom { bottom: 17px; }
.location-event {
    position: relative;
    z-index: 1;
    width: 48%;
    color: #742c43;
}
.location-event--akad {
    margin: 30px auto 0 0;
    padding: 0 8px 0 0;
    text-align: left;
}
.location-event--resepsi {
    margin: 115px 0 0 auto;
    padding: 0 0 0 8px;
    text-align: left;
}
.location-event h2 {
    margin: 0 0 9px;
    font-family: "Pinyon Script", "Great Vibes", cursive;
    font-size: clamp(31px, 8vw, 43px);
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: 0;
    color: #842d3c;
}
.location-event--resepsi h2 { font-size: clamp(34px, 8.5vw, 46px); }
.location-event p {
    margin: 0 0 7px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(10px, 2.8vw, 12px);
    line-height: 1.55;
    color: #742c43;
    overflow-wrap: anywhere;
}
.location-event .location-date {
    font-size: clamp(8px, 2.3vw, 10px);
    letter-spacing: .8px;
    line-height: 1.6;
}
.location-event .location-time { font-size: 12px; }
.location-event .location-venue { font-weight: 600; }
.location-event .location-address { margin-bottom: 10px; }
.location-event .location-button {
    min-width: 0;
    min-height: 0;
    margin-top: 3px;
    padding: 8px 10px;
    font-size: 8px;
    letter-spacing: .4px;
    white-space: normal;
    text-align: center;
}
@media (max-width: 380px) {
    .section.location { padding: 22px 13px; }
    .location-scene { min-height: calc(100svh - 44px); padding-top: 34px; }
    .location-wavy-line { top: 83px; height: calc(100% - 108px); }
    .location-dot--top { top: 75px; }
    .location-dot--bottom { bottom: 12px; }
    .location-event--akad { margin-top: 27px; }
    .location-event--resepsi { margin-top: 95px; }
    .location-event { width: 49%; }
    .location-event p { font-size: 9px; }
    .location-event .location-date { font-size: 7px; letter-spacing: .4px; }
    .location-event .location-button { padding: 7px 6px; font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
    .location-wavy-line path { animation: none !important; }
}


/* =====================================================
   FINAL FIX LOKASI: GARIS TENGAH LURUS + TEKS LEBIH RAPI
===================================================== */
.location-wavy-line path {
    d: path("M 50 2 L 50 98");
    stroke-width: 1.1;
}
.location-event {
    width: 46%;
}
.location-event--akad {
    margin-top: 30px;
    padding-right: 10px;
}
.location-event--resepsi {
    margin-top: 100px;
    padding-left: 10px;
}
.location-event h2,
.location-event--resepsi h2 {
    font-family: "Pinyon Script", "Great Vibes", cursive;
    font-size: clamp(27px, 7vw, 36px);
    line-height: 1.05;
    margin: 0 0 14px;
    white-space: nowrap;
    letter-spacing: 0;
}
.location-event p {
    font-size: clamp(10px, 2.65vw, 12px);
    line-height: 1.65;
    margin-bottom: 8px;
    overflow-wrap: normal;
    word-break: normal;
}
.location-event .location-date {
    font-size: clamp(7.5px, 2.15vw, 9px);
    letter-spacing: .45px;
    line-height: 1.6;
}
.location-event .location-time {
    font-size: 11px;
}
.location-event .location-venue {
    font-size: 12px;
    line-height: 1.45;
}
.location-event .location-address {
    font-size: 11px;
    line-height: 1.55;
    margin-bottom: 11px;
}
.location-event .location-button {
    display: inline-flex;
    max-width: 100%;
    padding: 8px 9px;
    font-size: 7.5px;
    line-height: 1.4;
    letter-spacing: .25px;
}
.location-dot--top { top: 87px; }
.location-dot--bottom { bottom: 17px; }
@media (max-width: 380px) {
    .location-event { width: 46%; }
    .location-event--akad { margin-top: 27px; padding-right: 8px; }
    .location-event--resepsi { margin-top: 90px; padding-left: 8px; }
    .location-event h2,
    .location-event--resepsi h2 { font-size: clamp(25px, 7vw, 30px); }
    .location-event .location-date { font-size: 7px; letter-spacing: .2px; }
    .location-event .location-venue,
    .location-event .location-address { font-size: 10px; }
    .location-event .location-button { padding: 7px 5px; font-size: 7px; }
}


/* =====================================================
   PERBAIKAN LANJUTAN: TEKS LOKASI RATA TENGAH & TIDAK TERPOTONG
===================================================== */
.location-event {
    width: 46%;
    min-width: 0;
    text-align: center;
}
.location-event--akad {
    margin-left: 0;
    margin-right: auto;
    padding: 0 9px 0 2px;
}
.location-event--resepsi {
    margin-left: auto;
    margin-right: 0;
    padding: 0 2px 0 9px;
}
.location-event h2,
.location-event--resepsi h2 {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: normal;
    text-align: center;
    font-size: clamp(24px, 6.5vw, 32px);
    line-height: 1.08;
    margin: 0 0 14px;
}
.location-event p {
    text-align: center;
    overflow-wrap: break-word;
    word-break: normal;
}
.location-event .location-date {
    font-size: clamp(7.5px, 2vw, 9px);
    letter-spacing: .25px;
}
.location-event .location-venue,
.location-event .location-address {
    font-size: clamp(9px, 2.5vw, 11px);
    line-height: 1.5;
}
.location-event .location-button {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}
.location-wavy-line path {
    d: path("M 50 2 L 50 98");
}
@media (max-width: 380px) {
    .location-event {
        width: 46%;
    }
    .location-event--akad {
        padding-right: 7px;
    }
    .location-event--resepsi {
        padding-left: 7px;
    }
    .location-event h2,
    .location-event--resepsi h2 {
        font-size: clamp(23px, 6.2vw, 28px);
        line-height: 1.08;
    }
    .location-event .location-date {
        font-size: 7px;
        letter-spacing: 0;
    }
    .location-event .location-venue,
    .location-event .location-address {
        font-size: 9px;
    }
}


/* =====================================================
   FINISHING LOKASI — TIPOGRAFI ELEGAN & JARAK LEBIH RAPAT
===================================================== */
.section.location {
    padding: 24px 16px;
    background-color: #f8efe6;
}
.location-scene {
    width: min(100%, 430px);
    min-height: 700px;
    padding: 38px 0 30px;
}
.location-eyebrow {
    margin-bottom: 16px;
    font-size: 10px;
    letter-spacing: 4px;
    font-weight: 500;
}
.location-wavy-line {
    top: 88px;
    height: calc(100% - 112px);
}
.location-dot--top { top: 80px; }
.location-dot--bottom { bottom: 20px; }
.location-event {
    width: 47%;
    text-align: center;
}
.location-event--akad {
    margin: 24px 0 0;
    padding: 0 10px 0 0;
    text-align: center;
}
.location-event--resepsi {
    margin: 72px 0 0 auto;
    padding: 0 0 0 10px;
    text-align: center;
}
.location-event h2,
.location-event--resepsi h2 {
    margin: 0 0 12px;
    font-family: "Pinyon Script", "Great Vibes", cursive;
    font-size: clamp(34px, 8.8vw, 45px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: 0;
    text-align: center;
    white-space: normal;
    overflow-wrap: normal;
    color: #842d3c;
}
.location-event p {
    margin: 0 0 7px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 500;
    line-height: 1.38;
    text-align: center;
    overflow-wrap: normal;
    word-break: normal;
    color: #742c43;
}
.location-event .location-date {
    margin-bottom: 8px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(9px, 2.35vw, 11px);
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1.4;
}
.location-event .location-time {
    font-size: 14px;
    font-weight: 600;
}
.location-event .location-venue {
    margin-top: 8px;
    font-size: clamp(13px, 3.2vw, 15px);
    font-weight: 700;
    line-height: 1.25;
}
.location-event .location-address {
    margin-top: 7px;
    margin-bottom: 11px;
    font-size: clamp(12px, 2.9vw, 14px);
    font-weight: 500;
    line-height: 1.35;
}
.location-event .location-button {
    display: inline-flex;
    max-width: 100%;
    margin: 3px auto 0;
    padding: 8px 10px;
    border-radius: 999px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1px;
    white-space: nowrap;
}
.location-wavy-line path {
    d: path("M 50 2 L 50 98");
    stroke: #842d3c;
    stroke-width: 1.1;
}
@media (max-width: 380px) {
    .section.location { padding: 20px 12px; }
    .location-scene { min-height: 670px; padding-top: 34px; }
    .location-event { width: 47%; }
    .location-event--akad { margin-top: 24px; padding-right: 8px; }
    .location-event--resepsi { margin-top: 68px; padding-left: 8px; }
    .location-event h2,
    .location-event--resepsi h2 { font-size: clamp(29px, 8vw, 36px); }
    .location-event .location-date { font-size: 8.5px; letter-spacing: .1px; }
    .location-event .location-time { font-size: 12px; }
    .location-event .location-venue { font-size: 12px; }
    .location-event .location-address { font-size: 11px; }
    .location-event .location-button { padding: 7px 7px; font-size: 9px; }
}

/* =====================================================
   FINAL LAYOUT LOKASI — MENYERUPAI REFERENSI PENGANTIN
   Posisi, ukuran, jarak, dan font disesuaikan untuk layar HP
===================================================== */
.section.location {
    min-height: auto;
    height: auto;
    padding: 0 14px;
    overflow: hidden;
    background-color: #f8eee5;
    background-image: url("assets/akad-resepsi-background.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.location-scene {
    position: relative;
    width: min(100%, 430px);
    height: clamp(740px, 190vw, 820px);
    min-height: 740px;
    margin: 0 auto;
    padding: 0;
    isolation: isolate;
}

.location-eyebrow {
    position: absolute;
    top: 4.5%;
    left: 0;
    width: 100%;
    margin: 0;
    text-align: center;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    color: #8a3b4b;
    opacity: .9;
}

.location-wavy-line {
    position: absolute;
    top: 18%;
    bottom: 15%;
    left: 50%;
    width: 1px;
    height: auto;
    transform: translateX(-50%);
    overflow: visible;
    z-index: 0;
}

.location-wavy-line path {
    d: path("M 50 0 L 50 100");
    fill: none;
    stroke: #873447;
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
}

.location-dot {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 18px;
    background: #873447;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: none;
    z-index: 2;
}
.location-dot--top { top: calc(18% - 9px); }
.location-dot--bottom { bottom: calc(15% - 9px); }

.location-event {
    position: absolute;
    z-index: 1;
    width: 44%;
    margin: 0;
    padding: 0;
    text-align: center;
    color: #742c43;
}
.location-event--akad {
    left: 2%;
    top: 13.5%;
    padding: 0 2px;
    text-align: center;
}
.location-event--resepsi {
    right: 2%;
    top: 47%;
    padding: 0 2px;
    text-align: center;
}

.location-event h2,
.location-event--resepsi h2 {
    margin: 0 0 15px;
    font-family: "Pinyon Script", "Great Vibes", cursive;
    font-size: clamp(39px, 10.5vw, 49px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0;
    text-align: center;
    white-space: normal;
    color: #873447;
}

.location-event p {
    margin: 0 0 8px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(13px, 3.4vw, 15px);
    font-weight: 500;
    line-height: 1.42;
    text-align: center;
    color: #742c43;
    overflow-wrap: normal;
    word-break: normal;
}
.location-event .location-date {
    margin-bottom: 10px;
    font-size: clamp(10px, 2.7vw, 12px);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.45;
}
.location-event .location-time {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
}
.location-event .location-venue {
    margin-top: 0;
    margin-bottom: 8px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(15px, 3.8vw, 17px);
    font-weight: 700;
    line-height: 1.25;
}
.location-event .location-address {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: clamp(13px, 3.35vw, 15px);
    font-weight: 500;
    line-height: 1.42;
}
.location-event .location-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 0;
    margin: 2px auto 0;
    padding: 9px 12px;
    border: 1px solid #bd8792;
    border-radius: 999px;
    background: rgba(255, 250, 246, .86);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1px;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
}

@media (min-width: 500px) {
    .location-scene { height: 820px; }
    .location-event--akad { left: 3%; }
    .location-event--resepsi { right: 3%; }
}

@media (max-width: 380px) {
    .section.location { padding: 0 9px; }
    .location-scene { height: 740px; min-height: 740px; }
    .location-event { width: 45%; }
    .location-event--akad { left: 1%; top: 14%; }
    .location-event--resepsi { right: 1%; top: 47%; }
    .location-event h2,
    .location-event--resepsi h2 { font-size: clamp(35px, 10vw, 40px); margin-bottom: 12px; }
    .location-event .location-date { font-size: 9px; letter-spacing: .45px; }
    .location-event .location-time { font-size: 13px; }
    .location-event .location-venue { font-size: 13px; }
    .location-event .location-address { font-size: 11.5px; }
    .location-event .location-button { padding: 8px 7px; font-size: 9px; }
}

/* Ivory background and simple section separators */
:root {
    --wedding-ivory: #f8f3eb;
}

html,
body {
    background-color: var(--wedding-ivory);
}

.section {
    background-color: var(--wedding-ivory);
}

#opening.section,
#hero.section,
#couple.section,
#location.section,
#story.section,
#countdown.section,
#wishes.section,
#closing.section {
    background-color: var(--wedding-ivory) !important;
}

body > section.section:not(#closing) {
    margin-bottom: 0;
    border-bottom: 0;
}

#wishes.section {
    border-top: 0;
    border-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}


/* =====================================================
   FINAL SAFE OVERRIDE — HALAMAN LOKASI LEBIH RINGKAS
   Aturan ini hanya memengaruhi section #location.
===================================================== */
#location.section.location {
    min-height: 0;
    height: auto;
    padding: 0 12px;
    overflow: hidden;
    background-color: #f8eee5;
    background-image: url("assets/akad-resepsi-background.png");
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

#location .location-scene {
    position: relative;
    width: min(100%, 430px);
    height: clamp(660px, 170vw, 740px);
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    isolation: isolate;
}

#location .location-eyebrow {
    top: 4.5%;
}

#location .location-wavy-line {
    position: absolute;
    top: 18%;
    bottom: 5%;
    left: 50%;
    width: 1px;
    height: auto;
    transform: translateX(-50%);
    overflow: visible;
    z-index: 0;
}

#location .location-wavy-line path {
    d: path("M 50 0 L 50 100");
    fill: none;
    stroke: #873447;
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
}

#location .location-dot--top {
    top: calc(18% - 9px);
}

#location .location-dot--bottom {
    bottom: calc(5% - 9px);
}

/* A plain white line is the only section separator. */
body > section.section:not(#closing)::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    height: 4px;
    background: #FFFFFF;
    content: "";
    pointer-events: none;
}

/* Keep the underlying section color consistent beneath existing artwork. */
#opening.section,
#hero.section,
#couple.section,
#location.section,
#story.section,
#countdown.section,
#wishes.section,
#closing.section {
    background-color: var(--wedding-ivory) !important;
}

#wishes.section {
    border-top: 0;
    border-bottom: 0;
}

#location .location-event {
    position: absolute;
    width: 44%;
    margin: 0;
    padding: 0 3px;
    text-align: center;
    z-index: 1;
}

#location .location-event--akad {
    left: 3%;
    right: auto;
    top: 13.5%;
}

#location .location-event--resepsi {
    left: auto;
    right: 3%;
    top: 46%;
}

#location .location-event h2,
#location .location-event--resepsi h2 {
    margin: 0 0 12px;
    font-family: "Pinyon Script", "Great Vibes", cursive;
    font-size: clamp(34px, 9.2vw, 45px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0;
    text-align: center;
    white-space: normal;
    overflow-wrap: normal;
    color: #873447;
}

#location .location-event p {
    margin: 0 0 7px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(11px, 3vw, 14px);
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    color: #742c43;
    overflow-wrap: break-word;
    word-break: normal;
}

#location .location-event .location-date {
    margin-bottom: 8px;
    font-size: clamp(8px, 2.4vw, 11px);
    font-weight: 700;
    letter-spacing: .35px;
    line-height: 1.4;
}

#location .location-event .location-time {
    margin-bottom: 10px;
    font-size: clamp(11px, 3vw, 14px);
    font-weight: 600;
}

#location .location-event .location-venue {
    margin: 5px 0 7px;
    font-size: clamp(12px, 3.2vw, 15px);
    font-weight: 700;
    line-height: 1.25;
}

#location .location-event .location-address {
    margin: 0 0 10px;
    font-size: clamp(11px, 2.9vw, 13px);
    font-weight: 500;
    line-height: 1.35;
}

#location .location-event .location-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 0;
    margin: 2px auto 0;
    padding: 7px 8px;
    border: 1px solid #bd8792;
    border-radius: 999px;
    background: rgba(255, 250, 246, .9);
    color: #742c43;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(8px, 2.1vw, 10px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
}

@media (min-width: 500px) {
    #location .location-scene {
        height: 740px;
    }
    #location .location-event--akad {
        left: 4%;
    }
    #location .location-event--resepsi {
        right: 4%;
    }
}

@media (max-width: 380px) {
    #location.section.location {
        padding: 0 8px;
    }
    #location .location-scene {
        height: 650px;
    }
    #location .location-event {
        width: 45%;
    }
    #location .location-event--akad {
        left: 2%;
        top: 13.5%;
    }
    #location .location-event--resepsi {
        right: 2%;
        top: 46%;
    }
    #location .location-event h2,
    #location .location-event--resepsi h2 {
        font-size: clamp(30px, 8.5vw, 34px);
    }
    #location .location-event p {
        font-size: 10.5px;
    }
    #location .location-event .location-date {
        font-size: 8px;
        letter-spacing: 0;
    }
    #location .location-event .location-venue,
    #location .location-event .location-address {
        font-size: 10.5px;
    }
    #location .location-event .location-button {
        padding: 6px 5px;
        font-size: 8px;
    }
}


/* FINAL PENYESUAIAN: halaman lokasi sedikit lebih pendek dan acara lebih berdekatan */
#location .location-scene {
    height: clamp(600px, 153vw, 665px);
    min-height: 0;
}

#location .location-event--akad {
    top: 12.5%;
}

#location .location-event--resepsi {
    top: 43%;
}

#location .location-wavy-line {
    top: 13%;
    bottom: 5%;
}

#location .location-dot--top {
    top: calc(13% - 9px);
}

#location .location-dot--bottom {
    bottom: calc(5% - 9px);
}

/* HP kecil: kurangi lagi tinggi halaman dan jarak kedua acara */
@media (max-width: 380px) {
    #location .location-scene {
        height: 600px;
        min-height: 0;
    }
    #location .location-event--akad {
        top: 12%;
    }
    #location .location-event--resepsi {
        top: 43%;
    }
}


/* FINAL PENYESUAIAN V5 — kurangi ruang bawah halaman lokasi sedikit lagi */
#location .location-scene {
    height: clamp(530px, 132vw, 580px);
    min-height: 0;
}

/* Layar HP kecil: jaga agar tombol resepsi tetap terlihat */
@media (max-width: 380px) {
    #location .location-scene {
        height: 530px;
        min-height: 0;
    }
}

/* PERBAIKAN V6: pulihkan garis tengah pada halaman lokasi.
   SVG memakai koordinat x=50, jadi lebar SVG harus 100px, bukan 1px. */
#location .location-wavy-line {
    position: absolute;
    top: 13%;
    left: calc(50% - 50px);
    width: 100px;
    height: 82%; /* dari posisi bulatan atas hingga bulatan bawah */
    bottom: auto;
    transform: none;
    overflow: visible;
    z-index: 0;
    display: block;
    pointer-events: none;
}

#location .location-wavy-line path {
    d: path("M 50 0 L 50 100");
    fill: none;
    stroke: #873447;
    stroke-width: 1.4;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
}

#location .location-dot--top,
#location .location-dot--bottom {
    left: 50%;
    z-index: 2;
}

#location .location-dot--top {
    top: calc(13% - 9px);
}

#location .location-dot--bottom {
    bottom: calc(5% - 9px);
}


/* FINAL PENYESUAIAN POSISI: turunkan kedua blok acara sedikit agar lebih seimbang */
#location .location-event--akad {
    top: calc(12.5% + 12px);
}

#location .location-event--resepsi {
    top: calc(43% + 12px);
}

@media (max-width: 380px) {
    #location .location-event--akad {
        top: calc(12% + 12px);
    }

    #location .location-event--resepsi {
        top: calc(43% + 12px);
    }
}


/* PENYESUAIAN AKHIR: pendekkan ruang bawah halaman lokasi sedikit saja.
   Tidak mengubah JavaScript, database, link Google Maps, atau section lain. */
#location .location-scene {
    height: clamp(600px, 153vw, 665px);
    min-height: 0;
}

@media (max-width: 380px) {
    #location .location-scene {
        height: 600px;
        min-height: 0;
    }
}


/* =====================================================
   FINAL BACKGROUND AKAD & RESEPSI
   Latar ivory maroon; garis tengah dan bulatan tetap di atasnya
===================================================== */
#location.section.location {
    position: relative;
    isolation: isolate;
    background-color: #f7efe5 !important;
    background-image: url("assets/akad-resepsi-background.png") !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
}

#location .location-scene {
    position: relative;
    isolation: isolate;
}

#location .location-wavy-line {
    z-index: 1;
    pointer-events: none;
}

#location .location-wavy-line path {
    fill: none;
    stroke: #873447;
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
}

#location .location-dot {
    z-index: 3;
    background: #873447;
}

#location .location-event {
    z-index: 2;
}


/* =====================================================
   AYAT PENUTUP — DI BAWAH CERITA BECOMING US
   Tambahkan elemen <div class="story-verse">...</div>
   setelah blok .story-copy di HTML.
===================================================== */
.story-verse {
    width: 100%;
    max-width: 340px;
    margin: 26px auto 0;
    padding: 18px 16px 0;
    border-top: 1px solid rgba(116, 44, 67, 0.28);
    text-align: center;
}

.story-verse-label {
    margin: 0 0 9px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.6;
    color: #742c43;
    opacity: 0.8;
}

.story-verse-translation {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 500;
    font-style: italic;
    line-height: 1.7;
    letter-spacing: 0;
    text-align: center;
    color: #742c43;
}

.story-verse-reference {
    margin: 9px 0 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 1.5px;
    line-height: 1.6;
    color: #742c43;
    opacity: 0.85;
}

@media (max-width: 360px) {
    .story-verse {
        margin-top: 20px;
        padding: 14px 10px 0;
    }

    .story-verse-translation {
        font-size: 14px;
        line-height: 1.65;
    }
}

/* =====================================================
   QS. AR-RUM: 21 — DI ATAS KOTAK COUNTDOWN
   Teks ayat berada di luar kotak putih.
   Kotak countdown tetap menggunakan desain aslinya.
===================================================== */

#countdown .countdown-frame {
    position: relative;
}

/* Hilangkan ayat dari dalam kotak scene */
#countdown .scene::before,
#countdown .scene::after {
    content: none !important;
    display: none !important;
}

/* Geser kotak countdown ke bawah agar tidak bertumpuk dengan ayat.
   Latar putih, bentuk kotak, judul, dan angka tetap mengikuti CSS asli. */
#countdown .scene {
    transform: translateY(95px);
}

/* Tampilan layar HP */
@media (max-width: 600px) {
    #countdown .countdown-frame::before {
        top: 14%;
        width: calc(100% - 42px);
        font-size: 15px;
        line-height: 1.6;
    }

    #countdown .countdown-frame::after {
        top: calc(14% + 165px);
        font-size: 10px;
    }

    #countdown .scene {
        transform: translateY(90px);
    }
}

/* Layar sangat pendek: rapatkan sedikit jaraknya */
@media (max-height: 700px) {
    #countdown .countdown-frame::before {
        top: 9%;
        font-size: 15px;
        line-height: 1.6;
    }

    #countdown .countdown-frame::after {
        top: calc(9% + 160px);
    }

    #countdown .scene {
        transform: translateY(75px);
    }
}

/* =====================================================
   COVER — POSISI ISI LEBIH KE TENGAH
   Hanya menggeser isi halaman pertama; latar dan elemen lain tetap.
===================================================== */

.opening .cover-content {
    transform: translateY(7%);
}

@media (max-width: 699px) {
    .opening .cover-content {
        transform: translateY(7%);
    }
}

/* =====================================================
   SEMUA TOMBOL — PUTIH, HOVER/TEKAN MENJADI MAROON
   Berlaku untuk tombol buka undangan, lokasi, kirim ucapan,
   dan tombol lain yang terlihat.
===================================================== */

button:not(.open-hotspot),
a.cover-button,
a.location-button,
button.cover-button,
button.location-button,
.location-button,
.cover-button,
.wish-form button,
.detail-card .location-button,
.event .location-button {
    background-color: #fff !important;
    color: #742c43 !important;
    border-color: #742c43 !important;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

button:not(.open-hotspot):hover,
button:not(.open-hotspot):focus-visible,
button:not(.open-hotspot):active,
a.cover-button:hover,
a.cover-button:focus-visible,
a.cover-button:active,
a.location-button:hover,
a.location-button:focus-visible,
a.location-button:active,
.cover-button:hover,
.cover-button:focus-visible,
.cover-button:active,
.location-button:hover,
.location-button:focus-visible,
.location-button:active,
.wish-form button:hover,
.wish-form button:focus-visible,
.wish-form button:active,
.detail-card .location-button:hover,
.detail-card .location-button:focus-visible,
.detail-card .location-button:active,
.event .location-button:hover,
.event .location-button:focus-visible,
.event .location-button:active {
    background-color: #742c43 !important;
    color: #fff !important;
    border-color: #742c43 !important;
}

/* Pastikan teks atau ikon di dalam tombol ikut putih saat aktif */
button:not(.open-hotspot):hover *,
button:not(.open-hotspot):focus-visible *,
button:not(.open-hotspot):active *,
.cover-button:hover *,
.location-button:hover *,
.wish-form button:hover * {
    color: #fff !important;
    stroke: currentColor;
}


/* =====================================================
   COVER NAMES — SCRIPT FONT LIKE “OUR SPECIAL DAY”
   Only changes the two names on the opening cover.
===================================================== */
.cover-content h1 {
    font-family: "Pinyon Script", cursive !important;
    font-size: clamp(42px, 10vw, 54px) !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
}

@media (max-width: 699px) {
    .cover-content h1 {
        font-size: clamp(40px, 10vw, 50px) !important;
    }
}


/* =====================================================
   FINAL FIX — NAMA DAN SIMBOL & LEBIH JELAS, FONT SERAGAM
   Hanya mengubah tulisan nama pada halaman cover.
===================================================== */
.cover-content h1 {
    font-family: "Pinyon Script", cursive !important;
    font-size: clamp(48px, 11vw, 58px) !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1.05 !important;
    letter-spacing: 0.2px !important;
    color: #742c43 !important;
    -webkit-text-stroke: 0.25px #742c43;
    text-shadow: 0 0 0.35px #742c43;
}

.cover-and {
    font-family: "Pinyon Script", cursive !important;
    font-size: clamp(42px, 9vw, 50px) !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1 !important;
    color: #742c43 !important;
    -webkit-text-stroke: 0.25px #742c43;
    text-shadow: 0 0 0.35px #742c43;
}

@media (max-width: 699px) {
    .cover-content h1 {
        font-size: clamp(45px, 11vw, 54px) !important;
    }
    .cover-and {
        font-size: clamp(40px, 9.5vw, 46px) !important;
    }
}


/* =====================================================
   COVER NAMES — FONT ELEGAN, JELAS, SEDIKIT MELIUK
   Mengganti Pinyon Script dengan Cormorant Garamond Italic.
   Hanya mengubah nama dan simbol & pada halaman pembuka.
===================================================== */
.cover-content h1 {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: clamp(40px, 9.5vw, 50px) !important;
    font-weight: 500 !important;
    font-style: italic !important;
    line-height: 1.05 !important;
    letter-spacing: 0.2px !important;
    color: #742c43 !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}

.cover-and {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: clamp(32px, 7.5vw, 40px) !important;
    font-weight: 500 !important;
    font-style: italic !important;
    line-height: 1 !important;
    letter-spacing: 0.2px !important;
    color: #742c43 !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}

@media (max-width: 699px) {
    .cover-content h1 {
        font-size: clamp(38px, 9.5vw, 46px) !important;
    }
    .cover-and {
        font-size: clamp(30px, 7.5vw, 36px) !important;
    }
}

/* =====================================================
   FIX SAVE THE DATE — TURUN SEDIKIT
   Selector yang benar untuk halaman garis Akad & Resepsi.
   Tidak mengubah posisi Akad, garis, titik, atau elemen lain.
===================================================== */
.section.location .location-eyebrow {
    position: relative !important;
    top: 35px !important;
    transform: none !important;
}


/* Perbaikan halaman countdown: panel hitung mundur berada tepat di tengah */
#countdown {
    display: flex;
    align-items: center;
    justify-content: center;
}

#countdown .countdown-frame {
    margin: auto;
    width: min(100%, 100%);
}

#countdown .countdown-frame .scene {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#countdown .countdown-wrapper {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}


/* =====================================================
   HALAMAN MEMPELAI: SALAM & KATA PEMBUKA DI BAGIAN ATAS
   Aturan tambahan khusus halaman mempelai; bagian lain dipertahankan.
===================================================== */
#couple .couple-welcome {
    position: relative;
    width: 100%;
    margin: 0 auto 26px;
    text-align: center;
}

#couple .couple-welcome .greeting {
    margin: 0 auto 10px;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.55;
    color: #742c43;
}

#couple .couple-welcome .opening-text p {
    margin: 0 auto;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.65;
    color: #742c43;
}

@media (max-width: 480px) {
    #couple .couple-welcome {
        margin-bottom: 20px;
    }

    #couple .couple-welcome .greeting {
        font-size: 14px;
    }

    #couple .couple-welcome .opening-text p {
        font-size: 14px;
        line-height: 1.55;
    }
}



/* Kunci halaman cover sampai tombol Buka Undangan ditekan */
html.invitation-locked,
body.invitation-locked {
    overflow: hidden !important;
    overscroll-behavior: none;
}
body.invitation-locked {
    touch-action: pan-x;
}

/* Countdown: naik sedikit agar lebih seimbang */
#countdown .scene {
    transform: translateY(-18px) !important;
}

#story .story-quote {
    margin-bottom: 18px;
    line-height: 1.6;
}

#story .story-copy p {
    margin-bottom: 14px;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
}
