/* Hero Section */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.3" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center no-repeat;
    background-size: cover;
    opacity: 0.5;
    pointer-events: none;
}

/* Seam layer: cups float above overlay without touching hero's stacking context */
.cafe-seam-cups {
    position: relative;
    width: 100%;
    height: 0;
    overflow: visible;
    z-index: 5;
    pointer-events: none;
}

.hero {
    background: linear-gradient(to bottom, #E8E3D9 0%, #F3F0EA 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: visible;
}



/* Section cups — visible on all sizes, positioned at section boundaries */
.section-cup {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 5;
    filter: drop-shadow(0 16px 40px rgba(0,0,0,0.35)) drop-shadow(0 4px 10px rgba(0,0,0,0.18));
}

/* Matcha latte: top of Entourage, bleeds up into When & Where (right side) */
.sc-matcha {
    width: 420px;
    top: -100px;
    right: -110px;
    transform: rotate(-9deg);
}

/* Bamboo whisk: left side of RSVP section */
.sc-whisk {
    width: 460px;
    top: 50%;
    left: -195px;
    transform: translateY(-50%) rotate(16deg);
}

/* Black coffee: top of Attire, bleeds up into Entourage (left side) */
.sc-coffee3 {
    width: 450px;
    top: -110px;
    left: -125px;
    transform: rotate(8deg);
}

/* Powder: top of FAQs, bleeds up into Attire — right side */
.sc-powder {
    width: 360px;
    top: -90px;
    right: -100px;
    transform: rotate(-11deg);
}

/* Knife & fork: top-right of RSVP section, fully within cream background */
.sc-knife-fork {
    position: absolute;
    pointer-events: none;
    user-select: none;
    width: 460px;
    top: 30px;
    right: -70px;
    transform: rotate(-22deg);
    mix-blend-mode: multiply;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
    z-index: 20;
}

/* Cafe ambient cups — hero only */
.cafe-cup {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 3;
    filter: drop-shadow(0 16px 40px rgba(0,0,0,0.35)) drop-shadow(0 4px 10px rgba(0,0,0,0.18));
}

/* Top-left: espresso with saucer */
.cafe-cup-coffee2 {
    width: 700px;
    top: -10px;
    left: -200px;
    transform: rotate(-180deg);
}

/* Top-right: matcha powder bowl */
.cafe-cup-powder {
    width: 350px;
    top: -50px;
    right: -95px;
    transform: rotate(13deg);
}

/* Moved to section — hide from hero */
.cafe-cup-matcha  { display: none; }
.cafe-cup-coffee3 { display: none; }

/* Bottom-left: matcha heart — balances beans on the opposite corner */
.cafe-cup-heart {
    width: 230px;
    bottom: -150px;
    left: 6%;
    transform: rotate(-12deg);
    mix-blend-mode: multiply;
    filter: drop-shadow(0 5px 7px rgba(0,0,0,0.28)) drop-shadow(0 2px 3px rgba(0,0,0,0.18));
}

/* Beans: bottom-right of hero, bleeds into When & Where */
.cafe-cup-beans {
    width: 115px;
    bottom: -280px;
    right: 7%;
    left: auto;
    transform: rotate(14deg);
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.22));
}

@media (max-width: 900px) {
    .rsvp-beans-desktop { display: none; }
    .cafe-cup-coffee2 { width: 420px; top: -75px; left: -130px; }
    .cafe-cup-powder  { width: 215px; top: 10px; right: -90px; }
    .cafe-cup-beans   { width: 80px; bottom: -160px; right: 5%; }
    .cafe-cup-heart   { width: 150px; bottom: 0px; left: 4%; }
    .sc-matcha      { width: 260px; top: -70px; right: -80px; }
    .sc-whisk       { width: 290px; top: 50%; left: -120px; transform: translateY(-50%) rotate(16deg); }
    .sc-coffee3     { width: 275px; top: -75px; left: -90px; }
    .sc-powder      { width: 225px; top: -60px; right: -70px; }
    .sc-knife-fork  { width: 330px; top: -140px; right: -150px; transform: rotate(-32deg); mix-blend-mode: normal; z-index: 10; }
}

@media (max-width: 480px) {
    .cafe-cup-coffee2 { display: none; }
    .cafe-cup-powder  { display: none; }
    .cafe-cup-beans   { display: none; }
    .cafe-cup-heart   { display: none; }

    /* Smaller section cups on mobile */
    .sc-matcha      { width: 175px; top: -65px; right: -60px; transform: rotate(-8deg); }
    .sc-whisk       { width: 170px; top: 68%; left: -82px; transform: translateY(-50%) rotate(16deg); }
    .sc-coffee3     { width: 170px; top: -60px; left: -58px; transform: rotate(7deg); }
    .sc-powder      { width: 155px; top: -55px; right: -52px; transform: rotate(-10deg); }
    .sc-knife-fork  { display: none; }
    .sc-whisk       { display: none; }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1.2s ease-out;
}

/* Logo Styling */
.logo-container {
    margin-bottom: 10px;
    animation: scaleIn 1s ease-out 0.3s backwards;
}

.wedding-logo {
    max-width: 500px;
    width: 90%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

#weddingLogo {
    opacity: 1;
}

/* Fade in and scale on page load */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Gentle floating animation after drawing completes */
.wedding-logo.drawn {
    animation: gentleFloat 4s ease-in-out infinite,
               subtleGlow 3s ease-in-out infinite alternate;
}

/* Fallback animation for non-SVG images (PNG) */
.wedding-logo.static-image {
    animation: fadeInScale 1.5s ease-out forwards,
               gentleFloat 4s ease-in-out 2s infinite,
               subtleGlow 3s ease-in-out 2s infinite alternate;
}

/* Gentle floating animation */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Subtle glow effect */
@keyframes subtleGlow {
    0% {
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    }
    100% {
        filter: drop-shadow(0 6px 20px rgba(160, 130, 109, 0.25))
                drop-shadow(0 2px 10px rgba(139, 155, 126, 0.2));
    }
}

/* Optional: Pulse animation on hover */
.wedding-logo:hover {
    animation: gentleFloat 4s ease-in-out infinite,
               subtleGlow 3s ease-in-out infinite alternate,
               logoPulse 0.6s ease-in-out;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.couple-names {
    font-family: 'Alex Brush', cursive;
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 400;
}

.wedding-date {
    font-family: 'EB Garamond', serif;
    font-size: 1.8rem;
    color: var(--accent-green);
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    animation: fadeIn 1.5s ease-out 0.8s backwards;
}

.wedding-subtitle {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 300;
    animation: fadeIn 1.5s ease-out 1s backwards;
}

.wedding-tagline {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 300;
    font-style: italic;
    animation: fadeIn 1.5s ease-out 1.2s backwards;
}

.hero-rsvp-btn {
    display: inline-block;
    margin-top: 28px;
    padding: 14px 48px;
    background: var(--primary-color);
    color: #FFFEF9;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 30px;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 18px rgba(160, 130, 109, 0.28);
    animation: fadeIn 1.5s ease-out 1.3s backwards;
}

.hero-rsvp-btn:hover {
    background: #8B6F47;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(160, 130, 109, 0.38);
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 60px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px 50px;
        min-height: 100dvh;
    }
}
