/* ─── Reset ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* ─── Gift Registry Button ─── */
#gift-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: none;
    background: #C9A84C;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 14px rgba(0,0,0,0.22);
    transition: transform 0.15s, box-shadow 0.15s;
}
#gift-btn:active { transform: scale(0.91); box-shadow: 0 1px 6px rgba(0,0,0,0.18); }
#gift-btn svg { width: 2rem; height: 2rem; fill: #8F6F1F; }

/* ─── Dialog overlay ─── */
#gift-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-end;
}
#gift-overlay[hidden] { display: none; }

#gift-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

/* ─── Bottom sheet ─── */
#gift-sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 85dvh;
    background: #F5F1E8;
    border-radius: 1.2rem 1.2rem 0 0;
    display: flex;
    flex-direction: column;
    animation: sheet-up 0.28s ease;
}
@keyframes sheet-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* ─── Sheet header ─── */
#gift-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem 0.8rem;
    border-bottom: 1px solid #E0D9CE;
    flex-shrink: 0;
}
#gift-dialog-title {
    font-family: 'The Seasons', 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #3B3630;
    letter-spacing: 0.08em;
}
#gift-close {
    background: none;
    border: none;
    font-size: 1rem;
    color: #7A6E64;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    line-height: 1;
    border-radius: 0.3rem;
}
#gift-close:hover { color: #3B3630; }

/* ─── Gift list ─── */
#gift-loading {
    text-align: center;
    padding: 2rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    color: #7A6E64;
}
#gift-list {
    list-style: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.4rem 0 2rem;
    flex: 1;
}
.gift-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    color: #7A6E64;
}

/* ─── Gift item ─── */
.gift-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.2rem;
    border-bottom: 1px solid #EDE8DF;
    transition: opacity 0.2s;
}
.gift-taken { opacity: 0.5; }

.gift-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
    background: #E0D9CE;
}
.gift-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.gift-name {
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #3B3630;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gift-taken .gift-name { text-decoration: line-through; }

.gift-buy {
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    color: #C9A84C;
    text-decoration: none;
    letter-spacing: 0.04em;
}
.gift-buy:hover { text-decoration: underline; }

.gift-taken-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.65rem;
    color: #7A6E64;
    letter-spacing: 0.06em;
}

/* ─── Custom checkbox ─── */
.gift-check-wrap {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.gift-check {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.gift-check-custom {
    display: block;
    width: 1.4rem;
    height: 1.4rem;
    border: 2px solid #C9A84C;
    border-radius: 0.35rem;
    background: #fff;
    transition: background 0.15s, border-color 0.15s;
    position: relative;
}
.gift-check:checked + .gift-check-custom {
    background: #C9A84C;
    border-color: #C9A84C;
}
.gift-check:checked + .gift-check-custom::after {
    content: '';
    display: block;
    position: absolute;
    top: 0.18rem;
    left: 0.38rem;
    width: 0.32rem;
    height: 0.6rem;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}
.gift-check:disabled + .gift-check-custom { opacity: 0.45; }

/* ─── Base ─── */
html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    background: #F5F1E8;
    color: #3B3630;
    font-family: 'Lato', sans-serif;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
    overflow-y: auto;
    scroll-snap-type: y proximity;
}

/* ─── Page (full-screen snap) ─── */
.page {
    height: 100dvh;
    min-height: -webkit-fill-available;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F1E8;
}

/* ─── Flowers ─── */
.flower {
    position: absolute;
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
}

/* f-tl: pushed deeper into corner */
.f-tl {
    width: 129.607px; height: 181.905px;
    top: -32px; left: -34px;
    animation: fadeIn 1.1s ease 0s forwards;
}
/* f-lm: mirrored horizontally */
.f-lm {
    width: 120.527px; height: 216.677px;
    top: 50%; left: -20px;
    animation: fadeInMidMirror 1.1s ease 0.08s forwards;
}
/* f-bl: bottom-left corner */
.f-bl {
    width: 132px; height: 192px;
    bottom: -18px; left: -24px;
    animation: fadeIn 1.1s ease 0.16s forwards;
}
/* f-tr: top-right corner */
.f-tr {
    width: 130px; height: 182px;
    top: -18px; right: -20px;
    animation: fadeIn 1.1s ease 0.06s forwards;
}
/* f-rm: deeper to the right */
.f-rm {
    width: 124.172px; height: 223.231px;
    top: 50%; right: -42px;
    animation: fadeInMid 1.1s ease 0.14s forwards;
}
/* f-br: perfect */
.f-br {
    width: 136.959px; height: 192.223px;
    bottom: -18px; right: -20px;
    animation: fadeIn 1.1s ease 0.22s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes fadeInMid {
    from { opacity: 0; transform: translateY(-50%) scale(0.96); }
    to   { opacity: 1; transform: translateY(-50%) scale(1); }
}
@keyframes fadeInMidMirror {
    from { opacity: 0; transform: translateY(-50%) scaleX(-1) scale(0.96); }
    to   { opacity: 1; transform: translateY(-50%) scaleX(-1) scale(1); }
}

/* ─── Cover Inner ─── */
.cover-inner {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.45rem;
    padding: 0 68px;
    width: 100%;
}

/* ─── Text Fade-up ─── */
.anim {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 0.75s ease forwards;
    animation-delay: var(--d, 0s);
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Labels ─── */
.lbl {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    line-height: 1.8;
}
.lbl-gold  { color: #C9A84C; }
.lbl-muted { color: #9A8E82; }

/* ─── Names ─── */
.names {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.2rem 0;
}
.name {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: clamp(3.5rem, 17vw, 6rem);
    color: #3B3630;
    letter-spacing: 0.05em;
    line-height: 1.05;
}
.dan {
    font-family: 'The Seasons', 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1rem, 4.5vw, 1.4rem);
    color: #C9A84C;
    letter-spacing: 0.05em;
    margin: 0.12rem 0;
}

/* ─── Date ─── */
.date {
    font-family: 'The Seasons', 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(1rem, 5vw, 1.4rem);
    color: #C9A84C;
    letter-spacing: 0.12em;
}

/* ─── Address ─── */
.addr {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 0.57rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #9A8E82;
    line-height: 2.2;
}

/* ─── QR ─── */
.qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.3rem;
}
.qr-box {
    width: 70px;
    height: 70px;
    border: 1px solid #C9A84C;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-hint {
    font-family: 'Lato', sans-serif;
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    color: #C9A84C;
    text-transform: uppercase;
}

/* ─── Swipe Hint ─── */
.swipe-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.3rem;
    color: #C9A84C;
    opacity: 0.5;
    transition: opacity 0.5s ease;
    animation: bob 2.2s ease-in-out infinite;
    z-index: 20;
    pointer-events: none;
}
@keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0);   }
    50%       { transform: translateX(-50%) translateY(5px); }
}

/* ══ DETAILS PAGE ══ */
.details-inner {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1.5rem 68px;
    width: 100%;
}

/* Let page 2 use the main document scroll (no nested scroller) */
#details.page {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    padding: 1.2rem 0;
}

.parents-text {
    font-family: 'The Seasons', 'Playfair Display', serif;
    font-size: 0.78rem;
    color: #3B3630;
    letter-spacing: 0.1em;
    line-height: 2;
    text-transform: uppercase;
}

.divider {
    width: 48px;
    height: 1px;
    background: #C9A84C;
    margin: 0.3rem 0;
}

.couple-text {
    font-family: 'The Seasons', 'Playfair Display', serif;
    font-size: 0.8rem;
    color: #3B3630;
    letter-spacing: 0.08em;
    line-height: 2;
    text-transform: uppercase;
}

.dengan {
    font-style: italic;
    color: #C9A84C;
    text-transform: none;
    font-size: 0.76rem;
}

.contact-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
    width: 100%;
}

.phone-block {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: left;
}

.phone {
    font-family: 'Lato', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: #3B3630;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: #3B3630;
}

.phone-link:hover {
    color: #25D366;
}

.wa-icon {
    width: 0.75rem;
    height: 0.75rem;
    fill: #25D366;
    flex-shrink: 0;
}

/* ─── Gallery Page ─── */
.gallery-inner {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0 1.4rem;
}

#gallery .lbl {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-enter {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    transition-delay: var(--d, 0ms);
}

#gallery.in-view .gallery-enter {
    opacity: 1;
    transform: translateY(0);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    width: 100%;
    max-width: 340px;
}

.gallery-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.65rem;
    display: block;
    box-shadow: 0 8px 18px rgba(59, 54, 48, 0.12);
    opacity: 0;
    transform: translateY(20px) scale(0.985);
    transition: opacity 0.48s ease, transform 0.48s ease;
}

#gallery .gallery-img.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-img:active {
    transform: scale(0.98);
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.4rem;
    padding: 0.55rem 1.2rem;
    background: #C9A84C;
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-radius: 2rem;
    transition: opacity 0.15s;
}
.upload-btn:active { opacity: 0.8; }
.upload-btn svg {
    width: 1rem;
    height: 1rem;
    fill: #fff;
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    .gallery-enter {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .gallery-img {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.cover-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.cover-header {
    margin-bottom: 2rem;
}

.walimatulurus {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    color: #D4AF37;
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
}

.couple-names {
    margin: 2rem 0 1rem;
}

.bride-name {
    font-size: 3rem;
    color: #3D3A33;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

.couple-connector {
    font-size: 1.3rem;
    color: #D4AF37;
    margin: 0.5rem 0;
    font-style: italic;
}

.groom-name {
    font-size: 2.8rem;
    color: #3D3A33;
    letter-spacing: 0.05em;
}

.cover-date {
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
    color: #D4AF37;
    letter-spacing: 0.05em;
    font-family: 'Playfair Display', serif;
}

.cover-time {
    font-size: 1rem;
    color: #7A7A7A;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.cover-address {
    font-size: 0.95rem;
    color: #3D3A33;
    line-height: 1.8;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.cover-qr {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.qr-code {
    width: 120px;
    height: 120px;
    background: white;
    border: 2px solid #D4AF37;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.qr-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #333 25%, transparent 25%, transparent 50%, #333 50%, #333 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    opacity: 0.7;
}

/* Details Page */
#details-page {
    background: linear-gradient(135deg, #FBF9F6 0%, #FCF7F0 100%);
}

.details-content {
    width: 100%;
}

.details-header {
    text-align: center;
    margin-bottom: 2rem;
}

.sirih-header {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: #3D3A33;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 400;
}

.parents-info {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #3D3A33;
}

.parent-line {
    margin-bottom: 0.5rem;
}

.divider {
    width: 60px;
    height: 1px;
    background: #D4AF37;
    margin: 1.5rem auto;
}

.suami-isteri {
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: #7A7A7A;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.couple-info {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #3D3A33;
    line-height: 1.8;
}

.couple-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ceremony-details {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #3D3A33;
    line-height: 1.8;
}

.ceremony-highlight {
    color: #D4AF37;
    font-weight: 600;
    margin: 1rem 0;
}

.venue-address {
    text-align: center;
    font-size: 0.9rem;
    color: #3D3A33;
    line-height: 1.8;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.map-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #E8E6E0;
}

.map-svg {
    width: 100%;
    max-width: 350px;
    height: 250px;
}

/* Responsive embedded map iframe */
.map-iframe {
    width: 100%;
    max-width: 350px; /* change to taste */
    height: 120px;
    border: 0;
    pointer-events: auto;
}

.contact-qr {
    display: flex;
    gap: 2rem;
    justify-content: space-around;
    align-items: flex-start;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.qr-code-large {
    width: 140px;
    height: 140px;
    background: white;
    border: 2px solid #D4AF37;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.qr-label {
    font-size: 0.85rem;
    color: #7A7A7A;
    text-align: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.phone-info {
    font-size: 0.85rem;
    color: #3D3A33;
    text-align: center;
    line-height: 1.6;
}

/* SVG Floral Animations */
@keyframes drawLine {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes petalBreathe {
    0% {
        transform: scale(1, 1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.08, 0.93);
        opacity: 1;
    }
    100% {
        transform: scale(1, 1);
        opacity: 0.9;
    }
}

@keyframes floatLeaf {
    0% {
        transform: translateX(0) translateY(0) rotate(-5deg);
        opacity: 0.6;
    }
    25% {
        transform: translateX(20px) translateY(-10px) rotate(5deg);
        opacity: 0.8;
    }
    50% {
        transform: translateX(-10px) translateY(-5px) rotate(-5deg);
        opacity: 0.6;
    }
    75% {
        transform: translateX(15px) translateY(10px) rotate(5deg);
        opacity: 0.8;
    }
    100% {
        transform: translateX(0) translateY(0) rotate(-5deg);
        opacity: 0.6;
    }
}

.floral-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2.5s ease-in-out 0.5s forwards;
}

.flower-petal {
    animation: petalBreathe 5s ease-in-out infinite;
    transform-origin: center;
}

.flower-petal-1 {
    animation-delay: 0s;
}

.flower-petal-2 {
    animation-delay: 0.3s;
}

.flower-petal-3 {
    animation-delay: 0.6s;
}

.flower-petal-4 {
    animation-delay: 0.9s;
}

.floating-leaf {
    animation: floatLeaf 6s ease-in-out infinite;
    transform-origin: center;
}

.leaf-1 {
    animation-delay: 0s;
}

.leaf-2 {
    animation-delay: 1s;
}

.leaf-3 {
    animation-delay: 2s;
}

.leaf-4 {
    animation-delay: 3s;
}

/* Floral Images */
.flower-image {
    position: absolute;
    object-fit: contain;
    z-index: 1;
    opacity: 0;
    transform-origin: center center;
}

@keyframes flowerEntrance {
    0% {
        opacity: 0;
        transform: scale(0.82) translateY(12px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes flowerFloat {
    0%, 100% {
        transform: translateY(0) rotate(-1.1deg);
    }
    50% {
        transform: translateY(-8px) rotate(1.1deg);
    }
}

@keyframes flowerFloatRight {
    0%, 100% {
        transform: scaleX(-1) translateY(0) rotate(-1.1deg);
    }
    50% {
        transform: scaleX(-1) translateY(-8px) rotate(1.1deg);
    }
}

.flower-left-top {
    width: 129.607px;
    height: 181.905px;
    top: -10px;
    left: -20px;
    animation: flowerEntrance 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards, flowerFloat 7.5s ease-in-out 1.6s infinite;
}

.flower-left-middle {
    width: 120.527px;
    height: 216.677px;
    top: 30%;
    left: -24px;
    animation: flowerEntrance 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards, flowerFloat 7.5s ease-in-out 1.7s infinite;
}

.flower-left-bottom {
    width: 117.003px;
    height: 262.659px;
    bottom: -25px;
    left: -35px;
    animation: flowerEntrance 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards, flowerFloat 7.5s ease-in-out 1.78s infinite;
}

.flower-right-top {
    width: 128.721px;
    height: 288.965px;
    top: -10px;
    right: -20px;
    animation: flowerEntrance 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards, flowerFloatRight 7.5s ease-in-out 1.95s infinite;
}

.flower-right-middle {
    width: 124.172px;
    height: 223.231px;
    top: 30%;
    right: -22px;
    animation: flowerEntrance 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.44s forwards, flowerFloatRight 7.5s ease-in-out 2.04s infinite;
}

.flower-right-bottom {
    width: 136.959px;
    height: 192.223px;
    bottom: -25px;
    right: -35px;
    animation: flowerEntrance 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.52s forwards, flowerFloatRight 7.5s ease-in-out 2.12s infinite;
}

/* Scroll Indicator */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeOut 4s ease-out forwards;
    z-index: 5;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        pointer-events: none;
    }
}

.scroll-text {
    font-size: 0.9rem;
    color: #D4AF37;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* CTA Buttons */
.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 0.9rem 1.5rem;
    border: 1px solid #D4AF37;
    background: #D4AF37;
    color: #FBF9F6;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.16);
    background: #c79f2e;
}

.btn-hero.secondary {
    margin-top: 2rem;
    background: transparent;
    color: #D4AF37;
}

.btn-hero.secondary:hover {
    background: rgba(212, 175, 55, 0.08);
}

/* Responsive */
/* ─── Desktop responsive ─── */
@media (min-width: 700px) {
    .cover-inner,
    .details-inner,
    .gallery-inner {
        max-width: 480px;
        margin: 0 auto;
    }

    /* Scale flowers up slightly on wider screens so they don't look tiny */
    .f-tl { width: 160px; height: 224px; top:    -30px; left:  -30px; }
    .f-lm { width: 148px; height: 268px; }
    .f-bl { width: 162px; height: 236px; bottom: -22px; left:  -28px; }
    .f-tr { width: 160px; height: 224px; top:    -22px; right: -24px; }
    .f-rm { width: 152px; height: 275px; }
    .f-br { width: 168px; height: 236px; bottom: -22px; right: -24px; }

    .gallery-grid { max-width: 400px; }
    #gallery .lbl { max-width: 400px; }

    /* Larger gift button on desktop */
    #gift-btn { width: 3.6rem; height: 3.6rem; }
    #gift-btn svg { width: 1.6rem; height: 1.6rem; }
}

@media (max-width: 768px) {
    .title-main {
        font-size: 2rem;
    }

    .bride-name {
        font-size: 2.2rem;
    }

    .groom-name {
        font-size: 2rem;
    }

    .cover-date {
        font-size: 1.5rem;
    }

    .floral-tl, .floral-tr, .floral-bl, .floral-br {
        width: 180px;
        height: 180px;
        opacity: 0.8;
    }

    .contact-qr {
        gap: 1rem;
    }

    .map-svg {
        max-width: 280px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 1rem;
    }

    .title-main {
        font-size: 1.5rem;
    }

    .bride-name {
        font-size: 1.8rem;
    }

    .groom-name {
        font-size: 1.6rem;
    }

    .cover-date {
        font-size: 1.2rem;
    }

    .floral-tl, .floral-tr, .floral-bl, .floral-br {
        width: 120px;
        height: 120px;
        opacity: 0.6;
    }

    .contact-qr {
        flex-direction: column;
        gap: 1.5rem;
    }

    .map-svg {
        max-width: 100%;
        height: 180px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .page {
        page-break-after: always;
        min-height: auto;
        padding: 1rem;
    }

    .scroll-hint {
        display: none;
    }

    .floral-line {
        animation: none;
        stroke-dashoffset: 0;
    }

    .flower-petal, .floating-leaf {
        animation: none;
        transform: none;
    }
}

.gallery-credit {
    margin-top: 0.7rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.07em;
    color: #9A8E82;
    text-align: center;
}

.gallery-credit a {
    color: #C9A84C;
    text-decoration: none;
}

.gallery-credit a:hover {
    text-decoration: underline;
}
