/* ═══════════════════════════════════════════
   DOOR OVERLAY
═══════════════════════════════════════════ */
#door-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    perspective: 1400px;
    pointer-events: auto;
    overflow: hidden;
}

.door-panel {
    width: 50%;
    height: 100%;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    background-color: #FDFDF8; /* Solid cream base so content isn't visible through transparent PNG */
    background-image: url('images/White Green Floral Watercolor Wedding Invitation.png');
    background-size: 200% 100%;  /* each half shows its own side */
    overflow: hidden;
}

#door-left  {
    background-position: left center;
    transform-origin: left center;
    border-right: 1px solid rgba(201, 168, 76, 0.6);
    box-shadow: inset -10px 0 20px rgba(0,0,0,0.03), 5px 0 15px rgba(0,0,0,0.15);
}
#door-right {
    background-position: right center;
    transform-origin: right center;
    border-left: 1px solid rgba(201, 168, 76, 0.6);
    box-shadow: inset 10px 0 20px rgba(0,0,0,0.03), -5px 0 15px rgba(0,0,0,0.15);
}

.door-inner {
    position: absolute;
    inset: 0;
    background: rgba(253,253,248,0.1);
}

/* Decorative inner frame line */
.door-frame-line {
    position: absolute;
    top: 30px; bottom: 30px;
    right: 18px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(201,168,76,0.5) 30%, rgba(201,168,76,0.5) 70%, transparent);
}
.door-frame-line.right { right: auto; left: 18px; }

/* Floral decorations on each door quadrant */
.door-floral {
    position: absolute;
    width: 170px; height: 170px;
    background-image: url('images/White Green Floral Watercolor Wedding Invitation.png');
    background-size: 400%;
    opacity: 0.9;
    pointer-events: none;
}
.door-floral-tl { top: -20px; left: -20px; background-position: 0% 0%; }
.door-floral-bl { bottom: -20px; left: -20px; background-position: 0% 100%; }
.door-floral-tr { top: -20px; right: -20px; background-position: 100% 0%; }
.door-floral-br { bottom: -20px; right: -20px; background-position: 100% 100%; }

/* Center overlay zone — knobs + tap prompt */
.door-center {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

/* Door knobs */
.knob {
    position: absolute;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #f0e4c2, #c9a84c);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    top: 50%;
    transform: translateY(-50%);
}
.knob-left  { left: -9px; }
.knob-right { right: -9px; }

/* Tap prompt */
.tap-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.tap-ring {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 2px solid var(--gold, #C9A84C);
    display: flex; align-items: center; justify-content: center;
    animation: ring-pulse 2s ease-in-out infinite;
    position: relative;
}
.tap-ring::before {
    content: '\f256'; /* fa-hand-pointer */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--gold, #C9A84C);
}
.tap-ring::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.3);
    animation: ring-ripple 2s ease-in-out infinite;
}

@keyframes ring-pulse {
    0%, 100% { transform: scale(1);   opacity: 1;   }
    50%       { transform: scale(1.08); opacity: 0.8; }
}
@keyframes ring-ripple {
    0%   { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0;   }
}

.tap-text {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: #2E3A2F;
    letter-spacing: 1px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}
.tap-subtext {
    font-size: 0.65rem;
    color: #6B7C6C;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Gold seam line between doors */
.door-seam {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(201,168,76,0.6) 20%, rgba(201,168,76,0.6) 80%, transparent);
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
}


/* Ensure all text and content sit above the birds */
h1, h2, h3, p, span, .countdown-container, .btn-primary, .btn-secondary, .polaroid, .heart-divider {
    position: relative;
    z-index: 10;
}

:root {

    --bg-cream: #FDFDF8;
    --text-dark: #2E3A2F;
    --text-light: #6B7C6C;
    --accent: #7A9E7E;
    --accent-light: #D4E6D5;
    --gold: #C9A84C;
    --gold-light: #F0E4C2;
    --dusty-rose: #7A9E7E;        /* mapped for btn-primary */
    --dusty-rose-light: #D4E6D5; /* mapped for dividers */
    --font-heading: 'Playfair Display', serif;
    --font-cursive: 'Great Vibes', cursive;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-dark); background-color: var(--bg-cream); line-height: 1.6; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* Buttons */
.btn-primary {
    background: var(--dusty-rose); color: #fff; border: none; padding: 12px 30px; border-radius: 30px;
    font-size: 1rem; font-family: var(--font-heading); letter-spacing: 1px; cursor: pointer; transition: 0.3s;
}
.btn-primary:hover { background: var(--text-dark); }

.btn-calendar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #fff;
    padding: 1.2rem 3rem;
    border-radius: 40px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(201, 168, 76, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 10;
}
.btn-calendar:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(201, 168, 76, 0.5);
    color: #fff;
}
.btn-secondary {
    background: #fff; color: var(--dusty-rose); border: none; padding: 12px 30px; border-radius: 30px;
    font-size: 1rem; font-family: var(--font-heading); font-weight: 600; letter-spacing: 1px; cursor: pointer; transition: 0.3s;
}
.btn-secondary:hover { background: var(--bg-cream); }

/* Typography */
.section-title { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 400; margin-bottom: 0.5rem; }
.section-subtitle { font-size: 0.8rem; letter-spacing: 3px; color: var(--dusty-rose); text-transform: uppercase; font-weight: 600; }
.body-text { color: var(--text-light); font-size: 1rem; line-height: 1.8; }

/* Heart Dividers */
.heart-divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px 0 30px; color: var(--dusty-rose); font-size: 0.8rem;}
.heart-divider .line { width: 40px; height: 1px; background: var(--dusty-rose-light); }
.heart-divider-small { text-align: center; color: var(--dusty-rose); font-size: 0.6rem; margin: 20px 0; }
.heart-divider-small::before { content: '\f004'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 3rem;
    position: absolute; top: 0; left: 0; width: 100%; z-index: 100;
}
.nav-monogram { font-family: var(--font-heading); font-size: 1.8rem; letter-spacing: 4px; }
.hamburger { font-size: 1.5rem; color: var(--dusty-rose); cursor: pointer; }

/* Hero Section */
.hero { position: relative; min-height: 100vh; overflow: hidden; background: var(--bg-cream); }
.hero-split { display: flex; flex-wrap: wrap; height: 100vh; }
.hero-content {
    flex: 1; padding: 10% 5% 5% 10%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    background-image: url('images/White Green Floral Watercolor Wedding Invitation.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-image-wrapper { flex: 1; position: relative; }
.hero-image { width: 100%; height: 100%; background-size: cover; background-position: center; border-radius: 300px 0 0 300px; box-shadow: -10px 0 30px rgba(0,0,0,0.05); }

.pre-title { font-size: 0.75rem; letter-spacing: 3px; color: var(--text-light); margin-bottom: 1.5rem; text-transform: uppercase; font-weight: 600; line-height: 1.8; }
.couple-names-vertical { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.name-block { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.couple-name { font-family: var(--font-cursive); font-size: 5rem; font-weight: 400; color: var(--text-light); line-height: 1; margin: 0; }
.couple-lastname { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 4px; text-transform: uppercase; color: var(--text-light); margin-top: -0.2rem; }
.ampersand { font-family: var(--font-heading); font-size: 2.5rem; color: var(--text-light); font-style: italic; opacity: 0.8; margin: 0.5rem 0; }
.hero-desc { color: var(--text-light); max-width: 400px; }

/* Hero Countdown */
.inline-countdown { display: flex; align-items: center; gap: 15px; margin-bottom: 2rem; }
.cd-item { text-align: center; }
.cd-item span { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 600; color: var(--text-dark); }
.cd-item p { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); }
.cd-line { width: 1px; height: 30px; background: var(--gold-light); }

/* Scratch Card */
.scratch-wrapper {
    display: flex; flex-direction: column; align-items: center; gap: 0.8rem; margin-bottom: 1.5rem;
}
.scratch-hint {
    font-size: 0.75rem; letter-spacing: 2px; color: var(--gold);
    text-transform: uppercase; font-weight: 600;
    animation: pulse-hint 2s ease-in-out infinite;
}
@keyframes pulse-hint {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.scratch-card {
    position: relative; width: 280px; height: 110px;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 8px 25px rgba(122, 158, 126, 0.3);
    cursor: crosshair;
}
.scratch-reveal {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #f5fbf5, #eef7ee);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    border: 1.5px solid var(--accent-light);
    border-radius: 16px;
}
.reveal-label {
    font-size: 0.65rem; letter-spacing: 4px; color: var(--gold);
    font-weight: 700; text-transform: uppercase;
}
.reveal-date {
    font-family: var(--font-heading); font-size: 1.6rem; color: var(--text-dark);
    font-weight: 600; line-height: 1.2;
}
.reveal-hearts {
    font-size: 1rem; color: var(--accent); letter-spacing: 8px;
}
#scratch-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    border-radius: 16px; touch-action: none;
    z-index: 20; /* Ensure canvas sits above the date text */
}
.scratch-done {
    font-size: 1rem; color: var(--dusty-rose); font-weight: 600;
    animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes pop-in {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}


/* Scroll Down Circle */
.scroll-down {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    width: 50px; height: 50px; background: var(--bg-cream); border-radius: 50%;
    display: flex; justify-content: center; align-items: center; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: var(--dusty-rose); font-size: 1.2rem; cursor: pointer; z-index: 10;
}

/* Florals (Using SVG data URIs as placeholders to mimic design) */
.floral-corner { position: absolute; width: 300px; height: 300px; background-size: contain; background-repeat: no-repeat; opacity: 0.9; z-index: 5; pointer-events: none; }
.top-left { top: -50px; left: -50px; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%23E8D3D3" opacity="0.5"/><path d="M50 10 Q60 30 80 50 Q60 70 50 90 Q40 70 20 50 Q40 30 50 10 Z" fill="%23B87B7C" opacity="0.8"/></svg>'); }
.bottom-right { bottom: -50px; right: -20px; transform: rotate(180deg); background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%23E8D3D3" opacity="0.5"/><path d="M50 10 Q60 30 80 50 Q60 70 50 90 Q40 70 20 50 Q40 30 50 10 Z" fill="%23B87B7C" opacity="0.8"/></svg>'); }

/* Our Story */
.story-section { padding: 8rem 0; background: var(--bg-cream); }
.story-split { display: flex; align-items: center; gap: 4rem; }
.story-images { flex: 1; position: relative; height: 400px; }
.polaroid {
    background: #fff; padding: 15px 15px 40px 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: absolute; border: 1px solid #eee;
}
.polaroid img { width: 250px; height: 300px; object-fit: cover; }
.img-back { top: 0; left: 10%; transform: rotate(-5deg); z-index: 1; }
.img-front { top: 40px; left: 40%; transform: rotate(8deg); z-index: 2; }
.floral-accent-story {
    position: absolute; bottom: -20px; left: 0; width: 150px; height: 150px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%23E8D3D3" opacity="0.8"/><path d="M50 10 Q60 30 80 50 Q60 70 50 90 Q40 70 20 50 Q40 30 50 10 Z" fill="%23B87B7C"/></svg>');
    background-size: contain; background-repeat: no-repeat; z-index: 3;
}
.story-content { flex: 1; padding-right: 2rem; }

/* Events */
.events-section { padding: 6rem 0; background: #FFF; }
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.event-card {
    background: #FDF9F5; border: 1px solid var(--dusty-rose-light); border-radius: 10px; padding: 3rem 2rem;
    transition: transform 0.3s;
}
.event-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.event-icon { font-size: 3rem; color: var(--dusty-rose); margin-bottom: 1.5rem; opacity: 0.8; }
.event-card h3 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 1rem; }
.event-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.5rem; }
.event-card .time { font-weight: 600; color: var(--text-dark); margin-bottom: 1.5rem; }
.location { font-size: 0.8rem; display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--text-dark); }
.location i { color: var(--dusty-rose); }

/* Venues / Maps */
.venues-section { padding: 6rem 0; background: #FFF; }
.maps-container {
    display: flex; flex-direction: column; gap: 3rem; margin-top: 3rem; align-items: center;
}
.map-card {
    background: var(--bg-cream);
    border: 1px solid var(--dusty-rose-light);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.map-card-header { text-align: center; }
.map-card-header h4 { font-family: var(--font-heading); font-size: 1.8rem; color: var(--text-dark); margin-bottom: 0.5rem; }
.venue-name { font-weight: 600; color: var(--accent); font-size: 1.1rem; }
.venue-address { font-size: 0.9rem; color: var(--text-light); }

.map-frame {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--gold-light);
}
/* Decorative corners for the map frame */
.map-floral {
    position: absolute; width: 60px; height: 60px; z-index: 2;
    background-image: url('images/White Green Floral Watercolor Wedding Invitation.png');
    background-size: cover; pointer-events: none; opacity: 0.9;
}
.map-floral.top-left { top: -10px; left: -10px; border-radius: 50%; }
.map-floral.bottom-right { bottom: -10px; right: -10px; transform: rotate(180deg); border-radius: 50%; }

.map-btn { margin-top: 0.5rem; font-size: 0.9rem; }

/* Gallery */
.gallery-section { padding: 6rem 0; background: var(--bg-cream); }
.gallery-grid {
    display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 2rem;
}
.gallery-grid img { width: calc(20% - 10px); min-width: 150px; height: 250px; object-fit: cover; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* Footer */
.footer { background: var(--dusty-rose); color: #fff; padding: 4rem 2rem 2rem; position: relative; overflow: hidden; }
.floral-footer { position: absolute; width: 200px; height: 200px; opacity: 0.15; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10 50 Q50 10 90 50 Q50 90 10 50" stroke="white" stroke-width="2" fill="none"/></svg>'); background-size: contain; background-repeat: no-repeat; }
.floral-footer.left { top: 20px; left: -50px; transform: rotate(45deg); }
.floral-footer.right { top: 20px; right: -50px; transform: rotate(-45deg); }
.footer-content { position: relative; z-index: 2; }
.footer h3 { font-family: var(--font-heading); font-size: 2rem; font-weight: 400; margin-bottom: 2rem; }
.footer-divider { width: 100%; height: 1px; background: rgba(255,255,255,0.2); margin: 3rem 0 1.5rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
.footer-monogram { font-family: var(--font-heading); font-size: 1.5rem; letter-spacing: 3px; }
.social-icons i { margin-left: 1rem; cursor: pointer; font-size: 1.2rem; }

@media (max-width: 900px) {
    /* Scroll Snap: one section per screen */
    body {
        scroll-snap-type: y mandatory;
        overflow-y: scroll;
        height: 100vh;
    }

    .hero,
    .story-section,
    .events-section,
    .venues-section,
    .gallery-section,
    .footer {
        scroll-snap-align: start;
        scroll-snap-stop: always;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Hero */
    .hero { min-height: 100vh; background: var(--bg-cream); padding-bottom: 2rem; }
    .hero-split { flex-direction: column; height: auto; }
    .hero-image-wrapper { display: none; }
    .hero-content { flex: none; width: 100%; padding: 5rem 1.5rem 2rem; text-align: center; align-items: center;
        background-image: url('images/White Green Floral Watercolor Wedding Invitation.png');
        background-size: cover; background-position: center; min-height: 100vh; justify-content: center;
    }
    .hero h1 { font-size: 2.5rem; }
    .cursive-subtitle { font-size: 2rem; }
    .inline-countdown { gap: 8px; flex-wrap: wrap; justify-content: center; }
    .cd-item span { font-size: 1.4rem; }
    .floral-corner { display: none; }
    .scroll-down { bottom: 20px; }

    /* Our Story */
    .story-section { padding: 2rem 1rem; }
    .story-split { flex-direction: column; align-items: center; gap: 1.5rem; }
    .story-images { position: static; height: auto; width: 100%; display: flex; flex-direction: row; justify-content: center; align-items: flex-end; gap: 1rem; }
    .polaroid { position: static !important; padding: 8px 8px 25px 8px; }
    .img-back { transform: rotate(-3deg) !important; }
    .img-front { transform: rotate(3deg) !important; }
    .polaroid img { width: 120px; height: 145px; }
    .floral-accent-story { display: none; }
    .story-content { padding-right: 0; text-align: center; width: 100%; }
    .section-title { font-size: 2rem; }
    .body-text { font-size: 0.9rem; }

    /* Events */
    .events-section { padding: 2rem 1rem; }
    .events-grid { grid-template-columns: 1fr; gap: 1rem; }
    .event-card { padding: 1.5rem 1rem; }
    .event-icon { font-size: 2rem; margin-bottom: 0.8rem; }
    .event-card h3 { font-size: 1.4rem; }

    /* Venues */
    .venues-section { padding: 2rem 1rem; }
    .map-card { padding: 1.5rem 1rem; }
    .map-card-header h4 { font-size: 1.4rem; }
    .map-frame { border-width: 1px; }

    /* Gallery */
    .gallery-section { padding: 2rem 1rem; }
    .gallery-grid { gap: 6px; }
    .gallery-grid img { width: calc(33.33% - 6px); height: 130px; }

    /* Footer */
    .footer { padding: 2rem 1rem; background: var(--accent); }
    .footer h3 { font-size: 1.4rem; }
    .footer-bottom { flex-direction: column; gap: 0.8rem; font-size: 0.8rem; }
}
