:root {
    --cream: #fdf8f2;
    --blush: #f2e0d0;
    --rose: #b5503c;
    --gold: #9a7535;
    --gold-light: #c49a50;
    --gold-vivid: #e8b86d;
    --espresso: #1a0a04;
    --mocha: #4a2810;
    --mocha-mid: #6b3a1f;
    --green: #2d3d20;
    --green-light: #4a5e3a;
    --leaf: #6b8a55;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    color: var(--espresso);
    overflow-x: hidden;
}

/* ── PETAL CANVAS ── */
#petalCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(175deg, #fdf8f2 0%, #f5e5d0 50%, #ede0cc 100%);
    text-align: center;
    padding: 60px 20px;
}

.hero-bg-leaves {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.leaf-svg {
    position: absolute;
    opacity: 0.12;
}

.hero-border {
    position: absolute;
    inset: 16px;
    border: 1px solid var(--gold);
    pointer-events: none;
}

.hero-border::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 0.5px solid var(--gold);
    opacity: 0.5;
}

.corner-flower {
    position: absolute;
    width: 140px;
    height: 140px;
}

.corner-flower.tl {
    top: 0;
    left: 0;
}

.corner-flower.tr {
    top: 0;
    right: 0;
    transform: scaleX(-1);
}

.corner-flower.bl {
    bottom: 0;
    left: 0;
    transform: scaleY(-1);
}

.corner-flower.br {
    bottom: 0;
    right: 0;
    transform: scale(-1);
}

.hero-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.4s ease forwards 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: clamp(12px, 1.8vw, 14px);
    letter-spacing: 7px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.hero-monogram {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(90px, 20vw, 160px);
    color: var(--mocha);
    line-height: 1;
    margin-bottom: 8px;
    animation: fadeUp 1.4s ease forwards 0.5s;
    opacity: 0;
}

.hero-ampersand {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(44px, 10vw, 72px);
    color: var(--gold);
    display: block;
    line-height: 0.8;
}

.ornament {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
    margin: 22px 0;
    opacity: 0;
    animation: fadeUp 1.4s ease forwards 0.8s;
}

.ornament-line {
    height: 1px;
    width: 80px;
    background: linear-gradient(to right, transparent, var(--gold));
}

.ornament-line.rev {
    background: linear-gradient(to left, transparent, var(--gold));
}

.ornament-diamond {
    width: 7px;
    height: 7px;
    background: var(--gold);
    transform: rotate(45deg);
}

.ornament-dot {
    width: 4px;
    height: 4px;
    background: var(--gold-light);
    transform: rotate(45deg);
}

.hero-names {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(52px, 12vw, 88px);
    color: var(--espresso);
    line-height: 1.25;
    opacity: 0;
    animation: fadeUp 1.4s ease forwards 0.7s;
}

.hero-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 500;
    color: var(--mocha);
    letter-spacing: 4px;
    margin-top: 10px;
    opacity: 0;
    animation: fadeUp 1.4s ease forwards 1s;
}

.hero-venue {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 2.5vw, 22px);
    font-style: italic;
    font-weight: 500;
    color: var(--green);
    margin-top: 6px;
    opacity: 0;
    animation: fadeUp 1.4s ease forwards 1.1s;
}

.illus-groom {
    width: 140px;
}

.illus-bride {
    width: 110px;
}

.scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 0;
    /* change */
    right: 0;
    /* add */
    transform: none;
    /* remove the translateX */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 2s;
}

.scroll-hint span {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 500;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* ── SECTION BASE ── */
section {
    padding: clamp(70px, 10vw, 110px) clamp(24px, 6vw, 80px);
}

.section-label {
    font-size: 12px;
    letter-spacing: 7px;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
    margin-bottom: 14px;
    font-weight: 600;
}

.section-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(52px, 10vw, 80px);
    color: var(--mocha);
    text-align: center;
    margin-bottom: 14px;
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
    margin: 0 auto 48px;
    max-width: 220px;
}

.sdiv-line {
    flex: 1;
    height: 1px;
    background: var(--gold);
    opacity: 0.6;
}

.sdiv-flower {
    font-size: 16px;
    color: var(--gold);
}

/* ── COUNTDOWN ── */
.countdown-section {
    background: var(--espresso);
    color: var(--cream);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.countdown-section .section-label {
    color: var(--gold-vivid);
}

.countdown-section .section-title {
    color: #fdf8f2;
}

.countdown-bg {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4b07a' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.countdown-grid {
    display: flex;
    gap: clamp(24px, 5vw, 60px);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 36px;
}

.count-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.count-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(72px, 15vw, 110px);
    font-weight: 400;
    color: var(--gold-vivid);
    line-height: 1;
    min-width: 100px;
    text-align: center;
}

.count-label {
    font-size: 12px;
    letter-spacing: 6px;
    color: rgba(253, 248, 242, 0.9);
    text-transform: uppercase;
    font-weight: 500;
}

.count-separator {
    font-family: 'Cormorant Garamond', serif;
    font-size: 72px;
    color: var(--gold-vivid);
    opacity: 0.4;
    line-height: 1;
    margin-top: 6px;
}

/* ── OUR STORY ── */
.story-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(22px, 3.2vw, 28px);
    font-style: italic;
    font-weight: 500;
    color: var(--mocha);
    line-height: 1.9;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.story-quote {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(40px, 7vw, 60px);
    color: var(--rose);
    text-align: center;
    margin: 30px 0;
}

/* ── EVENT DETAILS ── */
.details-section {
    background: linear-gradient(170deg, #f5e5d0 0%, #fdf8f2 100%);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    max-width: 960px;
    margin: 0 auto;
}

.detail-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(154, 117, 53, 0.35);
    padding: 40px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.detail-card-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.detail-card-label {
    font-size: 14px;
    letter-spacing: 5px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

.detail-card-main {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(22px, 3.5vw, 28px);
    color: var(--espresso);
    font-weight: 600;
    line-height: 1.4;
}

.detail-card-sub {
    font-size: clamp(18px, 2vw, 18px);
    color: var(--mocha-mid);
    margin-top: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
}

/* ── VENUE ── */
.venue-section {
    background: var(--espresso);
    color: var(--cream);
    text-align: center;
}

.venue-section .section-title {
    color: var(--gold-vivid);
}

.venue-section .section-label {
    color: var(--gold-vivid);
}

.venue-description {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(20px, 2.8vw, 26px);
    font-style: italic;
    font-weight: 500;
    color: rgba(253, 248, 242, 0.95);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.9;
}

.map-container {
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid rgba(184, 150, 90, 0.5);
    overflow: hidden;
    position: relative;
}

.map-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 6px solid var(--espresso);
    z-index: 1;
    pointer-events: none;
}

.map-container iframe {
    width: 100%;
    height: 340px;
    border: none;
    display: block;
    filter: sepia(0.3) contrast(0.9);
}

.directions-btn {
    display: inline-block;
    margin-top: 28px;
    padding: 16px 44px;
    border: 1px solid var(--gold-vivid);
    color: var(--gold-vivid);
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.directions-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold-vivid);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.directions-btn:hover::before {
    transform: translateX(0);
}

.directions-btn:hover {
    color: var(--espresso);
}

.directions-btn span {
    position: relative;
    z-index: 1;
}

/* ── GALLERY ── */
.gallery-section {
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    max-width: 960px;
    margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #e8d5c0, #d4b99a);
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(61, 35, 20, 0);
    transition: background 0.3s ease;
}

.gallery-item:hover::after {
    background: rgba(61, 35, 20, 0.2);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: var(--mocha);
    opacity: 0.6;
}

.gallery-placeholder svg {
    width: 36px;
    height: 36px;
}

.gallery-placeholder span {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ── RSVP ── */
.rsvp-section {
    background: linear-gradient(160deg, #fdf8f2 0%, #f0e0cc 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rsvp-form {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-label {
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
    background: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(74, 40, 16, 0.35);
    padding: 12px 4px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(20px, 2.5vw, 22px);
    font-weight: 500;
    color: var(--espresso);
    width: 100%;
    transition: border-color 0.3s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-bottom-color: var(--gold);
}

.form-input::placeholder {
    color: rgba(74, 40, 16, 0.4);
    font-style: italic;
}

.form-textarea {
    resize: none;
    height: 90px;
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239a7535'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

.attendance-btns {
    display: flex;
    gap: 14px;
}

.att-btn {
    flex: 1;
    padding: 14px;
    border: 1px solid rgba(74, 40, 16, 0.4);
    background: transparent;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mocha);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.att-btn.active {
    background: var(--espresso);
    color: var(--gold-vivid);
    border-color: var(--espresso);
}

.submit-btn {
    padding: 18px 48px;
    background: var(--espresso);
    color: var(--gold-vivid);
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    font-weight: 600;
}

.submit-btn:hover {
    background: var(--mocha);
}

.rsvp-success {
    display: none;
    padding: 48px;
    text-align: center;
}

.rsvp-success.show {
    display: block;
}

.rsvp-success .success-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.rsvp-success p {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(22px, 3vw, 28px);
    font-style: italic;
    font-weight: 500;
    color: var(--mocha);
    line-height: 1.7;
}

/* ── FOOTER ── */
footer {
    background: var(--espresso);
    color: rgba(253, 248, 242, 0.7);
    text-align: center;
    padding: 50px 20px;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
}

footer .footer-names {
    font-family: 'Great Vibes', cursive;
    font-size: 52px;
    color: var(--gold-vivid);
    letter-spacing: 0;
    text-transform: none;
    display: block;
    margin-bottom: 14px;
}

footer .footer-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-style: italic;
    letter-spacing: 2px;
    font-weight: 500;
    color: rgba(253, 248, 242, 0.65);
    text-transform: none;
}

/* ── REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* ── MOBILE ── */
@media (max-width: 600px) {
    .corner-flower {
        width: 90px;
        height: 90px;
    }

    .hero-border {
        inset: 10px;
    }

    .count-separator {
        display: none;
    }

    .countdown-grid {
        gap: 16px;
    }

    .count-num {
        min-width: 65px;
        font-size: 58px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gallery-item {
        grid-column: auto !important;
        grid-row: auto !important;
    }
}

/* ── COUPLE ILLUSTRATIONS ── */