/* ============================================
   Before You Go — warm, playful, on-brand
   ============================================ */
/* Closing snap unit: before-you-go grows, footer pinned beneath, together = 100vh */
.closing-snap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.closing-snap .footer-section { flex: 0 0 auto; }

.before-you-go-section {
    padding: var(--spacing-xl) 0;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Transparent — the warm tail of the continuous page gradient shows
       through. The old corner radial glows were removed because a background
       is always clipped to the element box, so the top-left/bottom-right
       glows showed a hard partial line where this section met its neighbours. */
    background: transparent;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Floating decorative emojis */
.before-you-go-section .floating-emoji {
    position: absolute;
    font-size: 2.2rem;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
    user-select: none;
    filter: drop-shadow(0 4px 12px rgba(45, 55, 72, 0.15));
}
.before-you-go-section .floating-emoji.fe-1 { top: 12%; left: 6%;  animation: emojiFloatA 9s ease-in-out infinite; }
.before-you-go-section .floating-emoji.fe-2 { top: 18%; right: 10%; animation: emojiFloatB 11s ease-in-out infinite; }
.before-you-go-section .floating-emoji.fe-3 { bottom: 22%; left: 12%; animation: emojiFloatA 13s ease-in-out infinite reverse; }
.before-you-go-section .floating-emoji.fe-4 { bottom: 8%;  right: 8%;  animation: emojiFloatB 10s ease-in-out infinite reverse; }
.before-you-go-section .floating-emoji.fe-5 { top: 50%;   left: 2%;   animation: emojiFloatB 12s ease-in-out infinite; }
.before-you-go-section .floating-emoji.fe-6 { top: 55%;   right: 3%;  animation: emojiFloatA 14s ease-in-out infinite; }

@keyframes emojiFloatA {
    0%, 100% { transform: translate(0, 0)    rotate(-8deg); }
    50%      { transform: translate(10px, -18px) rotate(8deg); }
}
@keyframes emojiFloatB {
    0%, 100% { transform: translate(0, 0)    rotate(6deg); }
    50%      { transform: translate(-12px, -22px) rotate(-10deg); }
}

.before-you-go-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.before-you-go-section .section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.before-you-go-section .section-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.25rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.action-card {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 1.6rem 1.5rem;
    text-align: center;
    transition:
        transform 0.4s var(--ease-out-quart),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
    border: 1px solid rgba(45, 55, 72, 0.06);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(45, 55, 72, 0.06);
}

.action-card:nth-child(1) { transform: rotate(-1.5deg); }
.action-card:nth-child(2) { transform: rotate( 0.5deg); }
.action-card:nth-child(3) { transform: rotate( 1.5deg); }

.action-card:hover {
    transform: translateY(-10px) rotate(0deg) scale(1.03);
    box-shadow: 0 24px 50px rgba(49, 130, 206, 0.22);
    border-color: rgba(49, 130, 206, 0.25);
    text-decoration: none;
    color: var(--text-primary);
}

/* shimmer */
.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.08), transparent);
    transition: left 0.6s ease;
}
.action-card:hover::before { left: 100%; }

.action-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.action-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.card-arrow {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 38px;
    height: 38px;
    background: rgba(49, 130, 206, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out-quart);
    color: var(--accent-primary);
}

.action-card:hover .card-arrow {
    background: var(--accent-gradient);
    color: white;
    transform: translateX(3px) rotate(-8deg);
}

.card-arrow i { font-size: 0.9rem; }

/* Card icon: large bubble with brand colour per card */
.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.4s var(--ease-out-quart);
    position: relative;
    color: white;
    box-shadow: 0 10px 24px rgba(45, 55, 72, 0.18);
}

.action-card:hover .card-icon {
    transform: scale(1.1) rotate(-6deg);
}

.action-card:nth-child(1) .card-icon {
    background: linear-gradient(135deg, #F6855A, #E53E3E);
    box-shadow: 0 10px 24px rgba(229, 62, 62, 0.35);
}
.action-card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, #3182CE, #14B8A6);
    box-shadow: 0 10px 24px rgba(49, 130, 206, 0.35);
}
.action-card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, #22C55E, #16A34A);
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.35);
}

/* Celebration */
.celebration-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(45, 55, 72, 0.18);
    position: relative;
}

.celebration-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.confetti-btn {
    background: linear-gradient(135deg, #3182CE 0%, #14B8A6 30%, #F6855A 65%, #E53E3E 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-full);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out-quart), box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 28px rgba(229, 62, 62, 0.35);
    position: relative;
    letter-spacing: 0.4px;
    animation: confettiBtnShift 6s ease-in-out infinite;
}

@keyframes confettiBtnShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.confetti-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 18px 40px rgba(229, 62, 62, 0.45);
}
.confetti-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.confetti-btn i {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50%      { transform: scale(1.25) rotate(180deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .closing-snap { min-height: auto; display: block; }
    .before-you-go-section { padding: 3.5rem 0 4rem; }
    .before-you-go-section .section-title { font-size: 2rem; }
    .before-you-go-section .floating-emoji { font-size: 1.6rem; opacity: 0.35; }
    .before-you-go-section .floating-emoji.fe-5,
    .before-you-go-section .floating-emoji.fe-6 { display: none; }

    .action-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    .action-card,
    .action-card:nth-child(1),
    .action-card:nth-child(2),
    .action-card:nth-child(3) {
        transform: none;
        padding: 1.25rem;
        padding-right: 3.5rem;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    .action-card:hover { transform: translateY(-3px) scale(1.01); }
    .card-icon {
        width: 54px;
        height: 54px;
        font-size: 1.4rem;
        margin: 0;
        flex-shrink: 0;
        border-radius: 16px;
    }
    .card-content { flex: 1; }
    .action-card h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
    .action-card p { font-size: 0.85rem; margin-bottom: 0; }
    .card-arrow {
        bottom: 50%;
        right: 0.9rem;
        transform: translateY(50%);
        width: 32px;
        height: 32px;
    }
    .card-arrow i { font-size: 0.8rem; }
    .confetti-btn { padding: 0.875rem 1.5rem; font-size: 1rem; }
}

@media (max-width: 480px) {
    .before-you-go-section .section-title { font-size: 1.65rem; }
    .before-you-go-section .section-subtitle { font-size: 0.95rem; }
}
