/* ============================================
   WEDDING INVITATION — WARM BROWN & GOLD
   Design System & Styles
   ============================================ */

:root {
    /* Colors — Warm Brown & Gold Palette */
    --olive-dark: #2E1F14;
    --olive: #3D2B1E;
    --olive-light: #5C4033;
    --olive-muted: #7A6252;
    --cream: #F2E6D6;
    --cream-dark: #E5D5C0;
    --cream-mid: #EBDECE;
    --gold: #C9A96E;
    --gold-light: #D9BF8E;
    --gold-dark: #A8863D;
    --text-light: #FFFFFF;
    --text-cream: #F2E6D6;
    --text-dark: #2E1F14;
    --text-muted: #9A8872;

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --font-script: 'Great Vibes', cursive;

    /* Spacing */
    --section-pad: 100px;
    --container-max: 1100px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Typography */
.section-accent {
    font-family: var(--font-script);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--gold);
    text-align: center;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.04em;
    margin-bottom: 60px;
    color: var(--text-dark);
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* ============================================
   SPLASH SCREEN
   ============================================ */

.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--cream-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease-out), visibility 0.8s;
}

.splash.opened {
    opacity: 0;
    transform: scale(1.1);
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    padding: 24px;
}

.splash-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--olive-muted);
    margin-bottom: 16px;
}

.splash-names {
    font-family: var(--font-script);
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 400;
    color: var(--olive-dark);
    margin-bottom: 40px;
    line-height: 1.2;
}

.splash-names span {
    font-family: var(--font-script);
    color: var(--gold-dark);
}

.envelope-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.4s var(--ease);
    max-width: 400px;
    margin: 0 auto;
}

.envelope-wrapper:hover {
    transform: scale(1.03) translateY(-4px);
}

.envelope-wrapper:hover .wax-seal {
    transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
    filter: brightness(1.15);
}

.envelope-img {
    width: 100%;
    border-radius: 8px;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
}

.wax-seal {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.4s var(--ease), filter 0.4s;
    filter: brightness(1);
    animation: sealGlow 3s ease-in-out infinite 2s;
}

/* Red flower — bottom-left of envelope */
.flower-red {
    position: absolute;
    bottom: -2%;
    left: 5%;
    width: 100px;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
    animation: flowerBloom 1.2s var(--ease-out) 1.8s both;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* Red flower — top-right of envelope */
.flower-red-top-right {
    position: absolute;
    top: -5%;
    right: 2%;
    width: 100px;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
    transform: scaleX(-1);
    animation: flowerBloomTopRight 1.2s var(--ease-out) 2s both;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* ---- Splash Staggered Entrance Animations ---- */
.splash-anim-1 {
    opacity: 0;
    transform: translateY(-20px);
    animation: splashSlideDown 0.8s var(--ease-out) 0.3s forwards;
}

.splash-anim-2 {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
    animation: splashNameReveal 1s var(--ease-out) 0.6s forwards;
}

.splash-anim-3 {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: splashEnvelopeIn 1s var(--ease-out) 1s forwards,
        envelopeFloat 4s ease-in-out 2.5s infinite;
}

.splash-anim-4 {
    opacity: 0;
    transform: translateY(10px);
    animation: splashSlideUp 0.7s var(--ease-out) 1.6s forwards,
        ctaPulse 2.5s ease-in-out 2.3s infinite;
}

@keyframes splashSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

@keyframes splashNameReveal {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }

    60% {
        opacity: 1;
        transform: translateY(2px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes splashEnvelopeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    70% {
        opacity: 1;
        transform: translateY(-5px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes splashSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 0.6;
        transform: translateY(0);
    }
}

/* Gentle floating for envelope */
@keyframes envelopeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Wax seal subtle glow pulse */
@keyframes sealGlow {

    0%,
    100% {
        filter: brightness(1) drop-shadow(0 0 0px transparent);
    }

    50% {
        filter: brightness(1.15) drop-shadow(0 0 12px rgba(201, 169, 110, 0.5));
    }
}

/* Red flower bloom entrance */
@keyframes flowerBloom {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-30deg);
    }

    60% {
        opacity: 1;
        transform: scale(1.08) rotate(3deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Red flower bloom entrance — top right (mirrored) */
@keyframes flowerBloomTopRight {
    0% {
        opacity: 0;
        transform: scaleX(-1) rotate(180deg) scale(0.3);
    }

    60% {
        opacity: 1;
        transform: scaleX(-1) rotate(183deg) scale(1.08);
    }

    100% {
        opacity: 1;
        transform: scaleX(-1) rotate(180deg) scale(1);
    }
}

.splash-cta {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--olive-muted);
    opacity: 0;
    margin-top: 32px;
}

@keyframes ctaPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-out) 0.3s, transform 1s var(--ease-out) 0.3s;
    pointer-events: none;
}

.main-content.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ============================================
   HERO — Ornate Tag over Flowers
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(1px) brightness(0.85);
    transform: scale(1.05);
    transition: transform 8s linear;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    animation: heroFadeIn 1.6s var(--ease-out) 0.5s both;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-tag-wrapper {
    position: relative;
    display: inline-block;
    max-width: 520px;
}

.hero-tag-frame {
    width: 100%;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.3));
    border-radius: 12px;
}

.hero-tag-text {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-tag-label {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--olive);
    margin-bottom: 4px;
}

.hero-tag-names {
    font-family: var(--font-script);
    font-size: clamp(2.2rem, 7vw, 4rem);
    font-weight: 400;
    color: var(--olive-dark);
    line-height: 1.15;
}

.hero-tag-and {
    font-family: var(--font-script);
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 400;
    font-style: italic;
    color: var(--gold-dark);
    margin: 0;
}

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

.countdown {
    background: var(--cream-dark);
    color: var(--text-dark);
    padding: var(--section-pad) 0;
    position: relative;
}

.countdown::before,
.countdown::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.countdown::before {
    top: 0;
}

.countdown::after {
    bottom: 0;
}

.countdown-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.countdown-item {
    text-align: center;
    min-width: 90px;
}

.countdown-num {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--gold);
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-top: 8px;
}

.countdown-sep {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--gold);
    opacity: 0.4;
    line-height: 1;
    padding-bottom: 22px;
}

/* ============================================
   WELCOME MESSAGE
   ============================================ */

.welcome {
    padding: 80px 0;
    background: var(--cream-mid);
    text-align: center;
    position: relative;
}

.welcome-ornament {
    max-width: 200px;
    margin: 0 auto 32px;
    color: var(--gold);
}

.welcome-ornament-svg {
    width: 100%;
    height: auto;
}

.welcome-text {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 400;
    font-style: italic;
    line-height: 2;
    color: var(--olive-dark);
    max-width: 700px;
    margin: 0 auto 32px;
    opacity: 0.9;
}

.welcome-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.welcome-date-line {
    width: 60px;
    height: 1px;
    background: rgba(201, 169, 110, 0.4);
}

.welcome-date-text {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
}

/* ============================================
   OUR STORY
   ============================================ */

.story {
    padding: var(--section-pad) 0;
    background: var(--cream-dark);
}

.story-timeline {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.story-event {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-event:nth-child(even) {
    direction: rtl;
}

.story-event:nth-child(even)>* {
    direction: ltr;
}

.story-event-content {
    padding: 20px 0;
}

.story-event-date {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    display: inline-block;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 4px;
}

.story-event-content h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--olive-dark);
}

.story-event-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--olive-muted);
}

/* ============================================
   POLAROID STYLE
   ============================================ */

.polaroid {
    background: #fff;
    padding: 10px 10px 36px 10px;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.polaroid:hover {
    transform: scale(1.02) rotate(0deg) !important;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.1);
}

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

.polaroid-caption {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-script);
    font-size: 0.9rem;
    color: var(--olive-muted);
    letter-spacing: 0.05em;
}

/* Story polaroids — larger */
.story-event-img.polaroid {
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.story-event:nth-child(1) .story-event-img.polaroid {
    transform: rotate(-2deg);
}

.story-event:nth-child(2) .story-event-img.polaroid {
    transform: rotate(1.5deg);
}

.story-event:nth-child(3) .story-event-img.polaroid {
    transform: rotate(-1deg);
}

/* ============================================
   CALENDAR SECTION
   ============================================ */

.calendar {
    padding: var(--section-pad) 0;
    background: var(--cream-dark);
}

.calendar-month {
    font-family: var(--font-script);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 400;
    color: var(--olive-dark);
    text-align: center;
    margin-bottom: 48px;
}

.calendar-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.6);
}

.calendar-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    gap: 40px;
}

.calendar-photo {
    width: 100%;
    height: 100%;
}

.calendar-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    min-height: 500px;
}

.calendar-grid {
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 340px;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.calendar-header span {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 4px 0;
}

.calendar-days span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 auto;
    font-family: var(--font-serif);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--olive-dark);
    border-radius: 50%;
    transition: background 0.3s, color 0.3s;
}

.calendar-empty {
    visibility: hidden;
}

.calendar-highlight {
    position: relative;
    background: var(--gold) !important;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 16px rgba(201, 169, 110, 0.4);
}

.calendar-highlight::after {
    content: '♥';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.55rem;
    color: var(--gold);
}

.calendar-left .countdown-grid {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================
   DETAILS
   ============================================ */

.details {
    padding: var(--section-pad) 0;
    background: var(--cream-mid);
    color: var(--text-dark);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.detail-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}

.detail-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 169, 110, 0.5);
    background: rgba(255, 255, 255, 0.6);
}

.detail-icon {
    margin-bottom: 24px;
    color: var(--gold);
}

.detail-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--olive-dark);
}

.detail-time {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
}

.detail-venue {
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--olive-dark);
}

.detail-address {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.detail-muted {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================
   SCHEDULE
   ============================================ */

.schedule {
    padding: var(--section-pad) 0;
    background: var(--cream-dark);
}

.schedule-timeline {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 36px;
    position: relative;
}

.schedule-time {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gold);
    min-width: 90px;
    text-align: right;
    padding-top: 2px;
}

.schedule-dot {
    width: 12px;
    height: 12px;
    min-width: 12px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: var(--cream-dark);
    margin-top: 5px;
    position: relative;
    z-index: 1;
    transition: background 0.3s;
}

.schedule-item:hover .schedule-dot {
    background: var(--gold);
}

.schedule-content h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--olive-dark);
}

.schedule-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   GALLERY — Modern Masonry with Flower Decorations
   ============================================ */

.gallery {
    padding: var(--section-pad) 0;
    background: var(--cream-mid);
    position: relative;
    overflow: clip;
}

/* Ensure gallery images are always visible regardless of reveal state */
.gallery .gallery-item {
    opacity: 1 !important;
    transform: none !important;
}

.gallery .container {
    position: relative;
    z-index: 1;
}

/* Flower decoration base */
.gallery-flower {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

/* Hanging flowers at top */
.gallery-flower-top {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 700px);
    opacity: 0.85;
}

/* Red calla lilies — bottom left */
.gallery-flower-bl {
    bottom: -30px;
    left: -40px;
    width: clamp(120px, 18vw, 220px);
    opacity: 0.8;
}

/* White/green bouquet — bottom right */
.gallery-flower-br {
    bottom: -20px;
    right: -30px;
    width: clamp(140px, 20vw, 250px);
    opacity: 0.75;
    transform: scaleX(-1);
}

/* Small accent flower — top left of the grid area */
.gallery-flower-accent-tl {
    top: 80px;
    left: 10px;
    width: clamp(50px, 8vw, 90px);
    opacity: 0.6;
    transform: rotate(-15deg);
}

/* Small accent flower — top right of the grid area */
.gallery-flower-accent-tr {
    top: 120px;
    right: 15px;
    width: clamp(40px, 7vw, 80px);
    opacity: 0.5;
    transform: rotate(20deg) scaleX(-1);
}

/* Masonry Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    grid-auto-flow: dense;
    gap: 16px;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.5s var(--ease);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}

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

/* Tall items span 2 rows */
.gallery-item-tall {
    grid-row: span 2;
}

/* Overlay with caption — only visible on hover */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    font-family: var(--font-script);
    font-size: 1rem;
    color: #fff;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    margin: auto;
    transition: transform 0.4s var(--ease-out);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.3s;
    padding: 20px;
}

.lightbox-prev {
    left: 12px;
}

.lightbox-next {
    right: 12px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

/* ============================================
   RSVP
   ============================================ */

.rsvp {
    padding: var(--section-pad) 0;
    background: var(--cream-dark);
    position: relative;
}

.rsvp::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(201, 169, 110, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(201, 169, 110, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.rsvp-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: -44px;
    margin-bottom: 48px;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--olive-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--olive-dark);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
    background: rgba(255, 255, 255, 0.7);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23C9A96E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--cream-dark);
    color: var(--olive-dark);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--olive-dark);
    transition: color 0.3s;
}

.radio-label input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
    flex-shrink: 0;
    margin: 0;
}

.radio-label input[type="radio"]:checked {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.6);
}

.radio-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border-radius: 50%;
    background: var(--gold);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px 32px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--olive-dark);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 169, 110, 0.3);
    filter: brightness(1.05);
}

.btn-submit:active {
    transform: translateY(0);
}

/* RSVP Success */
.rsvp-success {
    text-align: center;
    padding: 40px 20px;
    color: var(--gold);
    animation: successFadeIn 0.6s var(--ease-out) both;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.rsvp-success h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin: 20px 0 12px;
    color: var(--olive-dark);
}

.rsvp-success p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* RSVP Tip Notes */
.rsvp-tips {
    max-width: 600px;
    margin: 0 auto 40px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-left: 3px solid var(--gold);
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.rsvp-tips-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    cursor: pointer;
    color: var(--gold-dark);
    list-style: none;
}

.rsvp-tips-header::-webkit-details-marker {
    display: none;
}

.rsvp-tips-header span {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--olive-dark);
}

.rsvp-tips-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: var(--gold);
}

.rsvp-tips[open] .rsvp-tips-chevron {
    transform: rotate(180deg);
}

.rsvp-tips-list {
    list-style: disc;
    padding: 0 28px 24px 48px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rsvp-tips-list li {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--olive-muted);
    padding-left: 4px;
}

.rsvp-tips-list li::marker {
    color: var(--gold);
}

.rsvp-tips-list li:last-child {
    font-style: italic;
    color: var(--gold-dark);
    font-weight: 500;
}

/* ============================================
   FAQ
   ============================================ */

.faq {
    padding: var(--section-pad) 0;
    background: var(--cream-mid);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.faq-item:first-child {
    border-top: 1px solid rgba(201, 169, 110, 0.15);
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--olive-dark);
    text-align: left;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--gold);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--gold);
    transition: transform 0.3s var(--ease);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.4s;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 24px;
}

.faq-answer p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 60px 0 40px;
    text-align: center;
    background: var(--cream-dark);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-monogram {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--olive-dark);
    margin-bottom: 12px;
    letter-spacing: 0.06em;
}

.footer-monogram span {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--gold);
    margin: 0 6px;
}

.footer-tagline {
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 8px;
}

.footer-date {
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.footer-divider {
    width: 40px;
    height: 1px;
    background: var(--gold);
    opacity: 0.4;
    margin: 0 auto 16px;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ============================================
   MUSIC TOGGLE
   ============================================ */

.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 8000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(61, 43, 30, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 169, 110, 0.3);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.music-toggle:hover {
    transform: scale(1.1);
    background: rgba(61, 43, 30, 0.95);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.music-toggle.playing {
    animation: musicPulse 1.5s ease-in-out infinite;
}

@keyframes musicPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(201, 169, 110, 0.4), 0 0 0 8px rgba(201, 169, 110, 0.08);
    }
}

/* ============================================
   HEARTS BUTTON & ANIMATION
   ============================================ */

.hearts-btn {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 8000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--olive-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
    box-shadow: 0 6px 24px rgba(201, 169, 110, 0.35);
}

.hearts-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(201, 169, 110, 0.5);
}

.hearts-btn:active {
    transform: scale(0.95);
}

.hearts-container {
    position: fixed;
    inset: 0;
    z-index: 7999;
    pointer-events: none;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    bottom: 80px;
    color: var(--gold);
    animation: floatHeart 3s ease-out forwards;
    pointer-events: none;
    opacity: 0;
}

@keyframes floatHeart {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5) rotate(0deg);
    }

    25% {
        opacity: 1;
        transform: translateY(-25vh) scale(1) rotate(-15deg);
    }

    50% {
        opacity: 0.8;
        transform: translateY(-50vh) scale(1.1) rotate(10deg);
    }

    75% {
        opacity: 0.4;
        transform: translateY(-70vh) scale(0.9) rotate(-5deg);
    }

    100% {
        opacity: 0;
        transform: translateY(-90vh) scale(0.6) rotate(15deg);
    }
}

/* ============================================
   VIETNAMESE DATE DISPLAY
   ============================================ */

.hero-group-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    margin-bottom: 32px;
}

.hero-group-photos .hero-photo:first-child {
    grid-row: 1 / 3;
}

.hero-photo {
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid rgba(201, 169, 110, 0.25);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.vn-date-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 12px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.vn-date-block {
    flex: 1;
    text-align: center;
    padding: 8px 16px;
}

.vn-date-label {
    display: block;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--olive-dark);
    letter-spacing: 0.05em;
}

.vn-date-sub {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.1em;
}

.vn-date-num {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
}

.vn-date-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    flex-shrink: 0;
}

.venue-info {
    text-align: center;
    color: var(--gold);
}

.venue-info svg {
    margin-bottom: 8px;
    opacity: 0.8;
}

.venue-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--olive-dark);
    margin-bottom: 4px;
}

.venue-address {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ============================================
   POETRY SECTION
   ============================================ */

.poetry {
    padding: 60px 0;
    background: var(--cream-mid);
    text-align: center;
}

.poetry-ornament {
    max-width: 200px;
    margin: 0 auto;
    color: var(--gold);
    opacity: 0.7;
}

.poetry-ornament svg {
    width: 100%;
    height: auto;
}

.poetry-verse {
    max-width: 600px;
    margin: 32px auto;
    padding: 0 20px;
}

.poetry-verse p {
    font-family: 'EB Garamond', var(--font-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    font-style: italic;
    line-height: 2.2;
    color: var(--olive-dark);
    opacity: 0.9;
    letter-spacing: 0.02em;
}

.poetry-verse p:nth-child(even) {
    padding-left: 2em;
}

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

.couple {
    padding: var(--section-pad) 0;
    background: var(--cream-dark);
}

.couple-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.couple-card {
    text-align: center;
}

.couple-photo-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 24px;
    border: 3px solid rgba(201, 169, 110, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.5s var(--ease), border-color 0.5s;
}

.couple-card:hover .couple-photo-wrapper {
    transform: scale(1.05);
    border-color: var(--gold);
}

.couple-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.couple-card:hover .couple-photo-wrapper img {
    transform: scale(1.1);
}

.couple-role {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 8px;
}

.couple-name {
    font-family: var(--font-script);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--olive-dark);
    margin-bottom: 16px;
}

.couple-bio {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 280px;
    margin: 0 auto;
}

.couple-family {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 280px;
    margin: 0 auto;
}

.couple-family-title {
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.couple-family-row {
    margin: 4px 0;
}

.couple-family-label {
    font-weight: 500;
    color: var(--olive-dark);
}

.couple-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.couple-divider-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.couple-divider-heart {
    color: var(--gold);
    animation: heartBeat 2s ease-in-out infinite;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.2);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.15);
    }

    56% {
        transform: scale(1);
    }
}

/* ============================================
   GUEST WISH WALL
   ============================================ */

.wishes {
    padding: var(--section-pad) 0;
    background: var(--cream-mid);
}

/* Masonry-style grid using CSS columns for natural flow */
.wishes-wall {
    column-count: 3;
    column-gap: 20px;
    margin-bottom: 48px;
}

/* Individual wish card */
.wish-bubble {
    break-inside: avoid;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 16px;
    padding: 24px 22px 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Top accent gradient bar */
.wish-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    opacity: 0;
    transition: opacity 0.4s;
}

/* Decorative quote icon */
.wish-bubble::after {
    content: '\201C';
    position: absolute;
    top: 12px;
    right: 16px;
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1;
    color: var(--gold);
    opacity: 0.1;
    transition: opacity 0.4s;
    pointer-events: none;
}

.wish-bubble:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(201, 169, 110, 0.18), 0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: rgba(201, 169, 110, 0.4);
}

.wish-bubble:hover::before {
    opacity: 1;
}

.wish-bubble:hover::after {
    opacity: 0.2;
}

/* Author header row */
.wish-bubble-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

/* Avatar circle with initials */
.wish-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(201, 169, 110, 0.3);
}

.wish-bubble .wish-author {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--olive-dark);
    display: inline;
    letter-spacing: 0.01em;
}

.wish-bubble .wish-emoji {
    margin-left: auto;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Wish text */
.wish-bubble p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--olive-dark);
    margin-top: 0;
    opacity: 0.82;
    font-style: italic;
}

/* Stagger animation delay for reveal */
.wish-bubble:nth-child(1) { animation-delay: 0s; }
.wish-bubble:nth-child(2) { animation-delay: 0.06s; }
.wish-bubble:nth-child(3) { animation-delay: 0.12s; }
.wish-bubble:nth-child(4) { animation-delay: 0.18s; }
.wish-bubble:nth-child(5) { animation-delay: 0.24s; }
.wish-bubble:nth-child(6) { animation-delay: 0.30s; }

/* Wish Form — Tiptap Editor */
.wish-form-wrapper {
    max-width: 640px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 20px;
    padding: 28px 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.wish-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wish-name-input {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--olive-dark);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.wish-name-input::placeholder {
    color: var(--text-muted);
}

.wish-name-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}

/* Tiptap Wrapper */
.tiptap-wrapper {
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.tiptap-wrapper:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}

/* Tiptap Toolbar */
.tiptap-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
    background: rgba(255, 255, 255, 0.35);
}

.tiptap-toolbar button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--olive-muted);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.tiptap-toolbar button:hover {
    background: rgba(201, 169, 110, 0.15);
    color: var(--gold-dark);
}

.tiptap-toolbar button.is-active {
    background: rgba(201, 169, 110, 0.2);
    color: var(--gold-dark);
}

.tiptap-toolbar-divider {
    width: 1px;
    height: 20px;
    background: rgba(201, 169, 110, 0.2);
    margin: 0 4px;
}

/* Tiptap Editor Content Area */
.tiptap-editor {
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
}

.tiptap-editor .tiptap-content {
    padding: 14px 18px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--olive-dark);
    line-height: 1.6;
    outline: none;
    min-height: 80px;
}

.tiptap-editor .tiptap-content p {
    margin-bottom: 0.5em;
}

.tiptap-editor .tiptap-content p:last-child {
    margin-bottom: 0;
}

.tiptap-editor .tiptap-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
}

.tiptap-editor .tiptap-content video {
    max-width: 100%;
    border-radius: 8px;
    margin: 8px 0;
}

/* Tiptap Placeholder */
.tiptap-editor .tiptap-content p.is-editor-empty:first-child::before {
    content: attr(data-placeholder);
    float: left;
    color: var(--text-muted);
    pointer-events: none;
    height: 0;
}

/* Full-width Submit Button */
.wish-submit-btn-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--olive-dark);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
}

.wish-submit-btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 110, 0.35);
}

.wish-submit-btn-full:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Wish content (rich HTML in bubbles) */
.wish-content {
    margin-top: 0;
}

.wish-content p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--olive-dark);
    opacity: 0.82;
    margin-bottom: 0.3em;
    font-style: italic;
}

.wish-content p:last-child {
    margin-bottom: 0;
}

.wish-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
}

.wish-content video {
    max-width: 100%;
    border-radius: 8px;
    margin: 8px 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    :root {
        --section-pad: 80px;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .calendar-month {
        margin-bottom: 140px;
    }

    .calendar-wrapper {
        display: block;
        position: relative;
        overflow: visible;
        background: transparent;
    }

    .calendar-left {
        display: contents;
    }

    .calendar-left .calendar-grid {
        position: absolute;
        top: -120px;
        right: 16px;
        z-index: 2;
        width: auto;
        max-width: none;
        padding: 16px;
    }

    .calendar-left .calendar-grid .calendar-header span {
        font-size: 0.55rem;
    }

    .calendar-left .calendar-grid .calendar-days span {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .calendar-left .calendar-grid .calendar-days {
        gap: 2px 0;
    }

    .calendar-left .countdown-grid {
        position: absolute;
        bottom: 16px;
        right: 16px;
        z-index: 2;
        padding: 12px 20px;
    }

    .calendar-photo img {
        height: auto;
        min-height: 500px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 14px;
    }

    .gallery-flower-accent-tl,
    .gallery-flower-accent-tr {
        display: none;
    }

    .gallery-flower-bl {
        width: 140px;
    }

    .gallery-flower-br {
        width: 160px;
    }

    .story-event {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .story-event:nth-child(even) {
        direction: ltr;
    }

    .couple-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .couple-divider {
        flex-direction: row;
    }

    .couple-divider-line {
        width: 60px;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--gold), transparent);
    }

    .wishes-wall {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    :root {
        --section-pad: 60px;
    }

    .hero-group-photos {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        gap: 0;
        margin-bottom: 32px;
    }

    .hero-group-photos .hero-photo:first-child {
        grid-row: auto;
        border-radius: 0;
        border: none;
    }

    .hero-group-photos .hero-photo:nth-child(2),
    .hero-group-photos .hero-photo:nth-child(3) {
        display: none;
    }

    .splash-names {
        font-size: clamp(2rem, 10vw, 3.5rem);
        display: flex;
        flex-direction: column;
        align-items: center;
        line-height: 1.1;
    }

    .splash-names span {
        display: block;
        margin: 4px 0;
        font-size: 0.6em;
    }

    .envelope-wrapper {
        max-width: 280px;
    }

    .wax-seal {
        width: 56px;
        height: 56px;
    }

    .flower-red {
        width: 70px;
        bottom: -6%;
        left: -10%;
    }

    .hero-tag-wrapper {
        max-width: 320px;
    }

    .hero-tag-names {
        font-size: clamp(1.6rem, 8vw, 2.5rem);
    }

    .hero-tag-label {
        font-size: 0.5rem;
        letter-spacing: 0.3em;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 10px;
    }

    .gallery-flower-top {
        width: 100%;
        top: -10px;
        opacity: 0.6;
    }

    .gallery-flower-bl,
    .gallery-flower-br {
        width: 100px;
        opacity: 0.5;
    }

    .gallery-item {
        border-radius: 8px;
    }

    .countdown-grid {
        gap: 6px;
    }

    .countdown-item {
        min-width: 60px;
    }

    .countdown-num {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }

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

    .detail-card {
        padding: 36px 24px;
    }

    .schedule-timeline::before {
        left: 90px;
    }

    .schedule-time {
        min-width: 70px;
        font-size: 0.85rem;
    }

    .polaroid {
        padding: 6px 6px 28px 6px;
    }

    .polaroid-caption {
        font-size: 0.7rem;
        bottom: 6px;
    }

    .vn-date-display {
        padding: 16px 8px;
    }

    .vn-date-block {
        padding: 4px 8px;
    }

    .couple-photo-wrapper {
        width: 150px;
        height: 150px;
    }

    .tiptap-toolbar {
        padding: 4px 8px;
    }

    .tiptap-toolbar button {
        width: 28px;
        height: 28px;
    }

    .wishes-wall {
        column-count: 1;
    }

    .wish-form-wrapper {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .poetry-verse p {
        font-size: 1rem;
    }

    .poetry-verse p:nth-child(even) {
        padding-left: 1em;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}