@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:wght@400;500;600;700&family=Great+Vibes&family=Lato:wght@300;400;700&display=swap');

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

:root {
    --emerald: #062116;
    --emerald-soft: #0d3a27;
    --gold: #d4af62;
    --gold-light: #ffe8a6;
    --cream: #fff8e5;
    --ink: #1d1711;
}

html {
    background: #050806;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top, rgba(23, 82, 53, 0.38), transparent 38%),
        #050806;
    color: var(--cream);
    font-family: "Lato", Arial, sans-serif;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

.page-body {
    width: 100%;
    max-width: 500px;
    min-height: 100vh;
    overflow: hidden;
    background: var(--emerald);
    box-shadow: 0 0 48px rgba(0, 0, 0, 0.46);
}

section,
main.mobile-card {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#couple,
#ceremony,
#sangeet,
#gallery,
#Reception,
#couple-details {
    position: relative;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.section-hero-video,
.mehndi-video-element,
.sangeet-video-element,
.gallery-video-element,
.Reception-video-element {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-couple-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 28px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(2, 12, 8, 0.28));
}

.wedding-invitation {
    margin-bottom: 18px;
    font-family: "Cinzel", serif;
    font-size: clamp(18px, 5vw, 28px);
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold-light);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

.hero-couple-names {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(34px, 10vw, 62px);
    font-weight: 700;
    line-height: 1;
    color: var(--gold);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.72);
}

.hero-couple-names .ampersand {
    margin: 10px 0;
    font-family: "Great Vibes", cursive;
    font-size: clamp(42px, 14vw, 78px);
    font-weight: 400;
    color: #fff5c7;
}

#all-people {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 44px 28px;
    text-align: center;
    background:
        linear-gradient(rgba(2, 17, 11, 0.08), rgba(2, 17, 11, 0.28)),
        url("../intro.png") center / cover no-repeat,
        linear-gradient(160deg, #052014, #0d3a27);
}

.all-people-content {
    width: 100%;
    max-width: 420px;
    padding: 34px 20px;
    border: 1px solid rgba(212, 175, 98, 0.55);
    background: rgba(4, 22, 14, 0.58);
    color: var(--gold-light);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.all-people-icon,
.sangeet-content-overlay-icon {
    width: 88px;
    height: 88px;
    object-fit: contain;
    margin-bottom: 18px;
}

.name-text1,
.son-of,
.wedding-date,
.wedding-place {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(17px, 4.5vw, 23px);
    line-height: 1.45;
}

.son-of {
    margin: 22px 0 12px;
    font-family: "Cinzel", serif;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.name-subha {
    margin: 24px 0;
    font-family: "Great Vibes", cursive;
    font-size: clamp(48px, 14vw, 78px);
    font-weight: 400;
    line-height: 0.95;
    color: var(--gold);
}

.name-subha span {
    font-family: "Cormorant Garamond", serif;
    font-size: 34px;
}

.wedding-date {
    margin-top: 26px;
    font-weight: 700;
}

#couple-details {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(255, 248, 226, 0.02), rgba(4, 16, 10, 0.24)),
        url("../haldi.png") center / cover no-repeat,
        #f3c449;
}

.couple-content-overlay,
.event-content-overlay,
.sangeet-content-overlay,
.wedding-flow {
    position: absolute;
    z-index: 2;
    left: 50%;
    width: 88%;
    max-width: 420px;
    transform: translateX(-50%);
    text-align: center;
    color: var(--cream);
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.72);
}

.couple-content-overlay {
    top: 34%;
}

.event-content-overlay {
    top: 42%;
}

.sangeet-content-overlay {
    top: 28%;
}

.wedding-flow {
    top: 33%;
}

.haldi-name,
.mehndi-name,
.sangeet-name,
.mariage-name,
.Reception-name {
    margin-bottom: 14px;
    font-family: "Great Vibes", cursive;
    font-size: clamp(46px, 14vw, 76px);
    font-weight: 400;
    line-height: 1;
    color: var(--gold-light);
}

.haldi-date,
.event-content-overlay-date,
.sangeet-content-overlay-date,
.wedding-flow-date,
.Reception-flow-date {
    margin-bottom: 14px;
    font-family: "Cinzel", serif;
    font-size: clamp(16px, 4.6vw, 25px);
    letter-spacing: 2px;
    color: var(--gold);
}

.haldi-date-text,
.event-content-overlay-test,
.sangeet-content-overlay-test,
.wedding-flow-text,
.Reception-flow-text {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(18px, 5vw, 28px);
    line-height: 1.35;
}

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 68%;
    margin: 22px auto 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 232, 166, 0.62);
}

.divider-icon {
    color: var(--gold-light);
}

.mobile-card,
.venue-section,
.rsvp-section,
.quote-section {
    background: #fff8ed;
    color: var(--ink);
}

.venue-section,
.rsvp-section,
.quote-section {
    padding: 48px 22px;
    text-align: center;
}

.venue-label,
.rsvp-label {
    margin-bottom: 10px;
    font-family: "Cinzel", serif;
    font-size: 12px;
    letter-spacing: 4px;
    color: #9b6f1f;
}

.venue-title,
.rsvp-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(32px, 9vw, 46px);
    font-weight: 600;
    color: #0d3a27;
}

.venue-divider,
.rsvp-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px auto 24px;
    max-width: 260px;
    color: #9b6f1f;
}

.venue-divider span:not(.venue-flower),
.rsvp-divider span {
    flex: 1;
    height: 1px;
    background: rgba(155, 111, 31, 0.36);
}

.venue-name-text {
    margin-bottom: 10px;
    font-family: "Cinzel", serif;
    font-size: 20px;
    color: #0d3a27;
}

.venue-address {
    margin: 0 auto 22px;
    max-width: 380px;
    font-size: 15px;
    line-height: 1.7;
    color: #5b5142;
}

.map-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(155, 111, 31, 0.24);
    box-shadow: 0 12px 28px rgba(13, 58, 39, 0.12);
}

.map-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-open {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 248, 237, 0.92);
    color: #0d3a27;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.direction-btn,
.confirm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%;
    margin-top: 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d3a27, #145f3d);
    color: #fff8ed;
    font-family: "Cinzel", serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
}

.rsvp-form {
    margin: 28px auto 0;
    max-width: 410px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.input-box input,
.select-box select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(155, 111, 31, 0.32);
    border-radius: 10px;
    background: #fffdf8;
    color: var(--ink);
    font: 400 14px "Lato", Arial, sans-serif;
}

.select-box {
    position: relative;
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 16px;
    color: #9b6f1f;
    pointer-events: none;
}

.form-success,
small {
    color: #0d7a43;
    font-size: 13px;
}

.quote-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.top-line {
    width: 70px;
    height: 2px;
    margin: 0 auto 28px;
    background: #9b6f1f;
}

.quote-first,
.quote-second {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(24px, 7vw, 36px);
    line-height: 1.35;
    color: #0d3a27;
}

.location {
    margin-top: 28px;
    font-family: "Cinzel", serif;
    font-size: 13px;
    letter-spacing: 2px;
    color: #9b6f1f;
}

.back-cover {
    margin-top: 24px;
    color: #0d3a27;
    font-family: "Cinzel", serif;
    font-size: 12px;
    text-decoration: none;
    letter-spacing: 2px;
}

@media (max-width: 380px) {

    .venue-section,
    .rsvp-section,
    .quote-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .all-people-content {
        padding-left: 16px;
        padding-right: 16px;
    }
}
/* Mobile: event copy can grow beyond one screen while its video stays behind it. */
@media (max-width: 768px) {
    .page-body { min-width: 0; }
    .page-body .quote-section { min-height: 0; padding-bottom: 16px; }
    .page-body #couple { display: grid; height: auto; min-height: 100svh; }
    .page-body .hero-couple-content { position: relative; min-height: 100svh; }
    .page-body .hero-couple-names,
    .page-body .wedding-invitation { max-width: 100%; overflow-wrap: anywhere; }
    .page-body .wedding-invitation { letter-spacing: 3px; }
    .page-body .hero-couple-names { line-height: 1.15; }
    .page-body .all-people-content > * { max-width: 100%; overflow-wrap: anywhere; }
    .page-body .name-subha { font-size: clamp(40px, 12vw, 64px); line-height: 1.15; }

    .page-body #couple-details,
    .page-body #ceremony,
    .page-body #sangeet,
    .page-body #gallery,
    .page-body #Reception {
        display: grid;
        align-content: start;
        height: auto;
        min-height: 100svh;
        padding: var(--event-top, 33svh) 6% 48px;
    }

    .page-body #couple-details { --event-top: 34svh; }
    .page-body #ceremony { --event-top: 42svh; }
    .page-body #sangeet { --event-top: 28svh; }
    .page-body .couple-content-overlay,
    .page-body .event-content-overlay,
    .page-body .sangeet-content-overlay,
    .page-body .wedding-flow {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .page-body .haldi-date,
    .page-body .event-content-overlay-date,
    .page-body .sangeet-content-overlay-date,
    .page-body .wedding-flow-date,
    .page-body .Reception-flow-date { line-height: 1.4; }
    .page-body .venue-name-text,
    .page-body .venue-address,
    .page-body .location,
    .page-body .rsvp-section small { overflow-wrap: anywhere; }
    .page-body .input-box,
    .page-body .select-box { min-width: 0; }
    .page-body .input-box input,
    .page-body .select-box select { min-width: 0; font-size: 16px; }
    .page-body .select-box select { padding-right: 38px; }
    .page-body .confirm-btn,
    .page-body .direction-btn { padding: 12px 16px; overflow-wrap: anywhere; }
}
