/* ===== JAIPUR DESERT ROYAL WEDDING — "Desert Caravan Journey" ===== */
/* Arch shapes + story-scroll: jharokha hero arch with glass panel, camel-track
   timeline, dune-curve pre-wedding rows, deep plum footer.
   Palette: Bandhani magenta · Marigold orange · Royal blue · Sand · Antique gold */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ivory: #fdf7ec;
    --sand: #f6e8c8;
    --sand-deep: #eedcae;
    --cream-panel: #fffdf6;
    --rani: #a4133c;
    --rani-dark: #7c0d2e;
    --rani-deep: #59091f;
    --plum: #2a0714;
    --plum-deep: #1c040d;
    --marigold: #e07b24;
    --marigold-light: #f2a950;
    --royal: #1d4e89;
    --royal-dark: #12325c;
    --gold: #c9a227;
    --gold-light: #d9b64a;
    --gold-pale: #efdfa0;
    --text-dark: #42222e;
    --text-medium: #75505c;
    --text-light: #a37f88;
    --white: #ffffff;
    --border: #ecd9ae;
    --border-soft: #f3e6c2;
    --shadow-rani: rgba(164, 19, 60, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', sans-serif;
    background-color: var(--ivory);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

body.splash-locked {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3 {
    font-family: 'Marcellus', serif;
}

.mobile-only { display: none; }
.desktop-only { display: block; }

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== BANDHANI DOT STRIP (helper) ===== */
.bandhani-strip {
    height: 14px;
    background-image: radial-gradient(circle, var(--gold-light) 1.6px, transparent 1.8px);
    background-size: 16px 14px;
    background-position: center;
    background-repeat: repeat-x;
    opacity: 0.85;
}

/* ===== FLOATING MUSIC BUTTON ===== */
.floating-music {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 253, 246, 0.94);
    border: 1px solid var(--gold-light);
    box-shadow: 0 3px 14px var(--shadow-rani);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 17px;
    transition: all 0.3s ease;
}

.floating-music:hover {
    background: var(--white);
    transform: scale(1.06);
    box-shadow: 0 5px 20px var(--shadow-rani);
}

.floating-music img {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    object-fit: cover;
}

.floating-music.playing {
    background: var(--rani);
    color: var(--gold-pale);
    border-color: var(--rani);
    animation: musicPulse 1.6s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(224, 123, 36, 0.45); }
    50% { box-shadow: 0 0 0 10px rgba(224, 123, 36, 0); }
}

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 14px;
    text-align: center;
}

.section-header h2 {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--rani-dark);
    white-space: nowrap;
}

.section-header .ornament {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    background: transparent;
    border: 1px solid var(--gold-pale);
    box-shadow: 0 2px 10px var(--shadow-rani);
}

.section-header .ornament.flipped {
    transform: scaleX(-1);
}

/* ===== SHARED MONOGRAM / BUTTONS ===== */
.monogram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
}

.monogram-initial {
    font-family: 'Marcellus', serif;
    font-size: 32px;
    color: var(--rani);
    width: 58px;
    height: 58px;
    line-height: 56px;
    text-align: center;
    border: 1px solid var(--gold-light);
    border-radius: 50%;
    background: radial-gradient(circle, #fffdf6 55%, var(--sand));
    box-shadow: inset 0 0 0 3px var(--ivory), inset 0 0 0 4px var(--gold-pale);
}

.monogram-crown {
    color: var(--marigold);
    font-size: 20px;
    animation: crownGlow 2.4s ease-in-out infinite;
}

@keyframes crownGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(0.93); }
}

.btn-primary {
    display: inline-block;
    padding: 14px 42px;
    background: linear-gradient(135deg, var(--rani) 0%, var(--rani-dark) 100%);
    color: #fdf3da;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 3px;
    border: 1px solid var(--gold-light);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(124, 13, 46, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(124, 13, 46, 0.36);
    background: linear-gradient(135deg, var(--royal) 0%, var(--royal-dark) 100%);
}

.btn-primary i {
    color: var(--marigold-light);
    margin-left: 6px;
}

/* ===== SPLASH / OPEN INVITATION ===== */
/* Unique to this template: plum-to-sunset gradient, palace arch outline,
   bandhani dots under the arch, caravan walking across the bottom. */
.splash {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(180deg, var(--plum-deep) 0%, var(--plum) 22%, var(--rani-deep) 46%, var(--rani) 66%, #c24327 84%, var(--marigold) 100%);
    transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}

.splash-inner {
    position: relative;
    z-index: 2;
    padding: 30px 24px 158px;
    max-width: 620px;
    width: 100%;
    transition: transform 0.9s ease, opacity 0.9s ease;
}

/* Large palace arch outline — gold double line */
.splash-arch-frame {
    position: relative;
    border: 2px solid var(--gold);
    border-radius: 300px 300px 22px 22px;
    padding: 54px 32px 44px;
    background: rgba(28, 4, 13, 0.30);
}

.splash-arch-frame::before {
    content: '';
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(239, 223, 160, 0.65);
    border-radius: 290px 290px 16px 16px;
    pointer-events: none;
}

.splash.splash-open {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash.splash-open .splash-inner {
    transform: translateY(-28px);
    opacity: 0;
}

.splash .monogram-initial {
    color: var(--gold-pale);
    background: radial-gradient(circle, rgba(164, 19, 60, 0.55) 55%, rgba(89, 9, 31, 0.75));
    box-shadow: inset 0 0 0 3px rgba(89, 9, 31, 0.6), inset 0 0 0 4px var(--gold-pale);
}

.splash-eyebrow {
    font-size: 13px;
    letter-spacing: 5px;
    color: var(--gold-pale);
    font-weight: 500;
    margin-bottom: 10px;
}

.splash-names {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(44px, 10vw, 74px);
    font-weight: 400;
    line-height: 1.2;
    color: #fdf3da;
}

.splash-names span {
    color: var(--marigold-light);
    font-size: 0.62em;
    vertical-align: middle;
}

.splash-date {
    margin-top: 14px;
    font-size: 15px;
    letter-spacing: 4px;
    color: #f6e8c8;
}

.splash-place {
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: 5px;
    color: var(--marigold-light);
}

.splash .bandhani-strip {
    width: 68%;
    margin: 24px auto 2px;
}

.splash-btn {
    margin-top: 26px;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
}

.splash-btn img {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: -3px;
    margin-left: 8px;
    border-radius: 50%;
}

/* Caravan crossing the splash */
.splash-caravan {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: 118px;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.splash-caravan .caravan-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    display: flex;
    align-items: flex-end;
    animation: caravanWalk 22s ease-in-out infinite alternate;
    will-change: transform;
}

.splash-caravan .caravan-band {
    height: 104px;
    width: auto;
    max-width: none;
    animation: caravanBob 1.7s ease-in-out infinite;
}

/* ===== FIREWORKS CANVAS ===== */
#fwCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 90;
}

/* ===== FALLING PETALS (marigold) ===== */
.petals {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.petals span {
    position: absolute;
    top: -30px;
    border-radius: 70% 0 70% 0;
    opacity: 0;
    box-shadow: 0 1px 3px rgba(66, 34, 46, 0.2);
}

body.petals-on .petals span {
    animation: petalFall var(--dur, 10s) linear var(--delay, 0s) infinite;
}

@keyframes petalFall {
    0% { transform: translate3d(0, -30px, 0) rotate(0deg); opacity: 0; }
    7% { opacity: 0.95; }
    25% { transform: translate3d(var(--sway, 30px), 26vh, 0) rotate(130deg); }
    50% { transform: translate3d(calc(var(--sway, 30px) * -0.55), 52vh, 0) rotate(215deg); }
    75% { transform: translate3d(var(--sway, 30px), 78vh, 0) rotate(300deg); }
    100% { transform: translate3d(0, 106vh, 0) rotate(385deg); opacity: 0.85; }
}

/* ===== HERO — sand band, jharokha arch, glass panel ===== */
.hero {
    position: relative;
    padding: 58px 0 0;
    overflow: hidden;
    background:
        radial-gradient(circle, rgba(164, 19, 60, 0.10) 1.4px, transparent 1.7px) 0 0 / 28px 28px,
        linear-gradient(180deg, #f3e2b6 0%, var(--sand) 52%, var(--ivory) 100%);
}

.hero-arch-wrap {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Big jharokha arch holding the hero photograph */
.hero-arch {
    position: relative;
    height: min(64vh, 560px);
    min-height: 340px;
    border: 3px solid var(--gold);
    outline: 1px solid var(--gold-pale);
    outline-offset: 6px;
    border-radius: 380px 380px 0 0;
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(66, 34, 46, 0.30);
}

.hero-arch-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.12); }
}

.hero-arch::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(89, 9, 31, 0.10) 0%, rgba(89, 9, 31, 0) 40%, rgba(89, 9, 31, 0.22) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-arch .petals {
    z-index: 2;
}

/* Glass arch panel overlapping the photograph */
.hero-glass {
    position: relative;
    z-index: 4;
    width: min(700px, 94%);
    margin: -88px auto 0;
    text-align: center;
    background: rgba(255, 248, 230, .22);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    backdrop-filter: blur(12px) saturate(1.3);
    border: 1px solid rgba(201, 162, 39, .6);
    border-radius: 220px 220px 18px 18px;
    box-shadow: 0 24px 54px rgba(66, 34, 46, 0.28);
    overflow: hidden;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .hero-glass {
        background: rgba(255, 248, 230, .86);
    }
}

.hero-glass .bandhani-band {
    height: 34px;
    background-color: rgba(164, 19, 60, 0.92);
    background-image:
        radial-gradient(circle, var(--gold-pale) 2.2px, transparent 2.7px),
        radial-gradient(circle, var(--marigold-light) 1.6px, transparent 2px);
    background-size: 22px 18px, 22px 18px;
    background-position: 0 4px, 11px 12px;
    background-repeat: repeat-x;
    border-bottom: 2px solid var(--gold);
}

.hero-content {
    padding: 30px 38px 44px;
}

.tagline {
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--royal);
    font-weight: 500;
    margin-bottom: 14px;
}

.invite-text {
    font-family: 'Marcellus', serif;
    font-style: italic;
    font-size: 20px;
    color: var(--text-medium);
    margin-bottom: 10px;
}

.couple-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 8px 0 6px;
}

.couple-names .name-groom,
.couple-names .name-bride {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(46px, 9vw, 76px);
    font-weight: 400;
    line-height: 1.15;
    background: linear-gradient(100deg, #8f6a08 0%, var(--gold) 28%, #f7e08a 50%, var(--gold) 72%, #8f6a08 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: goldShimmer 6s linear infinite;
}

@keyframes goldShimmer {
    from { background-position: 0% center; }
    to { background-position: 200% center; }
}

.couple-names .ampersand {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(30px, 5vw, 44px);
    color: var(--rani);
    line-height: 1;
}

.peacock-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 16px auto 20px;
    color: var(--royal);
    font-size: 13px;
}

.peacock-divider span {
    display: block;
    width: 110px;
    height: 12px;
    background-image: radial-gradient(circle, var(--marigold) 1.5px, transparent 1.8px);
    background-size: 13px 12px;
    background-repeat: repeat-x;
    background-position: center;
}

.wedding-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    letter-spacing: 2px;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.wedding-details .detail-item i {
    color: var(--rani);
    margin-right: 6px;
}

.wedding-details .detail-separator {
    color: var(--gold);
}

/* ===== ANIMATED CARAVAN BAND (camels + folk people) ===== */
.caravan-strip {
    position: relative;
    height: 128px;
    overflow: hidden;
    background:
        radial-gradient(120px 34px at 12% 108%, var(--sand-deep) 62%, transparent 70%),
        radial-gradient(190px 46px at 46% 112%, var(--sand-deep) 62%, transparent 70%),
        radial-gradient(150px 38px at 82% 110%, var(--sand-deep) 62%, transparent 70%),
        linear-gradient(180deg, #f9edcb 0%, var(--sand) 58%, var(--sand-deep) 100%);
    border-top: 2px solid var(--gold-light);
    border-bottom: 2px solid var(--gold-light);
}

.caravan-strip.caravan-hero {
    margin-top: 46px;
    border-bottom: none;
    box-shadow: 0 -10px 30px rgba(89, 9, 31, 0.18);
}

.caravan-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    display: flex;
    align-items: flex-end;
    animation: caravanWalk 22s ease-in-out infinite alternate;
    will-change: transform;
}

.caravan-band {
    height: 112px;
    width: auto;
    max-width: none;
    animation: caravanBob 1.7s ease-in-out infinite;
    will-change: transform;
}

@keyframes caravanWalk {
    from { transform: translateX(-56%); }
    to { transform: translateX(-44%); }
}

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

/* ===== COUPLE — overlapping arch portraits ===== */
.couple-section {
    padding: 90px 20px 80px;
    background:
        radial-gradient(circle, rgba(224, 123, 36, 0.13) 1.4px, transparent 1.7px) 0 0 / 26px 26px,
        var(--ivory);
    text-align: center;
}

.family-header {
    font-family: 'Marcellus', serif;
    font-style: italic;
    font-size: 20px;
    color: var(--text-medium);
    margin-bottom: 30px;
}

.couple-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1020px;
    margin: 30px auto 0;
}

.person {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
}

.person.groom {
    flex-direction: row;
    text-align: right;
    justify-content: flex-end;
    z-index: 1;
}

.person.bride {
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
    z-index: 2;
}

.person-text {
    flex: 1;
    min-width: 0;
}

.person-label {
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--rani);
    font-weight: 600;
    margin-bottom: 10px;
}

.person h3 {
    font-family: 'Marcellus', serif;
    font-size: clamp(28px, 3.6vw, 36px);
    font-weight: 400;
    color: var(--rani-dark);
    margin-bottom: 6px;
}

.person .relation {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.7;
}

/* Arch-shaped portrait */
.person-photo {
    flex: none;
    width: 216px;
    height: 282px;
    border-radius: 50% 50% 14px 14px / 42% 42% 14px 14px;
    border: 3px solid var(--gold);
    outline: 1px solid var(--gold-pale);
    outline-offset: 5px;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(66, 34, 46, 0.24);
}

.person.bride .person-photo {
    margin-left: -52px;
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Peacock divider sitting on the seam where the arches overlap */
.couple-divider {
    position: absolute;
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
    z-index: 5;
    line-height: 0;
}

.couple-divider img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    background: transparent;
}

/* ===== SCRATCH CARD — royal seal panel ===== */
.scratch-section {
    padding: 80px 20px 90px;
    background: var(--ivory);
    text-align: center;
}

.scratch-sub {
    font-family: 'Marcellus', serif;
    font-style: italic;
    font-size: 20px;
    color: var(--rani);
    margin-bottom: 6px;
}

.scratch-wrap {
    position: relative;
    width: 340px;
    max-width: 92vw;
    aspect-ratio: 340 / 200;
    margin: 46px auto 0;
    background: var(--cream-panel);
    border: 2px solid var(--gold);
    outline: 1px solid var(--gold-pale);
    outline-offset: 5px;
    box-shadow: 0 16px 36px var(--shadow-rani);
    overflow: visible;
}

/* Circular gold royal seal on the panel header */
.scratch-seal {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: radial-gradient(circle, #f7e08a 0%, var(--gold-light) 58%, var(--gold) 100%);
    border: 2px solid var(--gold);
    box-shadow: inset 0 0 0 3px rgba(255, 253, 246, 0.65), inset 0 0 0 5px rgba(164, 19, 60, 0.35), 0 8px 18px rgba(66, 34, 46, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rani-deep);
    font-size: 23px;
    z-index: 4;
    pointer-events: none;
}

.scratch-under {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px;
    overflow: hidden;
}

.scratch-label {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--gold);
    font-weight: 600;
}

.scratch-date {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.15;
    color: var(--rani-dark);
}

.scratch-venue {
    font-size: 13.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-medium);
}

.scratch-wrap canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
    cursor: pointer;
    transition: opacity 0.6s ease;
}

.scratch-wrap canvas.cleared {
    opacity: 0;
    pointer-events: none;
}

/* Folk dancers swaying under the scratch card */
.dancers-wrap {
    margin: 38px auto 0;
    max-width: 430px;
    line-height: 0;
}

.folk-dancers {
    width: 100%;
    background: transparent;
    transform-origin: 50% 100%;
    animation: dancersSway 5s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes dancersSway {
    from { transform: rotate(-2deg); }
    to { transform: rotate(2deg); }
}

/* ===== COUNTDOWN — gold arch niches on deep magenta ===== */
.countdown-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--rani-deep), var(--rani-dark) 60%, var(--rani));
    text-align: center;
    position: relative;
}

.countdown-section::before,
.countdown-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 14px;
    background-image: radial-gradient(circle, var(--gold-pale) 1.6px, transparent 1.9px);
    background-size: 16px 14px;
    background-repeat: repeat-x;
    background-position: center;
}

.countdown-section::before { top: 10px; }
.countdown-section::after { bottom: 10px; }

.countdown-section .section-header h2 {
    color: #fdf3da;
}

.countdown-section .ornament {
    border-color: var(--gold);
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Arch niche */
.countdown-item {
    width: 112px;
    padding: 30px 0 18px;
    background: linear-gradient(180deg, rgba(253, 247, 236, 0.14), rgba(253, 247, 236, 0.05));
    border: 1.5px solid var(--gold);
    border-radius: 56px 56px 10px 10px;
    position: relative;
}

.countdown-item::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px dotted rgba(239, 223, 160, 0.55);
    border-radius: 50px 50px 6px 6px;
    pointer-events: none;
}

.countdown-number {
    display: block;
    font-family: 'Marcellus', serif;
    font-size: 44px;
    color: var(--gold-pale);
    line-height: 1;
}

.countdown-label {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 3px;
    color: #f6e8c8;
}

/* ===== TIMELINE — camel track, alternating arch cards ===== */
.timeline-section {
    padding: 90px 20px 70px;
    background: var(--ivory);
    text-align: center;
}

.timeline-container {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 940px;
    margin: 48px auto 0;
    padding: 6px 0 10px;
}

/* The camel track: dashed gold trail down the centre */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left: 3px dashed var(--gold);
    opacity: 0.85;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 62px 42px 0;
    align-self: flex-start;
    text-align: right;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    padding: 0 0 42px 62px;
    text-align: left;
}

.timeline-icon {
    position: absolute;
    top: 0;
    right: -52px;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    outline: 1px solid var(--gold-pale);
    outline-offset: 4px;
    overflow: hidden;
    box-shadow: 0 10px 22px var(--shadow-rani);
    background: var(--cream-panel);
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-icon {
    right: auto;
    left: -52px;
}

.timeline-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Arch-top story card */
.timeline-card {
    background: var(--cream-panel);
    border: 1.5px solid var(--gold);
    border-radius: 58px 58px 12px 12px;
    box-shadow: 0 14px 30px var(--shadow-rani);
    padding: 28px 24px 22px;
    text-align: center;
    position: relative;
}

.timeline-card::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px dotted var(--gold-pale);
    border-radius: 52px 52px 8px 8px;
    pointer-events: none;
}

.timeline-item h4 {
    font-family: 'Marcellus', serif;
    font-size: 21px;
    letter-spacing: 2px;
    color: var(--rani-dark);
    margin-bottom: 4px;
}

.timeline-date {
    font-size: 14px;
    font-weight: 500;
    color: var(--marigold);
    letter-spacing: 1px;
}

.timeline-time,
.timeline-desc {
    font-size: 14px;
    color: var(--text-medium);
}

/* ===== PRE-WEDDING — stacked rows over dune curves ===== */
.prewedding-section {
    padding: 70px 20px 90px;
    background: var(--sand);
    text-align: center;
}

.prewedding-container {
    display: flex;
    flex-direction: column;
    max-width: 940px;
    margin: 40px auto 0;
}

.prewedding-card {
    display: flex;
    align-items: stretch;
    background: var(--cream-panel);
    border: 1px solid var(--border);
    box-shadow: 0 14px 30px var(--shadow-rani);
    overflow: hidden;
    text-align: left;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.prewedding-card:nth-of-type(even) {
    flex-direction: row-reverse;
    text-align: right;
}

.prewedding-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(164, 19, 60, 0.24);
}

.prewedding-img {
    flex: 0 0 38%;
    min-height: 210px;
    overflow: hidden;
}

.prewedding-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.prewedding-card:hover .prewedding-img img {
    transform: scale(1.06);
}

.prewedding-info {
    flex: 1;
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.prewedding-info h4 {
    font-family: 'Marcellus', serif;
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--rani-dark);
    margin-bottom: 6px;
}

.event-datetime {
    font-size: 14px;
    font-weight: 500;
    color: var(--marigold);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.event-location {
    font-size: 14px;
    color: var(--royal);
    margin-bottom: 6px;
}

.event-desc {
    font-size: 14.5px;
    color: var(--text-medium);
}

/* Dune curve divider between rows */
.dune-divider {
    height: 46px;
    margin: 4px 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C260,6 470,2 700,26 C920,48 1060,18 1200,38 L1200,60 Z' fill='%23e3cb90'/%3E%3Cpath d='M0,60 C300,22 560,14 820,34 C1000,47 1110,34 1200,46 L1200,60 Z' fill='%23d9b64a' fill-opacity='0.45'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.dune-divider:nth-of-type(even) {
    transform: scaleX(-1);
}

/* ===== VENUE — full-bleed haveli photo, glass card, arch map ===== */
.venue-section {
    padding: 90px 20px;
    background: var(--ivory);
}

.venue-hero {
    position: relative;
    max-width: 1080px;
    margin: 36px auto 0;
    border: 2px solid var(--gold);
    outline: 1px solid var(--gold-pale);
    outline-offset: 6px;
    box-shadow: 0 22px 48px rgba(66, 34, 46, 0.26);
    overflow: hidden;
    min-height: 460px;
}

.venue-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Glass info card overlapping the photo, bottom-right */
.venue-glass {
    position: absolute;
    right: 26px;
    bottom: 26px;
    width: min(430px, calc(100% - 52px));
    padding: 28px 30px;
    background: rgba(255, 248, 230, .22);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    backdrop-filter: blur(12px) saturate(1.3);
    border: 1px solid rgba(201, 162, 39, .6);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(28, 4, 13, 0.35);
    display: flex;
    flex-direction: column;
    gap: 9px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .venue-glass {
        background: rgba(255, 248, 230, .86);
    }
}

.venue-glass h3 {
    font-size: 31px;
    font-weight: 400;
    color: var(--rani-deep);
    line-height: 1.2;
}

.venue-glass p {
    font-size: 15.5px;
    color: var(--text-dark);
}

.venue-glass .fa-calendar-alt {
    color: var(--rani);
    margin-right: 6px;
}

.venue-label {
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--rani);
    font-weight: 600;
}

.btn-outline {
    display: inline-block;
    align-self: flex-start;
    margin-top: 6px;
    padding: 11px 32px;
    border: 1.5px solid var(--gold);
    color: var(--rani-deep);
    background: rgba(255, 253, 246, 0.35);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--white);
}

/* Map below in an arch frame */
.venue-map-arch {
    max-width: 1080px;
    margin: 30px auto 0;
    border: 3px solid var(--gold);
    border-radius: 200px 200px 14px 14px;
    overflow: hidden;
    box-shadow: 0 16px 36px var(--shadow-rani);
    line-height: 0;
}

.venue-map-arch iframe {
    width: 100%;
    height: 340px;
    min-height: 260px;
    border: none;
    display: block;
}

/* ===== TRAVEL & INFO — arch-top cards on sand ===== */
.travel-section {
    padding: 30px 20px 90px;
    background: var(--sand);
}

.info-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.info-card {
    width: 248px;
    background: var(--cream-panel);
    border: 1.5px solid var(--gold);
    border-radius: 64px 64px 12px 12px;
    padding: 36px 22px 28px;
    text-align: center;
    box-shadow: 0 12px 26px var(--shadow-rani);
    position: relative;
}

.info-card::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px dotted var(--gold-pale);
    border-radius: 58px 58px 8px 8px;
    pointer-events: none;
}

.info-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    outline: 1px solid var(--gold-pale);
    outline-offset: 3px;
    overflow: hidden;
    box-shadow: 0 8px 18px var(--shadow-rani);
    background: var(--cream-panel);
}

.info-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-card h4 {
    font-family: 'Marcellus', serif;
    font-size: 20px;
    letter-spacing: 2.5px;
    color: var(--rani-dark);
    margin-bottom: 10px;
}

.info-card p {
    font-size: 14.5px;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.info-card p strong {
    color: var(--rani);
    letter-spacing: 1px;
}

.btn-watch {
    display: inline-block;
    margin-top: 6px;
    padding: 9px 24px;
    background: var(--royal);
    color: #ffe9c9;
    font-size: 12.5px;
    letter-spacing: 2.5px;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.btn-watch:hover {
    background: var(--royal-dark);
}

/* ===== GALLERY — masonry columns ===== */
.gallery-section {
    padding: 90px 20px;
    background: var(--ivory);
    text-align: center;
}

.gallery-grid {
    columns: 3;
    column-gap: 14px;
    max-width: 1080px;
    margin: 40px auto 0;
    text-align: left;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 14px;
    overflow: hidden;
    border: 2px solid var(--gold-pale);
    outline: 1px solid var(--border);
    outline-offset: 3px;
    line-height: 0;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* ===== RSVP — arch-top panel, magenta header band ===== */
.rsvp-section {
    padding: 90px 20px;
    background:
        radial-gradient(circle, rgba(224, 123, 36, 0.13) 1.4px, transparent 1.7px) 0 0 / 26px 26px,
        var(--ivory);
    text-align: center;
}

.rsvp-panel {
    max-width: 800px;
    margin: 0 auto;
    background: var(--cream-panel);
    border: 2px solid var(--gold);
    outline: 1px solid var(--gold-pale);
    outline-offset: 6px;
    border-radius: 150px 150px 16px 16px;
    box-shadow: 0 20px 44px var(--shadow-rani);
    overflow: hidden;
}

.rsvp-head {
    background: linear-gradient(135deg, var(--rani) 0%, var(--rani-dark) 100%);
    padding: 56px 24px 24px;
    border-bottom: 3px solid var(--gold);
}

.rsvp-head h2 {
    font-size: clamp(22px, 3.6vw, 32px);
    font-weight: 400;
    letter-spacing: 3px;
    color: #fdf3da;
}

.rsvp-form {
    padding: 36px 38px 40px;
    position: relative;
}

.rsvp-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 13px 16px;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--ivory);
    border: 1px solid var(--border);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(217, 182, 74, 0.18);
}

.rsvp-form textarea {
    resize: vertical;
    margin-bottom: 20px;
}

.btn-submit {
    padding: 14px 44px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #fffbe9;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 3px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 10px 24px var(--shadow-rani);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--rani) 0%, var(--rani-dark) 100%);
}

.rsvp-thanks {
    margin-top: 18px;
    font-family: 'Marcellus', serif;
    font-style: italic;
    font-size: 19px;
    color: var(--royal);
}

/* ===== FOOTER — deep plum ground ===== */
.footer {
    position: relative;
    background: linear-gradient(180deg, var(--plum) 0%, var(--plum-deep) 100%);
    color: #f0e6cc;
    padding: 70px 20px 0;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 14px;
    background-image: radial-gradient(circle, var(--gold-pale) 1.6px, transparent 1.9px);
    background-size: 16px 14px;
    background-repeat: repeat-x;
    background-position: center;
}

.footer-floral {
    position: absolute;
    bottom: 0;
    width: min(300px, 42vw);
    z-index: 0;
    pointer-events: none;
    line-height: 0;
}

.footer-floral.left {
    left: 0;
}

.footer-floral.right {
    right: 0;
}

.footer-floral.right img {
    transform: scaleX(-1);
}

.footer-floral img {
    width: 100%;
    display: block;
    background: transparent;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1080px;
    margin: 0 auto;
    padding-bottom: 46px;
}

.footer-left,
.footer-right {
    flex: 1;
}

.footer-left h4 {
    font-family: 'Marcellus', serif;
    font-size: 22px;
    letter-spacing: 3px;
    color: var(--gold-pale);
    margin-bottom: 8px;
}

.footer-left p {
    font-size: 15px;
    color: #e6d3c2;
    max-width: 300px;
}

.footer-center {
    flex: 1.2;
    text-align: center;
}

.footer-monogram {
    font-family: 'Marcellus', serif;
    font-size: 30px;
    color: var(--gold-pale);
    margin-bottom: 8px;
}

.footer-monogram span {
    color: var(--marigold-light);
    margin: 0 6px;
}

.footer-names {
    font-family: 'Great Vibes', cursive;
    font-size: 40px;
    font-weight: 400;
    color: #fdf3da;
    line-height: 1.2;
}

.footer-date {
    font-size: 14px;
    letter-spacing: 3px;
    color: #e6d3c2;
    margin-top: 6px;
}

.footer-right {
    text-align: right;
}

.footer-right span {
    font-size: 12px;
    letter-spacing: 3px;
    color: #e6d3c2;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.footer-right .social-icons {
    justify-content: flex-end;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-pale);
    font-size: 15px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--gold);
    color: var(--plum-deep);
}

.footer-content-mobile {
    display: none;
    position: relative;
    z-index: 1;
    text-align: center;
    padding-bottom: 40px;
}

.footer-content-mobile .social-icons {
    justify-content: center;
}

.footer-thankyou-title {
    font-family: 'Marcellus', serif;
    font-size: 22px;
    letter-spacing: 3px;
    color: var(--gold-pale);
    margin: 22px 0 6px;
}

.footer-thankyou-text {
    font-size: 15px;
    color: #e6d3c2;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(217, 182, 74, 0.3);
    padding: 18px 0 22px;
    text-align: center;
    font-size: 13px;
    color: #c4a9b4;
}

.footer-bottom .credit-line {
    color: var(--gold-pale);
    letter-spacing: 1px;
    margin-top: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .gallery-grid {
        columns: 2;
    }

    .footer-content {
        display: none;
    }

    .footer-content-mobile {
        display: block;
    }

    .desktop-only { display: none; }
    .mobile-only { display: block; }

    .venue-hero {
        min-height: 520px;
    }

    .venue-glass {
        right: 16px;
        left: 16px;
        bottom: 16px;
        width: auto;
    }
}

@media (max-width: 760px) {
    /* Timeline collapses to a left-hand camel track */
    .timeline-container::before {
        left: 51px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        align-self: stretch;
        padding: 0 0 30px 128px;
        text-align: left;
    }

    .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 0;
        right: auto;
    }

    /* Couple stacks; divider becomes a centred ornament between the two */
    .couple-container {
        flex-direction: column;
        gap: 54px;
    }

    .person {
        flex-direction: column;
        text-align: center;
    }

    .person.groom {
        flex-direction: column;
        text-align: center;
    }

    .person.bride .person-photo {
        margin-left: 0;
    }

    .person-text {
        order: 2;
    }

    .person-photo {
        order: 1;
    }

    .couple-divider {
        position: static;
        transform: none;
        margin: -30px 0;
    }
}

@media (max-width: 680px) {
    .hero {
        padding-top: 34px;
    }

    .hero-arch {
        height: 46vh;
        min-height: 280px;
    }

    .hero-glass {
        margin-top: -56px;
    }

    .hero-content {
        padding: 24px 18px 34px;
    }

    .caravan-strip {
        height: 104px;
    }

    .caravan-band {
        height: 92px;
    }

    .splash-caravan {
        height: 96px;
    }

    .splash-caravan .caravan-band {
        height: 84px;
    }

    .splash-inner {
        padding-bottom: 128px;
    }

    .prewedding-card,
    .prewedding-card:nth-of-type(even) {
        flex-direction: column;
        text-align: left;
    }

    .prewedding-img {
        flex: none;
        height: 190px;
        min-height: 0;
    }

    .rsvp-panel {
        border-radius: 90px 90px 14px 14px;
    }

    .rsvp-head {
        padding-top: 42px;
    }

    .rsvp-form {
        padding: 28px 20px 32px;
    }

    .rsvp-form .form-row {
        grid-template-columns: 1fr;
    }

    .countdown-item {
        width: 80px;
        padding: 22px 0 13px;
        border-radius: 40px 40px 8px 8px;
    }

    .countdown-item::before {
        border-radius: 34px 34px 5px 5px;
    }

    .countdown-number {
        font-size: 32px;
    }

    .section-header .ornament {
        width: 44px;
        height: 44px;
    }

    .section-header h2 {
        letter-spacing: 2px;
        white-space: normal;
    }

    .wedding-details {
        flex-direction: column;
        gap: 4px;
    }

    .wedding-details .detail-separator {
        display: none;
    }

    .splash-arch-frame {
        padding: 42px 18px 34px;
    }

    .venue-map-arch iframe {
        height: 260px;
    }
}
